Commit Graph

20 Commits (f97c24bf9e862e477d54f6c71095724f109e6656)

Author SHA1 Message Date
DrSmoothl 760561f45e
fix(version): update APP_VERSION to 1.0.0 2026-02-17 18:52:06 +08:00
DrSmoothl 6bb0bc9afc
feat(dashboard): integrate DynamicConfigForm in model config page
- Add DynamicConfigForm import and fieldHooks integration
- Replace TaskConfigCard list with DynamicConfigForm in tasks tab
- Use hardcoded schema POC approach (fields: [], nested: {})
- Maintain existing auto-save and state management logic
- TypeScript compilation verified

Task 14 complete - Wave 4 finished (4/4)
2026-02-17 18:32:31 +08:00
DrSmoothl 2de618464a
docs(dashboard): add comprehensive dynamic form system documentation
- Overview of schema-driven UI system
- Quick start guide with examples
- Backend UI metadata guide (json_schema_extra)
- Hook component creation tutorial
- API reference for all components
- Troubleshooting section
2026-02-17 18:18:51 +08:00
DrSmoothl fa15fef1f0
feat(dashboard): convert 4 Sections to Hook components
- Create PersonalitySectionHook (medium complexity)
- Create DebugSectionHook (simple complexity)
- Create ExpressionSectionHook (high complexity)
- Create BotInfoSectionHook (simple complexity)
- Update hooks/index.ts with exports
- Pattern validated across different complexity levels
2026-02-17 18:18:44 +08:00
DrSmoothl 69dfd0cac6
test(dashboard): add unit tests for dynamic form components
- Create comprehensive test suite for DynamicField (21 tests)
- Create comprehensive test suite for DynamicConfigForm (10 tests)
- Create comprehensive test suite for FieldHookRegistry (21 tests)
- Configure Vitest 4.0.18 with jsdom environment
- Add test setup with ResizeObserver and matchMedia polyfills
- 52 tests total covering all core functionality
2026-02-17 18:18:32 +08:00
DrSmoothl c58ad64352
feat(dashboard): integrate DynamicConfigForm for ChatSection POC
- Register ChatSectionHook as 'replace' mode field hook
- Replace ChatSection rendering with DynamicConfigForm
- Use hardcoded minimal schema (POC - API integration pending)
- Preserve all existing state management and auto-save logic
- TypeScript compilation: ✓ PASSED

Complete Task 11 (Wave 3)
Ref: WebUI config visualization refactor plan
2026-02-17 17:46:40 +08:00
DrSmoothl 3fcf02866a
feat(dashboard): export ChatSectionHook in hooks index
- Add ChatSectionHook export to hooks/index.ts
- Complete Task 10 (Wave 3)
- ChatSectionHook now available for import and registration
2026-02-17 17:41:41 +08:00
DrSmoothl b382747398
feat(dashboard): convert ChatSection to Hook component 2026-02-17 17:37:47 +08:00
DrSmoothl 449e2f470c
feat(dashboard): create DynamicConfigForm component with Hook integration
- Accept schema, values, onChange, hooks props
- Check for field hooks, use if present (replace/wrapper modes)
- Fall back to DynamicField for non-hooked fields
- Support nested schema rendering with recursive calls
- Export DynamicConfigForm and DynamicField from index

Groups with Task 5. Completes Task 6 of webui-config-visualization-refactor plan.
2026-02-17 17:20:50 +08:00
DrSmoothl 2962a95341
feat(dashboard): create DynamicField renderer component
- Render fields based on x-widget or type
- Support slider, switch, textarea, select, custom widgets
- Include label, icon, description rendering
- Placeholder for unsupported types (array, object)

Completes Task 5 of webui-config-visualization-refactor plan.
2026-02-17 17:14:41 +08:00
DrSmoothl e530ee8fa6
feat(dashboard): create FieldHookRegistry for dynamic form hooks 2026-02-17 16:49:32 +08:00
DrSmoothl 5838dda175
feat(dashboard): add UI metadata fields to FieldSchema type 2026-02-17 16:48:58 +08:00
DrSmoothl b6441ea17b
更新 WebUI 版本 2026-02-15 16:46:52 +08:00
DrSmoothl 275608abea
test WebUI CI x5 2026-02-15 16:39:32 +08:00
DrSmoothl ba10124152
test WebUI CI x4 2026-02-15 16:36:52 +08:00
DrSmoothl c3adc688e8
test WebUI CI x3 2026-02-15 16:33:34 +08:00
DrSmoothl a19b9b2c42
test WebUI CI x2 2026-02-15 16:30:56 +08:00
DrSmoothl 63c27aaf21
test WebUI CI 2026-02-15 16:19:48 +08:00
墨梓柒 433a4551f9
移除gitignore中的lib文件夹,上传被排除掉的前端lib文件 2026-01-21 15:41:43 +08:00
墨梓柒 812296590e
上传完整的WebUI前端仓库 2026-01-13 06:24:35 +08:00