Refactor CLI UI to OpenTUI and add end-to-end tests #66
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.
Motivation
Description
src/ui.js, implementing multi/single-select and auth views and a test-mode selection flow usingGHPEW_TEST_MODEand env-driven selections.index.jsandpackage.jsonstartscript, and convertindex.jsto dynamicimport()s so OpenTUI components initialize at runtime.src/github.jsviaGHPEW_FIXTURE_FILEso API calls (list/delete/archive) short-circuit during tests, and make config directory path overrideable withGHPEW_CONFIG_DIRinsrc/config.js.@opentui/core,@opentui/react, andreacttopackage.json; add an end-to-end testtest/e2e.test.jswith fixturetest/fixtures/github.jsonand small UX fixes (src/utils.js, command handlers).Testing
npm test(Mocha), which executed unit and the new e2e flows; result:9 passing.Codex Task