trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a - #3843
Closed
trunk-io[bot] wants to merge 18 commits into
Closed
trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a#3843trunk-io[bot] wants to merge 18 commits into
trunk-io[bot] wants to merge 18 commits into
Conversation
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
|
React Doctor found 2 issues in 2 files · 2 warnings. 2 warnings
Reviewed by React Doctor for commit |
trunk-io
Bot
deleted the
trunk-merge/pr-3671/35a106b6-808f-4162-ba67-55975397117a
branch
July 27, 2026 14:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.