This repository was archived by the owner on Sep 2, 2026. It is now read-only.
Repository navigation
feat(feature-board): stage assignment at creation and workspace adoption (#80) - #91
Merged
Merged
Conversation
…spaces (#80) - Composer: optional stage picker (defaults to idea) for git-worktree creation, declared post-create through the same authority gate as every other stage-write entry point (decideComposerStageAssignment -> decideFeatureBoardCardDrop). - Sidebar: "Move to feature board..." submenu on an unstaged, non-lineage-child workspace, reusing the task-detail panel's stage model/gate so option gating, lock copy, and authority rules can't drift from the board's own picker. - Generalize useTaskDetailPanelStageChange to take a Worktree directly (not a FeatureBoardCard) so the sidebar surface can reuse it too. - Sidebar drag-onto-stage-group path is untouched; its existing tests still pass. Closes #80
This was referenced Aug 26, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Adds the two missing entry points onto the feature board that #80 calls out — a composer stage picker at creation, and a non-drag adoption path for an already-existing unstaged workspace — both routed through the same
decideFeatureBoardCardDropauthority gate the board's drag/panel paths already use. The sidebar's existing group-by-Stage drag path is untouched.Closes #80
Acceptance criteria
NewWorkspaceStageFieldin the composer's advanced drawer (git-worktree targets), defaulting toidea; declared post-create viadecideComposerStageAssignmentinuseComposerState.tssubmit()WorktreeContextMenu→WorktreeFeatureBoardStageMenu, visible only while the workspace is unstagedsidebar-workflow-stage-drop.tsuntouched; its test suite (16 tests) still passes unmodifieddecideFeatureBoardCardDrop(composer viacomposer-stage-assignment.ts, adoption menu via the reuseduseTaskDetailPanelStageChangehook) — no directworkflowStagemeta writes anywhere newChanges by theme
Composer stage picker
src/renderer/src/components/new-workspace/NewWorkspaceStageField.tsx— new Select field (allWORKFLOW_STAGE_IDS+ "No stage"), display-only.src/renderer/src/components/feature-board/composer-stage-assignment.ts— pure helper wrappingdecideFeatureBoardCardDropfor a freshly-created worktree (no facts/consumed-merges yet).src/renderer/src/hooks/useComposerState.ts—workflowStagestate (defaults'idea', resets to'idea'between sequential creates), wired intosubmit()'s post-create meta write andComposerCardProps. Scoped to git-worktree targets — folder-workspace creation runs a separate submit path (submitFolderTarget) that doesn't plumb a stage write through yet.src/renderer/src/components/NewWorkspaceComposerCard.tsx— renders the field in the Advanced drawer next to Note, git repos only.Adoption entry point
src/renderer/src/components/sidebar/WorktreeFeatureBoardStageMenu.tsx— new submenu, reusesbuildTaskDetailStageSelector(option gating + lock copy) anduseTaskDetailPanelStageChange(the write). Hidden once staged or for a lineage child (its stage is inherited from the root ancestor, same rule the drag path enforces).src/renderer/src/components/sidebar/WorktreeContextMenu.tsx— mounts the submenu.src/renderer/src/components/feature-board/task-detail-panel/use-task-detail-panel-stage-change.ts(+TaskDetailPanelStageSelector.tsx) — generalized to take aWorktreedirectly instead of aFeatureBoardCard, so a non-board surface can reuse the exact same guard delegate without duplicating it.Localization
src/renderer/src/i18n/locales/en.json— 3 new keys viasync:localization-catalog.Problem → Resolution
FeatureBoardAdoptionDialogvs. add alongside: that dialog's fields (repo picker, name, issue/PR link) are about creating a new worktree; adoption of an existing one needs none of them, just a stage. Added a separate, focused surface (WorktreeFeatureBoardStageMenu) rather than overloading the dialog with a second, unrelated mode.submitFolderTarget→submitFolderWorkspaceCreate) is a materially different flow that doesn't currently return a worktree id in a place a stage write could hook into without materially larger surgery. Scoped the picker to git-worktree creation (same scoping precedent asbranchNameOverride/baseBranch), and folder workspaces remain adoptable after creation via the new context-menu path regardless of workspace kind.QA plan