Auto-create dev branch on first Edit; restrict modal to self-managed#9406
Closed
ericpgreen2 wants to merge 1 commit into
Closed
Auto-create dev branch on first Edit; restrict modal to self-managed#9406ericpgreen2 wants to merge 1 commit into
ericpgreen2 wants to merge 1 commit into
Conversation
For Rill-managed projects, never show `EditBranchDialog`: auto-create on zero owned dev branches and route to the user's branch on one or more. For self-managed, same auto-create on zero, existing modal otherwise.
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.
EditBranchDialognever opens. With zero owned dev branches, the Edit button auto-creates one named after the email's local part and routes into the edit session. With one or more, it routes to the user's most-recently-updated owned branch.useOwnDevDeployments(TanStackcombine) soEditButtonandEditBranchDialogshare one source of truth for the user's editable dev deployments.deriveDefaultBranchName(email)inbranch-utils.ts— lowercased for cross-platform safety, periods replaced with hyphens, leading/trailing-./trimmed.AlreadyExists) fall back to opening the dialog with the name pre-filled rather than silently appending a suffix.Preemptive polish on cloud editing while it's still flagged behind
cloudEditing.Closes GEN-728.
Note: the "one dev branch per user on Rill-managed" rule is a UI convention, not a server constraint —
rill project deployment createwill still let a CLI user create multiple. The UI defensively picks the most-recently-updated owned branch when multiple exist; backend enforcement is intentionally out of scope here.Checklist:
Developed in collaboration with Claude Code