Lots of clean up. Updates to Archive related admin section and some fields.

This commit is contained in:
Scott Idem
2025-07-09 16:33:48 -04:00
parent 8a80bb1a2f
commit 06cf665b06
13 changed files with 334 additions and 196 deletions

View File

@@ -1,9 +1,12 @@
<script lang="ts">
import type { PageData } from './$types';
interface Props {
/** @type {import('./$types').PageData} */
data: any;
}
let { data }: { data: PageData } = $props();
let { data }: Props = $props();
let log_lvl: number = 1;
let log_lvl: number = 0;
// *** Import Svelte specific
import { onDestroy } from "svelte";

View File

@@ -23,7 +23,7 @@ export const load = (async ({ params, parent }) => { // route
if (log_lvl) {
console.log(`ae_idaa_events events [event_id] +page.ts: event_id = `, event_id);
}
// Load event event object
// Load event object
let load_event_obj = await events_func.load_ae_obj_id__event({
api_cfg: ae_acct.api,
event_id: event_id,
@@ -45,8 +45,8 @@ export const load = (async ({ params, parent }) => { // route
ae_acct.slct.event_obj = load_event_obj;
}
// WARNING: Precaution against shared data between sites and presentations.
data[account_id] = ae_acct;
return data;
// return {};
}) satisfies PageLoad;

View File

@@ -710,21 +710,21 @@ $effect(() => {
<span class="text-base font-semibold">
Name of Recovery Meeting
</span>
<input
type="text"
id="name"
name="name"
required
max="200"
value={$lq__event_obj?.name ?? ''}
placeholder="Name of Recovery Meeting"
autocomplete="off"
class="
input w-full
preset-tonal-surface hover:preset-filled-surface-100-900
form-control
"
/>
<input
type="text"
id="name"
name="name"
required
max="200"
value={$lq__event_obj?.name ?? ''}
placeholder="Name of Recovery Meeting"
autocomplete="off"
class="
input w-full
preset-tonal-surface hover:preset-filled-surface-100-900
form-control
"
/>
</label>
</div>

View File

@@ -174,8 +174,12 @@ function add_activity_log(
<div class="ae_options flex flex-row flex-wrap gap-2 items-center justify-center">
<a
href="/idaa/recovery_meetings/{idaa_event_obj?.event_id}"
class="novi_btn btn btn-secondary btn-md preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition"
title={`Open to see details: ${idaa_event_obj?.name}`}
class="
novi_btn btn-secondary
btn btn-md preset-filled-primary-200-800
transition
"
title={`View: ${idaa_event_obj?.name}`}
>
<!-- <span class="fas fa-envelope-open m-1"></span> -->
<span class="fas fa-calendar-check m-1"></span>