Fixing stuff that was lost with the upgrade to AE v3.

This commit is contained in:
Scott Idem
2026-04-01 17:11:21 -04:00
parent 7d8981bcb5
commit 197d136c59
2 changed files with 30 additions and 5 deletions

View File

@@ -9,6 +9,14 @@ let { data }: Props = $props();
let log_lvl: number = $state(0);
// Imports
import {
Archive,
Barcode,
FileText,
Info,
LoaderCircle,
Upload,
} from '@lucide/svelte';
import { Modal } from 'flowbite-svelte';
import { ae_util } from '$lib/ae_utils/ae_utils';
import { liveQuery } from 'dexie';
@@ -27,7 +35,6 @@ import Comp_event_presentation_obj_li from '../../../../ae_comp__event_presentat
import Comp_event_presenter_form_agree from '../../presenter/[presenter_id]/ae_comp__event_presenter_form_agree.svelte';
import Comp_event_files_upload from '../../../../ae_comp__event_files_upload.svelte';
import Element_manage_event_file_li_wrap from '$lib/elements/element_manage_event_file_li_direct.svelte';
import { Archive, FileText, Info, LoaderCircle, Upload } from '@lucide/svelte';
// STABILITY FIX: Capture URL params reactively via $derived so liveQuery
// closures see a stable identifier that updates on same-route navigation.
let url_session_id = $derived(data.params.session_id);
@@ -109,7 +116,7 @@ if (!$events_sess.pres_mgmt) $events_sess.pres_mgmt = {};
</svelte:head>
<div
class="ae_events_pres_mgmt_event_session mx-auto w-full max-w-7xl space-y-6">
class="ae_events_pres_mgmt_event_session mx-auto w-full max-w-7xl space-y-2">
<!-- Pass observable STORES to child components (they use $) -->
<Session_page_menu
{data}
@@ -121,7 +128,7 @@ if (!$events_sess.pres_mgmt) $events_sess.pres_mgmt = {};
handouts) separately from presenter files. The toggle was present for years and was
inadvertently dropped during the V3 migration. -->
{#if $ae_loc.authenticated_access}
<header class="ae_module_header">
<header class="ae_module_header flex flex-col items-start justify-between gap-2 sm:flex-row">
<button
type="button"
onclick={() => {
@@ -148,6 +155,21 @@ if (!$events_sess.pres_mgmt) $events_sess.pres_mgmt = {};
</span>
{/if}
</button>
<div class="flex flex-col gap-1 items-end justify-end">
<h1 class="text-2xl leading-snug font-bold">
{$lq__event_session_obj?.name}
</h1>
{#if (!$events_loc.pres_mgmt.hide__session_code)}
<span class="badge preset-tonal-surface text-xs"
title="Session Code: {$lq__event_session_obj?.code}"
>
<Barcode size="1em" class="text-surface-600-400" />
{$lq__event_session_obj?.code}
</span>
{/if}
</div>
</header>
{/if}

View File

@@ -128,6 +128,7 @@ $effect(() => {
<!-- Session Name: the primary identity check -->
{#if $lq__event_session_obj}
<div>
{#if $ae_loc.edit_mode}
<Element_ae_obj_field_editor
object_type={'event_session'}
object_id={$lq__event_session_obj.id}
@@ -139,10 +140,12 @@ $effect(() => {
api_cfg: $ae_api,
event_session_id: $lq__event_session_obj.id
})}>
<h1 class="text-2xl leading-snug font-bold">
<div class="text-lg leading-snug font-bold">
{$lq__event_session_obj.name}
</h1>
</div>
</Element_ae_obj_field_editor>
{/if}
{#if $ae_loc.edit_mode}
<span class="badge preset-tonal-surface mt-1 text-xs"
>code: {$lq__event_session_obj.code}</span>