Skip to content

feat(activity): add mark-as-read actions - #3856

Merged
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/activity-read-actions
Jul 28, 2026
Merged

feat(activity): add mark-as-read actions#3856
trunk-io[bot] merged 1 commit into
mainfrom
posthog-code/activity-read-actions

Conversation

@puemos

@puemos puemos commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem

Activity items are only marked read as a side effect of opening them, leaving no way to clear an item without navigating away or clear the feed at once.

Why: Give people direct control over their Activity unread state.

Show me!!

image

Changes

  • Add a row-level mark-as-read action for unread activity
  • Add a header action to mark all displayed unread activity as read
  • Reuse the existing optimistic mutation and show pending state for bulk updates

How did you test this?

  • pnpm exec biome check packages/ui/src/features/canvas/components/ActivityView.tsx
  • pnpm --filter @posthog/ui typecheck
  • pnpm --filter @posthog/ui test -- ActivityView.test.tsx useTaskActivity.test.tsx

Automatic notifications

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

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: f248946c-76a4-44f1-9c82-be5a5d3917a7
@trunk-io

trunk-io Bot commented Jul 28, 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 1 issue in 1 file · 1 warning.

1 warning

src/features/canvas/components/ActivityView.tsx

Reviewed by React Doctor for commit 2d01dea.

@puemos
puemos requested a review from a team July 28, 2026 05:00
@puemos
puemos marked this pull request as ready for review July 28, 2026 05:00
@trunk-io
trunk-io Bot merged commit 48eaa10 into main Jul 28, 2026
34 checks passed
@trunk-io
trunk-io Bot deleted the posthog-code/activity-read-actions branch July 28, 2026 05:49
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.

2 participants