当前 src/console/ui/widgets/audit_tab.py 中的审核标签页仅显示未审核的更改,且缺少对文件中所有更改或全局所有更改的批量同意/拒绝能力。本功能提议对此进行增强。
Currently the audit tab in src/console/ui/widgets/audit_tab.py only shows pending changes and lacks the ability to approve/reject all changes in a file or globally. This feature proposes to enhance it.
将单一日志视图改为两个标签页:第一个标签页仍显示“未审核的更改”(待处理条目);第二个标签页显示“已审核历史”,其中包含所有已被批准或拒绝的更改,并可按时间或状态筛选。
Change the single list view into two tabs: the first tab still shows "Pending Changes" (unreviewed entries); the second tab shows "Reviewed History", containing all approved or rejected changes, with filtering by time or status.
为审核条目区域新增四个批量操作按钮:
Add four batch action buttons in the audit entry area:
- 同意文件中所有更改 – 批准当前所查看文件内所有待审核条目。
Approve all changes in file – Approve every pending entry inside the currently viewed file.
- 拒绝文件中所有更改 – 拒绝当前所查看文件内所有待审核条目。
Reject all changes in file – Reject every pending entry inside the currently viewed file.
- 同意全部更改 – 批准当前标签页(或全局)所有未审核条目。
Approve all changes – Approve every unreviewed entry in the current tab (or globally).
- 拒绝全部更改 – 拒绝当前标签页(或全局)所有未审核条目。
Reject all changes – Reject every unreviewed entry in the current tab (or globally).
这些按钮应带有确认对话框以防止误操作,并在执行后自动刷新两个标签页的内容。历史标签页应清晰区分“已批准”和“已拒绝”的条目,并保留原始更改详情以便追溯。
These buttons shall include a confirmation dialog to prevent accidental actions, and automatically refresh both tabs after execution. The history tab should clearly distinguish between "approved" and "rejected" entries, and retain original change details for traceability.
预期的用户体验:审核人员可以一次性处理单个文件内的多个更改,或者一键处理全部未决审核,同时可以随时回顾历史审核记录。
Expected user experience: reviewers can handle multiple changes within a single file at once, or process all pending reviews with one click, while being able to review the history of past approvals/rejections at any time.
当前
src/console/ui/widgets/audit_tab.py中的审核标签页仅显示未审核的更改,且缺少对文件中所有更改或全局所有更改的批量同意/拒绝能力。本功能提议对此进行增强。Currently the audit tab in
src/console/ui/widgets/audit_tab.pyonly shows pending changes and lacks the ability to approve/reject all changes in a file or globally. This feature proposes to enhance it.将单一日志视图改为两个标签页:第一个标签页仍显示“未审核的更改”(待处理条目);第二个标签页显示“已审核历史”,其中包含所有已被批准或拒绝的更改,并可按时间或状态筛选。
Change the single list view into two tabs: the first tab still shows "Pending Changes" (unreviewed entries); the second tab shows "Reviewed History", containing all approved or rejected changes, with filtering by time or status.
为审核条目区域新增四个批量操作按钮:
Add four batch action buttons in the audit entry area:
Approve all changes in file – Approve every pending entry inside the currently viewed file.
Reject all changes in file – Reject every pending entry inside the currently viewed file.
Approve all changes – Approve every unreviewed entry in the current tab (or globally).
Reject all changes – Reject every unreviewed entry in the current tab (or globally).
这些按钮应带有确认对话框以防止误操作,并在执行后自动刷新两个标签页的内容。历史标签页应清晰区分“已批准”和“已拒绝”的条目,并保留原始更改详情以便追溯。
These buttons shall include a confirmation dialog to prevent accidental actions, and automatically refresh both tabs after execution. The history tab should clearly distinguish between "approved" and "rejected" entries, and retain original change details for traceability.
预期的用户体验:审核人员可以一次性处理单个文件内的多个更改,或者一键处理全部未决审核,同时可以随时回顾历史审核记录。
Expected user experience: reviewers can handle multiple changes within a single file at once, or process all pending reviews with one click, while being able to review the history of past approvals/rejections at any time.