fix(core): resolve 68 compiler errors and stabilize Svelte 5 reactivity

- Fixed 'Captured initial value' warnings in 65+ components by implementing
  proper sync effects with 'untrack' and derived states.
- Hardened Event Settings JSON editors using a temporary string-buffer pattern
  to safely decouple object-based data from CodeMirror's string requirements.
- Resolved strict TypeScript mismatches across core routes (Accounts, Sites, etc.)
  and improved property indexing safety in views.
- Patched Flowbite-Svelte Drawer transitions for Svelte 5 compatibility using
  prop spreading.
- Added comprehensive safety comments to high-risk reactivity blocks.
- Synchronized 'ae_types.ts' with V3 backend models.
This commit is contained in:
Scott Idem
2026-02-08 16:05:35 -05:00
parent 356eda5ab4
commit 88bc18cf15
64 changed files with 1175 additions and 1014 deletions

19
TODO.md
View File

@@ -6,7 +6,17 @@ This is a list of tasks to be completed before the next event/show/conference.
## High Priority (Active Task)
1. **Button Standardization & Security Cleanup:**
1. **Svelte 5 Compiler Error Cleanup (68/68 Resolved):**
- [x] Fixed prop synchronization warnings in 65+ components using `untrack` and `$derived`.
- [x] Resolved strict TypeScript errors in all core routing pages (Accounts, Sites, etc.).
- [x] Refactored Event Settings JSON editors to use safe string-buffer pattern.
- [x] Fixed Flowbite-Svelte Drawer property mismatches.
- [ ] **STALLED (Testing Required):**
- [ ] **Smoke Test:** Event Settings JSON/Form Sync & Persistence.
- [ ] **Smoke Test:** Breadcrumb Navigation & Upload Component ID Sync.
- [ ] **Smoke Test:** Sign Out/In & Storage Clearing Flow.
2. **Button Standardization & Security Cleanup:**
- [x] **Journals Module:** Standardized all buttons to `type="button"` or `type="submit"`. (Completed 2026-02-03)
- [x] **Events Module:** Cleaned up 50+ components, ensuring unique attributes and correct typing. (Completed 2026-02-03)
- [x] **IDAA Module:** Standardized button behavior across Recovery Meetings, Archives, and Bulletin Board. (Completed 2026-02-03)
@@ -107,6 +117,13 @@ This is a list of tasks to be completed before the next event/show/conference.
- [x] **Compiler Error Resolution:** Fixed 40+ critical errors including duplicate attributes in multi-line tags and missing `untrack` imports in Svelte 5 effects.
- [x] **Hosted Files Modernization:** Standardized all download, link, and upload components across the platform.
## Recent Accomplishments (Feb 8, 2026)
- [x] **Zero-Error Compiler State:** Successfully cleared all 68 'svelte-check' errors across the entire application.
- [x] **Event Settings Hardening:** Refactored complex JSON configuration editors to use a temporary string-buffer pattern, preventing data corruption and resolving multiple TypeScript assignment errors.
- [x] **Prop Reactivity Pass:** Standardized prop synchronization logic in core components (Sign-In, File Upload, Layout) to adhere to Svelte 5 Runes best practices.
- [x] **Triple-ID TypeScript Alignment:** Updated 'ae_types.ts' and refined property processing to fully support semantic string IDs across core modules.
## Recent Accomplishments (Feb 7, 2026)
- [x] **Exhibitor Leads V3 Core Foundations:** Modularized `ae_events__exhibit` and `ae_events__exhibit_tracking` with V3 SWR standards and trace-ready performance logging.