-
Notifications
You must be signed in to change notification settings - Fork 670
文档显示人员操作记录 & 网页挂件配置支持推荐问题和推荐文档 & 记录学习状态 #1460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@MonkeyCode-AI review 一下 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我是 MonkeyCode AI 编程助手,你可以在 GitHub 任意仓库的任意 Issue 或 PR 中 at @MonkeyCode-AI 来呼唤我。
任务执行细节请参考: 82c0c184-b966-11f0-a97e-2ec8177aa933
Pull Request 概述
此 PR 主要增强了文档管理功能,增加了版本回滚时的人员信息显示,并在编辑和历史页面中添加了创建者、编辑者和发布者的详细信息。同时,在类型定义中新增了 RAG 相关的状态枚举和字段,并为节点详情和版本列表增加了相关人员信息的字段支持,提升了系统的可追溯性和用户体验。
Pull Request 变更详情
本次变更主要集中在前端 Admin 项目的文档编辑和历史查看功能模块,通过增加相关人员信息的展示,提升操作的透明度和可追溯性。
变更详情
| 文件路径 | 变更类型 | 变更内容 |
|---|---|---|
| web/admin/src/pages/document/component/VersionRollback.tsx | 修改 | 版本回滚弹窗中新增展示创建人员、编辑人员和发布人员信息 |
| web/admin/src/pages/document/editor/edit/Wrap.tsx | 修改 | 在文档编辑页面顶部新增展示当前文档的编辑者信息及创建/发布人员的 tooltip 提示 |
| web/admin/src/pages/document/editor/history/index.tsx | 修改 | 在文档历史版本查看页面中完善了版本详情和列表项的显示,包含编辑、创建和发布人员信息 |
| web/admin/src/request/pro/types.ts | 修改 | 为获取节点版本详情和版本列表的数据结构增加了 creator_account、editor_account 和 publisher_account 等字段 |
| web/admin/src/request/types.ts | 修改 | 新增了节点 RAG 处理状态的枚举类型和相关字段定义,并扩展了节点详情与知识库配置的类型结构 |
bce9a8d to
2bdb56e
Compare
16ef743 to
edb7e01
Compare
fe60e29 to
1d0e485
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds user account information display across document management features and introduces new web component configuration capabilities. The changes enhance user attribution and transparency by showing creator, editor, and publisher accounts throughout the document lifecycle.
Key changes:
- Added creator, editor, and publisher account fields to type definitions and API responses
- Implemented user account display in document content views and history
- Added recommended questions and documents configuration for web chat widgets
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| web/app/src/views/node/DocContent.tsx | Added creator account display in document metadata section |
| web/app/src/assets/type/index.ts | Extended NodeDetail interface with creator and editor account fields |
| web/admin/src/request/types.ts | Added account and ID fields for creator, editor, and publisher in node detail responses |
| web/admin/src/request/pro/types.ts | Added account fields to node release and list types, plus kb_id parameter |
| web/admin/src/pages/setting/component/CardRobot/WebComponent/index.tsx | Added recommended questions and documents configuration with FreeSoloAutocomplete |
| web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx | New component for managing recommended document list with drag-and-drop |
| web/admin/src/pages/setting/component/CardRobot.tsx | Updated import path for CardRobotWebComponent |
| web/admin/src/pages/document/editor/history/index.tsx | Added editor/creator/publisher account display and markdown content type support |
| web/admin/src/pages/document/editor/edit/Wrap.tsx | Added tooltip with creator/editor/publisher account information |
| web/admin/src/pages/document/component/VersionRollback.tsx | Added creator, editor, and publisher account fields to rollback modal |
| web/admin/src/components/Drag/DragRecommend/index.tsx | Made refresh prop optional to support new use case |
| web/admin/src/components/Drag/DragRecommend/SortableItem.tsx | Made refresh prop optional |
Comments suppressed due to low confidence (2)
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx:25
- Unused variable loading.
const [loading, setLoading] = useState(false);
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx:26
- Unused variable list.
const [list, setList] = useState<ITreeItem[]>([]);
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx
Outdated
Show resolved
Hide resolved
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx
Outdated
Show resolved
Hide resolved
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx
Outdated
Show resolved
Hide resolved
web/admin/src/pages/setting/component/CardRobot/WebComponent/RecommendDocDragList.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 18 out of 19 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.