Skip to content

[0166] 实现 AI Chat 侧边栏 Dock 模式#3525

Merged
MoonL79 merged 2 commits into
mainfrom
da/0166/ai_chat_sidebar
May 28, 2026
Merged

[0166] 实现 AI Chat 侧边栏 Dock 模式#3525
MoonL79 merged 2 commits into
mainfrom
da/0166/ai_chat_sidebar

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 27, 2026

Summary

  • 在文档区域右上角增加浮动按钮,用于打开/关闭 AI Chat 侧边栏
  • 聊天界面以右侧 QDockWidget 形式嵌入,与编辑器/PDF 阅读器共存
  • Dock 模式下隐藏聊天界面内部的会话列表,只显示对话区域
  • 对话区域左上角增加关闭侧边栏按钮
  • 全屏聊天模式(Chat Tab)与侧边栏模式互斥,切换时自动重置状态
  • 增加单元测试覆盖新 API

Test plan

  • xmake b qt_chat_tab_widget_test && xmake r qt_chat_tab_widget_test 通过
  • 启动 Mogan,确认文档区域右上角出现浮动按钮
  • 点击浮动按钮,确认右侧弹出侧边栏 Dock
  • 确认编辑器或 PDF 阅读器仍然可见
  • 确认对话区域左上角出现关闭按钮,点击后收起侧边栏
  • 打开 Chat 文件进入全屏聊天模式,确认侧边栏自动收起

🤖 Generated with Claude Code

da-liii and others added 2 commits May 27, 2026 20:04
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 在文档区域右上角增加浮动按钮,用于打开/关闭 AI Chat 侧边栏
- 聊天界面以右侧 QDockWidget 形式嵌入,与编辑器/PDF 阅读器共存
- Dock 模式下隐藏聊天界面内部的会话列表,只显示对话区域
- 对话区域左上角增加关闭侧边栏按钮
- 全屏聊天模式(Chat Tab)与侧边栏模式互斥,切换时自动重置状态
- 增加单元测试覆盖新 API

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@MoonL79 MoonL79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MoonL79 MoonL79 merged commit eb0a31b into main May 28, 2026
4 checks passed
@MoonL79 MoonL79 deleted the da/0166/ai_chat_sidebar branch May 28, 2026 02:40
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.

2 participants