Skip to content

Archive messages in Bluebird channels#3327

Draft
adboio wants to merge 1 commit into
mainfrom
posthog-code/channel-archive-message
Draft

Archive messages in Bluebird channels#3327
adboio wants to merge 1 commit into
mainfrom
posthog-code/channel-archive-message

Conversation

@adboio

@adboio adboio commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

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 /code space (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 existing useArchiveTask({ navigateSpace: "website" }), filter archived tasks out of the feed (same as the History tab already does), and emit the existing archive_task analytics on the channel_home surface.

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 useArchiveTask already shows, stays filed to the channel, and reappears on undo. No new flag is needed — the whole Website space is already gated behind project-bluebird at the router.

How did you test this?

  • turbo run typecheck --filter=@posthog/ui (builds deps + tsc --noEmit) — passes.
  • biome check on both changed files — clean.
  • Did not run the app / add a new automated test: these feed components are presentational and untested today, and the underlying archive + undo logic is already covered in @posthog/core.

Automatic notifications

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

Created with PostHog Code

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
@trunk-io

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

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit a8b6269.

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