regression: DM sidebar tooltip shows empty while presence loads#41107
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout. (3)
|
| Layer / File(s) | Summary |
|---|---|
UserStatusTooltipContent component and hook wiring apps/meteor/client/hooks/useUserStatusTooltip.tsx |
Adds an internal component that fetches presence via useUserPresence and renders a Skeleton or UserStatusText; updates onMouseEnter to render it within UserPresenceContext.Provider and changes the callback dependency to userPresence. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Suggested labels: type: bug
Suggested reviewers: dougfabris
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly matches the main change: fixing the DM sidebar tooltip while presence data is still loading. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
Warning
Review ran into problems
🔥 Problems
Errors were encountered while retrieving linked issues.
Errors (1)
- CORE-2359: Request failed with status code 401
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 @coderabbitai help to get the list of available commands.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-8.6.0 #41107 +/- ##
================================================
Coverage ? 70.16%
================================================
Files ? 3371
Lines ? 130435
Branches ? 22652
================================================
Hits ? 91522
Misses ? 35597
Partials ? 3316
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
db7a19a to
958f451
Compare
958f451 to
196b9d1
Compare
Proposed changes (including videos or screenshots)
Hovering a DM in the sidebar while the partner's presence was still loading showed an empty tooltip.
useUserStatusTooltipopened the tooltip with a static<UserStatusText>snapshot, and while presence wasundefinedthat snapshot rendered nothing.The hook now opens a small self-subscribing component (
UserStatusTooltipContent) that:Skeletonwhile presence is loading, thenSince the tooltip renders above
UserPresenceProvider, the hook bridgesUserPresenceContextinto the tooltip so the content'suseUserPresenceresolves inside the portal. The whole fix is contained inuseUserStatusTooltip.tsx; no shared components were touched.Regression introduced by #40469.
Issue(s)
Steps to test or reproduce
/v1/users.presence) so presence loads slowly.Before: tooltip appears empty, only showing the status after a re-hover.
After: tooltip shows a loading spinner, then live-updates to the status (e.g. "Offline") in place — no re-hover.
Further comments
Summary by CodeRabbit