Skip to content

feat(channels): default-file channel-less tasks into #me#3272

Merged
k11kirky merged 2 commits into
mainfrom
posthog-code/default-file-tasks-to-me
Jul 10, 2026
Merged

feat(channels): default-file channel-less tasks into #me#3272
k11kirky merged 2 commits into
mainfrom
posthog-code/default-file-tasks-to-me

Conversation

@k11kirky

@k11kirky k11kirky commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Problem

Tasks created outside a channel (the /code composer, /website/new, the command center) stay unfiled, so they never show up anywhere in the Channels space and work can get lost.

Why

Requested so that every task has a channel home by default — anything not explicitly filed to a bluebird channel should land in the private #me channel instead of disappearing into the unfiled pool.

Changes

  • After review feedback: when the project-bluebird flag is on and no channelId/channelName was passed to useTaskCreation (the funnel all composers share), the task is created with its channel set to the user's backend personal channel (channel_type: "personal"). That channel is per-user and provisioned lazily + idempotently server-side, so nothing is shared across teammates and there's no create race. If it hasn't loaded yet the task is created unfiled, as before.
  • useTaskChannels gains an enabled option so the channel list is only fetched when the flag is on.
  • Instrumented with the existing Channel action event (action_type: "file_task", new surface task_input); added task_input to the ChannelsSurface union.

How did you test this?

  • @posthog/ui and @posthog/shared typecheck clean
  • Biome check on touched files
  • Full @posthog/ui test suite passes (1285 tests / 148 files)

Automatic notifications

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

Created with PostHog Code

@trunk-io

trunk-io Bot commented Jul 8, 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 8, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 7b8bb1f.

@k11kirky k11kirky marked this pull request as ready for review July 10, 2026 15:16
@greptile-apps

greptile-apps Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Security Review

The new default filing path can put private #me tasks into a project-scoped /me folder, which can expose tasks between teammates unless the backend enforces per-user ownership for that folder.

Reviews (1): Last reviewed commit: "feat(channels): default-file channel-les..." | Re-trigger Greptile

Comment thread packages/ui/src/features/task-detail/hooks/useTaskCreation.ts Outdated
Comment thread packages/ui/src/features/task-detail/hooks/useTaskCreation.ts Outdated
k11kirky added 2 commits July 10, 2026 21:40
Tasks created without a channel (the /code composer, /website/new, command
center) now get filed to the private #me channel behind the project-bluebird
flag, so they still surface in the Channels space instead of staying unfiled.
Filing is best-effort; on failure the task stays unfiled as before.

Generated-By: PostHog Code
Task-Id: a64c4ae7-96e3-4284-907f-e23dd0fcd500
…lder

Review feedback: the desktop file system is project-scoped, so filing into
a "me" folder shared tasks across teammates and could create duplicate
folders under concurrent creation. Set the per-user backend personal
channel (provisioned lazily and idempotently server-side) as the task's
channel at creation time instead.

Generated-By: PostHog Code
Task-Id: a64c4ae7-96e3-4284-907f-e23dd0fcd500
@k11kirky k11kirky force-pushed the posthog-code/default-file-tasks-to-me branch from 4663f78 to 7b8bb1f Compare July 10, 2026 20:40
@k11kirky k11kirky added the Create Release This will trigger a new release label Jul 10, 2026
@k11kirky k11kirky merged commit d842243 into main Jul 10, 2026
31 checks passed
@k11kirky k11kirky deleted the posthog-code/default-file-tasks-to-me branch July 10, 2026 20:58
@github-actions

Copy link
Copy Markdown

Could not verify team-posthog-code membership (GitHub API error). Auto-release is limited to Team PostHog Code members, so this will ship with the next scheduled release instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Create Release This will trigger a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants