e7e843fee0
feat(ai-optimized-editor): Add AIDisplayButton and store to add feature to view last AI generated optimized code
...
- 添加 AIDisplayButton组件,用于切换 AI 优化代码和原始代码
- 修改 AIOptimizeButton 组件,仅在非 AI 编辑模式下显示
- 在代码工具栏中集成 AIDisplayButton
- 更新 problem-editor store,添加 AIgenerate 和 LastOptimizedCode 状态
-优化 AIEditorWrapper 组件,支持生成优化代码和回退功能
2025-06-21 19:03:53 +08:00
ac67ad26a1
feat(problem-editor): optimize ai-optimized-editor button and store
...
-将 AIEditorWrapper 组件集成到 ProblemEditor 中
- 添加 AIOptimizeButton 组件到代码工具栏
- 更新 problem-editor store,增加 useAIEditor 和 loading 状态
- 调整 ProblemEditor 组件,根据 useAIEditor状态切换编辑器
2025-06-21 17:30:04 +08:00
9b231cc5e5
refactor(creater): wrap Panel with PanelLayout and ScrollArea
2025-06-21 00:34:21 +08:00
56618fd335
refactor: flexlayout
2025-06-20 17:37:00 +08:00
941f1a74fa
feat: replace dockview with flexlayout-react
2025-06-13 14:03:17 +08:00
bcdd72317c
feat(store): add problem editor state management
...
- Create problem-editor store with Zustand
- Manage editor state including problem, language, value and path
- Implement localStorage persistence for editor content
- Provide utility functions for language and value retrieval
2025-05-13 16:31:38 +08:00
c182452dd0
refactor(stores): split dockview store into problem-specific store
...
- Remove generic dockview store (`src/stores/dockview.tsx`)
- Add problem-specific dockview store (`src/stores/problem-dockview.tsx`)
- Remove submission-related state as it's no longer needed
2025-05-06 18:37:39 +08:00
44ec30e988
refactor(store): replace Submission with SubmissionWithTestcaseResult in dockview store
2025-04-14 14:12:15 +08:00
ce4a0e64c9
feat(store): persist submission state in dockview store
2025-04-14 10:39:06 +08:00
c82b75b300
feat(dockview-store): add submission state management
2025-04-13 22:44:05 +08:00
69e06ecfc6
feat(dockview): add Zustand store for dockview API management
2025-04-12 10:41:52 +08:00
82b0705bdb
feat(problem-store): add submissions to problem store state and provider
...
- Added `submissions` field to `ProblemState` and `ProblemStore` type
- Updated `createProblemStore` function to handle `submissions`
- Modified `ProblemStoreProvider` to pass `submissions` as a prop
- Updated `ProblemLayout` to fetch `submissions` from the database and pass to the provider
2025-04-11 17:42:52 +08:00
f1f2a70c0e
refactor(problem-store): consolidate problem data structure into ProblemWithDetails
2025-04-09 20:38:53 +08:00
a02335b255
feat(problem-store): add testcases to store state and provider
2025-04-09 19:41:55 +08:00
750fb74653
chore(imports): update imports to use @/generated/client instead of @prisma/client
2025-04-01 11:46:25 +08:00
2c013097a8
feat(problem-store): add markers to problem store state and actions
2025-03-25 13:01:34 +08:00
2a90162c73
feat(problem-store): add problem field to ProblemState
2025-03-24 10:28:16 +08:00
3fbec8cd24
feat(problem-store): add WebSocket to store and update actions
2025-03-23 23:47:36 +08:00
14bee1ade8
feat(store): add problem store for managing editor state
2025-03-21 23:58:50 +08:00
f43ba10a57
refactor(store): rename src/store to src/stores
2025-03-21 23:58:40 +08:00