Skip to content

trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a - #3843

Closed
trunk-io[bot] wants to merge 18 commits into
mainfrom
trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a
Closed

trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a#3843
trunk-io[bot] wants to merge 18 commits into
mainfrom
trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a

Conversation

@trunk-io

@trunk-io trunk-io Bot commented Jul 27, 2026

Copy link
Copy Markdown
Trunk Merge Pull Request Banner

This pull request was created and is being managed by Trunk Merge.

This pull request is based on the main branch at SHA f632bfb7ad41da26d56e1f55b5d4e7a510315090.

See more details here.

When CI completes, this pull request will be closed automatically.

Pull Requests Being Tested

This pull request is testing the changes from pull request 3671.

k11kirky and others added 18 commits July 26, 2026 06:56
Reworks the Channels Activity view from a raw @-mentions list into a
task-centric feed: one row per task the user is involved in — created,
@-mentioned in, or messaged in — newest activity first, backed by the new
`/task_activity/` endpoint.

Rows read per activity kind: "… is waiting for your reply" (agent turn
awaiting input), "You replied", "… mentioned you", or "You created this task",
each with a snippet where one applies. The sidebar badge counts tasks with
activity newer than the last visit. The prior mentions plumbing
(`useMentionActivity` / `mentionActivity`) stays in place — it still powers
per-channel unread state.

Why: users want the Activity view to surface all activity involving them —
especially tasks an agent updated and is waiting on them for — not just mentions.

Generated-By: PostHog Code
Task-Id: c10b01e4-4645-4c82-98b2-610b533f7f7c
Generated-By: PostHog Code
Task-Id: c4f5025f-8edf-40d4-a163-7174899045d1
Landing on the Activity page marked everything read, so anything that arrived
while it was open was dismissed unseen. Rows now clear when they are opened, and
markTaskActivityRead names the tasks rather than sweeping the whole feed.

Read state is per task on the server, so reaching a task any other way clears the
same row. useTaskThread pulls the feed back in when a thread loads, which keeps
the sidebar badge honest without waiting out its poll.

The unread dot reads is_unread straight off the row instead of comparing against
a snapshot of the last visit.


Generated-By: PostHog Code
Task-Id: 35a47457-b411-4d4b-80a5-ad06e2e6b1e5
SidebarNavSection.test.tsx still stubbed useMentionActivity and
activitySeenStore. ActivityItem moved to useTaskActivity, so the real hook ran,
reached for a TRPC client with no provider mounted, and took all 10 render cases
down with "useTRPCClient() can only be used inside of a <TRPCProvider>".


Generated-By: PostHog Code
Task-Id: 35a47457-b411-4d4b-80a5-ad06e2e6b1e5
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
16 updated
Run: 4d0ffcf3-2279-486b-b574-6e1e35cef15c

Co-authored-by: k11kirky <4571455+k11kirky@users.noreply.github.com>
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
Generated-By: PostHog Code
Task-Id: 744f81ec-6b8e-420c-960c-541b1932b46c
@github-actions

Copy link
Copy Markdown

React Doctor found 2 issues in 2 files · 2 warnings.

2 warnings

src/features/canvas/components/ActivityView.tsx

src/features/canvas/components/ChannelFeedView.test.tsx

Reviewed by React Doctor for commit f15aa11.

@trunk-io trunk-io Bot closed this Jul 27, 2026
@trunk-io
trunk-io Bot deleted the trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a branch July 27, 2026 14:47
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