feat(composer): git branch indicator + smart PR actions in chat footer#25
Merged
Conversation
Introduce --chrome-bg/--input-bg tokens (derived per theme) so sidebars, top bar and the composer bar read darker than the body while the reading column and input box stay lighter. Lift the chat input, fix the resizer gap, and make the scratchpad placeholder legible.
Render a footer beneath the chat composer showing the current branch with inline rename (refused on the default branch, server-side guard). A smart split button picks the primary action from branch/PR/dirty state — Create PR, Commit & push, View PR or Merge PR — backed by new /api/git/info and /api/git/rename-branch endpoints and a fast server-side prerender to avoid a flash.
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
internal/githelpers (current/default branch, rename, open-PR lookup viagh, GitHub PR URL) and/api/git/info+/api/git/rename-branchendpoints.--chrome-bg/--input-bgtokens darken sidebars, top bar, and composer while the content column and input read lighter; lifts the input, fixes the resizer gap, and fixes the scratchpad placeholder contrast (all themes + custom).Testing
go test ./internal/git/... ./internal/server/... ./internal/ui/...make buildnpx vitest run(266 passed)