Add Environment Config tab to dev TUI#947
Merged
Soner (shyim) merged 6 commits intonextfrom Apr 2, 2026
Merged
Conversation
Adds a third "Config" tab to the development TUI that allows users to configure Docker environment settings without leaving the terminal: - PHP version selection (8.2, 8.3, 8.4) - Node.js version selection (22, 24) - PHP profiler selection (none, xdebug, blackfire, tideways, pcov, spx) - Profiler-specific credential inputs (Blackfire server ID/token, Tideways API key) - Save & Regenerate action that persists to .shopware-project.yml The tab uses arrow keys to navigate fields, left/right to cycle select values, and enter to edit text inputs or save. Credential fields are conditionally shown based on the selected profiler. https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx
Credentials (Blackfire server ID/token, Tideways API key) are now written to the local config file instead of the main project config. This keeps secrets out of version control while still being merged at read time via the existing config override mechanism. - Add WriteLocalConfig() to shop package - Split ApplyToConfig into non-sensitive (main) and LocalConfig (local) - Update save handler to write both files https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx
The %-20s format specifier doesn't account for ANSI escape codes in styled strings, causing labels and values to run together. Switch to lipgloss Width-based alignment (matching kvKeyStyle in tui/labels.go) for correct visual spacing. https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx
- Extract repeated string literals into constants (profilerBlackfire, profilerTideways, keyLeft, keyRight) - Add exhaustive switch cases or nolint directives where appropriate - Ensure import grouping follows gci Standard/Default/Prefix convention https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx
- Extract updateDashboardKeys and updateConfigTab from updateKeyPress to reduce cyclomatic complexity below the gocyclo threshold of 30 - Convert if-else chain in config tab View to switch statement (gocritic) https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a new "Config" tab to the development TUI that allows users to configure Docker environment settings (PHP version, Node.js version, and profiler selection) with support for profiler-specific credentials.
Key Changes
New Config Tab UI (
internal/devtui/tab_config.go):ConfigModelto manage environment configuration stateConfiguration Persistence:
WriteLocalConfig()ininternal/shop/config.goto write credentials to.shopware-project.local.yml(excluded from version control)Tab Navigation:
3key or Tab navigation)User Interaction:
Comprehensive Tests (
internal/devtui/tab_config_test.go):Notable Implementation Details
https://claude.ai/code/session_01U7yvsUhc6vAv349PveRYxx