Repository navigation
Tasks: Add task starts with the default assignee, whatever the filter - #289
Merged
Merged
Conversation
Every new task form now starts with the default assignee (you, with Settings → People → Assign new tasks to me on; else nobody). Tasks' Add task used to start with the person the view was filtered to. The panel's assignee preset and assigneeFor() go, as nothing uses them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Every new task form now starts with the default assignee: you, when Settings → People → Assign new tasks to me is on, otherwise nobody.
The only one that didn't was Add task on Tasks while it was filtered by Assignee. It filled in the filtered person (Mine → you, a person → them, Unassigned → nobody). Now it uses the default, like the + menu,
n, ⌘K, a project's Add task, a topic's Make a task,/task, Make task and action items.Changes
src/pages/TasksPage.tsx: Add task no longer passes the filter.TaskPanel.tsx/TaskPanelProvider.tsx: the option to preset an assignee is gone, since nothing passes one now. The panel always starts fromdefaultAssignee().shared/select.ts:assigneeFor()and its unit test are removed, since nothing calls it now.e2e/tasks-view.spec.ts: "Add task on Mine" now expects the default (Unassigned with the setting off). It no longer checks that the task shows in the table, because an unassigned task isn't under Mine.docs/SPEC.mdandCHANGELOG.md(Unreleased → Changed) are updated.Screenshots
None: nothing looks different. The New task panel is unchanged; only the assignee it starts with on a filtered Tasks view is different.
Testing
biome ci, the build and the unit tests (1,110) pass.tasks-viewandassign-to-mee2e specs pass locally, excepttasks-view"group by assignee, Shift-select two, move them, undo". That test fails onmaintoo and is a known flaky spec. The full suite runs in CI.🤖 Generated with Claude Code