Upgrade UI#72
Open
balajz wants to merge 6 commits into
Open
Conversation
Signed-off-by: Balaji J <j.balaji2468@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refreshes pgxcli’s interactive UI by improving the startup banner styling and updating the BubbleTea prompt layout/quit behavior to feel cleaner and more consistent.
Changes:
- Updated the ASCII banner rendering to use a per-line color gradient.
- Tweaked the TUI prompt layout by adding separator lines and adjusting the input area sizing.
- Introduced a quit-request message flow (used for Ctrl+D and
\q) to allow a cleaner shutdown transition.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| internal/ui/banner.go | Adds a gradient color function and applies a line-based gradient to the ASCII banner output. |
| internal/app/ui/model.go | Adds input separators, quit-request handling, and minor prompt/input behavior adjustments. |
| internal/app/app.go | Routes the special-command quit path through the new UI quit-request message instead of directly calling tea.Quit. |
Comment on lines
+43
to
+47
| // QuitRequestMsg signals that the app wants to quit. | ||
| type QuitRequestMsg struct{} | ||
|
|
||
| // ConfirmQuitMsg is used internally to finalize quitting. | ||
| type ConfirmQuitMsg struct{} |
Signed-off-by: Balaji J <j.balaji2468@gmail.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.
making the ui clean and nice