feat(settings): 集中刷新策略与账号授权并独立设置审计
build / build (push) Successful in 1m11s

This commit is contained in:
姚章浩
2026-10-27 09:28:16 +08:00
parent a55d7f454e
commit 8930ef29cd
8 changed files with 520 additions and 214 deletions
+4 -2
View File
@@ -290,7 +290,7 @@ describe('SystemSettingsView', () => {
expect(servicesHtml).toContain('端点探测:暂无真实探测结果')
// V1: left-nav section controls, per-source schedule editing, danger modal & history affordances.
expect(html).toContain('settings-nav')
for (const kept of ['更多', '下次自动刷新']) expect(html).toContain(kept)
for (const kept of ['更多', '自动刷新中']) expect(html).toContain(kept)
for (const hidden of ['查看修订历史', '保存并启用调度', '停用来源']) expect(html).not.toContain(hidden)
expect(html).not.toContain('本页只列 PP 来源')
expect(html).not.toContain('本地手工导入来源不支持定时刷新')
@@ -565,7 +565,9 @@ describe('SystemSettingsView 数据源配置的默认清单', () => {
expect(html).not.toContain(removed)
expect(html).toContain('更多')
expect(html).toContain('aria-expanded="false"')
expect(html).toContain('已启用')
expect(html).toContain('仅手动刷新')
expect(html).toContain('数据源设置审计')
expect((html.match(/钉钉账号 ·/g) ?? []).length).toBe(1)
for (const removed of ['+ 新增钉钉知识库', '文件格式筛选']) expect(html).not.toContain(removed)
// 文档工程师看不到添加向导与「去掉来源」:两者都是管理员动作。
const engineer = view('engineer')