Skip to content

Add backlog, canceled, and duplicate task states - #1797

Open
SachaProbo wants to merge 1 commit into
mainfrom
SachaProbo/add-task-states
Open

Add backlog, canceled, and duplicate task states#1797
SachaProbo wants to merge 1 commit into
mainfrom
SachaProbo/add-task-states

Conversation

@SachaProbo

@SachaProbo SachaProbo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

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 -0

Extends the task state enum E2E test to cover the three new states.

Coredata +33 -1

Adds a migration that appends BACKLOG, CANCELED, and DUPLICATE to the task_state enum, placed BACKLOG before TODO for ordering. Registers the new constants and includes them in TaskStates() and IsValid().

GraphQL API +3 -0

Adds the three new values to the TaskState GraphQL enum.

MCP +3 -0

Adds the three new values to the TaskState enum in the MCP spec.

prb (CLI) +1 -1

Updates the --state flag help text to list all six task states.

App: console +52 -12

Adds 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 -1

Adds icons for the three new states to TaskStateIcon, exports the TaskState type, and adds Storybook stories for each new state.

Package: n8n-node +16 -4

Adds Backlog, Canceled, and Duplicate as selectable state values in the task update operation.

Written for commit e3dca98. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai 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.

All reported issues were addressed across 15 files

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic

Comment thread apps/console/src/components/tasks/TasksCard.tsx
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from cc0869b to 6cc2152 Compare August 28, 2026 14:22
@SachaProbo
SachaProbo requested a review from a team August 28, 2026 14:22
@SachaProbo SachaProbo changed the title Add backlog, canceled, and duplicate task states. Add backlog, canceled, and duplicate task states Aug 28, 2026
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from 6cc2152 to 6b75a0b Compare August 28, 2026 14:23
Signed-off-by: Sacha Al Himdani <sacha@probo.com>
@SachaProbo
SachaProbo force-pushed the SachaProbo/add-task-states branch from 6b75a0b to e3dca98 Compare August 28, 2026 14:31

@cubic-dev-ai cubic-dev-ai 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.

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">

@cubic-dev-ai cubic-dev-ai Bot Aug 28, 2026

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.

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>
Fix with cubic

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