From b675cad43def617057e0d0b4effd8d25b35c6ee9 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 7 Jul 2025 16:27:12 -0400 Subject: [PATCH] Things look good for the IDAA BB. Need to test one last time from start to finish. --- .../idaa/(idaa)/bb/[post_id]/+page.svelte | 21 +- ...idaa_comp__post_comment_obj_id_edit.svelte | 205 +++++++++++++----- .../bb/ae_idaa_comp__post_obj_id_edit.svelte | 77 +++++-- .../bb/ae_idaa_comp__post_obj_id_view.svelte | 14 +- .../bb/ae_idaa_comp__post_obj_li.svelte | 64 ------ 5 files changed, 225 insertions(+), 156 deletions(-) diff --git a/src/routes/idaa/(idaa)/bb/[post_id]/+page.svelte b/src/routes/idaa/(idaa)/bb/[post_id]/+page.svelte index c17e5db2..d3854614 100644 --- a/src/routes/idaa/(idaa)/bb/[post_id]/+page.svelte +++ b/src/routes/idaa/(idaa)/bb/[post_id]/+page.svelte @@ -172,8 +172,12 @@ onDestroy(() => { {#if $idaa_sess.bb.edit__post_obj} {:else} {#if ($ae_loc.trusted_access && $ae_loc.edit_mode) || $lq__post_obj?.external_person_id === $idaa_loc.novi_uuid || $lq__post_obj?.email === $idaa_loc.novi_email} {/if} {/if} diff --git a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte index 929c8b11..14dbe9b7 100644 --- a/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte +++ b/src/routes/idaa/(idaa)/bb/ae_idaa_comp__post_comment_obj_id_edit.svelte @@ -318,7 +318,11 @@ function send_poster_notification_email() {
@@ -341,41 +345,48 @@ function send_poster_notification_email() { onclick={() => { $idaa_sess.bb.show__inline_edit__post_comment_id = false; }} - class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition" - title="Cancel editing of post comment for {$idaa_slct.post_comment_obj?.full_name} (ID: {$idaa_slct.post_comment_obj?.post_id}" + class=" + novi_btn + btn btn-sm + preset-filled-warning-200-800 hover:preset-filled-success-200-800 + transition + " + title="Cancel editing of post comment for {$idaa_slct.post_comment_obj?.full_name} (ID: {$idaa_slct.post_comment_obj?.post_comment_id}" > - Cancel Edit + + Cancel Edit
- + -
+
-
-
- -

Poster's Information

-
- Post as Anonymous +

Commenter's Information

+
+ Comment as Anonymous
- +
- +
-
+ {#if $ae_loc.trusted_access} -
@@ -494,10 +539,10 @@ function send_poster_notification_email() { class="flex flex-col md:flex-row flex-wrap gap-2 items-center justify-center md:justify-stretch w-full" >
- Hide + Hide
@@ -516,14 +561,14 @@ function send_poster_notification_email() { name="hide" value={false} bind:group={$idaa_slct.post_comment_obj.hide} - class="radio" + class="radio form-check-input" >
-
- Priority +
+ Priority
@@ -542,23 +587,29 @@ function send_poster_notification_email() { name="priority" value={false} bind:group={$idaa_slct.post_comment_obj.priority} - class="radio" + class="radio form-check-input" >
- - + + - + {#if $ae_loc.administrator_access} -
- Enable +
+ Enable
@@ -577,7 +628,7 @@ function send_poster_notification_email() { name="enable" value={false} bind:group={$idaa_slct.post_comment_obj.enable} - class="radio" + class="radio form-check-input" > @@ -600,23 +651,33 @@ function send_poster_notification_email() { {/if} --> -
+ {/if} -
+
- - {#if $idaa_slct.post_id} + + {#if $idaa_slct.post_comment_id} {:else} @@ -627,12 +688,16 @@ function send_poster_notification_email() { if (!confirm('Are you sure you want to create this post?')) {return false;} // handle_save_post_comment_obj({post_id: $idaa_slct.post_id, method: 'create'}); }} - class="novi_btn btn_primary btn btn-primary preset-tonal-primary border border-primary-500 hover:preset-filled-primary-500 transition" + class=" + novi_btn btn-warning + btn preset-tonal-warning + hover:preset-filled-warning-200-800 transition + " > {#await prom_api__post_comment_obj} Saving {:then} - Save New Event + Save New Comment {/await} {/if} @@ -645,7 +710,11 @@ function send_poster_notification_email() { if (!confirm('Are you sure you want to delete this post comment?')) {return false;} handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'delete'}); }} - class="novi_btn btn btn-sm preset-tonal-warning" + class=" + novi_btn + btn btn-sm + preset-filled-warning-400-600 hover:preset-filled-error-200-800 + " title="Delete record permanently" > Delete @@ -657,7 +726,12 @@ function send_poster_notification_email() { if (!confirm('Are you sure you want to disable this post comment?')) {return false;} handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'disable'}); }} - class="novi_btn btn btn-sm preset-tonal-warning" + class=" + novi_btn + btn btn-sm + preset-filled-warning-200-800 hover:preset-filled-error-200-800 + transition + " title="Disable record to delete" > Delete @@ -669,7 +743,12 @@ function send_poster_notification_email() { if (!confirm('Are you sure you want to hide this post comment?')) {return false;} handle_delete_post_comment_obj({post_comment_id: $idaa_slct.post_comment_id, method: 'hide'}); }} - class="novi_btn btn btn-sm preset-tonal-warning" + class=" + novi_btn + btn btn-sm + preset-filled-warning-200-800 hover:preset-filled-error-200-800 + transition + " title="Hide record to delete" > Delete @@ -684,13 +763,19 @@ function send_poster_notification_email() { onclick={() => { $idaa_sess.bb.show__inline_edit__post_comment_id = false; }} - class="novi_btn btn btn-sm preset-tonal-warning border border-warning-500 hover:preset-filled-warning-500 transition" + class=" + novi_btn + btn btn-sm + preset-filled-warning-200-800 hover:preset-filled-success-200-800 + transition + " title="Cancel editing of post for {$idaa_slct.post_comment_obj.full_name} (ID: {$idaa_slct.post_comment_obj.post_comment_id}" > - Cancel Edit + + Cancel Edit
-
+ 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 bc2a7c12..dcb64655 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 @@ -375,7 +375,11 @@ $effect(() => {
@@ -412,7 +416,8 @@ $effect(() => { " title="Cancel editing of post for {$idaa_slct.post_obj.full_name} (ID: {$idaa_slct.post_obj.post_id}" > - Cancel Edit + + Cancel Edit
@@ -711,7 +716,10 @@ $effect(() => {
-