Skip to content

feat(canvas): add recent tasks tab to Activity view#3442

Draft
raquelmsmith wants to merge 1 commit into
mainfrom
posthog-code/activity-recent-tasks
Draft

feat(canvas): add recent tasks tab to Activity view#3442
raquelmsmith wants to merge 1 commit into
mainfrom
posthog-code/activity-recent-tasks

Conversation

@raquelmsmith

Copy link
Copy Markdown
Member

Problem

The Activity view only surfaced channel mentions. It should also let you see the tasks you've recently worked on, without leaving the Activity surface.

Why: Raquel asked for the Activity view to show a paged list of her recent tasks alongside the existing notifications, with each item showing the task name and its current-status icon.

Changes

  • Added a Mentions / Tasks tab switcher to the Activity view. Mentions is unchanged; Tasks is new.
  • The Tasks tab lists the current user's tasks, newest first. Each row reuses the sidebar's TaskIcon for the live status icon plus the task title and a relative timestamp; clicking opens the task (in its channel when it's filed to one).
  • The list is offset-paginated (new getTasksPage API method + useRecentTasksInfinite hook) and auto-loads the next page from an IntersectionObserver sentinel as you scroll near the bottom, with a spinner while fetching and an end-of-list marker.
  • Reuses existing primitives throughout (quill Empty/Spinner/Button, useInView, TaskIcon) and the existing open_task channel analytics event.

How did you test this?

  • pnpm --filter @posthog/api-client typecheck and pnpm --filter @posthog/ui typecheck — clean.
  • Biome check on all changed files — clean.
  • pnpm --filter @posthog/ui test — all 1566 tests pass.
  • Not yet exercised in the running app; pulling down for a manual pass is welcome.

Automatic notifications

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

Created with PostHog Code

The Activity view showed only channel mentions. Add a "Tasks" tab alongside
"Mentions" listing the current user's tasks, newest first, each row showing the
task title and its live status icon (reusing the sidebar's TaskIcon).

The tasks list is offset-paginated via a new getTasksPage API method and a
useRecentTasksInfinite hook, and auto-loads the next page from an
IntersectionObserver sentinel as the user scrolls near the bottom.

Generated-By: PostHog Code
Task-Id: 51f7b839-f0eb-482c-adfe-7a2c2e6ad8d1
@trunk-io

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

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit e6bea6c.

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