refactor(web): 竞品分析复用 WorksGallery,与监控账号作品列表同一套展现

- WorksGallery 支持 sourceId 可选与 extraFilters 透传
- 竞品页删除自建作品卡片/详情抽屉/分页,仅保留筛选卡
- 修复日期筛选序列化(dayjs 模板串产生非法 RFC3339)
This commit is contained in:
2026-09-30 15:50:18 +08:00
parent 5401093818
commit a9358f5c96
3 changed files with 68 additions and 228 deletions
+7
View File
@@ -48,3 +48,10 @@ function sourceText() {
return source.getFullText();
}
const competitorsPageText = readFileSync(`${__dirname}/../src/pages/creator/competitors/index.tsx`, 'utf8');
test('竞品分析页复用 WorksGallery,不再自建作品卡片/详情抽屉', () => {
assert.match(competitorsPageText, /import WorksGallery from '@\/components\/creator\/WorksGallery'/);
assert.doesNotMatch(competitorsPageText, /\bWorkCover\b|<Drawer|publishedAtStatusMeta|statusTag/);
});