mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 16:02:05 +00:00
1.3 KiB
1.3 KiB
Memory Update — SeedPass TUI v3 Development — 2026-03-03
Key findings
- Nostr Relay Management is now implemented in TUI v3 (
src/seedpass/tui_v3/screens/relays.py) via therelay-listpalette command. - Textual UI updates from asynchronous workers requires executing from the main thread using
self.app.call_from_thread(), otherwise you will encounter unexpected thread safety warnings crashing the app. This was correctly used forsync_service.sync()background operations. - The
pytestexecution of parity tests natively sources from the local environment. Ensure testing inside the virtual environment properly maps module paths (e.g., usingPYTHONPATH=. pytest ...from thesrcdirectory) whensrc-layoutpaths conflict with oldsite-packagesinstalls, which causes confusingAttributeErrortracebacks on customized files. - The
SettingsScreenand TUI v3 components now rely on the standard Textualapp.notify()for the "Unified snackbar/toast system" — giving uniform, built-in styling for service feedback.
Patterns / reusable knowledge
- Direct configuration modification of arrays (like
relays) should favor using dedicated service adapters over directConfigServicemodifications if they aren't fully wrapped for list operations. Usingapp.services["nostr"]for relay additions/removals is the preferred pattern.