Fix: Harden V3 search logic and restore specialized business mapping
- API: Updated `search_ae_obj_v3` to correctly serialize complex URL parameters (JSON). - Events: Restored "sacred" business logic for Event Badge and Session searches using `ft_qry` and `lk_qry`. - PWA: Fixed manifest path in `app.html` to resolve 404 errors. - Documentation: Updated `GEMINI.md` and `TODO.md` with recent search hardening accomplishments.
This commit is contained in:
@@ -61,6 +61,14 @@ This project is the frontend UI/UX for the Aether (AE) system, built with Svelte
|
||||
|
||||
## 📝 Development History (Consolidated)
|
||||
|
||||
### Hardening & Search Restoration (2026-01-21)
|
||||
- **Critical Learning: V3 Search Body Strictness:** The `search_query` POST body is extremely strict. Adding non-mapped fields (e.g., `event_location_name`) triggers HTTP 400 "Unauthorized search field" errors.
|
||||
- **Critical Learning: Preservation of Business Logic:** Specialized search parameters (`ft_qry`, `lk_qry`, `and_qry`) are handled by custom backend logic and MUST be passed as URL query parameters (serialized JSON), not in the search body. These are the "sacred" rules of the Aether system and must not be "cleaned up" during modernization.
|
||||
- **Critical Learning: Barrel Cleanup Order:** Barrel files (`api.ts`, `ae_core_functions.ts`) must be updated to remove legacy exports *before* deleting code from source files to prevent build-time `SyntaxError` crashes.
|
||||
- **V3 API Hardening:** Updated `search_ae_obj_v3` to correctly serialize all object-type `params` into the URL, enabling complex filtering like `ft_qry`.
|
||||
- **Event Session Search:** Restored full business logic mapping for session search, including `ft_qry`, `lk_qry`, and `and_qry`.
|
||||
- **Service Worker:** Fixed 404 on `/manifest.json` path in `app.html` and restored `service-worker.js` to standard SvelteKit state to resolve evaluation errors.
|
||||
|
||||
### Hardening & V3 Stabilization (2026-01-20)
|
||||
- **IDAA Search Hardening:** Isolated IDAA Recovery Meetings to a specialized `qry_ae_obj_li__event_v2` function. Restored full 154-result capacity and implemented "Inclusive OR" location logic (Virtual/In-person).
|
||||
- **System Lookups Restoration:** Fixed a `TypeError` by correctly exporting `get_ae_obj_li_for_lu` in `api.ts`. Reverted lookup endpoints to stable V2 paths to resolve V3 "Configuration error" 500s. Added Country Subdivisions card to the lookups page.
|
||||
|
||||
Reference in New Issue
Block a user