Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

feat(web): 整理作者别名表格与扫描采集菜单

longmeidaoc4cae2094f9e
diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md
index d4d3a141f..612aff22f 100644
--- a/docs/HANDOFF.md
+++ b/docs/HANDOFF.md
@@ -70,7 +70,7 @@
## 参考产品证据登记
-- **作者别名表格(2026-09-13)**:核对 `https://www.boardui.com/components/table` 的实时 DOM/CSS 与官方 `https://www.boardui.com/r/table.json`;资源 SHA-256、单元格数值和适配范围见 `BOARD_UI.md`「作者别名与扫描操作」。复用现有表格,不引入上游 React 运行时;批量合并确认与失败重试沿用 Peach 的写入边界。
+- [作者别名表格取证](BOARD_UI.md#作者别名与扫描操作)。
- [Board、Link Button 与搜索动效取证](BOARD_UI.md)。
diff --git a/docs/STATUS.md b/docs/STATUS.md
index 0a0289db0..5f35ba18c 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -8,7 +8,7 @@
- 页面骨架已核验,未部署。
-- 关注管理:作者别名分表展示,支持全部合并和失败重试;来源筛选只列可关注站点,凭证管理保留文件采集所需配置。相关入口统一为「来源和凭证」,扫描与采集使用分体菜单。桌面及 390×844 隔离预览已核验,取证见 `BOARD_UI.md`。
+- 别名表格与扫描菜单验收见 `BOARD_UI.md`。
- BoardUI:状态演示 `/state-preview`;生产未切换,验收见 `BOARD_UI.md`。
diff --git a/frontend/test/follow-alias.test.ts b/frontend/test/follow-alias.test.ts
index 85058dfa2..2b346dffd 100644
--- a/frontend/test/follow-alias.test.ts
+++ b/frontend/test/follow-alias.test.ts
@@ -1,7 +1,6 @@
-import { readFileSync } from 'node:fs';
+import source from '../../web/app.js?raw';
import { afterEach, expect, it, vi } from 'vitest';
-const source=readFileSync(new URL('../../web/app.js',import.meta.url),'utf8');
const manager=source.slice(source.indexOf('function followAliasManager('),source.indexOf('const CRED_STATE='));
const handlers=source.slice(source.indexOf(' const saveAuthorAlias='),source.indexOf(" root.querySelectorAll('[data-follow-guess]')"));
const esc=(value:unknown)=>String(value).replaceAll('&','&amp;').replaceAll('<','&lt;').replaceAll('"','&quot;');
diff --git a/frontend/test/management.test.ts b/frontend/test/management.test.ts
index 68f89c96c..a530cd555 100644
--- a/frontend/test/management.test.ts
+++ b/frontend/test/management.test.ts
@@ -39,9 +39,9 @@ describe('数据管理首屏', () => {
}
expect(cards[0]?.querySelector('p')?.textContent).toBe('扫描媒体文件夹,导入已有资料,采集缺失信息。');
expect(cards[0]?.querySelector('.skeleton')).toBeNull();
- // 扫描卡的两枚键从骨架起就都在位,内容换入时只是变成可点。
+ // 扫描卡包含来源入口和禁用的分体操作。
expect(cards[0]?.querySelector('.geist-fieldset-footer > a.geist-button')?.getAttribute('href')).toBe('/scraping');
- expect(cards[0]?.querySelector('.geist-fieldset-footer > button.geist-button.primary')?.hasAttribute('disabled')).toBe(true);
+ expect(cards[0]?.querySelector('.geist-fieldset-footer .splitbutton button.splitmain')?.hasAttribute('disabled')).toBe(true);
expect(cards[1]?.classList.contains('cleanupemptyfolders')).toBe(true);
expect(cards[1]?.querySelector('.geist-fieldset-footer use')?.getAttribute('href')).toBe('#i-scan-search');
expect(root.querySelectorAll('.cleanup-count-skeleton')).toHaveLength(12);