Repository navigation
refactor(ui): inline single-use PasswordInput reveal label (#594 dashboard family) - #647
Merged
Merged
Conversation
…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).
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
lib/.../layout/AdminLayout.svelteButtonfor collapse/sign-out,Dialog.Trigger/CloseTriggerwith explicitcursor-pointer, native nav anchors; unchangedlib/.../ui/AppDialog.svelteDialogcomposition; close trigger already declarescursor-pointer; unchangedlib/.../ui/AvatarInitial.sveltelib/.../ui/Feedback.svelteButton; unchangedlib/.../ui/PasswordInput.svelte$derivedtoggleLabelinlined into the reveal control'saria-label(still reactive, one line less)routes/(app)/+layout.svelteAdminLayout; unchangedroutes/(app)/admin/+page.sveltePageHeader+Card+ Skeleton presets; unchangedroutes/(app)/admin/settings/+page.sveltePageHeader+Card/Input/Button; unchangedroutes/(app)/admin/users/+page.svelteTable+AppDialog+ sharedButton(disabled state handled by the primitive); unchangedroutes/+layout.svelteroutes/login/+page.svelteAuthLayout+Input/PasswordInput/Button(loading = disabled affordance); unchangedroutes/setup/+page.svelteNo 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: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.svforge: patch),templates.tsregenerated 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);
#593remains the shared-Button derivation cleanup.Refs #594 (family 2).