feat(desktop): add terminal presets system

Closed
KI
1y ago
+464-1

Summary

  • Add terminal presets to .superset/config.json for quick-launch preconfigured terminals
  • Preset buttons appear in sidebar below window list
  • Support creating presets via modal ("+ New Preset" button) or "Save as Preset" from terminal context menu
  • Presets can specify custom working directory and startup commands
  • Right-click to delete presets

Config Schema

{
  "setup": [],
  "teardown": [],
  "terminalPresets": [
    {
      "name": "Dev Server",
      "cwd": "apps/website",
      "commands": "bun dev"
    },
    {
      "name": "Test Watch",
      "commands": ["bun install", "bun test:watch"]
    }
  ]
}

Test plan

  • Create a preset via "+ New Preset" button in sidebar
  • Create a preset via "Save as Preset" from terminal context menu
  • Click preset button to launch terminal with custom cwd and commands
  • Verify relative paths work (both apps/website and ./apps/website)
  • Delete preset via right-click context menu
  • Verify presets persist in .superset/config.json

🤖 Generated with Claude Code

Summary by CodeRabbit

Release Notes

  • New Features
    • Terminal presets: Save and reuse terminal configurations with custom commands and working directories
    • Preset management: Create new presets from active terminals and delete presets via a dedicated sidebar panel
    • Quick launch: Select any saved preset to instantly open a new terminal with its configured settings

✏️ Tip: You can customize this high-level summary in your review settings.