Archive messages in Bluebird channels#3327
Draft
adboio wants to merge 1 commit into
Draft
Conversation
Each task in a channel feed renders as a Slack-style message with a hover
toolbar (Reply, Open) but no way to archive it. Wire the existing archive
infrastructure into the feed:
- ChannelFeedView: add an "Archive" action to each message's hover toolbar.
- WebsiteChannelHome: call useArchiveTask({ navigateSpace: "website" }), filter
archived tasks out of the feed (mirroring the History tab), and emit the
existing archive_task channel analytics on the channel_home surface.
Archiving is undoable via the toast that useArchiveTask already shows.
Generated-By: PostHog Code
Task-Id: 35f8cc67-9217-4d7b-9177-c4eff198e1ae
|
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 |
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.
Problem
In a Project Bluebird channel, every message kicks off a task that renders as a card in the Slack-style feed. Members could reply in a thread or open the task, but there was no way to archive a message/task from the channel — archiving only existed over in the
/codespace (side nav + context menu).Why: so channel members can tidy their feed by archiving a message/task in place, without leaving the channel.
Changes
ChannelFeedView— add an Archive action to each message's hover toolbar, alongside Reply and Open.WebsiteChannelHome— wire it to the existinguseArchiveTask({ navigateSpace: "website" }), filter archived tasks out of the feed (same as the History tab already does), and emit the existingarchive_taskanalytics on thechannel_homesurface.A "message" in a channel is the task it kicked off, so this archives that task. It reuses the shared archive flow, so it's undoable via the toast (with Undo) that
useArchiveTaskalready shows, stays filed to the channel, and reappears on undo. No new flag is needed — the whole Website space is already gated behindproject-bluebirdat the router.How did you test this?
turbo run typecheck --filter=@posthog/ui(builds deps +tsc --noEmit) — passes.biome checkon both changed files — clean.@posthog/core.Automatic notifications
Created with PostHog Code