feat(channels): default-file channel-less tasks into #me#3272
Conversation
|
Merging to
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 |
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
|
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
4663f78 to
7b8bb1f
Compare
|
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. |
Problem
Tasks created outside a channel (the
/codecomposer,/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
project-bluebirdflag is on and nochannelId/channelNamewas passed touseTaskCreation(the funnel all composers share), the task is created with itschannelset 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.useTaskChannelsgains anenabledoption so the channel list is only fetched when the flag is on.Channel actionevent (action_type: "file_task", new surfacetask_input); addedtask_inputto theChannelsSurfaceunion.How did you test this?
@posthog/uiand@posthog/sharedtypecheck clean@posthog/uitest suite passes (1285 tests / 148 files)Automatic notifications
Created with PostHog Code