From fcefcc510b9043ca7e684a3fcc4e9294295ae267 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 8 Jul 2025 16:53:45 -0400 Subject: [PATCH] Saving work on IDAA pages --- .../bb/ae_idaa_comp__post_obj_id_edit.svelte | 10 +- .../bb/ae_idaa_comp__post_options.svelte | 37 ++++- .../ae_idaa_comp__event_obj_li.svelte | 5 +- .../ae_idaa_comp__event_obj_qry.svelte | 143 +++++++++++++----- 4 files changed, 150 insertions(+), 45 deletions(-) diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte index c3e75957..531abec2 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_obj_id_edit.svelte @@ -1022,8 +1022,9 @@ $effect(() => { disabled={(disable_submit_btn || !obj_changed)} class=" novi_btn btn-warning - btn preset-tonal-success - hover:preset-filled-success-200-800 transition + btn + preset-tonal-success hover:preset-filled-success-200-800 + transition " > {#await prom_api__post_obj} @@ -1042,8 +1043,9 @@ $effect(() => { }} class=" novi_btn btn-warning - btn preset-tonal-warning - hover:preset-filled-warning-200-800 transition + btn + preset-tonal-warning hover:preset-filled-warning-200-800 + transition " > {#await prom_api__post_obj} diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte index a47124a9..4467bc71 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_options.svelte @@ -54,6 +54,7 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); + @@ -68,7 +69,12 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); $idaa_loc.bb.qry__limit = 100; $idaa_trig.post_li = true; }} - class="novi_btn btn_show_bb_post ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_hide_bb_post ae_btn btn-info + btn btn-sm + preset-tonal-secondary preset-outlined-secondary-200-800 hover:preset-filled-secondary-200-800 + transition + " > Show Hidden Posts @@ -79,7 +85,12 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); $idaa_loc.bb.qry__hidden = 'not_hidden'; $idaa_trig.post_li = true; }} - class="novi_btn btn_hide_bb_post ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_hide_bb_post ae_btn btn-info + btn btn-sm + preset-tonal-secondary preset-outlined-secondary-200-800 hover:preset-filled-secondary-200-800 + transition + " > Hide Hidden Posts @@ -94,7 +105,12 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); $idaa_loc.bb.qry__limit = 500; $idaa_trig.post_li = true; }} - class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_show_bb_post ae_btn btn-warning + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " > Show Disabled Posts @@ -105,7 +121,12 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); $idaa_loc.bb.qry__enabled = 'enabled'; $idaa_trig.post_li = true; }} - class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_hide_bb_post ae_btn btn-warning + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " > Hide Disabled Posts @@ -177,7 +198,13 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options'); // $idaa_sess.bb.show__modal_view__post_id = true; // $idaa_sess.bb.show__inline_edit__post_obj = true; }} - class="novi_btn btn_new_post btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition text-xs" + class=" + novi_btn btn-tertiary + text-xs + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " title="Create new post" > Create New Post diff --git a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte index 65bf7a81..39592e04 100644 --- a/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte +++ b/src/routes/idaa/(idaa)/recovery_meetings/ae_idaa_comp__event_obj_li.svelte @@ -178,9 +178,10 @@ function add_activity_log( 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}`} > - + + - View Details + Meeting Details @@ -466,7 +514,12 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings // $idaa_loc.recovery_meetings.qry__limit = 100; $idaa_trig.event_li_qry = true; }} - class="novi_btn btn_hide_bb_post ae_btn btn btn-info btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_hide_recovery_mtg_event ae_btn btn-info + btn btn-sm + preset-tonal-secondary preset-outlined-secondary-200-800 hover:preset-filled-secondary-200-800 + transition + " > Hide Hidden Events @@ -481,7 +534,12 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings $idaa_loc.recovery_meetings.qry__limit = 500; $idaa_trig.event_li_qry = true; }} - class="novi_btn btn_show_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_show_recovery_mtg_event ae_btn btn-warning + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " > Show Disabled Events @@ -492,7 +550,12 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings $idaa_loc.recovery_meetings.qry__enabled = 'enabled'; $idaa_trig.event_li_qry = true; }} - class="novi_btn btn_hide_bb_post ae_btn btn btn-warning btn-sm preset-tonal-secondary border border-secondary-500" + class=" + novi_btn btn_hide_recovery_mtg_event ae_btn btn-warning + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " > Hide Disabled Events @@ -561,7 +624,13 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings }} - class="novi_btn btn btn-sm btn-tertiary preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition text-xs" + class=" + novi_btn btn-tertiary + text-xs + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " disabled={!$ae_loc.authenticated_access} > Create New Meeting @@ -589,7 +658,13 @@ if ($idaa_loc.recovery_meetings.qry__fulltext_str && $idaa_loc.recovery_meetings }); }} - class="novi_btn export_data_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition text-xs" + class=" + novi_btn btn-tertiary + text-xs + btn btn-sm + preset-tonal-warning preset-outlined-warning-200-800 hover:preset-filled-warning-200-800 + transition + " title={`Download sponsorship data for ${$ae_loc.account_name}`} > {#await ae_promises.download__events_export}