Update admin PWA events, branding, and packages
This commit is contained in:
@@ -15,10 +15,12 @@ const fixtures = vi.hoisted(() => ({
|
||||
},
|
||||
},
|
||||
stats: {
|
||||
photo_count: 12,
|
||||
like_count: 3,
|
||||
pending_count: 1,
|
||||
guest_count: 22,
|
||||
total: 12,
|
||||
likes: 3,
|
||||
pending_photos: 1,
|
||||
recent_uploads: 4,
|
||||
status: 'published',
|
||||
is_active: true,
|
||||
},
|
||||
invites: [],
|
||||
addons: [],
|
||||
@@ -40,7 +42,12 @@ vi.mock('react-i18next', () => ({
|
||||
}
|
||||
return key;
|
||||
},
|
||||
i18n: { language: 'de' },
|
||||
}),
|
||||
initReactI18next: {
|
||||
type: '3rdParty',
|
||||
init: () => undefined,
|
||||
},
|
||||
}));
|
||||
|
||||
vi.mock('../hooks/useBackNavigation', () => ({
|
||||
@@ -54,6 +61,15 @@ vi.mock('../../api', () => ({
|
||||
getAddonCatalog: vi.fn().mockResolvedValue(fixtures.addons),
|
||||
updateEvent: vi.fn().mockResolvedValue(fixtures.event),
|
||||
createEventAddonCheckout: vi.fn(),
|
||||
getEventEngagement: vi.fn().mockResolvedValue({
|
||||
summary: { totalPhotos: 0, uniqueGuests: 0, tasksSolved: 0, likesTotal: 0 },
|
||||
leaderboards: { uploads: [], likes: [] },
|
||||
highlights: { topPhoto: null, trendingEmotion: null, timeline: [] },
|
||||
feed: [],
|
||||
}),
|
||||
listTenantDataExports: vi.fn().mockResolvedValue([]),
|
||||
requestTenantDataExport: vi.fn(),
|
||||
downloadTenantDataExport: vi.fn(),
|
||||
}));
|
||||
|
||||
vi.mock('../../auth/tokens', () => ({
|
||||
@@ -76,6 +92,14 @@ vi.mock('../components/Primitives', () => ({
|
||||
SkeletonCard: () => <div>Loading...</div>,
|
||||
}));
|
||||
|
||||
vi.mock('../components/FormControls', () => ({
|
||||
MobileSelect: ({ children, value, onChange }: any) => (
|
||||
<select value={value ?? ''} onChange={onChange}>
|
||||
{children}
|
||||
</select>
|
||||
),
|
||||
}));
|
||||
|
||||
vi.mock('../components/LegalConsentSheet', () => ({
|
||||
LegalConsentSheet: () => <div />,
|
||||
}));
|
||||
@@ -125,6 +149,7 @@ vi.mock('../theme', () => ({
|
||||
danger: '#dc2626',
|
||||
surface: '#ffffff',
|
||||
surfaceMuted: '#f9fafb',
|
||||
backdrop: '#111827',
|
||||
accentSoft: '#eef2ff',
|
||||
textStrong: '#0f172a',
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user