Skip to content

Upgrade UI#72

Open
balajz wants to merge 6 commits into
mainfrom
upgrade-ui
Open

Upgrade UI#72
balajz wants to merge 6 commits into
mainfrom
upgrade-ui

Conversation

@balajz
Copy link
Copy Markdown
Owner

@balajz balajz commented May 21, 2026

making the ui clean and nice

balajz added 2 commits May 21, 2026 21:27
Signed-off-by: Balaji J <j.balaji2468@gmail.com>
Copilot AI review requested due to automatic review settings May 21, 2026 16:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 thread internal/app/ui/model.go
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{}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants