mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-06 12:52:04 +00:00
feat(tui-v2): implement full-screen Settings and Maximized Inspector screens
Replaced the crowded side-board settings with a dedicated SettingsScreen pushed via push_screen(). Added InspectorScreen for maximized entry details (bound to 'z' key). Added required CSS for full-screen layout. Updated palette and action strip to route to these new screens. Updated interactive agent test to verify screen transitions.
This commit is contained in:
1 parent
214ca0ec55
commit
ac4b3b468b
2 files changed
+176
-18
No files matched your search
@@ -291,11 +291,36 @@ async def run_full_walkthrough():
|
||||
|
||||
# Click 'Settings (S)' at x=5, y=1
|
||||
app.on_click(MockEvent("action-strip", 5, 1))
|
||||
await pilot.pause(0.5)
|
||||
await pilot.pause(1.0)
|
||||
|
||||
# Check if Settings Board opened
|
||||
inspector_heading = str(app.query_one('#inspector-heading').render())
|
||||
print(f" [OK] Settings Board opened via click: {'Settings Board' in inspector_heading}")
|
||||
# Check if SettingsScreen was pushed
|
||||
print(f" [OK] SettingsScreen pushed via click: {app.screen.__class__.__name__.endswith('SettingsScreen')}")
|
||||
# Return to main
|
||||
await pilot.press('escape')
|
||||
await pilot.pause(1.0)
|
||||
|
||||
print("\n--- PHASE 5: Full-screen UX ---")
|
||||
# 1. Settings Screen
|
||||
print(" Testing full-screen settings via shift+s...")
|
||||
await pilot.press('shift+s')
|
||||
await pilot.pause(1.0)
|
||||
print(f" [OK] SettingsScreen pushed: {app.screen.__class__.__name__.endswith('SettingsScreen')}")
|
||||
await pilot.press('escape')
|
||||
await pilot.pause(1.0)
|
||||
# Main app class name check
|
||||
print(f" [DEBUG] Current screen class: {app.screen.__class__.__name__}")
|
||||
print(f" [OK] Returned to main vault: {app.screen.__class__.__name__.endswith('SeedPassTuiV2') or 'Screen' in app.screen.__class__.__name__}")
|
||||
|
||||
# 2. Maximize Inspector
|
||||
print(" Testing maximized inspector via z...")
|
||||
app._show_entry(1)
|
||||
await pilot.pause()
|
||||
await pilot.press('z')
|
||||
await pilot.pause(1.0)
|
||||
print(f" [OK] InspectorScreen pushed: {app.screen.__class__.__name__.endswith('InspectorScreen')}")
|
||||
await pilot.press('escape')
|
||||
await pilot.pause(1.0)
|
||||
print(f" [OK] Returned to main vault: {app.screen.__class__.__name__.endswith('SeedPassTuiV2') or 'Screen' in app.screen.__class__.__name__}")
|
||||
|
||||
print("\n--- WALKTHROUGH COMPLETE ---")
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user