# One Sky IT's Aether UI/UX Project TODO

This is a list of tasks to be completed before the next event/show/conference.

---

## Tomorrow's Priorities (Jan 22, 2026)

1.  **Journal Entry Search Cleanup:**
    - [ ] Update `ae_comp__journal_entry_obj_qry.svelte` to use dynamic `$journals_loc` values for `enabled` and `hidden` parameters instead of hardcoded strings.
    - [ ] Verify that the search results correctly respect these filters.
2.  **Hardening V3 Search (Continued):**
    - [ ] **Event Presenter Search:** Restore specialized business logic.
    - [ ] **Event Badge Search:** Restore specialized business logic.
    - [ ] **Exhibit Search:** Restore missing search function and logic.
    - [ ] **IDAA Result Limit:** Fix the over-fetching issue where the `limit` parameter is ignored after client-side filtering.

---

## Current Priorities (Jan 21, 2026)

1.  **Hardening V3 Search (URGENT):**
    - [x] **Event Session Search:** Finalized and verified. Added `default_qry_str` to V3 body. (Completed 2026-01-21)
    - [x] **IDAA Recovery Meetings Search:** Restored functionality using V3 `search__event` with `default_qry_str`. (Completed 2026-01-21)
    - [x] **Journal Entry Search:** Fixed `match` operator error (switched to `like`) and resolved iteration crashes by unwrapping API envelopes. (Completed 2026-01-21)
    - [ ] **Global Rule:** Preserve `ft_qry`, `lk_qry`, and `and_qry` blocks as "sacred" business logic. Never put non-searchable fields in the POST body.
2.  **Service Worker Reliability (Mitigated):**
    - [x] **Disable Auto-Registration:** Temporarily disabled `serviceWorker.register` in `svelte.config.js` to stop `TypeError` loop.
    - [x] **Fix Tool:** Moved `fix-sw` utility to `/testing/fix-sw` for future debugging.
    - [ ] **Root Cause Investigation:** Re-enable SW registration later and debug why the script evaluation fails (likely caching or build artifact issues).
3.  **Aether Native V3:** Technical planning complete. Ready to scaffold the new Electron 33+ shell and implement the V3 "Zero-Config" bridge.
4.  **Jitsi Module Updates:** Prepare for upcoming demo. Audit `video_conferences/+page.svelte` for UI/UX improvements and stability.

---

## 🛠️ DX & Tooling (MCP)
- [x] **V3 API Parameter Hardening:** Updated `search_ae_obj_v3` to correctly serialize object-type parameters (JSON strings) in URLs. (Completed 2026-01-21)
- [ ] **Enhance `ae_obj_info`**: Include field types, constraints (NOT NULL), and default values.
- [ ] **Payload Validation**: Create a dry-run tool to check payloads against Pydantic models.
- [x] **Error Transparency**: Update backend to return specific SQLAlchemy/Pydantic errors in `meta.details`. (Completed 2026-01-19)
- [ ] **Automated Source of Truth**: Generate \`V3_OBJECT_MODELS.md\` automatically in \`agents_sync/Aether/\`.
- [x] **Fix V3 Search for IDAA Recovery Meetings** (Completed 2026-01-20)
- [x] **Restore System Lookups** (Completed 2026-01-20)

---

## Frontier Journals Module (Vision 2026-01-08)
*Goal: Transform Journals into the platform flagship with premium UI/UX and robust security.*

- [ ] **Phase 1: Codebase Audit & Schema**
    - [x] Audit `src/lib/ae_journals` and `src/routes/journals` for Tailwind compliance and code quality.
    - [x] Refactor `ae_comp__journal_entry_obj_id_view.svelte` (Header, Editor, Settings extracted).
    - [x] Fix type safety in `[journal_id]/+layout.svelte` (Recent entries history view).
    - [/] Verify `db_journals.ts` schema for metadata and encryption support.
    - [x] Identify and replace non-standard CSS with Tailwind utility classes.
    - [x] Update `db_journals.ts` types using the new `agents_sync` exported interfaces.

## Recent Accomplishments (Jan 21, 2026)
- [x] **API Barrel Safety Protocol:** Established rule to purge barrel files *before* source deletions.
- [x] **PWA Manifest Fix:** Corrected manifest link path in `app.html` to resolve 404s.
- [x] **Search Hardening:** Fixed `search_ae_obj_v3` to support nested object parameters in URLs.
- [x] **Redundancy Cleanup:** Removed all legacy `db_save_ae_obj_li__*` functions and barrel references.
- [x] **Business Logic Restoration:** Began restoring "sacred" search mapping logic for Event Sessions.