Add backlog, canceled, and duplicate task states - #1797
Open
SachaProbo wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
SachaProbo
force-pushed
the
SachaProbo/add-task-states
branch
from
August 28, 2026 14:22
cc0869b to
6cc2152
Compare
SachaProbo
force-pushed
the
SachaProbo/add-task-states
branch
from
August 28, 2026 14:23
6cc2152 to
6b75a0b
Compare
Signed-off-by: Sacha Al Himdani <sacha@probo.com>
SachaProbo
force-pushed
the
SachaProbo/add-task-states
branch
from
August 28, 2026 14:31
6b75a0b to
e3dca98
Compare
Contributor
There was a problem hiding this comment.
1 issue found across 15 files (changes from recent commits).
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/console/src/components/tasks/TaskFormDialog.tsx">
<violation number="1" location="apps/console/src/components/tasks/TaskFormDialog.tsx:287">
P2: A newly created task can never use the new `BACKLOG` state because this selector is rendered only while editing, and the create mutation/API always defaults tasks to `TODO`. Expose the initial state in the create flow and pass it through `CreateTaskInput` if backlog is intended to represent work that has not started.</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
Fix all with cubic | Re-trigger cubic
| value={field.value} | ||
| onValueChange={field.onChange} | ||
| > | ||
| <Option value="BACKLOG"> |
Contributor
There was a problem hiding this comment.
P2: A newly created task can never use the new BACKLOG state because this selector is rendered only while editing, and the create mutation/API always defaults tasks to TODO. Expose the initial state in the create flow and pass it through CreateTaskInput if backlog is intended to represent work that has not started.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/console/src/components/tasks/TaskFormDialog.tsx, line 287:
<comment>A newly created task can never use the new `BACKLOG` state because this selector is rendered only while editing, and the create mutation/API always defaults tasks to `TODO`. Expose the initial state in the create flow and pass it through `CreateTaskInput` if backlog is intended to represent work that has not started.</comment>
<file context>
@@ -284,6 +284,12 @@ export default function TaskFormDialog(props: Props) {
value={field.value}
onValueChange={field.onChange}
>
+ <Option value="BACKLOG">
+ <span className="flex items-center gap-2">
+ <TaskStateIcon state="BACKLOG" />
</file context>
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.
Summary by cubic
Adds backlog, canceled, and duplicate task states so tasks can be tracked before work starts, when they're dismissed, or when they duplicate another task. The new states propagate through the database schema, GraphQL and MCP APIs, CLI, console UI, n8n integration, and shared UI package.
Tests
+3-0Extends the task state enum E2E test to cover the three new states.
Coredata
+33-1Adds a migration that appends
BACKLOG,CANCELED, andDUPLICATEto thetask_stateenum, placedBACKLOGbeforeTODOfor ordering. Registers the new constants and includes them inTaskStates()andIsValid().GraphQL API
+3-0Adds the three new values to the
TaskStateGraphQL enum.MCP
+3-0Adds the three new values to the
TaskStateenum in the MCP spec.prb (CLI)
+1-1Updates the
--stateflag help text to list all six task states.App: console
+52-12Adds the new states to the task form dialog, task card columns, and quick-move action (backlog tasks can now move to To do). Updates en-US, fr-FR, and nl-NL locale files with the new state names and the "Move to To do" action label.
Package: ui
+31-1Adds icons for the three new states to
TaskStateIcon, exports theTaskStatetype, and adds Storybook stories for each new state.Package: n8n-node
+16-4Adds Backlog, Canceled, and Duplicate as selectable state values in the task update operation.
Written for commit e3dca98. Summary will update on new commits.