Skip to content

Add share button to channel feed task messages#3730

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/add-share-button-to-channel-task-feed
Jul 22, 2026
Merged

Add share button to channel feed task messages#3730
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/add-share-button-to-channel-task-feed

Conversation

@adboio

@adboio adboio commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Problem

Channel feed task messages had an "Open task" button but no way to share a direct link to the task from the feed — you had to open the task page to get the share button that lives there.

Changes

  • Add a "copy link to task" share button to the hover toolbar of each task message in the channel feed (ChannelFeedView), next to the existing "Open task" action.
  • Reuses the same copyChannelLink util the task page's share button uses, so the copied link is identical and deep-links back into the same thread.
  • Updated the now-stale toolbar comment that said it "only carries the 'Open task' action."

How did you test this?

  • tsc --noEmit on @posthog/ui — clean for the changed file (pre-existing unrelated module-resolution errors elsewhere remain).
  • biome check on the changed file — clean.
  • Existing ChannelFeedView.test.tsx is unaffected (it renders TaskFeedRow, not the FeedItem toolbar, and only asserts prompt expansion); the test suite has a pre-existing vitest resolution failure that reproduces identically on the unmodified branch.

Automatic notifications

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

Created with PostHog Code

Add a "copy link to task" share button to the hover toolbar of each task
message in the channel feed, next to the existing "Open task" button. Uses
the same copyChannelLink util as the share button on the task page, so the
copied link is identical and routes back into the same thread.

Generated-By: PostHog Code
Task-Id: 0013aa5d-874c-4e54-974e-19daf1b75009
@trunk-io

trunk-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

😎 Merged directly without going through the merge queue, as the queue was empty and the PR was up to date with the target branch - details.

@github-actions

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit a5dc072.

@adboio adboio added the Stamphog This will request an autostamp by stamphog on small changes label Jul 22, 2026
@adboio
adboio marked this pull request as ready for review July 22, 2026 22:02
@adboio
adboio requested a review from a team July 22, 2026 22:03
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "Add share button to channel feed task me..." | Re-trigger Greptile

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small, low-risk UI addition reusing an existing share-link utility, matches PR description, no risky territory touched, author has strong familiarity with this file.

  • Author wrote 100% of the modified lines and has 9 merged PRs in these paths (familiarity STRONG).
  • 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
Gate Result
prerequisites all clear
deny-list no deny categories matched
size 18L, 1F substantive — within ceiling
tier T1-agent / T1a-trivial (18L, 1F, single-area, unknown)
stamphog 2.0.0b3 .stamphog/policy.yml @ e7d8d13 · reviewed head a5dc072

@trunk-io
trunk-io Bot merged commit f377ae9 into main Jul 22, 2026
40 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/add-share-button-to-channel-task-feed branch July 22, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Stamphog This will request an autostamp by stamphog on small changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant