3.3 KiB
3.3 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-normalize-task-create-workflow | Normalize standard task-create workflow context | done | 1 | plan.md | ../../specs/workspaces/requirements/improve-kandev.md |
Task 01: Normalize standard task-create workflow context
Acceptance
- Standard task creation ignores a hidden workflow inherited from task-detail state and resolves the workspace's sole visible workflow.
- Feature wrappers with
lockedFields.workflowcontinue to create tasks in their explicitly supplied hidden workflow. - When normalization selects a different workflow, its fetched start/first step becomes the submitted default step; no step from the hidden workflow leaks.
- Desktop sidebar and mobile task-drawer E2E flows both prove that a task created from a hidden-workflow task lands in the visible workflow.
Verification
cd apps && pnpm install --frozen-lockfile(required once in a fresh worktree)cd apps && pnpm --filter @kandev/web test -- --run components/task-create-dialog-defaults.test.ts components/task-create-dialog-effects.test.tscd apps/web && pnpm run typecheckcd apps/web && pnpm e2e:run tests/task/create-task.spec.ts -- --grep "hidden workflow task detail"cd apps/web && pnpm e2e:run tests/task/mobile-hidden-workflow-task-create.spec.ts -- --project=mobile-chromemake fmtmake typecheck test lint
Files likely touched
apps/web/components/task-create-dialog-defaults.tsapps/web/components/task-create-dialog-defaults.test.tsapps/web/components/task-create-dialog-effects.tsapps/web/components/task-create-dialog-effects.test.tsapps/web/components/task-create-dialog-types.tsapps/web/components/task-create-dialog.tsxapps/web/e2e/tests/task/create-task.spec.tsapps/web/e2e/tests/task/mobile-hidden-workflow-task-create.spec.tsapps/web/e2e/helpers/api-client.tsonly if the existing task response helper needs to exposeworkflow_idfor a behavioral assertion
Dependencies
None.
Parallelism
Sequential.
Inputs
- Hidden-workflow requirements and task-detail regression scenario in
docs/specs/workspaces/requirements/improve-kandev.md. - Frontend approach in
plan.md. - Existing visible fallback in
apps/web/components/task-create-dialog-defaults.ts. - Explicit hidden workflow wrapper in
apps/web/components/improve-kandev-dialog-create.tsx. - Existing hidden workflow E2E seeding in
apps/web/e2e/helpers/api-client.ts. - Existing mobile task drawer in
apps/web/components/task/mobile/session-task-switcher-sheet.tsx.
Output contract
Report the unit and E2E RED/GREEN command results, changed files, failure
artifacts, remaining risks, and update this task to done plus the
corresponding plan checkbox in the primary conversation.
Verification Results
- RED: focused dialog tests failed in five expected assertions before implementation (missing context resolver, missing visible-step fetch, and missing visible start-step selection).
- RED: desktop Chromium created the new task with the hidden workflow step instead of the visible Kanban start step.
- GREEN: 48 focused task-create dialog tests passed.
- GREEN: desktop Chromium and mobile Chrome hidden-workflow creation scenarios passed, including the persisted step assertion and mobile overflow check.
- GREEN:
make fmt. - GREEN:
make typecheck test lint.