xuyue
c01273bccd
fix
2026-03-09 19:07:39 +08:00
xuyue and Claude Opus 4.6
417e7c34bc
Fix submission list API performance: N+1 queries, missing indexes, and in-memory pagination
...
- Add select_related("user") in update_score() to eliminate N+1 on rating.user.role
- Return QuerySet directly from list_submissions so @paginate works at DB level
- Defer html/css/js fields in list queries to reduce data transfer
- Add db_index on flag field for filtered queries
- Add select_related("task", "user") to get_submission endpoint
- Replace manual list() serialization with resolve_* methods on SubmissionOut
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 18:26:32 +08:00
xuyue and Claude Opus 4.6
016e070fb9
fix: use null instead of empty string for flag filter initial value
...
Axios sends empty string as query param which fails django-ninja
Literal validation. Null is omitted from params entirely.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 18:15:35 +08:00
xuyue and Claude Opus 4.6
0ee8b0d6ea
Add flag filter dropdown to submissions page
...
Allows filtering submissions by flag color using a select dropdown.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:29:00 +08:00
xuyue and Claude Opus 4.6
334b2d77b1
Add flag column with admin popover to submissions table
...
Admins can click the flag dot to set/clear colored flags on submissions.
Non-admins see the flag indicator as read-only.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:26:16 +08:00
xuyue and Claude Opus 4.6
b4bfc7706c
Add FlagType and updateFlag API method to frontend
...
Add FlagType to type definitions and flag field to SubmissionOut/SubmissionAll
interfaces. Add updateFlag method to Submission API client.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:25:37 +08:00
xuyue and Claude Opus 4.6
d4727b1538
Add flag API endpoint and filter logic
...
Adds PUT /{submission_id}/flag endpoint (admin/super only) and
flag filter support in list_submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:17 +08:00
xuyue and Claude Opus 4.6
c7834530fe
Add flag to API schemas and submission filter
...
Adds flag field to SubmissionOut, SubmissionFilter, and new FlagIn schema.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:10 +08:00
xuyue and Claude Opus 4.6
aa344b92e5
Add flag field to Submission model with FlagChoices enum
...
Adds red/blue/green/yellow flag options for marking submissions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-09 17:23:05 +08:00
xuyue
f7e9d39bc2
fix AI prompt chain
2026-03-09 15:02:50 +08:00
xuyue
46347ff99b
update
2026-03-09 10:54:24 +08:00
xuyue
65022968a5
fix: complete html escape and use code arg in auto-submit callback
2026-03-09 10:53:20 +08:00
xuyue and Claude Sonnet 4.6
04bb023c2e
feat: auto-submit on AI code generation in challenge
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-09 10:51:17 +08:00
xuyue
725fad4a55
feat: expose onCodeComplete callback in prompt store
2026-03-09 10:50:17 +08:00
xuyue
4774c05809
fix: escape lang value in code block renderer
2026-03-09 10:49:44 +08:00
xuyue and Claude Sonnet 4.6
33d75bf83a
feat: collapse code blocks in AI chat messages
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-03-09 10:47:50 +08:00
xuyue
7b7f6ea81d
update
2026-03-09 10:01:19 +08:00
xuyue
9e8c3d7ebb
update
2026-03-09 09:55:43 +08:00
xuyue
7d8966caea
fix
2026-03-09 09:53:03 +08:00
xuyue
7990b886c8
fix
2026-03-09 09:47:40 +08:00
xuyue
7da4becf4f
add iconify url
2026-03-09 09:38:44 +08:00
xuyue
b6dc79b298
add chat
2026-03-04 20:05:37 +08:00
xuyue
6998d694bb
add chat
2026-03-04 20:05:33 +08:00
xuyue
78a2d84335
update
2026-03-04 00:04:45 +08:00
xuyue
fdbe06a077
update
2026-03-04 00:04:39 +08:00
xuyue
564f0b3f21
revert
2026-01-26 15:23:45 +08:00
xuyue
18a27f82fd
test
2026-01-26 15:21:25 +08:00
xuyue
30f4195a8a
fix
2026-01-26 15:17:39 +08:00
xuyue
ded044ca57
fix
2026-01-26 15:12:20 +08:00
xuyue
9386f2e152
update action file
2026-01-26 15:11:30 +08:00
xuyue
44944944ad
fix
2026-01-26 14:59:51 +08:00
xuyue
04721a035b
update
2026-01-26 14:38:26 +08:00
xuyue
8f331419e7
update
2026-01-26 14:38:23 +08:00
xuyue
73f09a9c99
add maxkb url
2026-01-03 23:23:18 +08:00
xuyue
8e91884d75
fix list submissions
2025-12-22 18:29:18 +08:00
xuyue
d1b5b67725
update
2025-12-20 22:42:05 +08:00
xuyue
aa0e71ce94
update
2025-12-20 22:41:11 +08:00
xuyue
b77f90559a
fix
2025-09-25 10:29:10 +08:00
xuyue
a1828a0aba
update
2025-09-25 10:03:39 +08:00
xuyue
cba1c5adb9
fix
2025-09-24 19:20:49 +08:00
xuyue
f43b1c62f6
update
2025-09-04 18:13:12 +08:00
xuyue
095626b857
add staging env
2025-09-04 18:11:16 +08:00
xuyue
36c795e6ec
update
2025-09-04 17:31:08 +08:00
xuyue
ebfe08a97c
update
2025-09-04 17:20:55 +08:00
xuyue
8ce1c87dff
更新MaxKB链接
2025-08-28 19:54:08 +08:00
xuyue
912095b295
update
2025-07-16 10:12:36 +08:00
xuyue
baa44acbee
test
2025-07-16 10:08:56 +08:00
xuyue
1ff887c94f
fix
2025-07-16 09:44:09 +08:00
xuyue
33e4ead2c5
update
2025-07-16 09:22:47 +08:00
xuyue
bb41f05bbe
update
2025-07-16 01:15:15 +08:00