chore(stores): remove unused default properties from ae_loc, ae_sess, events_slct, idaa_loc

Audited all three legacy persisted-store files for properties with zero
references in src/. Removed ~119 lines of dead defaults:

- ae_loc: qr_scanner_version, ds, entire mod block (archives/events/journals/posts/sponsorships)
- ae_sess: hub, mod block (archives/events/journals/posts/sponsorships/testing), download
- events_loc: ds
- events_sess: ds_loaded
- events_slct: abstract_*, badge_template_*, device_*, exhibit_tracking_*, lq__presenter_obj
- idaa_loc: ds, idaa_cfg_json, top-level qry__* (each submodule has its own), novi_rate_limited_until, novi_*_base_url (read from site_cfg_json, not idaa_loc)

No version bumps needed — removing fields from defaults is backwards-compatible.
svelte-check passes: 0 errors, 0 warnings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-06-11 15:29:48 -04:00
parent 9a1ba02b59
commit 94e4fad061
3 changed files with 0 additions and 119 deletions

View File

@@ -40,8 +40,6 @@ const events_local_data_struct: key_val = {
name: 'Aether - Events', name: 'Aether - Events',
title: `OSIT's Æ Events`, title: `OSIT's Æ Events`,
ds: {},
events_cfg_json: {}, events_cfg_json: {},
event_id: null, event_id: null,
@@ -102,7 +100,6 @@ const events_session_data_struct: key_val = {
ds: { ds: {
submit_status: null submit_status: null
}, },
ds_loaded: {},
qry__enabled: 'enabled', // all, disabled, enabled qry__enabled: 'enabled', // all, disabled, enabled
qry__hidden: 'not_hidden', // all, hidden, not_hidden qry__hidden: 'not_hidden', // all, hidden, not_hidden
@@ -162,31 +159,14 @@ const events_slct_obj_template: key_val = {
event_obj_li: [], event_obj_li: [],
// Sub-level event_ // Sub-level event_
abstract_id: null,
abstract_obj: {},
abstract_obj_li: [],
badge_id: null, badge_id: null,
badge_obj: {}, badge_obj: {},
badge_obj_li: [], badge_obj_li: [],
badge_template_id: null,
badge_template_obj: {},
badge_template_obj_li: [],
device_id: null,
device_obj: {},
device_obj_li: [],
exhibit_id: null, exhibit_id: null,
exhibit_obj: {}, exhibit_obj: {},
exhibit_obj_li: [], exhibit_obj_li: [],
// Rename these to badge_tracking_*?
exhibit_tracking_id: null,
exhibit_tracking_obj: {},
exhibit_tracking_obj_li: [],
file_id: null, file_id: null,
file_obj: {}, file_obj: {},
file_obj_li: [], file_obj_li: [],
@@ -218,8 +198,6 @@ const events_slct_obj_template: key_val = {
session_obj_li: [], session_obj_li: [],
event_session_obj: {}, event_session_obj: {},
lq__presenter_obj: {}, // Testing passing a LiveQuery object around...
auth__event_presenter_id: null, auth__event_presenter_id: null,
auth__event_presentation_id: null auth__event_presentation_id: null
}; };

View File

@@ -23,30 +23,12 @@ const idaa_local_data_struct: key_val = {
// Timestamp (ms since epoch) when the last successful verification occurred. // Timestamp (ms since epoch) when the last successful verification occurred.
// Used to cache verification results and avoid repeated Novi API calls. // Used to cache verification results and avoid repeated Novi API calls.
novi_verified_ts: null, novi_verified_ts: null,
// If set to a ms timestamp, verification attempts should be skipped until this time.
// Used to honor rate-limits and Retry-After behavior.
novi_rate_limited_until: null,
// Populated from $ae_loc.site_cfg_json at IDAA layout mount — not managed here. // Populated from $ae_loc.site_cfg_json at IDAA layout mount — not managed here.
// See routes/idaa/(idaa)/+layout.svelte for the override logic. // See routes/idaa/(idaa)/+layout.svelte for the override logic.
novi_admin_li: [], novi_admin_li: [],
novi_trusted_li: [], novi_trusted_li: [],
novi_jitsi_mod_li: [], novi_jitsi_mod_li: [],
novi_archives_base_url: 'https://www.idaa.org/idaa-archives',
novi_bb_base_url: 'https://www.idaa.org/idaa-bulletin-board',
novi_meetings_base_url: 'https://www.idaa.org/idaa-meetings',
ds: {},
idaa_cfg_json: {},
// all, disabled, enabled
qry__enabled: 'enabled',
// all, hidden, not_hidden
qry__hidden: 'not_hidden',
qry__limit: 20,
qry__offset: 0,
archives: { archives: {
enabled: 'enabled', // all, disabled, enabled enabled: 'enabled', // all, disabled, enabled
hidden: 'not_hidden', // all, hidden, not_hidden hidden: 'not_hidden', // all, hidden, not_hidden

View File

@@ -91,8 +91,6 @@ const ae_app_local_data_defaults: key_val = {
qry__limit: 20, qry__limit: 20,
qry__offset: 0, qry__offset: 0,
qr_scanner_version: 'one',
admin: { admin: {
show_element__sql_qry: false, show_element__sql_qry: false,
show_element__sql_qry_results: false show_element__sql_qry_results: false
@@ -143,7 +141,6 @@ const ae_app_local_data_defaults: key_val = {
add_to_use_files_method: 'upload' // upload, select add_to_use_files_method: 'upload' // upload, select
}, },
ds: {},
hub: { hub: {
show_element__cfg: true, show_element__cfg: true,
show_element__cfg_detail: false, show_element__cfg_detail: false,
@@ -156,56 +153,6 @@ const ae_app_local_data_defaults: key_val = {
qr: {} qr: {}
}, },
mod: {
archives: {},
events: {
event_id: null,
show_edit__event_presenter_obj: false,
show_list__event_presenter_obj_li: true,
show_view__event_presenter_obj: false,
submit_status: null,
// When set, new presenters are automatically assigned to this session.
default_session_id: null
},
journals: {},
posts: {},
sponsorships: {
cfg_id: null,
for_type: null,
for_id: null,
// Max complimentary guests per sponsorship tier (0 = no tier).
// These are fallback defaults; the active event config should override via events_cfg_json.
level_guest_max_li: {
0: 0,
1: 4,
2: 8,
3: 8,
4: 8,
5: 8,
6: 16,
7: 16
},
show_edit__sponsorship_obj: false,
show_list__sponsorship_obj_li: true,
show_view__sponsorship_obj: false,
show_question__accommodations: false,
submit_status: null // 'saving', 'created', 'updated'
}
// testing: {},
}
}; };
export const ae_loc: Writable<key_val> = persisted( export const ae_loc: Writable<key_val> = persisted(
@@ -258,31 +205,6 @@ const ae_app_session_data_defaults: key_val = {
clip_complete: null clip_complete: null
}, },
hub: {
show_xyz: null,
account_id_qry_status: null,
event_badge_id_status_qry__search: null,
event_presenter_id_qry_status: null,
site_domain_id_qry_status: null,
sponsorship_id_qry_status: null,
sponsorship_cfg_id_qry_status: null,
qr: {}
},
mod: {
archives: {},
events: {},
journals: {},
posts: {},
sponsorships: {
disable_submit__sponsorship_obj: false,
slct__level_num: 0,
show_question__accommodations: false,
submit_status: null // 'saving', 'created', 'updated', 'saved'
},
testing: {}
},
person: { person: {
show_report__person_li: false, show_report__person_li: false,
@@ -291,7 +213,6 @@ const ae_app_session_data_defaults: key_val = {
show__modal_change_password: false, show__modal_change_password: false,
download: {},
// Per-file progress keyed by file_id (downloads) or temp_id (uploads). // Per-file progress keyed by file_id (downloads) or temp_id (uploads).
// Shape: { status, endpoint, filename, size_total, size_loaded, percent_completed } // Shape: { status, endpoint, filename, size_total, size_loaded, percent_completed }
api_download_kv: {}, api_download_kv: {},