feat(tasks): allow changing a task's project from the detail sheet - #181
feat(tasks): allow changing a task's project from the detail sheet#181paryanineil wants to merge 2 commits into
Conversation
Adds a Project selector to the task detail sheet so a task can be moved to a different project inline, instead of being fixed once created. When the project changes, the Milestone and Depends On fields are cleared because they reference records scoped to the previous project (the backend does not auto-clear them, which would otherwise leave the task pointing at a milestone / task from a different project). The Milestone and Depends On pickers also now filter by the currently selected project so their options stay consistent after a switch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The switch-project change adds a Project field that surfaces the project's title in the detail sheet. The lock-due-date spec located the Due Date field with `.grid.gap-2` filtered by `hasText: "Due Date"`, which now also matches the Project field when a project's name contains "Due Date" (e.g. the test fixture "E2E Lock Due Date"), causing a strict-mode violation. Filter by an exact-text "Due Date" label instead, so the locator targets only the Due Date field regardless of other fields' displayed content. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Pushed a small follow-up commit that also touches The new Project field surfaces the project's title in the detail sheet, and that spec located the Due Date field with The fix targets the field by its exact "Due Date" label ( (The other red E2E checks — |
Summary
Adds a Project selector to the task detail sheet, so a task can be moved to a different project inline. Previously a task's project was fixed once it was created.
Behaviour
Hive Projectlink picker) near the top of the detail sheet, above Milestone.Notes
LinkFieldcomponent and the standarduseFrappeUpdateDocautosave path — no backend/API or DocType changes._assign, not project-scoped).Testing
yarn buildand ESLint clean on the changed file.