From 998b10c5de4140a09286f69944fb3f3b5765000d Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 16 Mar 2026 15:05:34 -0400 Subject: [PATCH] =?UTF-8?q?style:=20FA=E2=86=92Lucide=20migration=20in=20r?= =?UTF-8?q?emaining=20core=20admin=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - person_view.svelte: converted all FA spans including complex {#if} refactor of {@html} ternary string patterns (hide/enable/priority/auth_key buttons) - people/[person_id]/+page.svelte: ArrowLeft, HelpCircle, LoaderCircle - ae_comp__person_obj_tbl.svelte: Building2, ListOrdered, Mail, Unlink, User, UserCheck - migrate script: added fa-archive, fa-link-slash, fa-question-circle mappings Co-Authored-By: Claude Sonnet 4.6 --- scripts/migrate_fa_to_lucide.py | 3 + .../core/ae_comp__person_obj_tbl.svelte | 13 ++-- .../core/people/[person_id]/+page.svelte | 10 +-- src/routes/core/person_view.svelte | 78 ++++++++++--------- 4 files changed, 56 insertions(+), 48 deletions(-) diff --git a/scripts/migrate_fa_to_lucide.py b/scripts/migrate_fa_to_lucide.py index 25faf7dd..c9c789c9 100644 --- a/scripts/migrate_fa_to_lucide.py +++ b/scripts/migrate_fa_to_lucide.py @@ -107,6 +107,9 @@ FA_TO_LUCIDE = { 'fa-user-ninja': 'UserRound', 'fa-user-tie': 'UserRound', 'fa-video': 'Video', + 'fa-archive': 'Archive', + 'fa-link-slash': 'Unlink', + 'fa-question-circle': 'HelpCircle', } # Skip modifiers — not real icon names diff --git a/src/routes/core/ae_comp__person_obj_tbl.svelte b/src/routes/core/ae_comp__person_obj_tbl.svelte index 808de963..a9667afc 100644 --- a/src/routes/core/ae_comp__person_obj_tbl.svelte +++ b/src/routes/core/ae_comp__person_obj_tbl.svelte @@ -14,6 +14,7 @@ slct, slct_trigger } from '$lib/stores/ae_stores'; + import { Building2, ListOrdered, Mail, Unlink, User, UserCheck } from 'lucide-svelte'; // import { core_func } from '$lib/ae_core_functions'; // import { events_loc, events_sess, events_slct, events_trigger, events_trig_kv } from '$lib/stores/ae_events_stores'; // import { events_func } from '$lib/ae_events_functions'; @@ -54,7 +55,7 @@ class="text-3xl font-bold bg-success-100 px-4 border rounded-lg border-success-200" title="Count {$lq_kv__person_obj_li.length ?? 'None'}" > - + {$lq_kv__person_obj_li.length ?? 'None'} {/if} @@ -77,7 +78,7 @@ {#each $lq_kv__person_obj_li as person_obj (person_obj?.person_id_random)} - + - + {#if person_obj?.primary_email} - + {@html person_obj?.affiliations ?? ae_snip.html__not_set} @@ -113,7 +114,7 @@ {#if person_obj?.user_id_random}
- + {:else} - + Not Linked {/if} diff --git a/src/routes/core/people/[person_id]/+page.svelte b/src/routes/core/people/[person_id]/+page.svelte index 58f361c7..71078a08 100644 --- a/src/routes/core/people/[person_id]/+page.svelte +++ b/src/routes/core/people/[person_id]/+page.svelte @@ -33,7 +33,7 @@ import { qry_ae_obj_li__event } from '$lib/ae_events/ae_events__event'; import { qry__post } from '$lib/ae_posts/ae_posts__post'; import { qry__activity_log } from '$lib/ae_core/ae_core__activity_log'; - import { Users, Link, Unlink, UserPlus, ShieldCheck, User, Calendar, MessageSquare, History, Activity, Edit, Eye } from 'lucide-svelte'; + import { Activity, ArrowLeft, Calendar, Edit, Eye, HelpCircle, History, Link, LoaderCircle, MessageSquare, ShieldCheck, Unlink, User, UserPlus, Users } from 'lucide-svelte'; interface Props { data: any; @@ -177,7 +177,7 @@ >
- + Back to People @@ -204,7 +204,7 @@ class={ae_snip.classes__core_menu__button} title="Help and information about the person page" > - + {#if $ae_loc.person.show_content__person_page_help} Hide {:else} @@ -237,7 +237,7 @@ class:hidden={!$ae_loc.person.show_content__person_page_help} title="Help and information about the session search" > - + {#if $ae_loc.person.show_content__person_page_help} Hide {:else} @@ -403,7 +403,7 @@ {#if !$lq__person_obj}
- + Loading Person...
{:else if is_editing} diff --git a/src/routes/core/person_view.svelte b/src/routes/core/person_view.svelte index 25a6cea0..0f3944f4 100644 --- a/src/routes/core/person_view.svelte +++ b/src/routes/core/person_view.svelte @@ -27,6 +27,11 @@ slct_trigger } from '$lib/stores/ae_stores'; import { db_core } from '$lib/ae_core/db_core'; + import { + Archive, BookOpen, Building2, Check, Eye, EyeOff, Fingerprint, + IdCard, Key, LoaderCircle, Mail, Save, Star, Tag, ToggleLeft, + ToggleRight, TriangleAlert, User, UserRound + } from 'lucide-svelte'; // import { db_events } from "$lib/db_events"; // import { events_loc, events_sess, events_slct, events_trigger } from '$lib/stores/ae_events_stores'; // import { events_func } from '$lib/ae_events_functions'; @@ -101,7 +106,7 @@ allow_null={true} on_success={() => core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + External ID: {@html $lq__person_obj.external_id ?? ae_snip.html__not_set} @@ -118,7 +123,7 @@ allow_null={true} on_success={() => core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + External System ID: {@html $lq__person_obj.external_sys_id ?? ae_snip.html__not_set} @@ -127,7 +132,7 @@
  • - + core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + {#if $lq__person_obj.primary_email} core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + {@html $lq__person_obj.affiliations ?? 'affiliations' + ae_snip.html__not_set} @@ -206,7 +211,7 @@ allow_null={true} on_success={() => core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + {@html $lq__person_obj.professional_title && $lq__person_obj.professional_title.length @@ -225,7 +230,7 @@ allow_null={true} on_success={() => core_func.load_ae_obj_id__person({ api_cfg: $ae_api, person_id: $lq__person_obj?.person_id_random, log_lvl: 1 })} > - + Passcode: {@html $lq__person_obj.passcode ?? 'passcode' + ae_snip.html__not_set} @@ -247,13 +252,14 @@ class="btn btn-sm preset-tonal-warning" > {#if $ae_loc.trusted_access} - {@html $lq__person_obj?.hide - ? ' Unhide?' - : ' Hide?'} + {#if $lq__person_obj?.hide} + Unhide? + {:else} + Hide? + {/if} {:else} - {@html $lq__person_obj?.hide - ? ' Unarchive' - : ' Archive'} + + {$lq__person_obj?.hide ? 'Unarchive' : 'Archive'} {/if} @@ -270,13 +276,17 @@ class="btn btn-sm preset-tonal-warning" > {#if $ae_loc.trusted_access} - {@html $lq__person_obj?.enable - ? ' Disable?' - : ' Enable?'} + {#if $lq__person_obj?.enable} + Disable? + {:else} + Enable? + {/if} {:else} - {@html $lq__person_obj?.enable - ? ' Disable' - : ' Enable'} + {#if $lq__person_obj?.enable} + Disable + {:else} + Enable + {/if} {/if} @@ -292,14 +302,11 @@ }} class="btn btn-sm preset-tonal-warning" > + {#if $ae_loc.trusted_access} - {@html $lq__person_obj?.priority - ? ' Not Priority?' - : ' Priority?'} + {$lq__person_obj?.priority ? 'Not Priority?' : 'Priority?'} {:else} - {@html $lq__person_obj?.priority - ? ' Not Priority' - : ' Priority'} + {$lq__person_obj?.priority ? 'Not Priority' : 'Priority'} {/if} @@ -315,14 +322,11 @@ }} class="btn btn-sm preset-tonal-warning" > + {#if $ae_loc.trusted_access} - {@html $lq__person_obj?.allow_auth_key - ? ' Not Allow Auth Key?' - : ' Allow Auth Key?'} + {$lq__person_obj?.allow_auth_key ? 'Not Allow Auth Key?' : 'Allow Auth Key?'} {:else} - {@html $lq__person_obj?.allow_auth_key - ? ' Not Allow Auth Key' - : ' Allow Auth Key'} + {$lq__person_obj?.allow_auth_key ? 'Not Allow Auth Key' : 'Allow Auth Key'} {/if}
  • @@ -330,7 +334,7 @@
  • @@ -359,9 +363,9 @@ : 0} characters {#if ae_tmp.valid__data_json} - + {:else} - + Invalid JSON {/if}

    @@ -396,12 +400,12 @@ }} > {#await ae_promises.update__person_obj} - + {:then} {#if ae_tmp.value__data_json == $lq__person_obj.data_json} - + {:else} - + {/if} {/await} Save JSON