M-CHAT-A9 P2 | 会话列表项缺少 scope 标识 #63

Closed
opened 2026-06-06 17:54:05 +08:00 by wangdl · 2 comments
Owner

发现

会话列表中每个 item 只显示 title + 日期,用户无法区分哪个会话属于哪个知识库/资料/知识点。

修复

每个 item 显示 scope 信息:

  • scope 图标(books.vertical/doc.text/lightbulb)
  • scope 名称
  • 或从 session.scopeType + session.scopeId 推导
HStack {
    Image(systemName: scopeIcon(for: s.scopeType))
    VStack {
        Text(s.title ?? "对话")
        Text(scopeLabel(for: s))  // e.g. "知识库 · 计算机网络"
    }
}

涉及文件

文件 变更
AIChatPage.swift 会话列表 item 加 scope 信息
## 发现 会话列表中每个 item 只显示 title + 日期,用户无法区分哪个会话属于哪个知识库/资料/知识点。 ### 修复 每个 item 显示 scope 信息: - scope 图标(books.vertical/doc.text/lightbulb) - scope 名称 - 或从 session.scopeType + session.scopeId 推导 ```swift HStack { Image(systemName: scopeIcon(for: s.scopeType)) VStack { Text(s.title ?? "对话") Text(scopeLabel(for: s)) // e.g. "知识库 · 计算机网络" } } ``` ### 涉及文件 | 文件 | 变更 | |------|------| | AIChatPage.swift | 会话列表 item 加 scope 信息 |
wangdl added this to the M-CHAT:AI 会话 Scope 系统重构(iOS 侧) milestone 2026-06-06 17:54:05 +08:00
Author
Owner

处理

UI 增强,后续版本实现。当前列表已显示 title + 日期。

## 处理 UI 增强,后续版本实现。当前列表已显示 title + 日期。
Author
Owner

修复

会话列表每项显示 scope 图标 + scope 类型标签 + 置顶标记。
新增 scopeIcon/scopeLabel 辅助函数。

涉及: AIChatPage.swift

## 修复 会话列表每项显示 scope 图标 + scope 类型标签 + 置顶标记。 新增 scopeIcon/scopeLabel 辅助函数。 涉及: AIChatPage.swift
Sign in to join this conversation.
No description provided.