feat: migrate atmn CLI from React Ink to OpenTUI#74
Draft
joejohnson123[bot] wants to merge 2 commits intonextfrom
Draft
feat: migrate atmn CLI from React Ink to OpenTUI#74joejohnson123[bot] wants to merge 2 commits intonextfrom
joejohnson123[bot] wants to merge 2 commits intonextfrom
Conversation
added 2 commits
February 20, 2026 21:18
- Replace all ink, ink-spinner, ink-select-input, ink-text-input, @inkjs/ui, @mishieck/ink-titled-box, ink-scroll-list imports (83 files) - Add @opentui/core and @opentui/react as dependencies - Remove ink and all ink-* packages from dependencies - Create ink-compat.tsx compatibility layer providing: - Box, Text components mapping Ink props to OpenTUI <box>/<text> intrinsics - Spinner component (custom, no built-in in OpenTUI) - SelectInput, TextInput components - useInput, useApp, useStdout hooks - render() function wrapping createCliRenderer + createRoot - Update tsconfig.json: jsxImportSource=@opentui/react - Update bun.config.ts: externalize @opentui/core, @opentui/react, react - Replace ink-scroll-list ScrollList with custom virtual scrolling in CustomersTable - Fix Card component: borderStyle 'rounded' -> 'round', paddingX -> paddingLeft/Right - All source renders correctly (verified push, pull commands with PTY) - Headless/non-TTY code paths unchanged - Build passes (bun run build) Note: Bundled dist has a rendering issue where content doesn't appear (React tree renders but produces blank screen). Source execution works perfectly. This is a bun bundler interaction with OpenTUI's React reconciler that needs investigation.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Migrates the
atmnCLI interactive TUI from React Ink to OpenTUI using the@opentui/reactreconciler.Approach
ink-compat.tsxcompatibility layer that re-exports OpenTUI components with Ink-like APIsink/ink-*updated to use the compat layerChanges
ink,ink-spinner,ink-select-input,ink-text-input,@inkjs/ui,@mishieck/ink-titled-box,ink-scroll-list,ink-big-text,ink-chart,ink-confirm-input,ink-table,ink-scroll-view,ervy@opentui/core@^0.1.80,@opentui/react@^0.1.80Testing
bun run build)Note
Requires
bunruntime (not Node.js) due to OpenTUI native bindings.Summary by cubic
Migrates the atmn CLI interactive TUI from Ink to OpenTUI via a compatibility layer, preserving existing UX and behavior. Headless paths are unchanged.
Refactors
Dependencies
Written for commit 26819e3. Summary will update on new commits.