refactor(web): 竞品分析复用 WorksGallery,与监控账号作品列表同一套展现
- WorksGallery 支持 sourceId 可选与 extraFilters 透传 - 竞品页删除自建作品卡片/详情抽屉/分页,仅保留筛选卡 - 修复日期筛选序列化(dayjs 模板串产生非法 RFC3339)
This commit is contained in:
@@ -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/);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user