Standardize JWT authentication and finalize Activity Log V3 migration

This commit is contained in:
Scott Idem
2026-01-07 17:43:23 -05:00
parent 87023e7483
commit ea0d57658f
12 changed files with 199 additions and 109 deletions

20
TODO.md
View File

@@ -6,8 +6,10 @@ This is a list of tasks to be completed before the next event/show/conference.
## Recent Accomplishments
- [x] **Editable Fields Whitelists (2026-01-07):** Applied the `editable_fields.ts` pattern to all remaining AE objects across Journals, Events, and Sponsorships modules. This ensures secure and explicit field updates from the frontend.
- [x] **IDAA Bulletin Board V3 (2026-01-07):** Fully migrated to V3 CRUD. Resolved UI filtering issues by ensuring 'account_id' injection and awaiting database operations.
- [x] **JWT Authentication (2026-01-07):** Implemented frontend infrastructure for JWT. Standardized usage across all CRUD V3 operations, updated authentication logic to capture tokens, and enhanced API helpers to automatically inject 'Authorization' headers using standard casing.
- [x] **API Robustness (2026-01-07):** Fixed a critical 'ReferenceError' in the POST helper and resolved 500 errors by standardizing header kebab-casing and preserving standard casing for keys like 'Authorization'.
- [x] **Activity Log Management (2026-01-07):** Fully migrated to V3 CRUD. Created a standalone management page and integrated filtered activity history into the Person detail view.
- [x] **Editable Fields Whitelists (2026-01-07):** Applied the `editable_fields.ts` pattern to all remaining AE objects across Journals, Events, and Sponsorships modules.
- [x] **Core Module Migration (2026-01-06):** Fully migrated Accounts, Sites, Site Domains, People, Users, and Activity Logs to Aether API CRUD V3. Implemented standardized "API -> Processor -> DB Save" pattern and editable field whitelists.
- [x] **Core Management UI (2026-01-06):** Scaffolded the management dashboard and list/detail routes for Accounts, Sites, Users, and Lookups.
- [x] **Event Badges V3 (2026-01-06):** Completed migration of Create, Update, and Delete operations to V3 nested CRUD.
@@ -34,9 +36,10 @@ This is a list of tasks to be completed before the next event/show/conference.
- [x] Implement Update (PATCH) wrappers (`update_ae_obj_v3`, `update_nested_obj_v3`).
- [x] Implement Delete (DELETE) wrapper (`delete_ae_obj_v3`).
- [x] Implement single object GET wrapper (`get_ae_obj_v3`).
- [ ] **Authentication & Security:**
- [ ] Standardize JWT usage in headers for all V3 calls.
- [ ] Update file download logic to support JWT in URL parameters.
- [x] **Authentication & Security:**
- [x] Standardize JWT usage in headers for all V3 calls.
- [x] Update file download logic to support JWT in URL parameters.
- [ ] **Site Domain Search Error (INVESTIGATION):** Ongoing investigation into 500 Internal Server Error for `site_domain/search` during initial site lookup. Simplified `search_query` to use a global `q` parameter as a diagnostic step. Requires backend collaboration to determine correct `search_query` structure or frontend adjustment.
- [ ] **Module Migration:**
- [x] **Journals:** Fully migrated to V3 CRUD.
- [x] **Events - Badges:** Fully migrated to V3 CRUD.
@@ -57,8 +60,7 @@ This is a list of tasks to be completed before the next event/show/conference.
### 1. Core Module Dashboard
- [x] Create a central dashboard at `/core` to provide an overview and links to all core data management pages.
### 2. Account Management
- [x] Add Activity Log management card.
- [x] **Route:** Create a new route at `/core/accounts`.
- [x] **API:** Implement functions in `ae_core__account.ts` for CRUD operations on accounts.
@@ -81,7 +83,7 @@ This is a list of tasks to be completed before the next event/show/conference.
- [x] Implement searchable person list (`Comp_person_search`).
- [ ] Create a dedicated page/form for creating and editing person records.
- [x] Implement User-Person linking UI in the detail page.
- [ ] Implement Linked Activity & Content section (In progress).
- [x] Implement Linked Activity & Content section.
### 5. User Management
@@ -101,7 +103,7 @@ This is a list of tasks to be completed before the next event/show/conference.
- [x] **Logic:** Implement V3 CRUD wrappers and Dexie tables.
- [x] **UI:** Create placeholder list pages at `/core/addresses` and `/core/contacts`.
- [ ] **Detail Pages:** Create dynamic routes for viewing and editing specific records.
- [x] **Detail Pages:** Create dynamic routes for viewing and editing specific records.
---