pp-bot
|
f77dd8e9ef
|
feat(settings): 编辑个人资料头像上传全量实现(#49 / #50)
- EditProfileState: 新增 isUploadingAvatar 字段
- EditProfileViewModel: pickAndUploadAvatar()(ImagePicker→裁剪→CDN→state)
- EditProfilePage: 完整重写
- 88pt 圆形头像 + 8色渐变占位 + 相机角标 + 上传进度环
- _showAvatarSourceSheet()(相册 / 拍照)
- Card 分组表单:昵称(50字计数)/ 个人简介(200字多行)
- 保存按钮(昵称空或上传中禁用)
- 错误 Banner
- 保存成功 → 刷新 SettingsViewModel + pop
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-24 20:49:58 +09:00 |
|
pp-bot
|
8744e2c0b7
|
feat(settings): 收藏列表 + 最近呼叫全量实现(#42~#45)
## 收藏(Gitea #42~#45)
- `FetchFavoritesRequest` / `DeleteFavoriteRequest`:ApiRequestable,对齐 iOS FavouriteService
- `FetchFavoritesUseCase`:GET 分页拉取 → upsert FavoriteRepository
- `DeleteFavoriteUseCase`:POST delete → 同步删本地 DB
- `FavoritesViewModel`:分页/刷新/加载更多/删除,DB Stream 驱动
- `FavoritesPage`:列表 + RefreshIndicator + Dismissible 左滑删除 + 类型图标 + 空状态
- `AppRouteName.settingsFavorites` + 路由注册 + auth guard
- `settings_page.dart` 收藏行 onTap 接入导航
## 最近呼叫(框架,API 对接待续)
- `CallLogRequest` / `FetchCallLogsUseCase` / `RecentCallsViewModel`
- `RecentCallsPage`:双 Tab(全部/未接)+ _CallLogTile(图标/时长/时间)
- `AppRouteName.settingsRecentCalls` + 路由注册
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-24 20:30:56 +09:00 |
|
pp-bot
|
db10d1fcd2
|
feat(mine): 我的 Tab UI 重设计(#39~#41)
- ProfileHeroCard:72pt 渐变头像(8色 uid%8 主题)、@J{uid} handle、bio 简介、掩码手机号
- AppBar:compact,右侧 QR 图标 + 编辑铅笔
- 彩色图标行(_IconBox 36pt 圆角)+ 4 卡片组对齐 iOS SettingsView
- 账户:我的钱包 / 账户安全
- 工具:收藏 / 最近呼叫 / 链接设备 / 聊天文件夹
- 偏好设置:通知和声音 / 隐私设置 / 黑名单 / 语言 / 主题
- 关于:用户协议 / 隐私政策 / 版本号
- SettingsState 增加 bio 字段(#41),loadProfile 同步赋值
- Doc/mine_tab_architecture.md 补充 UI 重设计章节(§7)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-24 20:14:34 +09:00 |
|
pp-bot
|
aeeda6f059
|
feat(mine): 我的 Tab 全量实现 (#5~#13)
从 im-client-ios-swift-demo 搬运 Settings 逻辑,对齐 Gitea issue #5–#13
## 基础设施
- AuthNotifier 新增 currentUid 字段,login() 接受 uid 参数 (#5)
- LoginViewModel 登录成功后传入 user.uid
- ApiPaths 补充 account/block/store 系列路径
- Tab 重命名"设置"→"我的",icon 改为 person_outline (#5)
- AppRouteName 新增5条子路由 (edit-profile/blocklist/language/network-diagnostics/about)
- app_router + auth_guard 同步注册新路由
## Settings Feature
- SettingsViewModel 重写为 NotifierProvider(去除 @riverpod 依赖)
- build() 自动触发 loadProfile()
- logout() 完整流程:API → WS 断开 → DB 关闭 → AuthNotifier
- 6 个 navigateTo* 方法
- SettingsPage 完整 UI:资料卡 / 偏好设置 / 工具 / 关于 / 退出登录按钮 (#5 #7)
- FetchProfileUseCase: GET /app/api/user/profile (#5)
- LogoutUseCase: logout + disconnect + closeDatabase (#7)
- UpdateProfileUseCase + UpdateProfileRequest: POST /app/api/user/update-profile (#6)
- EditProfilePage + EditProfileViewModel: 昵称/bio 编辑 (#6)
- LanguagePage: 语言选择 UI 框架,l10n_sdk 待接入 (#9)
- BlocklistPage: 黑名单框架,API 待实现 (#10)
- NetworkDiagnosticsPage + ViewModel: 四步诊断(连通/TCP/DNS/HTTPS)(#12)
- AboutPage: 版本号 + 服务条款/隐私政策入口 (#13)
- settings_providers.dart: 扩展 DI 装配
## 文档
- Doc/mine_tab_architecture.md: 架构说明、数据流、路由、待完成事项
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 17:20:51 +09:00 |
|
Cody
|
ed93d556d6
|
颜色,基础组件重新封装,降低理解难度,分层更明显。入口更抽象
|
2026-03-10 09:38:07 +08:00 |
|
Cody
|
3c1976b343
|
网络请求打通,ws 打通
|
2026-03-09 19:05:55 +08:00 |
|
Cody
|
9610c455ec
|
优化 demo
|
2026-03-08 21:13:48 +08:00 |
|
Cody
|
bf9e099747
|
Initial project
|
2026-03-06 15:05:53 +08:00 |
|