feat: update package copy and admin control room

This commit is contained in:
Codex Agent
2026-01-15 19:54:04 +01:00
parent ad829ae509
commit 7e32d8f706
42 changed files with 1310 additions and 2017 deletions

View File

@@ -20,7 +20,7 @@ function readHistory(): TabHistory {
return { paths: {}, updatedAt: 0 };
}
const parsed = JSON.parse(raw) as TabHistory;
// Check for expiry
if (Date.now() - parsed.updatedAt > EXPIRY_MS) {
window.localStorage.removeItem(STORAGE_KEY);
@@ -61,7 +61,7 @@ export function resolveDefaultTarget(key: NavKey, slug?: string | null): string
return slug ? adminPath(`/mobile/events/${slug}/tasks`) : adminPath('/mobile/tasks');
}
if (key === 'uploads') {
return slug ? adminPath(`/mobile/events/${slug}/photos`) : adminPath('/mobile/uploads');
return slug ? adminPath(`/mobile/events/${slug}/control-room`) : adminPath('/mobile/uploads');
}
if (key === 'profile') {
return adminPath('/mobile/profile');
@@ -78,7 +78,7 @@ function resolveEventScopedTarget(path: string, slug: string | null | undefined,
return path;
}
const match = path.match(/\/event-admin\/mobile\/events\/([^/]+)\/(tasks|photos)(?:\/.*)?$/);
const match = path.match(/\/event-admin\/mobile\/events\/([^/]+)\/(tasks|control-room)(?:\/.*)?$/);
if (!match) {
return resolveDefaultTarget(key, slug);
}