docs(plans): 记录 K6 登录导航与震动回执
This commit is contained in:
1 parent
93af19e548
commit
ab0d69914f
3 files changed
+319
-2
No files matched your search
@@ -1784,3 +1784,89 @@ To http://git.reelshort2.com/jianghaifeng/ReelShort.git
|
||||
```
|
||||
|
||||
解读:K5 已以 `--no-ff` 合并到 ReelShort develop 并推送,未操作 main。
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-17 K6 登录页、底部导航与震动反馈(【Codex】)
|
||||
|
||||
### 20.1 K6 计划与 UI 红灯
|
||||
|
||||
叙述:先写 `docs/plans/2026-10-17-K6.md`,再基于 K5 `develop e52d818`
|
||||
创建 `feature/flutter-k6-auth-nav-ui`。首轮登录/底栏测试在实现前运行:
|
||||
|
||||
```
|
||||
$ flutter test test/auth/auth_page_test.dart test/widget_test.dart
|
||||
Found 0 widgets with text "FruitShorts"
|
||||
Found 0 widgets with key [<'auth-email'>]
|
||||
Expected: Color(... #101114)
|
||||
00:07 +22 -5: Some tests failed.
|
||||
```
|
||||
|
||||
解读:品牌区、表单 Key/显隐/焦点、底栏主题样式尚未实现,红灯符合任务范围。
|
||||
|
||||
### 20.2 K6 UI 绿灯
|
||||
|
||||
实现登录品牌区、autofill、密码显隐、next/done、busy 禁用、主题错误色、
|
||||
Small screen 滚动和底部导航主题胶囊后:
|
||||
|
||||
```
|
||||
$ flutter test test/auth test/home/home_nav_ui_test.dart test/widget_test.dart test/config/l10n_id_test.dart test/theme
|
||||
00:06 +42: All tests passed!
|
||||
```
|
||||
|
||||
提交:`e609e3a feat(flutter): 优化登录页与底部导航`。
|
||||
|
||||
### 20.3 Haptics 补充需求红灯
|
||||
|
||||
FruitServer `93af19e` 新增 K6-C 点击震动反馈。补 fake Haptics 和触发测试后:
|
||||
|
||||
```
|
||||
Error when reading 'lib/core/platform/haptics.dart': No such file or directory
|
||||
No named parameter with the name 'haptics'
|
||||
00:02 +1 -4: Some tests failed.
|
||||
```
|
||||
|
||||
解读:Haptics 抽象、Provider 注入与页面触发尚未实现。
|
||||
|
||||
### 20.4 Haptics 实现与定向绿灯
|
||||
|
||||
新增 `Haptics` + `FlutterHaptics`,通过 Provider 注入;tab selection、
|
||||
关键操作 light、危险确认 medium;默认实现吞掉平台异常,页面调用全部
|
||||
`unawaited`。新增 fake/静态扫描/异常静默测试。
|
||||
|
||||
```
|
||||
$ flutter test test/core/haptics_test.dart test/core/haptics_scan_test.dart test/auth test/home/home_nav_ui_test.dart test/comment test/watch test/download test/library test/drama_detail test/player
|
||||
00:05 +98: All tests passed!
|
||||
```
|
||||
|
||||
提交:`8a481d5 feat(flutter): 增加关键操作震动反馈`。
|
||||
|
||||
### 20.5 K6 最终门禁
|
||||
|
||||
```
|
||||
$ dart analyze lib test
|
||||
Analyzing lib, test...
|
||||
No issues found!
|
||||
|
||||
$ flutter test
|
||||
00:14 +263 ~1: All tests passed!
|
||||
|
||||
$ flutter build apk --debug
|
||||
Running Gradle task 'assembleDebug'... 6.6s
|
||||
✓ Built build/app/outputs/flutter-apk/app-debug.apk
|
||||
```
|
||||
|
||||
解读:震动反馈、登录页、底栏和存量测试全部通过;`~1` 为既有 live watch 跳过。
|
||||
|
||||
### 20.6 Git
|
||||
|
||||
```
|
||||
e609e3a feat(flutter): 优化登录页与底部导航
|
||||
8a481d5 feat(flutter): 增加关键操作震动反馈
|
||||
0cedaab merge: 合并 K6 登录导航与震动反馈
|
||||
|
||||
To http://git.reelshort2.com/jianghaifeng/ReelShort.git
|
||||
e52d818..0cedaab develop -> develop
|
||||
```
|
||||
|
||||
解读:K6 已合并并推送,author/committer 均为 Zhou Weidong,未操作 main。
|
||||
Reference in new issue
Block a user