From 080ad06a450557e4440c0bdc346c607cbfa56d89 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Fri, 12 Jun 2026 15:53:13 -0400 Subject: [PATCH] fix(pres_mgmt): stop treating lq__event_session_obj prop as a Svelte store in POC modals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both ae_comp__event_session_poc_profile and ae_comp__event_session_poc_form_agree used $lq__event_session_obj with the $ sigil throughout, expecting a store subscription. They receive a plain resolved value from session_view.svelte, so Svelte threw store_invalid_shape on mount. Replace all $lq__event_session_obj → lq__event_session_obj in both files. Also clean up poc_profile: remove event_session_id_random (legacy alias) → event_session_id in the auth check and the biography save call. Co-Authored-By: Claude Sonnet 4.6 --- ..._comp__event_session_poc_form_agree.svelte | 42 ++++++++--------- .../ae_comp__event_session_poc_profile.svelte | 46 ++++++------------- 2 files changed, 34 insertions(+), 54 deletions(-) diff --git a/src/routes/events/[event_id]/(pres_mgmt)/session/[session_id]/ae_comp__event_session_poc_form_agree.svelte b/src/routes/events/[event_id]/(pres_mgmt)/session/[session_id]/ae_comp__event_session_poc_form_agree.svelte index 0a06f3bd..e0434c76 100644 --- a/src/routes/events/[event_id]/(pres_mgmt)/session/[session_id]/ae_comp__event_session_poc_form_agree.svelte +++ b/src/routes/events/[event_id]/(pres_mgmt)/session/[session_id]/ae_comp__event_session_poc_form_agree.svelte @@ -98,7 +98,7 @@ async function handle_submit_form(event: SubmitEvent) { console.log(`opt_out_do:`, opt_out_do); let event_session_data = { - poc_kv_json: $lq__event_session_obj.poc_kv_json + poc_kv_json: lq__event_session_obj.poc_kv_json }; console.log('event_session_data:', event_session_data); @@ -113,14 +113,14 @@ async function handle_submit_form(event: SubmitEvent) { }; // Use this in the future if we need to store the agreements in a more complex way? - // let event_session_data = {poc_kv_json: $lq__event_session_obj?.poc_kv_json}; + // let event_session_data = {poc_kv_json: lq__event_session_obj?.poc_kv_json}; // console.log('event_session_data:', event_session_data); // event_session_data.poc_kv_json[poc_type]['agree'] = false; ae_promises.update__event_session_obj__opt_out = events_func .update_ae_obj__event_session({ api_cfg: $ae_api, - event_session_id: $lq__event_session_obj?.event_session_id, + event_session_id: lq__event_session_obj?.event_session_id, data_kv: event_session_data, log_lvl: log_lvl }) @@ -134,21 +134,21 @@ async function handle_submit_form(event: SubmitEvent) { } -{#if $lq__event_session_obj} +{#if lq__event_session_obj}

{pres_mgmt_loc.current.label__session_poc_name} Agreement for:
{$lq__event_session_obj?.poc_person_full_name} - {#if $lq__event_session_obj?.poc_person_primary_email} - ({$lq__event_session_obj?.poc_person_primary_email ?? + >{lq__event_session_obj?.poc_person_full_name} + {#if lq__event_session_obj?.poc_person_primary_email} + ({lq__event_session_obj?.poc_person_primary_email ?? '-- not set --'}) {/if}

- {#if !$lq__event_session_obj?.poc_agree} + {#if !lq__event_session_obj?.poc_agree}
@@ -174,12 +174,12 @@ async function handle_submit_form(event: SubmitEvent) {

{$lq__event_session_obj.poc_person_full_name} ({$lq__event_session_obj.poc_person_primary_email}) + >{lq__event_session_obj.poc_person_full_name} ({lq__event_session_obj.poc_person_primary_email}) agrees to the following terms and conditions for the presentation:

Session: - "{$lq__event_session_obj?.name}" + "{lq__event_session_obj?.name}"

@@ -201,7 +201,7 @@ async function handle_submit_form(event: SubmitEvent) { class="checkbox preset-tonal-warning border-warning-500 checked:preset-filled-warning-500 hover:preset-filled-error-500 border" id="optout_audio" name="optout_audio" - checked={$lq__event_session_obj.poc_kv_json[poc_type] + checked={lq__event_session_obj.poc_kv_json[poc_type] ?.optout_audio} value={true} /> Opt-out - Audio Reproduction of Presentation @@ -215,7 +215,7 @@ async function handle_submit_form(event: SubmitEvent) { class="checkbox preset-tonal-warning border-warning-500 checked:preset-filled-warning-500 hover:preset-filled-error-500 border" id="optout_video" name="optout_video" - checked={$lq__event_session_obj.poc_kv_json[poc_type] + checked={lq__event_session_obj.poc_kv_json[poc_type] ?.optout_video} value={true} /> Opt-out - Video Reproduction of Presentation @@ -229,7 +229,7 @@ async function handle_submit_form(event: SubmitEvent) { class="checkbox preset-tonal-warning border-warning-500 checked:preset-filled-warning-500 hover:preset-filled-error-500 border" id="optout_transcription_and_publication" name="optout_transcription_and_publication" - checked={$lq__event_session_obj.poc_kv_json[poc_type] + checked={lq__event_session_obj.poc_kv_json[poc_type] ?.optout_transcription_and_publication} value={true} /> Opt-out - Transcription and Publication of Presentation on LCI @@ -244,7 +244,7 @@ async function handle_submit_form(event: SubmitEvent) { class="checkbox preset-tonal-warning border-warning-500 checked:preset-filled-warning-500 hover:preset-filled-error-500 border" id="optout_publication_in_app" name="optout_publication_in_app" - checked={$lq__event_session_obj.poc_kv_json[poc_type] + checked={lq__event_session_obj.poc_kv_json[poc_type] ?.optout_publication_in_app} value={true} /> Opt-out - Publication of Presentation on LCI Congress App @@ -290,7 +290,7 @@ async function handle_submit_form(event: SubmitEvent) {

Agree?

- {#if !$lq__event_session_obj?.poc_agree} + {#if !lq__event_session_obj?.poc_agree}
Not Agreed: @@ -308,12 +308,12 @@ async function handle_submit_form(event: SubmitEvent) {
{/if} - {#if !$lq__event_session_obj?.poc_agree} + {#if !lq__event_session_obj?.poc_agree} - {#if $lq__event_session_obj.poc_kv_json[poc_type]?.biography_updated_on} + {#if lq__event_session_obj.poc_kv_json[poc_type]?.biography_updated_on} Last saved: {ae_util.iso_datetime_formatter( - $lq__event_session_obj.poc_kv_json[poc_type] + lq__event_session_obj.poc_kv_json[poc_type] ?.biography_updated_on, 'datetime_12_long' )}