refactor: share responsive filter panel scaffold

This commit is contained in:
Cita
2026-03-23 14:29:11 +08:00
parent dd914b327c
commit 7cc0a04b8b
13 changed files with 375 additions and 307 deletions
+3 -2
View File
@@ -3,9 +3,10 @@ import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
describe('CheckinLog mobile layout', () => {
it('uses the shared mobile filter sheet for mobile filters', () => {
it('uses the shared responsive filter scaffold for mobile filters', () => {
const source = readFileSync(resolve(process.cwd(), 'src/web/pages/CheckinLog.tsx'), 'utf8');
expect(source).toContain('MobileFilterSheet');
expect(source).toMatch(/import\s+ResponsiveFilterPanel\s+from\s+['"]\.\.\/components\/ResponsiveFilterPanel\.js['"]/);
expect(source).toContain('<ResponsiveFilterPanel');
});
it('uses the shared mobile card header and footer action slots', () => {