Commit Graph

225 Commits

Author SHA1 Message Date
a3ef5d88e6 refactor(auth)!: remove components and rewrite sign-in page 2025-05-05 18:21:08 +08:00
443adf055b feat(editor): configure Monaco workers using URL imports for better bundling 2025-04-20 01:11:38 +08:00
64182bccc6 fix(dockview): move panel titles from options to params to prevent i18n title persistence in layout 2025-04-19 12:53:39 +08:00
f40a8d3821 perf(language-settings): make locale change handling async with await 2025-04-19 10:53:34 +08:00
f2d14d07b2 feat(home): Add PrimaryFeatures component
- Add PrimaryFeatures component with MobileFriendlyCard, DockerCard, and LSPCard.
- Update HomePage to include PrimaryFeatures component between MainView and FAQs.
2025-04-17 21:42:58 +08:00
fcb75269eb feat(components/ui): add Card component from shadcn/ui 2025-04-17 16:49:35 +08:00
5e7ef4a99d feat(home): replace homepage redirect with actual content 2025-04-17 16:45:49 +08:00
f39bbf76e7 feat(submissions): add login requirement for submissions page
- Add SubmissionLoginButton component for unauthenticated users
- Modify submissions page to check auth session
- Filter submissions by current user when logged in
2025-04-17 09:31:04 +08:00
58222795fe chore(avatar): update default image to use local shadcn.jpg 2025-04-16 15:48:06 +08:00
1d0b74136f refactor(i18n): replace hardcoded texts with i18n message keys for auth 2025-04-16 00:40:36 +08:00
4428a29306 refactor(i18n): replace hardcoded texts with i18n message keys 2025-04-15 18:22:21 +08:00
5465450143 feat(auth): update sign-in and sign-up flow with redirect support 2025-04-14 21:27:06 +08:00
799ab3ccd1 refactor(avatar-button): remove unnecessary account and notification items from dropdown menu 2025-04-14 17:59:52 +08:00
59e133f29c feat(submissions-table): update table to display detailed status message 2025-04-14 16:53:58 +08:00
f53807338a refactor(submission-table): switch to SubmissionWithTestcaseResult to support testcase results 2025-04-14 14:15:16 +08:00
2a4d741a76 feat(submissions): show language label alongside icon in submissions table 2025-04-14 10:26:57 +08:00
01c2cd6eef refactor(description-form): simplify form to use basic input instead of markdown editor 2025-04-13 22:45:33 +08:00
b35ef0208a feat(submissions-table): add click handler to open details panel 2025-04-13 22:43:01 +08:00
e7ad3a66e6 style(testcase-form): reorder input props and make inputs read-only 2025-04-13 13:22:47 +08:00
8b3faf4a42 feat(submissions): improve submission table with icons and better status display 2025-04-13 13:18:10 +08:00
54998d5c1b feat(dockview): update DockView component to support external onApiReady callback
- Removed the internal use of `useDockviewStore` for managing Dockview API state.
- Introduced `onApiReady` prop to allow external handling of the `DockviewApi` when it’s ready.
- Updated `onReady` function to invoke `onApiReady` callback with the API instance.
- Ensured backward compatibility by keeping the previous internal handling of `DockviewApi`.
2025-04-13 11:53:06 +08:00
0de139f29c refactor(bot-toggle): inline Bot panel config and remove DefaultDockviewOptions dependency 2025-04-13 11:41:58 +08:00
56782b83fc refactor(components): migrate DockView to dynamic panel/tab components with store-based API exposure and autoAdd flag 2025-04-13 11:35:29 +08:00
737965dc91 style(submissions-table): replace odd row styling with even row check logic 2025-04-13 11:23:58 +08:00
8809dbdb1a feat(run-code): activate Submissions panel after running code 2025-04-12 13:38:57 +08:00
72a868402c feat(header): add BotVisibilityToggle to header component 2025-04-12 10:55:41 +08:00
f78196d7e0 feat(components): add bot visibility toggle component
- Added a toggle to control the visibility of the bot panel
- Implemented loading state with Skeleton component
- Integrated with dockview store to manage panel visibility
- Added tooltip to indicate bot's current state (Open/Close)
2025-04-12 10:53:32 +08:00
7963d38388 feat(submissions): add submissions table component and display on problem page
- Added `SubmissionsTable` component to display submissions (including status, language, time, memory, and submission date).
- Updated `Submissions` page to render `SubmissionsTable` with submissions data from `ProblemStore`.
- Improved table sorting and date display logic.
2025-04-11 17:44:45 +08:00
dc939085bb refactor(hooks): move show-status-toast.tsx from lib to hooks 2025-04-11 09:47:31 +08:00
6e22822383 chore(toast): rename show-exit-code-toast.tsx to show-status-toast.tsx 2025-04-10 22:42:41 +08:00
895c3f779d refactor(judge): fetch timeLimit and memoryLimit from Problem instead of DockerConfig 2025-04-10 21:59:11 +08:00
84ebd17be9 style(playground): adjust header layout and z-index for centered RunCode button 2025-04-10 20:38:39 +08:00
3f10c08a6c feat(testcase): add dynamic testcase card and form for problem view 2025-04-09 21:26:06 +08:00
d799578150 refactor(editor/header): adjust workspace header layout structure 2025-04-07 12:32:15 +08:00
a7419fe1ba fix(editor/footer): delay the import of Monaco's MarkerSeverity until window is defined 2025-04-07 12:05:17 +08:00
3e5e2d2a62 feat(dockview): support dynamic Lucide icons via string in tab headers 2025-04-07 10:32:58 +08:00
da26648a9b feat(dockview): refactor component API and add customization options 2025-04-06 18:16:43 +08:00
67e1445f98 refactor(problemset): use Dockview components with dynamic params in description form 2025-04-06 17:40:29 +08:00
787f91b743 style(problemset): increase odd row background opacity in tables 2025-04-05 23:34:48 +08:00
424f24694b feat(problemset): add metadata, description, and solution forms for new problem creation 2025-04-05 23:17:36 +08:00
b8576dbf10 feat(dockview): refactor to generic configurable dockview component 2025-04-05 17:50:07 +08:00
54ac7b3cd5 feat(editor): add Markdown editor component with Monaco editor integration 2025-04-04 20:24:11 +08:00
a8e243204b feat(layout): refactor problem layout to use DockView for organizing content sections 2025-04-04 18:13:14 +08:00
2f1a9767f1 feat(dockview): add Dockview component and panel layout management 2025-04-04 14:03:05 +08:00
d61f3d9b0c refactor(styles): rename style folder to styles 2025-04-04 13:00:36 +08:00
30fd6fd386 refactor(actions): move actions from @/app/actions to @/actions 2025-04-04 10:04:38 +08:00
74e85edd33 feat(admin/problemset): add schema definition for new problem 2025-04-02 09:27:05 +08:00
1875e98106 feat(problemset/table): wrap Add Problem button with Next.js Link 2025-04-02 08:38:51 +08:00
548f0b7184 feat(components/ui): add Switch component from shadcn/ui 2025-04-01 17:33:09 +08:00
750fb74653 chore(imports): update imports to use @/generated/client instead of @prisma/client 2025-04-01 11:46:25 +08:00