Skip to content

refactor(ui): inline single-use PasswordInput reveal label (#594 dashboard family) - #647

Merged
LudoLoops merged 1 commit into
mainfrom
594-dashboard-family
Oct 24, 2026
Merged

LudoLoops merged 1 commit into
mainfrom
594-dashboard-family

Conversation

@LudoLoops

Copy link
Copy Markdown
Contributor

Family 2 — Dashboard (#594)

Second independently reviewable slice of the #594 audit. Scope: the 12 Svelte files under packages/svforge/templates/dashboard/src (components + routes). Base (family 1, #646) and optional addons remain separate.

Per-file disposition

File Disposition
lib/.../layout/AdminLayout.svelte Already Skeleton/shared — Button for collapse/sign-out, Dialog.Trigger/CloseTrigger with explicit cursor-pointer, native nav anchors; unchanged
lib/.../ui/AppDialog.svelte Skeleton Dialog composition; close trigger already declares cursor-pointer; unchanged
lib/.../ui/AvatarInitial.svelte Initial already inlined; size lookup kept (clearer than nested ternary); unchanged
lib/.../ui/Feedback.svelte Skeleton tonal presets + shared dismiss Button; unchanged
lib/.../ui/PasswordInput.svelte Simplified — single-use $derived toggleLabel inlined into the reveal control's aria-label (still reactive, one line less)
routes/(app)/+layout.svelte Delegates to AdminLayout; unchanged
routes/(app)/admin/+page.svelte PageHeader + Card + Skeleton presets; unchanged
routes/(app)/admin/settings/+page.svelte PageHeader + Card/Input/Button; unchanged
routes/(app)/admin/users/+page.svelte Table + AppDialog + shared Button (disabled state handled by the primitive); unchanged
routes/+layout.svelte Locale links (native anchors); unchanged
routes/login/+page.svelte AuthLayout + Input/PasswordInput/Button (loading = disabled affordance); unchanged
routes/setup/+page.svelte Same composition; unchanged

No custom CSS added (no <style> block in the family); no Skeleton component replaced.

Pointer/disabled verification (real generated Dashboard)

Disposable PostgreSQL + seeded admin + production build/preview; desktop 1280 and mobile 390, computed cursor:

login submit .............. pointer     password reveal ......... pointer
sidebar nav link .......... pointer     sidebar collapse ........ pointer
primary header action ..... pointer     sign-out ................ pointer
Add user .................. pointer     edit action ............. pointer
dialog close .............. pointer     dialog submit ........... pointer
mobile drawer trigger ..... pointer     drawer close/nav link ... pointer
current-user status btn ... not-allowed (and disabled=true)

Checks

  • bun run test (whole repo), bun run lint, bun run typecheck, bun run build:all, node scripts/check-generated.mjs — pass.
  • bash scripts/test-scaffold.sh dashboard (CI=true, real PostgreSQL): 46 tests, schema↔runtime gate, Better Auth HTTP smoke — pass.
  • Changeset (svforge: patch), templates.ts regenerated via prebuild, Graphify updated.

Remaining (#594 stays open)

Reference screens (Base demo/landing) and the optional-addon family (OAuth buttons, NotificationsBell, TiptapToolbar, DnD, Graph, FileUpload, Blog, Audit, Chat, Toast); #593 remains the shared-Button derivation cleanup.

Refs #594 (family 2).

…board family)

Dashboard family audit (issue #594, family 2). Only one verified
simplification: `PasswordInput` derived `toggleLabel` solely to feed the
reveal control's `aria-label`; the expression is inlined (still reactive in
the markup) and the intermediate removed. Behavior covered by the existing
PasswordInput suite.

Everything else was audited and left unchanged:
- `AdminLayout` / `AppDialog`: shared Button + Skeleton Dialog triggers with
  the pointer affordance already declared (enabled), disabled handled by the
  shared Button; no custom CSS.
- `AvatarInitial`: initial is already inlined; the size lookup map stays
  (clearer than a nested ternary, not a derived).
- `Feedback`: Skeleton tonal presets + shared dismiss Button.
- Dashboard routes (login, setup, admin, users, settings, layouts): Skeleton
  components and shared primitives; the current user's status action is
  disabled and reads `cursor-not-allowed`.

Verified in a real generated Dashboard (disposable PostgreSQL, preview):
computed cursor is `pointer` for login submit, password reveal, sidebar nav
links, sidebar collapse, primary action, sign-out, Add user, dialog close and
submit, mobile drawer trigger/close/nav; the disabled current-user status
button is `not-allowed` and inert — desktop 1280 and mobile 390.

Repo suite, lint, typecheck, build:all, `test-scaffold.sh dashboard` (46 tests,
schema/runtime gate, auth HTTP smoke) pass.

Refs #594 (family 2; reference screens and addon families remain).
@LudoLoops
LudoLoops merged commit b251c55 into main Oct 24, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 24, 2026
@LudoLoops
LudoLoops deleted the 594-dashboard-family branch October 26, 2026 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant