Files
zooqueenandhanzo-dev 167bf885ee console: show a branch only when there is a repo to have one
`const branch = "main"` — stated unconditionally, with a comment reasoning that
builder projects are single-branch by construction. They are, WHEN they have a
repo. Most have none: the only paths that create one are publish and an explicit
git sync, so the bar drew a git-branch icon and a branch name for projects that
were never version-controlled. Same shape as the "Auto-saved" string beside it —
chrome asserting a fact nothing checked, and the one that made "where did my work
go" a reasonable thing to not ask.

The `Project` type did not model `repo` at all, though `/v1/git/sync` has always
recorded `repo:{url,branch}` server-side, so the client could not have known.
It is declared now, optional — because most projects genuinely have none, and
modelling it as always-present is what allowed the constant in the first place.

The indicator and its separator are omitted entirely when there is no repo,
rather than showing a placeholder: absent is honest, "main" was not.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
2026-08-03 21:33:06 -07:00
..
2026-07-03 01:40:29 -07:00