Add message retry UX and refresh controls
This commit is contained in:
1 parent
b441ac9cc6
commit
2b21e56413
2 files changed
+22
-12
No files matched your search
+15
-10
@@ -97,16 +97,21 @@ fun ChatScreen(
|
|||||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
StatusPill(
|
Column(horizontalAlignment = Alignment.End, verticalArrangement = Arrangement.spacedBy(6.dp)) {
|
||||||
text = when {
|
StatusPill(
|
||||||
isLoading -> "同步中"
|
text = when {
|
||||||
streamStatus == "reconnecting" -> "重连中"
|
isLoading -> "同步中"
|
||||||
streamStatus == "failed" -> "已断流"
|
streamStatus == "reconnecting" -> "重连中"
|
||||||
streamStatus == "connecting" -> "连接中"
|
streamStatus == "failed" -> "已断流"
|
||||||
else -> "在线"
|
streamStatus == "connecting" -> "连接中"
|
||||||
},
|
else -> "在线"
|
||||||
highlighted = streamStatus != "failed",
|
},
|
||||||
)
|
highlighted = streamStatus != "failed",
|
||||||
|
)
|
||||||
|
TextButton(onClick = onRetry) {
|
||||||
|
Text(if (streamStatus == "failed") "重新连接" else "刷新")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ Android/iOS App
|
|||||||
### 2.3 聊天与流式消息
|
### 2.3 聊天与流式消息
|
||||||
|
|
||||||
- [x] 文本消息发送
|
- [x] 文本消息发送
|
||||||
|
- [x] 文本消息失败重试
|
||||||
- [x] BFF SSE 流式推送基础链路
|
- [x] BFF SSE 流式推送基础链路
|
||||||
- [x] App 支持 SSE 事件:
|
- [x] App 支持 SSE 事件:
|
||||||
- `session.snapshot`
|
- `session.snapshot`
|
||||||
@@ -119,6 +120,7 @@ Android/iOS App
|
|||||||
- contentType
|
- contentType
|
||||||
- sizeBytes
|
- sizeBytes
|
||||||
- [x] 上传失败支持重试
|
- [x] 上传失败支持重试
|
||||||
|
- [x] 聊天页支持手动刷新 / 重新连接入口
|
||||||
- [x] BFF 已将附件 overlay 合并进:
|
- [x] BFF 已将附件 overlay 合并进:
|
||||||
- history 返回
|
- history 返回
|
||||||
- SSE 流
|
- SSE 流
|
||||||
@@ -173,8 +175,10 @@ Android/iOS App
|
|||||||
|
|
||||||
目前:
|
目前:
|
||||||
|
|
||||||
- 附件上传失败可重试
|
- [x] 附件上传失败可重试
|
||||||
- 普通文本消息失败**还没有统一重试机制**
|
- [x] 普通文本消息失败可重试
|
||||||
|
- [ ] 还没有离线发送队列
|
||||||
|
- [ ] 还没有网络恢复后的自动补发
|
||||||
|
|
||||||
### 4.2 附件后端主链路
|
### 4.2 附件后端主链路
|
||||||
|
|
||||||
@@ -321,6 +325,7 @@ Android/iOS App
|
|||||||
- 默认 agent 切换
|
- 默认 agent 切换
|
||||||
- Android 真附件选择与上传
|
- Android 真附件选择与上传
|
||||||
- 附件失败重试
|
- 附件失败重试
|
||||||
|
- 普通文本消息失败重试
|
||||||
|
|
||||||
### 还没做完的大头
|
### 还没做完的大头
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user