diff --git a/src/lib/ui/AccountSessions.svelte b/src/lib/ui/AccountSessions.svelte index 11b4a3fd..f8ee60f8 100644 --- a/src/lib/ui/AccountSessions.svelte +++ b/src/lib/ui/AccountSessions.svelte @@ -44,18 +44,18 @@
loading sessions...
{:else if account_sessions.list.error} -{account_sessions.list.error}
+{account_sessions.list.error}
{:else} {@const revoke_all_error = account_sessions.revoke_all.error} {#if revoke_all_error} -{revoke_all_error}
+{revoke_all_error}
{/if} {#if account_sessions.active_count > 1}{truncate_uuid(row.id)}
{:else if column.key === 'created_at'}
@@ -90,7 +90,7 @@
{revoking ? 'revoking…' : 'revoke'}
{#if revoke_error}
- {revoke_error}
+ {revoke_error}
{/if}
{:else if column.format}
{column.format(row[column.key], row)}
diff --git a/src/lib/ui/AdminAccounts.svelte b/src/lib/ui/AdminAccounts.svelte
index a1897a9b..998da6fe 100644
--- a/src/lib/ui/AdminAccounts.svelte
+++ b/src/lib/ui/AdminAccounts.svelte
@@ -44,7 +44,7 @@
- {admin_accounts.account_count} account{admin_accounts.account_count === 1 ? '' : 's'}
@@ -66,7 +66,7 @@ {#if admin_accounts.list.loading}loading accounts...
{:else if admin_accounts.list.error} -{admin_accounts.list.error}
+{admin_accounts.list.error}
{:else}loading audit log...
{:else if audit_log.list.error} -{audit_log.list.error}
+{audit_log.list.error}
{:else}- {admin_invites.unclaimed_count} unclaimed / {admin_invites.invite_count} total
@@ -103,7 +103,7 @@ {#if admin_invites.list.error || admin_invites.create.error} -{admin_invites.list.error ?? admin_invites.create.error}
+{admin_invites.list.error ?? admin_invites.create.error}
{/if} {#if admin_invites.list.loading} @@ -113,7 +113,7 @@ {#snippet cell(column, row)} {#if column.key === 'claimed_at'} {#if row.claimed_at} - claimed + claimed {#if row.claimed_by_username} by {row.claimed_by_username} @@ -142,7 +142,7 @@ pending={admin_invites.remove.loading(row.id)} /> {#if remove_error} - {remove_error} + {remove_error} {/if} {:else} - diff --git a/src/lib/ui/AdminOverview.svelte b/src/lib/ui/AdminOverview.svelte index 44365d49..a06afd44 100644 --- a/src/lib/ui/AdminOverview.svelte +++ b/src/lib/ui/AdminOverview.svelte @@ -92,7 +92,7 @@ {#if accounts.list.loading}loading...
{:else if accounts.list.error} -{accounts.list.error}
+{accounts.list.error}
{:else}loading...
{:else if sessions.list.error} -{sessions.list.error}
+{sessions.list.error}
{:else}loading...
{:else if invites.list.error} -{invites.list.error}
+{invites.list.error}
{:else}loading...
{:else if audit_log.list.error} -{audit_log.list.error}
+{audit_log.list.error}
{:else if recent_events.length === 0}no events
{:else} @@ -221,7 +221,7 @@ >{event.event_type}
{#if event.outcome === 'failure'}
- fail
+ fail
{/if}
loading...
{:else if audit_log.list.error} -{audit_log.list.error}
+{audit_log.list.error}
{:else}loading...
{:else if app_settings.list.error} -{app_settings.list.error}
+{app_settings.list.error}
{:else}loading role_grant history...
{:else if audit_log.role_grant_history.error} -{audit_log.role_grant_history.error}
+{audit_log.role_grant_history.error}
{:else}- {admin_sessions.active_count} active + {admin_sessions.active_count} active
{/if} {#if admin_sessions.list.loading}loading sessions...
{:else if admin_sessions.list.error} -{admin_sessions.list.error}
+{admin_sessions.list.error}
{:else}loading surface...
{:else if error} -{error}
+{error}
+
3-39 chars, starts with a letter, ends with letter/number, middle allows dash/underscore
{/if} @@ -119,7 +119,7 @@ /> {#if form_state.show('password') && password && password.length < PASSWORD_LENGTH_MIN} -+
password must be at least {PASSWORD_LENGTH_MIN} characters
{/if} @@ -135,7 +135,7 @@ /> {#if form_state.show('password_confirm') && password && password_confirm && !passwords_match} -passwords do not match
+passwords do not match
{/if}{auth_state.verify_error}
+{auth_state.verify_error}
{/if} diff --git a/src/lib/ui/ConfirmButton.svelte b/src/lib/ui/ConfirmButton.svelte index c2e3dc96..8be86cde 100644 --- a/src/lib/ui/ConfirmButton.svelte +++ b/src/lib/ui/ConfirmButton.svelte @@ -130,7 +130,7 @@ {:else}{auth_state.verify_error}
+{auth_state.verify_error}
{/if} diff --git a/src/lib/ui/OpenSignupToggle.svelte b/src/lib/ui/OpenSignupToggle.svelte index 62bc1792..91ea3b58 100644 --- a/src/lib/ui/OpenSignupToggle.svelte +++ b/src/lib/ui/OpenSignupToggle.svelte @@ -40,8 +40,8 @@ {/if} {#if app_settings.list.error} -{app_settings.list.error}
+{app_settings.list.error}
{:else if app_settings.update.error} -{app_settings.update.error}
+{app_settings.update.error}
{/if}{local_error}
+{local_error}
{/if} diff --git a/src/lib/ui/RoleGrantOfferHistory.svelte b/src/lib/ui/RoleGrantOfferHistory.svelte index 69702202..0135c2f0 100644 --- a/src/lib/ui/RoleGrantOfferHistory.svelte +++ b/src/lib/ui/RoleGrantOfferHistory.svelte @@ -54,14 +54,14 @@ const status_chip_class = (status: string): string => { switch (status) { case 'accepted': - return 'chip color_b'; + return 'chip palette_b'; case 'pending': - return 'chip color_a'; + return 'chip palette_a'; case 'declined': case 'retracted': case 'superseded': case 'expired': - return 'chip color_c'; + return 'chip palette_c'; default: return 'chip'; } @@ -85,7 +85,7 @@ {#if role_grant_offers.list_history.loading}loading history...
{:else if role_grant_offers.list_history.error} -{role_grant_offers.list_history.error}
+{role_grant_offers.list_history.error}
{:else}+
{role_grant_offers.list.error ?? role_grant_offers.accept.error ?? role_grant_offers.decline.error} @@ -63,7 +63,7 @@ {#each role_grant_offers.incoming as offer (offer.id)}
+
3-39 chars, starts with a letter, ends with letter/number, middle allows dash/underscore
{/if} @@ -117,7 +117,7 @@ /> {#if form_state.show('password') && password && password.length < PASSWORD_LENGTH_MIN} -+
password must be at least {PASSWORD_LENGTH_MIN} characters
{/if} @@ -133,7 +133,7 @@ /> {#if form_state.show('password_confirm') && password && password_confirm && !passwords_match} -passwords do not match
+passwords do not match
{/if}{auth_state.verify_error}
+{auth_state.verify_error}
{/if} diff --git a/src/lib/ui/SurfaceExplorer.svelte b/src/lib/ui/SurfaceExplorer.svelte index 48e43a04..b925fd50 100644 --- a/src/lib/ui/SurfaceExplorer.svelte +++ b/src/lib/ui/SurfaceExplorer.svelte @@ -87,10 +87,10 @@ }; const auth_chip_class = (auth: RouteAuth): string => { - if (is_public_auth(auth)) return 'chip color_b'; - if (is_keeper_auth(auth)) return 'chip color_c'; - if (is_role_auth(auth)) return 'chip color_d'; - if (is_plain_authenticated_auth(auth)) return 'chip color_a'; + if (is_public_auth(auth)) return 'chip palette_b'; + if (is_keeper_auth(auth)) return 'chip palette_c'; + if (is_role_auth(auth)) return 'chip palette_d'; + if (is_plain_authenticated_auth(auth)) return 'chip palette_a'; return 'chip'; }; @@ -100,12 +100,12 @@{endpoint.path}
{endpoint.methods.length} methods
{#each endpoint.required_roles as role (role)}
- role:{role}
+ role:{role}
{/each}
{#each endpoint.allowed_origins as origin (origin)}
- {origin}
+ {origin}
{/each}
{d.category}