diff --git a/src/routes/core/+layout.svelte b/src/routes/core/+layout.svelte index 1f3d36ef..ca532283 100644 --- a/src/routes/core/+layout.svelte +++ b/src/routes/core/+layout.svelte @@ -38,10 +38,10 @@ onMount(() => {
+ class="ae_core m-auto flex h-full max-h-full max-w-6xl flex-col gap-1 overflow-auto p-4"> {#if $ae_loc.manager_access} -
+
{@render children?.()}
{:else}
-
+ class="flex grow flex-col items-center justify-center space-y-4 py-20 text-center"> +

Access Restricted

diff --git a/src/routes/core/+page.svelte b/src/routes/core/+page.svelte index a3dc7fac..7f0a6fb8 100644 --- a/src/routes/core/+page.svelte +++ b/src/routes/core/+page.svelte @@ -25,11 +25,11 @@ $effect(() => { }); -
+
+ class="bg-surface-50-900-token border-surface-500/10 flex flex-wrap items-center justify-between gap-4 rounded-2xl border p-6 shadow-xl">
-
+
@@ -37,42 +37,42 @@ $effect(() => { Æ Core Management

+ class="text-xs font-bold tracking-widest uppercase opacity-50"> System Infrastructure & Identity

+ class="border-surface-500/10 min-w-50 rounded-xl border bg-black/5 p-3">

+ class="mb-1 flex items-center gap-1 text-[10px] font-black tracking-widest uppercase opacity-60"> Active Account

-

+

{$ae_loc.account_name ?? 'Loading...'}

+ class="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4">
+ class="card preset-tonal-primary group flex flex-col justify-between space-y-4 p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-primary-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Accounts

-

+

Manage client accounts and high-level system settings.

Manage @@ -80,22 +80,22 @@ $effect(() => {
+ class="card preset-tonal-secondary group flex flex-col justify-between space-y-4 p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-secondary-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Sites

-

+

Configure sites and domains associated with the active account.

Manage @@ -103,21 +103,21 @@ $effect(() => {
+ class="card preset-tonal-error group flex flex-col justify-between space-y-4 p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-error-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Users

-

+

Manage system access, permissions, and user credentials.

Manage @@ -125,21 +125,21 @@ $effect(() => {
+ class="card preset-tonal-warning group flex flex-col justify-between space-y-4 p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-warning-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

People

-

+

Search and manage person records and their user linking.

Manage @@ -147,21 +147,21 @@ $effect(() => {
+ class="card preset-tonal-surface group border-surface-500/10 flex flex-col justify-between space-y-4 border p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-surface-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Addresses

-

+

Manage physical locations, shipping, and billing addresses.

Manage @@ -169,22 +169,22 @@ $effect(() => {
+ class="card preset-tonal-surface group border-surface-500/10 flex flex-col justify-between space-y-4 border p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-surface-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Contacts

-

+

Maintain support contacts, office numbers, and digital links.

Manage @@ -192,22 +192,22 @@ $effect(() => {
+ class="card preset-tonal-success group flex flex-col justify-between space-y-4 p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-success-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Activity Logs

-

+

Monitor system actions and historical changes for the account.

View Logs @@ -215,21 +215,21 @@ $effect(() => {
+ class="card preset-tonal-surface group border-surface-500/10 flex flex-col justify-between space-y-4 border p-6 shadow-lg transition-all hover:brightness-110">
+ class="bg-surface-500/20 rounded-lg p-2 transition-transform group-hover:scale-110">

Lookups

-

+

View system lookup tables (countries, time zones, etc).

View diff --git a/src/routes/core/accounts/+page.svelte b/src/routes/core/accounts/+page.svelte index 7823462b..8a70e485 100644 --- a/src/routes/core/accounts/+page.svelte +++ b/src/routes/core/accounts/+page.svelte @@ -71,17 +71,17 @@ async function handle_add_account() { } -
+
+ class="bg-surface-50-900-token border-surface-500/10 flex flex-wrap items-center justify-between gap-4 rounded-xl border p-4 shadow-lg">
-
+

Account Management

+ class="text-xs font-bold tracking-widest uppercase opacity-50"> Client Entities & Billing

@@ -94,44 +94,44 @@ async function handle_add_account() {
-
-
+ class="card preset-tonal-surface border-surface-500/10 space-y-4 border p-6 shadow-xl"> +
+
Search Accounts
+ class="bg-surface-200-700-token border-surface-500/20 group focus-within:ring-primary-500/50 flex overflow-hidden rounded-lg border shadow-inner transition-all focus-within:ring-2">
+ class="bg-surface-300-600-token border-surface-500/20 flex items-center justify-center border-r px-4">
-
+
Status @@ -158,59 +158,59 @@ async function handle_add_account() {
{#if loading} -
-
+
+
{:else if filtered_li.length === 0}
+ class="card preset-tonal-surface border-surface-500/20 rounded-2xl border-2 border-dashed p-12 text-center">

No Accounts Found

-

+

Try adjusting your filters or add a new client account.

{:else}
+ class="card preset-tonal-surface border-surface-500/10 border p-6 shadow-xl">

+ class="h4 border-surface-500/30 mb-6 flex items-center gap-2 border-b pb-2 font-bold"> Directory Results {filtered_li.length} found

-
+
{#each filtered_li as acct (acct.account_id_random)}
+ class="card preset-tonal-surface border-surface-500/10 hover:border-primary-500/30 group relative space-y-4 border p-5 shadow-md transition-all">
{#if acct.hide} Hidden {/if} + : 'preset-filled-error'} text-[8px] font-bold uppercase shadow-sm"> {acct.enable ? 'Active' : 'Disabled'}
+ class="avatar preset-filled-primary flex h-12 w-12 items-center justify-center rounded-lg shadow-inner transition-transform group-hover:scale-110">
-

+

{acct.name}

+ class="font-mono text-[10px] font-bold tracking-tighter uppercase opacity-50"> Code: {acct.code || '--'}

@@ -218,7 +218,7 @@ async function handle_add_account() {
+ class="flex items-center gap-2 rounded-lg bg-black/5 p-2"> @@ -228,17 +228,17 @@ async function handle_add_account() { ).toLocaleDateString()}
+ class="flex items-center gap-2 rounded-lg bg-black/5 p-2"> - {acct.account_id_random}
Manage Account diff --git a/src/routes/core/accounts/[account_id]/+page.svelte b/src/routes/core/accounts/[account_id]/+page.svelte index a8ed15e6..a350e79e 100644 --- a/src/routes/core/accounts/[account_id]/+page.svelte +++ b/src/routes/core/accounts/[account_id]/+page.svelte @@ -80,9 +80,9 @@ async function handle_delete() { } -
+
+ class="bg-surface-50-900-token border-surface-500/10 flex items-center justify-between rounded-xl border p-4 shadow-lg">
-
+

@@ -110,7 +110,7 @@ async function handle_delete() { onclick={handle_save} disabled={loading || saving}> {#if saving} - + {:else} {/if} @@ -120,22 +120,22 @@ async function handle_delete() {

{#if loading} -
-
+
+
{:else if account} -
+
+ class="card preset-tonal-surface border-surface-500/10 space-y-4 border p-6 shadow-xl">

+ class="h4 border-surface-500/30 flex items-center gap-2 border-b pb-2 font-bold"> Basic Information

Account Name
Short Name
Account Code
Description