Commit Graph

234 Commits

Author SHA1 Message Date
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
ce41afa383 feat(admin/problemset): add interactive problemset data table
- Implement responsive data table with TanStack React Table

- Add dynamic filtering for difficulty and search

- Support server-side pagination controls

- Include row selection and batch delete functionality

- Add column visibility toggling

- Style table with custom hover states and accessibility features
2025-03-31 21:28:28 +08:00
139c0ba76d feat(components/ui): add Table component from shadcn/ui 2025-03-30 21:08:03 +08:00
daa7775862 chore(sidebar): simplify navigation structure 2025-03-30 20:51:38 +08:00
99f6696fa2 feat(nav-main): refactor sidebar menu to handle items without submenus 2025-03-30 20:43:12 +08:00
192d882fdd fix(banner): update component to use 'flex-none' for flexbox layout 2025-03-30 20:21:59 +08:00
e490f1bcea fix(video-embed): refactor URL generation and prevent Bilibili autoplay 2025-03-28 10:38:46 +08:00
869957de19 feat(mdx-components): add VideoEmbed component to MDX components map 2025-03-27 14:06:04 +08:00
535d8ec51a feat(mdx/content): add component for embedding YouTube and Bilibili videos 2025-03-27 14:05:16 +08:00
a86a42a483 feat(mdx-components): add AccordionComponent to MdxComponents 2025-03-27 13:33:36 +08:00
671f29b66a feat(mdx/content): add AccordionComponent for collapsible sections with lightbulb icon 2025-03-27 13:33:01 +08:00
4ec1943738 fix(chat-bubble): adjust message padding and layout styles 2025-03-26 22:51:03 +08:00
2605b211bc feat(pre): add horizontal scrolling support for code blocks 2025-03-26 22:48:46 +08:00
793db58e36 feat(mdx): add scroll support for tables 2025-03-26 22:48:00 +08:00
1de4396eaa feat(workspace-editor-footer): add error and warning marker count 2025-03-25 13:18:41 +08:00
4736f77cbf fix(problem-editor): add editor validation handling 2025-03-25 13:08:29 +08:00
ef37451313 chore(ui): add eslint-disable for unused variables in ChatMessageList 2025-03-24 21:27:12 +08:00
c0783f0648 chore(ui): add eslint-disable for empty object type in ChatInputProps 2025-03-24 21:26:47 +08:00
2b4a4b527e feat(cli): add all components with shadcn-chat-cli 2025-03-24 11:38:00 +08:00
0c9ad2b8b0 refactor(mdx-preview): use MdxComponents and add className prop 2025-03-24 10:31:09 +08:00
c97613ac1d refactor(problem-editor): rename CodeEditor to ProblemEditor 2025-03-23 23:55:11 +08:00
9e4bcfaf96 refactor(lsp-status-button): update LSP status logic to use WebSocket state 2025-03-23 23:53:07 +08:00
09a8276d39 refactor(problem-editor): modify LSP connection logic to manage WebSocket state 2025-03-23 23:51:58 +08:00
6df93de3ca feat(header): add LSP status button to workspace header 2025-03-23 22:05:59 +08:00
cd5f3c88dc refactor(problem-editor): optimize event handlers with useCallback 2025-03-23 21:03:53 +08:00
4842c9302c feat(problem-editor): add LSP support and language client connection 2025-03-23 18:50:07 +08:00
45a9950ad3 fix(credentials-sign-in-form): redirect to dashboard after successful sign-in 2025-03-22 13:49:12 +08:00
e5ba5dd51a refactor(hooks): rename use-problem-editor.ts to use-problem.ts 2025-03-22 00:23:27 +08:00
f43ba10a57 refactor(store): rename src/store to src/stores 2025-03-21 23:58:40 +08:00
69115c4ef0 feat(run-code): integrate exit code toast and update problem editor hook 2025-03-21 11:08:00 +08:00
91d9344bc9 refactor(header): update import style for RunCode component 2025-03-20 15:51:59 +08:00
bc541fc605 refactor(header): convert default exports to named exports for buttons and language selector 2025-03-20 15:46:09 +08:00
547c458a20 refactor(redo-button): replace useCodeEditorStore with useProblemEditor in RedoButton component 2025-03-20 15:43:14 +08:00
5db172fce3 feat(LanguageSelector): add loading state for hydration 2025-03-20 15:41:46 +08:00
7051f57204 refactor(WorkspaceEditorFooter): replace useCodeEditorStore with useProblemEditor 2025-03-20 15:39:10 +08:00
00f83d69f1 refactor(ResetButton): replace useCodeEditorStore with useProblemEditor 2025-03-20 15:35:53 +08:00
0ae01d35bc feat(UndoButton): replace useCodeEditorStore with useProblemEditor 2025-03-20 15:34:45 +08:00
a6595c51db feat(format-button): switch to useProblemEditor hook for editor state 2025-03-20 15:28:44 +08:00
12d0eed66a feat(copy-button): update to use useProblemEditor hook for editor state 2025-03-20 15:26:33 +08:00
74c8175153 feat(editor): refactor code editor component to problem editor 2025-03-20 15:15:37 +08:00
458bdfbf42 fix(useMonacoTheme): return theme ID instead of the full theme object 2025-03-20 14:47:16 +08:00
fae504b35d chore(components): remove unused core-editor component 2025-03-20 14:42:45 +08:00
298d2c1c86 refactor(WorkspaceEditorHeader): remove unused props and simplify component 2025-03-20 13:30:42 +08:00
6bd3a44d8d refactor(language-selector): update to use useProblemEditor hook 2025-03-20 13:25:47 +08:00
154b66d524 refactor(hooks): rename monacoTheme to currentTheme in useMonacoTheme 2025-03-19 14:58:11 +08:00
24b5d96913 feat(core-editor): Add CoreEditor component with Monaco Editor integration 2025-03-19 13:18:00 +08:00
0e16b9ff6c feat(credentials-sign-up-form): add user registration with transition and toast notifications 2025-03-18 22:52:00 +08:00
7ecef7679f feat(credentials-sign-in-form): add loading state, error handling, and navigation after sign in 2025-03-18 22:50:59 +08:00
a33bf167d4 rename(components): update file names for consistency 2025-03-18 22:14:12 +08:00
91ce73d72b feat(Loading): add skeletonClassName prop to customize Skeleton style 2025-03-18 19:46:19 +08:00
449dfd56f2 refactor(loading): add className prop and support additional props 2025-03-18 19:34:00 +08:00
2248645a38 feat(sidebar): update navigation links for settings page 2025-03-18 14:53:12 +08:00
0dec1e5697 feat(navbar): add breadcrumb navigation component 2025-03-18 10:36:26 +08:00
047cd04ea3 feat(components/ui): add Accordion component from shadcn/ui 2025-03-17 20:21:20 +08:00
6a4855086e feat(component/ui): add Textarea component from shadcn/ui 2025-03-17 17:57:20 +08:00
4ef120178c fix(nav-main): concatenate base URL with sub-item URL 2025-03-17 11:58:51 +08:00
b403a0f977 refactor(components): extract NavUserProps and NavMainProps type and optimize type definitions 2025-03-17 11:35:05 +08:00
cb966297e1 refactor(app-sidebar): support external user prop and remove internal user data 2025-03-17 10:45:23 +08:00
a5faab67c5 feat(components/ui): add Sidebar-07 component from shadcn/ui 2025-03-16 20:31:21 +08:00
aa10163c51 feat(code-editor): update component to set path based on language configuration 2025-03-16 20:00:55 +08:00
f3b9ae64f4 feat(code-editor): refactor to support dynamic language and LSP configuration 2025-03-16 16:36:02 +08:00
4dc3b44bf0 feat(workspace-editor): add languageServerConfigs support to WorkspaceEditorHeader 2025-03-16 16:06:33 +08:00
004bdb510b feat(language-selector): update to support multiple language server configurations 2025-03-16 15:59:59 +08:00
ee4020f50f feat(workspace): pass editorLanguageConfigs to LanguageSelector and WorkspaceEditorHeader 2025-03-16 14:18:14 +08:00
b0e00e7d69 feat(language-selector): integrate icons for languages in language selector 2025-03-16 13:33:16 +08:00
d1188f5ea6 chore(components): move features to components/features 2025-03-16 12:05:59 +08:00
116519a70b feat(auth): refactor sign up and sign in forms with react-hook-form and zod validation 2025-03-14 17:08:11 +08:00
abae72118a feat(components/ui): add Form component from shadcn/ui 2025-03-14 15:55:37 +08:00
0215644e6c refactor(auth): extract credentials sign-in and sign-up forms into separate components 2025-03-14 15:54:32 +08:00
18d9b28e1e feat(components/ui): add Sonner component from shadcn/ui 2025-03-14 15:33:07 +08:00
095af823e4 feat(auth): add sign-in and sign-up forms with GitHub sign-in option 2025-03-14 14:36:35 +08:00
eadd276c29 feat(auth): add GitHubSignIn component 2025-03-14 14:35:07 +08:00
47c219bc4a refactor(avatar-button): replace sign-in handler with redirect to /sign-in 2025-03-14 14:34:05 +08:00
e2dce21261 feat(components/ui): add Label component from shadcn/ui 2025-03-14 10:11:22 +08:00
60aef705d5 refactor(editor): replace loading skeleton with custom Loading component 2025-03-13 11:44:14 +08:00
b78547a992 feat(run-code): add tooltip to button for better UX 2025-03-13 10:48:01 +08:00
574a98e58e chore(auth): move auth.ts to src/lib directory 2025-03-12 22:46:01 +08:00
171ee8abdc refactor(settings-button): update to use dropdown menu item instead of button 2025-03-12 21:15:44 +08:00
d0235b0989 feat(avatar-button): add AvatarButton component with login/logout functionality 2025-03-12 21:14:18 +08:00
bc7b7e3b8a feat(components/ui): add Avatar component from shadcn/ui 2025-03-12 15:19:41 +08:00
97405a8657 feat(components): add back button component with tooltip 2025-03-12 12:22:41 +08:00
247e54c40c refactor(settings-dialog): integrate settings dialog state with store 2025-03-12 11:49:29 +08:00
83356993e9 refactor(settings-button): integrate settings dialog state with store 2025-03-12 11:48:41 +08:00
2bc704a818 feat(loading): add Loading component 2025-03-11 22:40:21 +08:00
aaa4c1def5 fix(mdx-components): restore list decoration for ordered and unordered lists
- Restored default list decorations (bullet points for `ul` and numbers for `ol`).
- Solution based on issue from `sindresorhus/github-markdown-css#103`.
2025-03-10 20:41:53 +08:00
28a4b0631d refactor(code-editor): update editor change handler and remove unused event parameter 2025-03-09 11:50:23 +08:00
a691992404 fix(code-editor): improve template handling and default value logic 2025-03-09 11:22:40 +08:00
6297419aad feat(code-editor): persist code changes and apply problem templates 2025-03-09 10:48:03 +08:00
a78431fb61 fix(playground): update file path 2025-03-08 21:17:31 +08:00
70626d0499 rename(header): rename Header to WorkspaceHeader 2025-03-08 17:58:50 +08:00
b2e358de1b style(banner): update component with background color and layout changes 2025-03-07 15:31:22 +08:00
0159998234 refactor(components): replace custom pre component with shared Pre component for MDX preview 2025-03-07 11:43:41 +08:00