feat(settings): show a saved default token as a mask and say what Save will do #112

Merged
KofTwentyTwo merged 3 commits from feat/default-token-settings-2 into main 2026-10-10 23:29:56 +00:00
3 Commits
Author SHA1 Message Date
james.maesandClaude Fable 5.1 a492d21664 fix(ui): open saved accounts loaded, show the edited organization, tidy the table and size the window to the screen
Reviewed on screen with the owner. A saved account landed on the connect card
with an empty organization box; WorkspaceViewModel.LoadRepositoriesIfSaved
(called by the shell when a workspace is shown, unit-tested) now loads a saved
account's repositories straight away, and the connect form re-applies the
organization whenever the lookup replaces the list. The edit wizard showed step
3 blank: the ItemsSource refresh after validation let the two-way bound combo
write "" into Organization (now captured and restored in the view model, with
a test), and the editable combo is filled by selecting the matching item,
which avoids the placeholder-over-text and self-opening-dropdown quirks of
writing text into a focused box.

Table: the TableView theme padded the always-visible row-details presenter
8px on every side, leaving an empty band under each row (resource overridden
to 0; the details template pads itself); select checkboxes are centred in
their column; the Archived header no longer clips. Pane: a "Default" tag with
the full meaning in the tooltip, and names trim before the tag. Window: the
default size follows the monitor's work area (70%, clamped, centred) instead
of a fixed 1000x750.

Part of #101, #102

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-10-10 18:24:49 -05:00
james.maesandClaude Fable 5.1 2545d1c125 fix(ui): mask the token in effect on the connect card; keep the Settings Remove link visible
Reviewed on screen: the Quick Sync (and account) connect card still showed an empty token box with a 'using the saved default token' placeholder, the same empty-means-saved pattern Settings had, so it now shows the fixed mask with the explanation in the tooltip and the organization placeholder no longer asks for a token the box already has. In Settings the Remove link was clipped once the caption grew; caption and link now share a grid.

Part of #101

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-10-10 18:24:49 -05:00
james.maesandClaude Fable 5.1 c94e2319a0 feat(settings): show a saved default token as a mask and say what Save will do
A saved default token left the Settings box empty, which reads as "nothing
saved". The box now shows a fixed mask (a constant, never the token) while a
token is saved; typing replaces it, clearing the box or the Remove link removes
it, and leaving the mask keeps it. SettingsTokenState holds that logic so the
dialog only renders: the caption under the box names the consequence of Save
and who depends on the token (Quick Sync and the accounts that use it), and a
removal that would break accounts turns the caption critical and names them,
so Save is an informed confirmation. The replacement note tells the user the
dependent accounts rotate with it.

Closes #101

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: James Maes <james@kof22.com>
2026-10-10 18:24:48 -05:00