feat: add config-bundle readonly TUI - #2024
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## refactor #2024 +/- ##
============================================
+ Coverage 97.06% 97.09% +0.03%
============================================
Files 374 381 +7
Lines 22542 22778 +236
============================================
+ Hits 21880 22116 +236
Misses 662 662 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
aidandaly24
approved these changes
Aug 18, 2026
Hweinstock
approved these changes
Aug 18, 2026
| .default(createHelpDefault(io)) | ||
| .use(withTuiOnEmptyFlagsAndArgs(core, io)) | ||
| .default(renderTui(core, io)) | ||
| .supportedTuiCommands("list") |
Contributor
There was a problem hiding this comment.
is there a reason we don't also support get? Not saying I agree with the standard, but so far, I believe each screen has routed get and list to the same page.
Contributor
Author
There was a problem hiding this comment.
The CLI supports config-bundle get, config-bundle list and config-bundle version list. We mirror that in the TUI, so the flow of screens is config-bundle -> get, list, or version. If version is selected: version -> list. The only child command version exposes is list for either CLI or TUI flow
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.
Description
Adds an interactive, read-only TUI for
eval config-bundlecommand tree. Bare read-only commands now open TUI flows instead of returning missing flag errors, while mutating commands remain CLI-onlyScreens
eeval config-bundleRouterScreenmenueval config-bundle list/eval config-bundle getConfigBundlePickerusingPaginatedTablePickereval config-bundle get/:bundleIdJsonDetaileval config-bundle versionRouterScreenmenueval config-bundle version listConfigBundlePickerfor bundle selectioneval config-bundle version list/:bundleIdConfigBundleVersionPickerusingPaginatedTablePickereval config-bundle get/:bundleId/:versionIdversion in JsonDetailType of Change
Testing
How have you tested the change?
Added
config-bundle.screen.test.tsxcovering menu filtering, navigation, metadata rendering, pagination calls, latest and immutable version retrieval, sorting, retries, and empty/error states.Added command-dispatch coverage confirming only read-only leaves open the TUI.
bun test src/handlers/eval (233 pass, 0 fail)
I ran
npm run test:unitandnpm run test:integI ran
npm run typecheckI ran
npm run lintIf I modified
src/assets/, I rannpm run test:update-snapshotsand committed the updated snapshotsChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.