feat(events): reorganize badge admin tools and enhance dependency tracking

- Migrated 'Add New Badge' and 'Upload Badge List' to centralized Event Settings hub.
- Secured Admin Tools visibility with Administrator access and Edit Mode requirements.
- Restored and modernized Badge Template management route with Svelte 5 runes.
- Patched 'Archive' and 'Session' database interfaces to resolve compiler errors.
- Added project-wide dependency comments to key interfaces (Archive, Badge, Session) to prevent cascading change regressions.
- Fixed duplicate import errors in the Settings page.
This commit is contained in:
Scott Idem
2026-02-04 14:04:44 -05:00
parent 49f0a888b0
commit bc30724628
19 changed files with 299 additions and 276 deletions

View File

@@ -97,7 +97,13 @@ export interface Event {
event_file_id_li_json?: null | string;
}
// Updated 2025-10-06
/**
* Badge - An event badge
* Related Files:
* - src/lib/ae_events/ae_events__event_badge.ts (API)
* - src/routes/events/[event_id]/(badges)/badges/[badge_id]/+page.svelte (View)
* - src/routes/events/[event_id]/settings/+page.svelte (Admin)
*/
export interface Badge {
id: string;
// id_random: string;
@@ -757,6 +763,7 @@ export interface Session {
tmp_sort_2?: null | string;
// Additional fields for convenience (database views)
default_qry_str?: null | string;
file_count?: null | number; // Only files directly under a session
file_count_all?: null | number; // All files under a session
internal_use_count?: null | number; // Files marked for internal use