M5-T01B: render ConfigPage sections as Mantine Accordion

This commit is contained in:
tliu93 committed 2026-06-22 12:34:04 +02:00
1 parent da7d0f9d62
commit eac7860b51
3 files changed
+92 -31

No files matched your search

+1 -1
View File
@@ -274,7 +274,7 @@ Phase C(MQTT / Discovery,依赖 B 的设备数据与 provider 接口)
- **Reviewer checklist**: 布局只在 `App.tsx`/新组件内变动,未误改页面或鉴权;无死链导航项。
### M5-T01B — Config 页分区折叠(Accordion)
- **Status**: `todo` · **Depends**: none
- **Status**: `done` · **Depends**: none
- **Context**: config 内容会越来越多(M5 还要加 MQTT / HA Discovery / Modbus 配置 + Expose 面板)。把 ConfigPage 从一长串 section 改为 Mantine `Accordion`:进页只见各大类标题,逐类展开编辑。**纯前端、单列内容**——它不是"第二个 app 级侧栏",与主侧栏(T01)无冲突,故 `Depends: none`、可独立先做。
- **Files**: `modify frontend/src/pages/ConfigPage.tsx`;`modify frontend/src/pages/ConfigPage.test.tsx`(折叠/展开断言)
- **Steps**: