docs(ui): require redesigned interfaces for derivative apps
This commit is contained in:
1 parent
154f86ef71
commit
b56a9892e1
12 files changed
+87
-23
No files matched your search
@@ -37,6 +37,7 @@ retain the separate authorization requirements for flashing, Git writes, and pub
|
||||
- Flashing new firmware does not require backing up the firmware already on the device; do not make a Flash readback a prerequisite. This does not guarantee preservation of user data or authorize a full-chip erase. Follow the [flashing and data policy](docs/development/engineering/firmware-layout.md#flashing-and-stored-data).
|
||||
- Hardware facts follow this priority: product specifications and measured results → `components/bsp/include/bsp_pins.h` → BSP headers and implementation → hardware guide → README/demo code. If a task requires a hardware detail not defined by these sources, ask the user instead of guessing.
|
||||
- Reusable board logic belongs in `components/bsp`; pages, state machines, animations, and application tasks belong in `main`.
|
||||
- Derivative applications must redesign and implement their own UI. Reusing the current demo test menu, screens, or visual shell is prohibited; renaming, recoloring, or adding a feature to that shell does not count as a redesign. BSP APIs and non-UI logic remain reusable. See the [mandatory UI redesign rule](docs/development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications).
|
||||
- LVGL is not thread-safe. Code outside the LVGL task must hold `bsp_lvgl_lock()` while accessing LVGL objects.
|
||||
- Before adding Chinese UI text, follow the [font checklist](docs/development/engineering/coding-conventions.md#chinese-fonts-and-missing-glyphs). The default Montserrat fonts have no Chinese glyphs; UTF-8 and a successful build do not prove display support. Verify glyph coverage, widget font selection, and on-device rendering.
|
||||
- Button callbacks must stay non-blocking. Audio, storage, networking, and other slow operations belong in worker tasks.
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
- 下载(烧录)新固件无需备份设备内原有固件,不得把读取 Flash 备份作为前置条件。这不保证保留用户数据,也不授权全片擦除;遵循[烧录与数据说明](docs/development/engineering/firmware-layout.zh_CN.md#烧录与已存数据)。
|
||||
- 硬件事实优先级:产品规格与实测结果 → `components/bsp/include/bsp_pins.h` → BSP 头文件与实现 → 硬件指南 → README/demo。任务所需硬件细节未在这些来源中定义时,直接询问用户,不得猜测。
|
||||
- 可复用板级逻辑放入 `components/bsp`;页面、状态机、动画和应用任务放入 `main`。
|
||||
- 二次开发应用必须重新设计并实现独立 UI,禁止沿用当前 demo 测试菜单、页面或界面外壳;仅改名、换颜色或在原界面增加功能不算重新设计。BSP API 和非 UI 逻辑仍可复用。详见[二次开发 UI 强制重新设计规则](docs/development/ai-guide.zh_CN.md#二次开发-ui-强制重新设计)。
|
||||
- LVGL 非线程安全。LVGL 任务之外访问 LVGL 对象时必须持有 `bsp_lvgl_lock()`。
|
||||
- 添加中文 UI 前必须遵循[字体检查清单](docs/development/engineering/coding-conventions.zh_CN.md#中文字体与缺字排查)。默认 Montserrat 字体不含中文字形;UTF-8 正确、编译成功均不代表能够显示中文。必须核对字形覆盖、控件实际字体并完成真机显示验收。
|
||||
- 按键回调不得阻塞。音频、存储、网络等慢操作必须放入工作任务。
|
||||
|
||||
+3
-2
@@ -48,6 +48,7 @@ Follow AGENTS.md and docs/hardware-design/AI_HARDWARE_DEVELOPMENT_GUIDE.md. Insp
|
||||
keep hardware logic in components/bsp and application logic in main, deliver a runnable
|
||||
implementation with tests, and report the build result, unexecuted device checks, and exact
|
||||
on-device acceptance steps separately.
|
||||
Redesign the application's UI; do not use the current demo test menu or screens.
|
||||
```
|
||||
|
||||
Before starting, check [`reference/`](reference/README.md) for an existing or
|
||||
@@ -59,7 +60,7 @@ The more specific the requirement, the more likely the assistant is to implement
|
||||
- User flow: what each page displays and what short press, double press, and long press do for each button.
|
||||
- State and data: whether the application needs timing, persistence across power loss, networking, recording, or communication with a computer.
|
||||
- Experience goals: fonts, colors, animation, sound, response time, and error states.
|
||||
- Constraints: whether the main menu may be replaced, dependencies added, Flash used, or default interactions changed.
|
||||
- Constraints: application navigation and controls, permitted dependencies, and Flash/data usage. The baseline test menu is not an application UI option.
|
||||
- Acceptance criteria: which behaviors require automated tests and which must be observed on real hardware.
|
||||
|
||||
When details are omitted, the assistant may choose conservative defaults that do not change the product direction, but it must list those assumptions in the delivery. Decisions involving new wiring, electrical safety, board revisions, or irreversible data formats require confirmation first.
|
||||
@@ -68,7 +69,7 @@ When details are omitted, the assistant may choose conservative defaults that do
|
||||
|
||||
Each `demo/*` branch evolves the baseline into an independent application. The branches demonstrate how specific problems were solved. New applications should normally branch from `main` and consult relevant examples instead of merging multiple demos wholesale.
|
||||
|
||||
The menu and `demo_*.c` pages on `main` are also hardware-capability demonstrations, not a ready-made product UI. A new application must redesign and implement its screens and interaction flow for its own requirements rather than directly using or copying the current demo interface. BSP APIs, lifecycle patterns, and isolated logic may still be reused.
|
||||
The menu and `demo_*.c` pages on `main` are hardware-capability tests, not an application UI. Every derivative application must redesign and implement its own screens and interaction flow; using the current test menu, screens, or visual shell is prohibited. Renaming or recoloring them does not satisfy this requirement. BSP APIs, ordinary LVGL widgets, lifecycle patterns, and isolated logic may still be reused. See the [mandatory UI redesign rule](development/ai-guide.md#mandatory-ui-redesign-for-derivative-applications); maintenance of the baseline hardware-test demo itself is a separate task.
|
||||
|
||||
| Branch | Application | Patterns worth reusing |
|
||||
| --- | --- | --- |
|
||||
|
||||
Loaded 3 of 12 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user