docs(plans): 记录 K7 轮播与通知实施回执
This commit is contained in:
1 parent
f36fea083b
commit
c43604d725
3 files changed
+278
-1
No files matched your search
@@ -2028,3 +2028,76 @@ ac706a4..b7b1c50 develop -> develop
|
||||
```
|
||||
|
||||
解读:修复已合并推送;用户设备特定 error 仍需设备日志确认。
|
||||
|
||||
---
|
||||
|
||||
## 2026-10-17 K7 首页轮播与站内通知(【Codex】)
|
||||
|
||||
### 21.1 K7 计划与首次红灯
|
||||
|
||||
叙述:先写 `docs/plans/2026-10-17-K7.md`,从干净 `develop b7b1c50`
|
||||
创建 `feature/flutter-k7-carousel-notices`。
|
||||
|
||||
首次轮播/通知测试:
|
||||
|
||||
```
|
||||
No named parameter with the name 'active'
|
||||
Error when reading 'lib/core/data/models/notice.dart': No such file or directory
|
||||
Error when reading 'lib/core/data/remote/notice_api.dart': No such file or directory
|
||||
00:00 +0 -3: Some tests failed.
|
||||
```
|
||||
|
||||
解读:轮播增强、通知数据层和页面尚不存在,红灯符合预期。
|
||||
|
||||
### 21.2 轮播绿灯
|
||||
|
||||
实现 Timer、交互暂停、active/TickerMode、圆点、失败占位与语义后:
|
||||
|
||||
```
|
||||
$ flutter test test/discover/cover_carousel_test.dart
|
||||
00:00 +7: All tests passed!
|
||||
```
|
||||
|
||||
### 21.3 通知实现与定向绿灯
|
||||
|
||||
实现 Notice model/API/repository/controller/Page、我的页入口和三语文案后,
|
||||
真实匿名接口返回:
|
||||
|
||||
```
|
||||
$ curl -sS 'http://127.0.0.1:8081/app/notices?pageIndex=1&pageSize=20'
|
||||
{"code":0,"message":"ok","data":{"total":0,"list":[]}}
|
||||
```
|
||||
|
||||
通知与轮播定向测试:
|
||||
|
||||
```
|
||||
$ flutter test test/discover/cover_carousel_test.dart test/notice
|
||||
All tests passed!
|
||||
```
|
||||
|
||||
期间修正 320px 下类型/时间同一行 3.5px 溢出,改为双 Flexible。
|
||||
|
||||
### 21.4 K7 最终门禁
|
||||
|
||||
```
|
||||
$ dart analyze lib test
|
||||
Analyzing lib, test...
|
||||
No issues found!
|
||||
|
||||
$ flutter test
|
||||
00:14 +284 ~1: All tests passed!
|
||||
|
||||
$ flutter build apk --debug
|
||||
✓ Built build/app/outputs/flutter-apk/app-debug.apk
|
||||
```
|
||||
|
||||
### 21.5 Git
|
||||
|
||||
```
|
||||
b870956665f5268070c691533cc2a334f2aa7f59
|
||||
feat(flutter): 增加轮播自动播放与站内通知
|
||||
|
||||
b7b1c50..3e8703b develop -> develop
|
||||
```
|
||||
|
||||
解读:K7 已合并推送;author/committer 均为 Zhou Weidong。
|
||||
Reference in new issue
Block a user