Skip to content

chore(chat): 精简会话页菜单——删「结束讨论」与「分享对话卡片」两个冗余项 - #21

Merged
tall-1997 merged 1 commit into
mainfrom
chore/menu-prune
Oct 14, 2026
Merged

tall-1997 merged 1 commit into
mainfrom
chore/menu-prune

Conversation

@tall-1997

Copy link
Copy Markdown
Owner

依据

结束讨论(菜单项):群聊横幅上已有同一个 endGroupChat() 按钮(ChatScreen 2986),群聊开启时常驻可见、一步可达;菜单项 enabled = groupChatOn——只在群聊开启时可用,而那正是横幅在屏幕上的时候。两步菜单路径完全被一步横幅按钮覆盖,纯重复入口。删菜单项,横幅按钮保留。

分享对话卡片:会话列表已有完整导出(JSON/纯文本/ZIP,SessionListScreen 1832-1850)覆盖"把会话内容拿出去";渲染成卡片图片是第二条低价值分享路径。且会话页溢出菜单 16+ 项过载是已确认的"凌乱"根因,砍低频项是净收益。

删除范围

  • 两个菜单项 + showCardShareDialog 状态 + 分享对话框块 + Share 图标 import
  • ChatViewModel.shareConversationCard
  • ConversationCardShare.kt / ConversationCardShareDialog.kt / ConversationCardShareTest.kt(约 390 行)
  • 2 个 locale 的 chat_menu_share_card 字符串(chat_menu_end_group_chat 字符串保留——横幅在用)

测试

本机无 JDK,编译与全量单测交 CI。

- 结束讨论 (end group chat): the group-chat banner already carries the
  same endGroupChat() button, always visible while a group chat runs and
  one tap away. The overflow entry was enabled only in exactly that
  state, yet needed two taps to reach the same call — a pure duplicate.
  Banner button stays; menu entry goes.
- 分享对话卡片 (share conversation card): the session list already
  exports conversations (JSON / plain text / ZIP). Rendering a
  conversation into a shareable card image is a second, lower-value
  sharing path, and the overflow menu is a known overload root cause
  (16+ entries). Entry, dialog, VM function, ConversationCardShare
  implementation and its test removed (~390 lines).
@tall-1997
tall-1997 merged commit e6beebb into main Oct 14, 2026
1 check passed
@tall-1997
tall-1997 deleted the chore/menu-prune branch October 14, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant