Skip to content

feat(sidebar): filter tasks by workspace type#3248

Draft
MattPua wants to merge 2 commits into
mainfrom
posthog-code/filter-tasks-by-workspace-mode
Draft

feat(sidebar): filter tasks by workspace type#3248
MattPua wants to merge 2 commits into
mainfrom
posthog-code/filter-tasks-by-workspace-mode

Conversation

@MattPua

@MattPua MattPua commented Jul 7, 2026

Copy link
Copy Markdown
Member

Problem

No way to filter the tasks sidebar by where a task runs. When you have a mix of worktree, local, and cloud tasks, the list gets noisy and there's no way to narrow it to just the type you care about.

Changes

  • Added a Task type section to the tasks filter menu with multi-select checkboxes for Worktree, Local, and Cloud.
  • Classification uses Workspace.mode, falling back to the cloud run environment when there's no local workspace.
  • Tasks with an unknown mode always stay visible so nothing silently disappears.
  • Selection is persisted (defaults to all types enabled) and visible to everyone.

Unchecking all three leaves only unknown-mode tasks visible (literal filter semantics).

How did you test this?

  • @posthog/core + @posthog/ui typecheck clean
  • Added unit tests for filterByWorkspaceMode (4 cases) -- all pass via vitest
  • biome lint clean on changed files, no noRestrictedImports

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Add a "Task type" section to the tasks sidebar filter menu with multi-select
checkboxes for worktree, local, and cloud tasks. Classification uses
Workspace.mode, falling back to the cloud run environment. Tasks with an
unknown mode always stay visible.

Generated-By: PostHog Code
Task-Id: 19431e3f-90a3-4440-910d-33b5ce011955
@trunk-io

trunk-io Bot commented Jul 7, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 7e1d855.

Generated-By: PostHog Code
Task-Id: 19431e3f-90a3-4440-910d-33b5ce011955
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