From 65291aa5b9880b550125997405c3208e622363c4 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 16 Mar 2026 14:50:53 -0400 Subject: [PATCH] =?UTF-8?q?refactor(stores):=20phase=201=20cleanup=20?= =?UTF-8?q?=E2=80=94=20ae=5Fstores.ts=20and=20ae=5Fevents=5Fstores.ts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove ~200 lines of dead commented-out code (old test blocks, stale import alternatives, unused console.log lines) - Remove ver_idb fields — superseded by store_versions.ts __version mechanism - Remove Stripe button IDs / publishable key from events_sess (no consumers) - Remove stale event-specific comments (CHOW 2024 sponsor tiers, ISHLT note) - Remove example: true test field from session leads struct - Improve comments: ver stamp rationale, auth__kv expiry intent, api_*_kv shape doc, slct/events_slct tab-isolation rationale, level_guest_max_li fallback note, events_trig_kv purpose - Keep all active business logic and exports unchanged; zero consumer impact --- documentation/TODO__Agents.md | 6 +- src/lib/stores/ae_events_stores.ts | 163 ++++--------------- src/lib/stores/ae_stores.ts | 245 +++++++++-------------------- 3 files changed, 108 insertions(+), 306 deletions(-) diff --git a/documentation/TODO__Agents.md b/documentation/TODO__Agents.md index 23a6151e..55bf4dee 100644 --- a/documentation/TODO__Agents.md +++ b/documentation/TODO__Agents.md @@ -32,7 +32,7 @@ frontend pass the location directly in the Launcher URL without the extra lookup - [x] **Minor Svelte warning:** `slct_event_location_id` in `menu_location_list.svelte` — prop already has `$bindable(null)`; stale comment in file updated. (2026-03-11) ### [Svelte] State reference warnings -- [x] **`state_referenced_locally` warnings resolved** — all 42 warnings fixed. v1 edit form retired; v2 renamed to canonical name. Remaining 23 warnings in `ae_idaa_comp__event_obj_id_edit.svelte` are CSS `@apply`/`@reference` warnings from the svelte-check CSS language service not understanding Tailwind v4 at-rules — harmless, build works fine, not fixable without a full `