Skip to content

feat: show the active Git identity in the titlebar - #15

Merged
b404dev merged 2 commits into
mainfrom
feature/titlebar-git-identity
Sep 3, 2026
Merged

b404dev merged 2 commits into
mainfrom
feature/titlebar-git-identity

Conversation

@b404dev

@b404dev b404dev commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds App.GitIdentity(repositoryPath) on the Go bridge, which reads the effective user.name/user.email for a repository (falling back to the global identity when no repository is selected) via git config --get.
  • Displays it in the titlebar's top-right action area, next to the platform/version text, so it's always visible which account local commits and pushes will use — this came out of noticing the wrong identity was configured for a commit earlier in this session.
  • Hand-updated the generated Wails bindings (frontend/wailsjs/...) to match, since the wails CLI isn't available in this environment to regenerate them; they follow the existing generated format exactly.

Test plan

  • go build ./backend/..., go vet ./backend/...
  • go test ./backend/... — added TestGitIdentityReadsConfiguredAuthor and TestGitIdentityTreatsUnsetKeysAsEmpty; the 4 other failing tests are pre-existing/environment-dependent (present on main too)
  • npx tsc -b (typecheck) and npm run build (vite build) both clean
  • npm test (vitest) — all existing frontend tests still pass
  • Not visually verified in a running desktop build (no wails CLI available in this environment) — the new fetch/render code follows the exact same pattern already used for the adjacent branch picker in the same component

Adds a GitIdentity bridge call that reads the effective user.name and
user.email for the selected repository (falling back to the global
identity when none is selected) and displays it next to the platform
and version text in the titlebar, so it is always clear which account
local commits will be authored as before pushing or opening a PR.
@b404dev
b404dev merged commit a385450 into main Sep 3, 2026
1 check passed
@b404dev
b404dev deleted the feature/titlebar-git-identity branch September 3, 2026 13:19
b404dev added a commit that referenced this pull request Sep 3, 2026
Bumps the version fallback and frontend package version, and repairs
the changelog: the v0.1.15 merge lost its own entry along with the
git-identity entry from #15 to unresolved merge conflicts on
CHANGELOG.md, so both are restored here under their correct releases
before cutting v0.1.16 for the settings scale control and titlebar
git identity display.
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