Skip to content

feat(composer): git branch indicator + smart PR actions in chat footer#25

Merged
setkyar merged 2 commits into
mainfrom
feat/composer-git-footer
May 31, 2026
Merged

feat(composer): git branch indicator + smart PR actions in chat footer#25
setkyar merged 2 commits into
mainfrom
feat/composer-git-footer

Conversation

@setkyar
Copy link
Copy Markdown
Contributor

@setkyar setkyar commented May 31, 2026

Summary

  • Add a git footer beneath the chat composer: current branch with inline rename (pencil), refused on the default branch via a server-side guard.
  • Smart split-button action picks the primary action from branch + PR + dirty state — Create PR (commit/push/open draft), Commit & push, View PR ↗, or Merge PR — with the remaining options under a ▾ caret.
  • New backend: internal/git helpers (current/default branch, rename, open-PR lookup via gh, GitHub PR URL) and /api/git/info + /api/git/rename-branch endpoints.
  • Theme/chrome polish: derived --chrome-bg/--input-bg tokens 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).
  • Footer state is prerendered server-side from fast local git facts so the control doesn't flash a wrong label before the async PR check resolves.

Testing

  • go test ./internal/git/... ./internal/server/... ./internal/ui/...
  • make build
  • npx vitest run (266 passed)

setkyar added 2 commits May 31, 2026 23:24
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.
@setkyar setkyar merged commit d4ef2f4 into main May 31, 2026
1 check passed
@setkyar setkyar deleted the feat/composer-git-footer branch May 31, 2026 16:44
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.

1 participant