docs(plans): 记录 K5 主题与印尼语实施回执
This commit is contained in:
1 parent
f05476f6db
commit
1bf0f654fb
3 files changed
+317
-1
No files matched your search
@@ -1667,3 +1667,120 @@ merge: 合并 K3 举报错误透传修复
|
||||
```
|
||||
|
||||
解读:报告本人内容现在会把后端错误原样展示;author/committer 均保持统一。
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-17 K5 克莱因蓝主题与印尼语适配(【Codex】)
|
||||
|
||||
### 19.1 诊断分支收口
|
||||
|
||||
叙述:上一项 iOS 首页诊断插桩已提交在独立分支,不并入 K5,也不阻塞干净基线。
|
||||
|
||||
```
|
||||
$ git status --short --branch
|
||||
## feature/flutter-ios-home-diagnostics
|
||||
|
||||
$ git log -1 --oneline
|
||||
7efbed9 chore(flutter): 增加首页加载失败诊断日志
|
||||
```
|
||||
|
||||
解读:诊断提交保留为未合并 feature 分支;K5 从 `develop e1147cf` 新建,
|
||||
后续所有 K5 改动均在该基线上。
|
||||
|
||||
### 19.2 K5 计划
|
||||
|
||||
叙述:先写 `docs/plans/2026-10-17-K5.md`,记录方案 A 色值、影响文件、TDD、
|
||||
风险和待确认,再开始代码。
|
||||
|
||||
```
|
||||
Success. Updated the following files:
|
||||
A docs/plans/2026-10-17-K5.md
|
||||
```
|
||||
|
||||
### 19.3 K5 首次红灯
|
||||
|
||||
命令:
|
||||
|
||||
```
|
||||
$ flutter test test/theme test/config/locale_controller_test.dart test/mine/mine_logic_test.dart test/widget_test.dart
|
||||
```
|
||||
|
||||
原始输出(节选):
|
||||
|
||||
```
|
||||
Error when reading 'lib/core/theme/app_theme.dart': No such file or directory
|
||||
Member not found: 'bluePressed'
|
||||
Member not found: 'onPrimary'
|
||||
Method not found: 'resolveAppLocale'
|
||||
Found 0 widgets with text "Bahasa Indonesia"
|
||||
Expected: empty
|
||||
Actual: [
|
||||
'lib/core/theme/app_colors.dart:5: static const blue = Color(0xFF2F7BFF);',
|
||||
...
|
||||
]
|
||||
00:07 +22 -5: Some tests failed.
|
||||
```
|
||||
|
||||
解读:主题 token/ThemeData、locale 解析、语言选项和旧蓝扫描全部按预期红灯。
|
||||
|
||||
### 19.4 K5 实现与定向绿灯
|
||||
|
||||
实现内容:
|
||||
|
||||
- `AppColors` 新增 `bluePressed/onPrimary`,更新 `blue/blueSoft`。
|
||||
- 新增 `AppTheme.light/dark` 显式 ColorScheme 和控件主题。
|
||||
- 页面旧蓝清理,深色高亮改 `blueSoft`,大面积选中态改 `bluePressed`。
|
||||
- `resolveAppLocale` 支持 en/zh/id,未知系统语言回退 id。
|
||||
- 两个语言入口增加 Bahasa Indonesia;快捷抽屉改 Wrap。
|
||||
- 日期/时间改用 `MaterialLocalizations`。
|
||||
|
||||
定向测试:
|
||||
|
||||
```
|
||||
$ flutter test test/theme test/config test/formatting test/mine/mine_logic_test.dart test/widget_test.dart test/auth test/library test/watch test/download test/drama_detail
|
||||
00:08 +97: All tests passed!
|
||||
```
|
||||
|
||||
旧蓝扫描补跑:
|
||||
|
||||
```
|
||||
$ rg -n '0xFF2F7BFF|0xFF8FB4FF|Colors\.blue|_orange|seedColor' lib -g '*.dart'
|
||||
```
|
||||
|
||||
结果:无匹配(仅保留 `AppColors.blue/blueSoft/bluePressed` 等 token 引用)。
|
||||
|
||||
### 19.5 K5 最终门禁
|
||||
|
||||
```
|
||||
$ dart analyze lib test
|
||||
Analyzing lib, test...
|
||||
No issues found!
|
||||
|
||||
$ flutter test
|
||||
00:12 +251 ~1: All tests passed!
|
||||
|
||||
$ flutter build apk --debug
|
||||
Running Gradle task 'assembleDebug'... 26.6s
|
||||
✓ Built build/app/outputs/flutter-apk/app-debug.apk
|
||||
```
|
||||
|
||||
解读:全量测试除既有 live watch 跳过外全部通过,APK 构建成功。
|
||||
|
||||
### 19.6 Git
|
||||
|
||||
```
|
||||
10d448c8ba93aa2762e14babdb528805897b3992
|
||||
author: Zhou Weidong <502333560@qq.com>
|
||||
committer: Zhou Weidong <502333560@qq.com>
|
||||
subject: feat(flutter): 应用克莱因蓝主题与印尼语适配
|
||||
|
||||
e52d81881c19202c7adc8d13a6f78f78e4f6182f
|
||||
author: Zhou Weidong <502333560@qq.com>
|
||||
committer: Zhou Weidong <502333560@qq.com>
|
||||
subject: merge: 合并 K5 克莱因蓝主题与印尼语适配
|
||||
|
||||
To http://git.reelshort2.com/jianghaifeng/ReelShort.git
|
||||
e1147cf..e52d818 develop -> develop
|
||||
```
|
||||
|
||||
解读:K5 已以 `--no-ff` 合并到 ReelShort develop 并推送,未操作 main。
|
||||
Reference in new issue
Block a user