feat(ui): Add service aside panel#141
Merged
Merged
Conversation
Add Enter keybind to open a side panel with config, env, and health tabs Switch focus between panels with \ keybind
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #141 +/- ##
==========================================
+ Coverage 89.48% 89.57% +0.09%
==========================================
Files 63 66 +3
Lines 5896 6658 +762
==========================================
+ Hits 5276 5964 +688
- Misses 487 536 +49
- Partials 133 158 +25
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds a new service “info aside” panel to the TUI (opened via enter) that displays per-service configuration, environment (.env) values, and health details, including focus switching between panes and tab navigation. This extends fuku’s interactive UI to surface more service metadata inline while also introducing a new (optional) config surface for env-file display and a new dotenv cache subscriber.
Changes:
- Add a split-pane services UI with an aside panel (config/env/health), focus toggle, tab navigation, and rendering/layout optimizations.
- Introduce a
dotenvbus subscriber + loader to parse/merge.env*files for display (without exporting values to child processes). - Update configuration schema (
services.*.env.files) and docs/examples to support the env tab.
Reviewed changes
Copilot reviewed 33 out of 34 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Documents the new aside panel and keybindings (needs alignment with actual bindings/behavior). |
| internal/config/config.go | Extends service config schema with env.files for dotenv display. |
| internal/app/ui/wire/module.go | Wires the dotenv loader into the UI model via FX. |
| internal/app/ui/wire/module_test.go | Updates UI wiring tests to provide a dotenv mock. |
| internal/app/ui/services/view.go | Renders split panels and adds caching/conditional UI elements for aside mode. |
| internal/app/ui/services/view_test.go | Adds coverage for split widths, aside visibility rules, and panel sizing behavior. |
| internal/app/ui/services/update.go | Adds key handling for opening/closing aside, tab switching, and focus toggling. |
| internal/app/ui/services/update_test.go | Adds extensive tests for aside open/close, focus/scroll routing, and resize behavior. |
| internal/app/ui/services/model.go | Stores config + dotenv loader and adds aside state, viewports, and render caches. |
| internal/app/ui/services/keys.go | Adds bindings for opening/closing aside, tab switching, and focus toggle; adds aside-specific help keymap. |
| internal/app/ui/services/keys_test.go | Validates the new keybindings and aside help keymap behavior. |
| internal/app/ui/services/helpers.go | Adds panel width computation, compact layout mode, and viewport recomputation for split view. |
| internal/app/ui/services/aside.go | Implements aside rendering (tabs, cards, truncation, scroll indicator) including env/health tabs. |
| internal/app/ui/services/aside_test.go | Adds coverage for aside content rendering, truncation, tab cycling, and env display. |
| internal/app/ui/components/theme.go | Adds placeholder color/style used by aside empty states. |
| internal/app/ui/components/styles.go | Adds muted border style and shared content top margin style. |
| internal/app/ui/components/layout.go | Refactors panel rendering to line-based output, adds border text fitting, compact layout, and metric column support. |
| internal/app/ui/components/layout_test.go | Updates/extends tests for new layout APIs and border truncation/fitting. |
| internal/app/ui/components/constants.go | Adds aside sizing constants and compact status width constant. |
| internal/app/module.go | Registers the dotenv FX module. |
| internal/app/dotenv/parse.go | Adds .env parsing + merge logic (needs security hardening). |
| internal/app/dotenv/parse_test.go | Tests dotenv parsing and merge ordering/override behavior. |
| internal/app/dotenv/module.go | Adds FX module and lifecycle hook to run the loader. |
| internal/app/dotenv/dotenv.go | Implements dotenv loader as a bus subscriber caching merged env entries per service ID. |
| internal/app/dotenv/dotenv_test.go | Tests loader caching, reload behavior, and event handling. |
| internal/app/dotenv/dotenv_mock.go | Adds generated gomock for the dotenv Loader interface. |
| go.mod | Promotes github.com/charmbracelet/x/ansi to a direct dependency for ANSI-aware truncation. |
| fuku.yaml | Updates sample config with env.files anchor for the env tab display. |
| examples/bookstore/auth/.env.test.local | Adds example env file contents for the bookstore auth service. |
| examples/bookstore/auth/.env.test | Adds example env file contents for the bookstore auth service. |
| examples/bookstore/auth/.env.development.local | Adds example env file contents for the bookstore auth service. |
| examples/bookstore/auth/.env.development | Adds example env file contents for the bookstore auth service. |
| examples/bookstore/auth/.env | Adds example env file contents for the bookstore auth service. |
| CLAUDE.md | Updates internal project notes to mention the aside panel and service ID conventions. |
Files not reviewed (1)
- internal/app/dotenv/dotenv_mock.go: Language not supported
- Update documentation to specify that fuku loads its own environment files for process configuration - Clarify that per-service env files are only for display in the TUI info aside - Mention the override mechanism with env.files in configuration
Wrap long .env values (URLs, JWTs, connection strings) to make them visible
- Move close(a.done) to after flushing sentry - Ensures proper shutdown signaling
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.
Enterkeybind to open a side panel withconfig,env, andhealthtabs\keybind