hotfix(tickets): restore dashboard-activity events (remote shell/control + resolve)#8
Conversation
…resolve Three ticket-detail activity events were broken: - open_remote_shell_ticket_detail / open_remote_control_ticket_detail stopped firing (the tracking relied on the core ActionsMenu invoking onClick on an href <Link> row — a fragile implementation detail). - resolve_ticket_ticket_detail never fired: the RESOLVE_TICKET subtype was defined but wired to a handleResolve that never existed. Resolve actually happens through the inline status changer (and the Edit form), neither of which tracked anything. Fixes: - withActivityTracking now drops the item href and drives navigation itself (trackDashboardActivity + router.push) inside onClick, forcing the reliable button-row path whose onClick always fires. Windows Remote Shell submenu leaves are handled by the existing recursion. - Resolve is tracked optimistically on click (not on mutation success) at every in-detail resolve entry point: the status changer and the Edit Ticket form. A new isResolvedStatusId() predicate (keyed on status kind, so custom-named resolved statuses count) is the single source of truth shared by both. Board drag-to-Resolved is intentionally NOT tracked (different surface — would need its own subtype). Docs (dashboard-activity-events.md) updated to match.
|
Warning Review limit reached
Next review available in: 59 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
Per the analytics review, three
DASHBOARD_ACTIVITYsubtypes from the ticket-detail page were broken:open_remote_shell_ticket_detail/open_remote_control_ticket_detail— stopped firing (~0 in the last 7 days, present a month ago).resolve_ticket_ticket_detail— never fired at all.start_direct_chat_ticket_detailwas fine (tracked in a mutation hook, not affected).Root causes
onClickon menu items that navigate viahref. Whether the coreActionsMenuinvokesonClickon anhref<Link>row is an internal implementation detail — a fragile dependency that silently dropped the events.RESOLVE_TICKETsubtype was defined and documented but wired to ahandleResolvethat never existed. Resolve actually happens through the inline status changer (and the Edit Ticket form), neither of which tracked anything.Fixes
withActivityTrackingnow drops the itemhrefand drives navigation itself (trackDashboardActivity+router.push) insideonClick, forcing the reliable button-row path whoseonClickalways fires. The Windows Remote Shell submenu leaves are covered by the existing recursion.ticket-details-view.tsx → handleTransition), anduseCreateTicketForm.handleSave).isResolvedStatusId()predicate — keyed on status kind, so custom-named resolved statuses ("Done"/"Closed") count — is the single source of truth shared by both.Optimistic-on-click was a deliberate call: losing one event on a rare failed transition is acceptable; missing real resolves because a success callback didn't land is not.
Intentionally out of scope
useMoveTicket) is a different surface; tracking it would need its own subtype (e.g.resolve_ticket_board), not_ticket_detail.Notes
docs/dashboard-activity-events.mdupdated to match (wire points + fire-timing policy).type-checkand Biome clean on touched files.