pp-bot
|
23fc6b0c86
|
feat: WebView/媒体/红包详情全量实现 (#25~#30)
#25 MiniAppWebViewPage + MiniAppRouter
- webview_flutter 加载 {apiBaseUrl}/miniapp/{appId}/index.html?gameId=...&token=...
- MiniAppFloatButton 接收 chatId/chatType,默认打开 WebView
- BannerState 新增 appId 字段,由 GameBannerData.appId 填充
#26 open_filex 文件打开
- FileMessageBubble 下载完成后调用 OpenFilex.open(localPath)
- 打开失败时 SnackBar 提示
#27 audioplayers 音频播放
- AudioPlaybackService(Notifier):单例 AudioPlayer,togglePlay/pause/seek
- AudioMessageBubble 接入:播放态图标切换、进度 mm:ss 显示
#28 video_player + chewie 视频全屏
- VideoPlayerPage:本地文件 / HTTP 双模,chewie 控制栏
- VideoMessageBubble 默认 onTap → push VideoPlayerPage
#29 红包领取排行榜详情页
- GET /payment/rp/detail → RpDetailData + RpRecordItem DTO
- GetRpDetailUseCase + getRpDetailUseCaseProvider
- RedEnvelopeDetailSheet:汇总行 + 领取排行列表,头像/昵称/金额/时间
#30 MINE_RP 地雷红包发包 UI
- _RpType 新增 mine(MINE_RP),显示地雷金额输入框
- SendRpRequest.parameters 携带 mineAmount
- RedEnvelopeBubble:非活跃状态直接打开详情,活跃状态领取后打开排行榜
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-24 12:53:55 +09:00 |
|
pp-bot
|
e715a0673b
|
feat(chat): 发收消息全量实现 (#25~#28)
- 移除 @riverpod/@freezed 注解依赖,全部改为手写 Provider(无需 build_runner)
· LoginState 改为纯 Dart,LoginViewModel/ThemeViewModel/ChatViewModel 改为 Notifier
· UserNotifier 改为 FamilyAsyncNotifier<User?,int>,mini_app_provider 改为手写 Provider
· 15 个 StreamProvider/StreamProvider.family 从 @riverpod 迁移至手写
- 发送消息(#25)
· SendMessageRequest/SendMessageResponse DTO
· SendMessageUseCase:乐观写入 DB → HTTP POST → 更新 Chat 摘要
- 接收消息 WS(#26)
· WsMessageService:监听 mode2 WS 帧 → HTTP 补拉 → DB 写入 → Chat 更新
· FetchHistoryRequest/FetchHistoryResponse DTO(GET /app/api/chat/history)
· FetchHistoryUseCase:拉取 → insertOrReplaceAll
- DI 装配(chat_service_providers.dart)
· wsMessageServiceProvider、sendMessageUseCaseProvider、fetchHistoryUseCaseProvider
- 聊天列表页(#27)
· ChatListViewModel(Notifier<void>)+ chat_page.dart 真实会话列表 UI
· ListTile:头像首字母、最新消息摘要、未读角标、时间格式化
- 聊天详情页(#28)
· ChatDetailViewModel(FamilyNotifier<ChatDetailState,int>)+ chat_detail_page.dart
· 消息气泡(自己/他人分左右)、底部输入框、发送状态与错误提示
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 23:16:44 +09:00 |
|
pp-bot
|
83774f5f61
|
feat(file-download): 文件下载全量实现 (#14~#18)
- CdnUrlResolver: 相对路径/S3 URL 统一解析为 apiBaseUrl 代理链路 (#14)
- FileDownloadManager: Notifier<Map<url, state>>,四态(idle/progress/done/failed),
断点续传 + 取消令牌 + 本地缓存(systemTemp/im_file_cache) (#15)
- FileMessageBubble: 三态 UI,文件类型图标/颜色,大小格式化,
idle/failed 点击触发下载,done 点击回调 open_filex TODO (#16)
- AudioMessageBubble: 语音消息下载框架,静态波形装饰,
播放 TODO(audioplayers 接入后解开) (#17)
- VideoMessageBubble: 缩略图 Image.network + CdnUrlResolver,
播放按钮覆盖,上传进度环,video_player 接入 TODO (#18)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 20:02:46 +09:00 |
|
Cody
|
3c1976b343
|
网络请求打通,ws 打通
|
2026-03-09 19:05:55 +08:00 |
|
Cody
|
c310ded32a
|
Merge remote-tracking branch 'origin/dev' into cody/netwrok_SDK
# Conflicts:
# apps/im_app/lib/features/chat/presentation/chat_db_test_view_model.dart
# apps/im_app/lib/features/login/presentation/login_view_model.dart
修复逻辑漏洞,性能优化
|
2026-03-08 20:47:28 +08:00 |
|
Cody
|
0ee2c8c63c
|
优化配置,修复 demo bug
1,network 框架完善
2,websocket 机制完善
3,设计文档整理到架构文档
4,脚本,配置完善
|
2026-03-07 19:29:18 +08:00 |
|
Cody
|
bf9e099747
|
Initial project
|
2026-03-06 15:05:53 +08:00 |
|