Add startup configuration and remove deck creation UI

- Created startup configuration system for automatic relay and account setup
  - New StartupConfig struct with optional relay and nsec fields
  - Load/save functions for startup_config.json
  - Config file location: ~/.local/share/notedeck/settings/startup_config.json

- Integrated startup config into app initialization
  - Automatically adds account from nsec if provided
  - Automatically connects to relay if provided
  - Loads before default relay configuration

- Removed all deck creation functionality from side panel
  - Removed NewDeck, SwitchDeck, and EditDeck actions
  - Removed deck UI elements (add button, deck list)
  - Simplified side panel to show only essential controls
  - Cleaned up unused code (DECK_ICON_SIZE, unused imports)

- Added documentation
  - STARTUP_CONFIG.md with detailed usage instructions
  - startup_config.json.example with configuration template

This allows users to configure their preferred relay and identity once in a
config file rather than having to set it up each time the application starts.
This commit is contained in:
Claude
2025-11-15 10:34:50 +00:00
parent 27ca042ac3
commit 73042a8bd4
9 changed files with 229 additions and 184 deletions

View File

@@ -0,0 +1,4 @@
{
"relay": "wss://relay.damus.io",
"nsec": "nsec1your_private_key_here"
}