Commit Graph
498 Commits
Author SHA1 Message Date
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
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
xuyueandClaude 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