TUI main screen: IDE-like workspace, command palette, screen DSL#17
Merged
TUI main screen: IDE-like workspace, command palette, screen DSL#17
Conversation
Implements the main TUI screen for #5 as a single IDE-like workspace: - Persistent Project sidebar (collections tree + recent activity) - Editor pane with URL/method/Send, request tabs, response section - Command palette as an in-place dialog (Ctrl+P), grouped by category - Linear Tab focus cycle inside the editor; Esc drills out to Project, Esc never destroys typed input (use Ctrl+U to clear the URL) - Help, placeholder screens; screen { } DSL builder + popOn helper - Tree split across screen/main/{MainState,Tree,Render,Sidebar,Editor} - Reusable widgets: headerBar, focusMarker, methodBadge, statusBadge, statusFooter - Distribution: shadow fat jar, tui.sh launcher (Gradle daemon cannot host a raw-mode TUI, so the script execs the install-dist binary) - Renamed command package to cli; renamed TuiApp to Tui Refs #5 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
MainScreen: persistent Project sidebar (collections tree + recent activity) + Editor pane (URL / method / Send · Headers/Query/Body/Auth tabs · Response). Command palette is an in-place dialog (Ctrl+P).Tabfrom Project drills into the editor;Esc/qdrill back out.Escnever destroys typed input —Ctrl+Uclears the URL.screen { onHotkey = …; widget }DSL for declarative screens, plus reusable widget helpers (headerBar,focusMarker,methodBadge,statusBadge,statusFooter) and apopOn(vararg keys)hotkey helper.tui/:core/(Screen interface, DSL builder, hotkey helpers),model/(ScreenAction),widget/(CommandPalette, Widgets),screen/(HelpScreen, PlaceholderScreen,screen/main/split into MainState · Tree · Render · Sidebar · Editor).command/package →cli/;TuiApp→Tui.cli-0.0.1-all.jar) +tui.shlauncher (Gradle daemon cannot host a raw-mode TUI; the script execs the install-dist binary so the JVM inherits the controlling TTY).Closes #5
Test plan
./gradlew :cli:buildis green../tui.shopens the workspace and shows the empty new-client state by default.Dtoggles the demo tree;↑↓ ←→ Enternavigates;nopens an empty editor.Tabcycles URL → Tabs → Response without entering Project;Escdrills back to Project; URL text is preserved.Ctrl+Popens the palette in-place (header + sidebar stay visible); commands dispatch correctly.Ctrl+Btoggles the sidebar;?opens Help;Ctrl+Cquits from anywhere.java -jar cli/build/libs/cli-0.0.1-all.jar test foostill runs the CLI subcommand.🤖 Generated with Claude Code