Commit Graph
522 Commits
Author SHA1 Message Date
xuyue ecce21aaaf ramove rank 2026-03-29 10:07:27 -06:00
xuyue 8456b76586 remove rank 2026-03-29 10:07:22 -06:00
xuyue 951e53c1dd update 2026-03-29 09:46:03 -06:00
xuyue f26b06877c feat: add 外部AI tab to challenge page 2026-03-29 09:30:02 -06:00
xuyue 1744c405a5 fix: clear stale split result on code edit, show error on submit failure 2026-03-29 09:28:41 -06:00
xuyue 5f95b88914 feat: add ExternalAIPanel component for external AI code submission 2026-03-29 09:25:45 -06:00
xuyue 504c2bb70b remove challenge's content 2026-03-26 22:33:23 -06:00
xuyue cbdd1265bf fix request is timed out 2026-03-26 22:19:26 -06:00
xuyue 83537face1 update 2026-03-26 08:31:15 -06:00
xuyue 6495b77c8b update 2026-03-26 08:22:50 -06:00
xuyue 597f1f0f93 fix 2026-03-26 08:11:08 -06:00
xuyue b13c172e04 fix 2026-03-26 08:10:59 -06:00
xuyue 24f691e7fb change to ds chat 2026-03-25 20:47:20 -06:00
xuyue 4b58cee204 fix 2026-03-25 19:26:38 -06:00
xuyue 942332b6bd fix 2026-03-25 19:26:12 -06:00
xuyue fb747f9df4 update 2026-03-25 18:53:02 -06:00
xuyue a7cfa66952 fix 2026-03-18 20:07:00 +08:00
xuyue 0636ad6f57 fix 2026-03-18 20:01:53 +08:00
xuyue 7c4f729cb4 fix 2026-03-18 19:57:04 +08:00
xuyue e0f1cdb337 fix 2026-03-18 19:57:00 +08:00
xuyue 88d6ffaf53 fix 2026-03-18 19:50:55 +08:00
xuyue 83cd62a110 add stats 2026-03-18 19:46:33 +08:00
xuyue 0dc8b92dcb add stats 2026-03-18 19:46:27 +08:00
xuyue 4e95a2fad0 update 2026-03-18 18:40:15 +08:00
xuyue e692ddd1f3 update 2026-03-18 18:40:10 +08:00
xuyue dd52e3e1f9 fix 2026-03-18 18:06:39 +08:00
xuyue 3c6b616d81 fix 2026-03-18 18:06:37 +08:00
xuyue 0dd5cbeee9 fix 2026-03-18 15:45:42 +08:00
xuyue 7e5e02c7e6 update 2026-03-18 14:50:24 +08:00
xuyue d68ef60ab9 update 2026-03-18 14:50:20 +08:00
xuyue 98d8099b5d fix 2026-03-16 18:23:31 +08:00
xuyue 040e4e3253 fix 2026-03-16 17:55:49 +08:00
xuyue 7e65340f63 add icon url 2026-03-10 14:17:44 +08:00
xuyueandClaude Sonnet 4.6 2bd9382c8c fix: register plaintext hljs language and handle profile fetch error
- Register highlight.js plaintext language to fix "Unknown language" error
- Add try/catch around getMyProfile() to handle network errors gracefully
- Add components.d.ts to .gitignore (auto-generated by unplugin-vue-components)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-10 11:59:18 +08:00
xuyue a7aa4f63ac add leaderboard 2026-03-09 20:00:11 +08:00
xuyue 3a58925764 add leaderboard 2026-03-09 20:00:06 +08:00
xuyue 9c577f9bc1 自动提交之后提示成功提交 2026-03-09 19:22:33 +08:00
xuyue c01273bccd fix 2026-03-09 19:07:39 +08:00
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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
xuyueandClaude 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