Skip to content

Commit b251c55

Browse files
authored
Merge pull request #647 from lelabdev/594-dashboard-family
refactor(ui): inline single-use PasswordInput reveal label (#594 dashboard family)
2 parents 9083736 + 16f8cf0 commit b251c55

5 files changed

Lines changed: 31 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svforge": patch
3+
---
4+
5+
Dashboard `PasswordInput`: inline the single-use `toggleLabel` derivation into the reveal control's `aria-label` (same reactive behavior, one less intermediate). Dashboard family audit for #594: no other verified change — AdminLayout, AppDialog, AvatarInitial, Feedback and the dashboard routes already use Skeleton v5 components/shared primitives and satisfy the enabled/disabled pointer-cursor contract.

‎graphify-out/graph.json‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27669,6 +27669,15 @@
2766927669
"source_location": "L1",
2767027670
"_origin": "ast"
2767127671
},
27672+
{
27673+
"id": "changeset_594_dashboard_password_toggle",
27674+
"label": "594-dashboard-password-toggle.md",
27675+
"file_type": "document",
27676+
"node_kind": "page",
27677+
"source_file": ".changeset/594-dashboard-password-toggle.md",
27678+
"source_location": "L1",
27679+
"_origin": "ast"
27680+
},
2767227681
{
2767327682
"id": "changeset_dashboard_admin_polish",
2767427683
"label": "dashboard-admin-polish.md",
@@ -34541,6 +34550,14 @@
3454134550
"external": true,
3454234551
"source_file": "",
3454334552
"_origin": "semantic"
34553+
},
34554+
{
34555+
"id": "home_loops_1dev_svforge_hub_svforge_worktrees_594_dashboard_packages_jobs_templates_src_lib_server_test_db",
34556+
"label": "home_loops_1dev_svforge_hub_svforge_worktrees_594_dashboard_packages_jobs_templates_src_lib_server_test_db",
34557+
"file_type": "concept",
34558+
"type": "external",
34559+
"external": true,
34560+
"source_file": ""
3454434561
}
3454534562
],
3454634563
"links": [
@@ -43231,7 +43248,7 @@
4323143248
},
4323243249
{
4323343250
"source": "packages_jobs_templates_src_lib_server_jobs_jobs_claim_test",
43234-
"target": "repo_packages_jobs_templates_src_lib_server_test_db",
43251+
"target": "home_loops_1dev_svforge_hub_svforge_worktrees_594_dashboard_packages_jobs_templates_src_lib_server_test_db",
4323543252
"relation": "imports_from",
4323643253
"context": "import",
4323743254
"deferred": true,

‎graphify-out/manifest.json‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
"semantic_hash": ""
489489
},
490490
"packages/svforge/src/templates.ts": {
491-
"ast_hash": "7a88610d3f6514d92f5f2d559425033e",
491+
"ast_hash": "dcc81e0123eafd006b4dc219585155f4",
492492
"semantic_hash": ""
493493
},
494494
"packages/svforge/src/upgrade.ts": {
@@ -1996,7 +1996,7 @@
19961996
"semantic_hash": ""
19971997
},
19981998
"packages/svforge/templates/dashboard/src/lib/components/svforge/ui/PasswordInput.svelte": {
1999-
"ast_hash": "207ff69bc628ee0ff444d21ddd2ec43b",
1999+
"ast_hash": "18df06c0251186ada749a0f57324365d",
20002000
"semantic_hash": ""
20012001
},
20022002
"scripts/docker-builder-changed.mjs": {
@@ -2178,5 +2178,9 @@
21782178
".changeset/594-base-control-affordance.md": {
21792179
"ast_hash": "f0e5647799063f9adf1d9791e6d63cff",
21802180
"semantic_hash": ""
2181+
},
2182+
".changeset/594-dashboard-password-toggle.md": {
2183+
"ast_hash": "9ad7a71aa113d58cdcd31e98038eb330",
2184+
"semantic_hash": ""
21812185
}
21822186
}

‎packages/svforge/src/templates.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎packages/svforge/templates/dashboard/src/lib/components/svforge/ui/PasswordInput.svelte‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
}: Props = $props();
4545
4646
let visible = $state(false);
47-
const toggleLabel = $derived(visible ? m.common_hide_password() : m.common_show_password());
4847
</script>
4948

5049
<Input
@@ -65,7 +64,7 @@
6564
variant="ghost"
6665
color="surface"
6766
class="size-11 shrink-0 p-0"
68-
aria-label={toggleLabel}
67+
aria-label={visible ? m.common_hide_password() : m.common_show_password()}
6968
aria-pressed={visible}
7069
{disabled}
7170
onclick={() => (visible = !visible)}

0 commit comments

Comments
 (0)