Skip to content

Revert "feat(composer): choose a base ref in the New Workspace composer" - #21536

Merged
nwparker merged 1 commit into
mainfrom
revert-17250-feat/composer-start-from-picker
Sep 18, 2026
Merged

nwparker merged 1 commit into
mainfrom
revert-17250-feat/composer-start-from-picker

Conversation

@nwparker

@nwparker nwparker commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 7 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​618 $\color{#cf222e}{\Huge{\mathbf{−}}}$​617
Prod 18 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​14 $\color{#cf222e}{\Huge{\mathbf{−}}}$​187 $\color{#cf222e}{\Huge{\mathbf{−}}}$​173

Reverts #17250
UX update didn't get shipped

@nwparker
nwparker merged commit a7b9ea5 into main Sep 18, 2026
5 checks passed
@nwparker
nwparker deleted the revert-17250-feat/composer-start-from-picker branch September 18, 2026 21:58

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — a complete, clean revert of #17250; the diff is the exact inverse of squash b7d694f (25 files, +15/−805 vs. +805/−15), with no dangling references to the removed symbols.

  • Base-ref picker removed from the composer — ComposerBaseRefPicker, base-ref-picker-visibility, and the baseBranch / onBaseBranchChange / startFromResetHint props on NewWorkspaceComposerCardProps are gone; NewWorkspaceComposerNameSection no longer renders the control.
  • Naming-intent flag removed end-to-end — baseBranchNamesWorkspace is gone from the identity model, source/target state, NewWorkspaceDraft, draft-target-sync, and every action hook, so a baseBranch again always becomes a branch name-source pill and issue/PR selection unconditionally clears it.
  • Shared picker moved back — CreateFromPicker (and its test) return from components/repo/ to components/automations/, and the picker's 2-character search gate is restored.
  • Feature tests deleted — the start-from card test, picker-visibility test, name-source-selection test, and branch-start-point test are removed with the feature.

Verified locally: pnpm tc:web passes; the affected tests (automations/CreateFromPicker.test.tsx, draft-target-sync.test.ts, multiple-create-reset.test.ts) pass; and oxlint --config config/oxlint-react-doctor.json reports 0 warnings on the reverted picker, so the re-added no-adjust-state-on-prop-change disable directive is not flagged as unused.

ℹ️ The revert also drops the Automations picker's open-immediately branch listing

CreateFromPicker is shared with the Automations "Branch from" field, and #17250's last change made it list the repo's branches on an empty query. Restoring the trimmedQuery.length < 2 gate therefore removes that listing for Automations too, not just the composer.

Technical details
# Automations picker loses empty-query branch listing

## Affected sites
- src/renderer/src/components/automations/CreateFromPicker.tsx:147 — `trimmedQuery.length < 2` short-circuits the search effect, so the popover opens with only the project default until two characters are typed.

## Required outcome
- Decide whether the open-immediately listing was desirable independently of the reverted composer UX. If so, it needs to be re-landed on its own (the search helper `searchRuntimeRepoBaseRefs` already supports an empty query).

## Open questions for the human
- Was dropping the Automations listing an accepted side effect of the revert, or should it be restored separately?

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

nwparker added a commit that referenced this pull request Sep 18, 2026
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