Polish TUI v3 maintenance and profile screens

- maintenance.py: refine CSS visual hierarchy (rounded intro card borders,
  red-tinted danger buttons, consistent panel/footer margins)
- profile.py: clearer label text, improved intro and confirmation messages
- security.py: updated intro text and footer hints for both screens
- pubkey.py: rename DEFAULT_CSS to CSS, update intro and footer text
- relays.py: rename DEFAULT_CSS to CSS, add intro card, update footer/status
- test_tui_v3_smoke.py: update assertions to match new text

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Sonnet 4.6 committed 2026-03-06 13:30:08 -05:00
1 parent ca31abf33e
commit 50d7b1827d
6 files changed
+42 -40

No files matched your search

+3 -3
View File
@@ -648,7 +648,7 @@ async def test_tui3_change_password_and_seed_backup_flows_use_vault_service() ->
await pilot.pause()
assert isinstance(app.screen, ChangePasswordScreen)
assert (
"current password is required"
"current password to authorize"
in str(
app.screen.query_one("#change-password-intro", Static).render()
).lower()
@@ -691,7 +691,7 @@ async def test_tui3_profile_management_switch_and_remove_flow_use_profile_servic
await pilot.pause()
assert isinstance(app.screen, ProfileManagementScreen)
intro = str(app.screen.query_one("#profile-intro", Static).render()).lower()
assert "remove a non-active profile" in intro
assert "removing a profile requires confirmation" in intro
listing = str(app.screen.query_one("#profile-list", Static).render())
assert "Primary Ops Seed" in listing
assert "Recovery Seed" in listing
@@ -711,7 +711,7 @@ async def test_tui3_profile_management_switch_and_remove_flow_use_profile_servic
await pilot.pause()
assert profile.remove_calls == []
status = str(app.screen.query_one("#profile-status", Static).render())
assert "Press Remove again" in status
assert "press Remove again" in status
app.screen.on_button_pressed(
SimpleNamespace(button=SimpleNamespace(id="profile-remove"))
)