Friday demo: board-header auto-merge toggle + demo script - #6124
Open
deco-cms[bot] wants to merge 1 commit into
Open
Friday demo: board-header auto-merge toggle + demo script#6124deco-cms[bot] wants to merge 1 commit into
deco-cms[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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.
The task is the Friday demo run-through: connect integrations → generate backlog → agent works cards → In Review → open card / see PR → Edit opens CMS → Publish → toggle auto-merge at the top → card goes to Done.
Walking the flow against the product, every beat already exists except the last one: auto-merge is an org flag that only lives in Settings → Review, not "at the top" of the board. So this PR does two things:
apps/web/src/layouts/task-board/index.tsx— adds anAuto-mergeswitch to the task board header toolbar (right side, next to the view toggle). It reads/writes the sameauto_mergeorg flag as Settings → Review viauseOrgFlag/useSetOrgFlag, so flipping it from either place is the same setting. Errors toast. EN + pt-BR strings added.docs/friday-demo-script.md— the demo script itself: pre-flight checklist (notably: auto-merge must start OFF, since turning it on is the closing beat), seven timed beats with the lines to say, and a fallback table for the ways each beat can break on stage.No behaviour change to merging itself — the toggle is a second surface for an existing flag.
Summary by cubic
Adds an Auto-merge switch to the task board header so the org’s
auto_mergeflag can be toggled in-context during reviews. Previously this flag was only in Settings → Review; now it’s also in the board header. No change to merge behavior.auto_mergeflag viauseOrgFlag/useSetOrgFlag; shows a toast on update error.apps/web/src/layouts/task-board/index.tsxusing@decocms/uiSwitchandGitMergeicon; includes title, label, and aria-label.Written for commit cdc61d4. Summary will update on new commits.