refactor(guest): retire legacy guest app and move shared modules
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-06 08:42:53 +01:00
parent b14435df8b
commit 0a08f2704f
191 changed files with 243 additions and 12631 deletions

View File

@@ -73,7 +73,7 @@ vi.mock('../services/uploadApi', () => ({
uploadPhoto: vi.fn(),
}));
vi.mock('@/guest/services/pendingUploadsApi', () => ({
vi.mock('@/shared/guest/services/pendingUploadsApi', () => ({
fetchPendingUploadsSummary: vi.fn().mockResolvedValue({ items: [], totalCount: 0 }),
}));
@@ -89,7 +89,7 @@ vi.mock('../hooks/usePollGalleryDelta', () => ({
usePollGalleryDelta: () => ({ data: { photos: [], latestPhotoAt: null, nextCursor: null }, loading: false, error: null }),
}));
vi.mock('@/guest/i18n/useTranslation', () => ({
vi.mock('@/shared/guest/i18n/useTranslation', () => ({
useTranslation: () => ({
t: (key: string, arg2?: Record<string, string | number> | string, arg3?: string) =>
typeof arg2 === 'string' || arg2 === undefined ? (arg2 ?? arg3 ?? key) : (arg3 ?? key),
@@ -97,7 +97,7 @@ vi.mock('@/guest/i18n/useTranslation', () => ({
}),
}));
vi.mock('@/guest/i18n/LocaleContext', () => ({
vi.mock('@/shared/guest/i18n/LocaleContext', () => ({
useLocale: () => ({ locale: 'de', availableLocales: [], setLocale: vi.fn() }),
}));
@@ -129,7 +129,7 @@ vi.mock('../services/qrApi', () => ({
fetchEventQrCode: () => Promise.resolve({ qr_code_data_url: null }),
}));
vi.mock('@/guest/hooks/useGuestTaskProgress', () => ({
vi.mock('@/shared/guest/hooks/useGuestTaskProgress', () => ({
useGuestTaskProgress: () => ({ completedCount: 0 }),
}));