Skip to content

feat(task-board): read the next board's lanes without offering them - #7879

Merged
viktormarinho merged 1 commit into
mainfrom
feat/task-board-dormant-lanes
Oct 13, 2026
Merged

viktormarinho merged 1 commit into
mainfrom
feat/task-board-dormant-lanes

Conversation

@viktormarinho

@viktormarinho viktormarinho commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

What is this contribution about?

First of three PRs that change the default board to Backlog → In Progress → In Review → QA → Customer Approval → Ready for Deployment → Post-deploy Validation → Done. This one only teaches the code the new statuses, and moves no cards.

Why it goes first: today laneRank throws on a status it does not know, and the board cannot draw one. The next PR migrates cards into the new lanes, and the release before it has to read them so that PR can be rolled back.

  • CANONICAL_COLUMN_KEYS gains qa, customer_approval and ready_for_deployment, ranked between In Review and Done (approved and merged keep their places, so every existing comparison is unchanged).
  • DORMANT_LANES / isDormantLane mark them as known but not offered.
  • API: TASK_BOARD_ITEM_CREATE and TASK_BOARD_ITEM_UPDATE refuse a dormant status (refuseDormantLane). The column-rule tools (TASK_BOARD_PROMPT_UPSERT, TASK_BOARD_AUTOMATION_UPSERT) validate against OFFERED_COLUMN_KEYS, which excludes them.
  • Web: labels (en, pt-br) and icons. moveTargets never offers a dormant lane. laneVisibility draws a dormant lane as a column only while a card sits in it. List view orders them with the other review lanes.
  • The new-task composer on the org home listed every status, including delivery lanes on a board without them, which the API then refused. It now uses moveTargets, like the board.
  • Tool contracts regenerated. The reviewer enum on TASK_BOARD_REVIEW_DECISION changed order only (the printer interns "qa" earlier now).

How did you verify your code works?

  • lanes.test.ts: the new lanes are ranked between In Review and Done, read as out of the review phase, and are refused as write targets (and only they are). Column rules are not offered them.
  • config.test.ts: moveTargets excludes dormant lanes with the delivery flag on or off. A dormant lane is absent while empty, and a card in one draws it as a column.
  • bun run verify (10557 pass, 0 fail) and bun run check clean.
  • Not run: storage-integration suites (no SQL changed) and a browser pass.

Screenshots/Demonstration

No visible change on a board: the new lanes stay hidden while empty, and nothing can move a card into them.

How to Test

  1. Open a task board: columns are unchanged.
  2. Call TASK_BOARD_ITEM_UPDATE with status: "qa": refused with "not available on this board yet".
  3. Set a card's status to qa directly in the database and reload: a QA column appears with the card in it.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes

Summary by cubic

First of three PRs that change the default task board to Backlog → In Progress → In Review → QA → Customer Approval → Ready for Deployment → Done. This one teaches the code the new statuses and moves no cards, so the release that migrates cards into them can be rolled back safely — laneRank no longer throws on them and the board can read a card a newer release left in one.

Adds qa, customer_approval, and ready_for_deployment as known statuses ranked between In Review and Done, but marks them dormant and refuses them as targets:

  • TASK_BOARD_ITEM_CREATE, TASK_BOARD_ITEM_UPDATE, and the column-rule tools reject a dormant status; the schema still accepts them for reading.
  • The board draws a dormant lane only while a card sits in it.
  • The new-task composer now offers only moveTargets instead of every canonical status, which previously listed delivery lanes the API then refused.
  • The reviewer enum on TASK_BOARD_REVIEW_DECISION changed order only.

Written for commit 48fbc88. Summary will update on new commits.

View guided diff Turn on auto-fix

The next board replaces To Do, Approved and Merged with QA, Customer
Approval and Ready for Deployment. The release that moves cards into the
new lanes must be able to roll back to one that reads them, so this
release learns the statuses first: laneRank orders them, the board draws
one while a card sits in it, and create, update and the column-rule tools
refuse them as targets.
@viktormarinho
viktormarinho merged commit bfb72cd into main Oct 13, 2026
35 checks passed
@viktormarinho
viktormarinho deleted the feat/task-board-dormant-lanes branch October 13, 2026 13:27
decocms Bot pushed a commit that referenced this pull request Oct 13, 2026
PR: #7879 feat(task-board): read the next board's lanes without offering them
Bump type: minor

- decocms (apps/api/package.json): 4.464.1 -> 4.465.0
- @decocms/native (apps/native/package.json): 4.464.1 -> 4.465.0
- @decocms/shared (packages/shared/package.json): 0.144.1 -> 0.145.0

Deploy-Scope: both
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