Repository navigation
fix(dashboard): Show when an object card was fetched and keep hover card height stable - #3413
Merged
Merged
Conversation
…ard height stable Replace the "Latest saved state" footer on saved object cards with "Last fetched <relative time>", read from the Annotation's updatedAt. A hover card for a saved link swaps to the live card when the API answers, so its height changed and the popup jumped. Give that hover card a fixed height while the live card can still replace it. The card body scrolls when it is taller. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ed-at # Conflicts: # packages/junior-dashboard/src/client/display-text/ObjectLinks.tsx
BYK
approved these changes
Nov 14, 2026
BYK
enabled auto-merge (squash)
November 14, 2026 00:21
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c7d387a. Configure here.
Contributor
|
254 screenshot changes — 0 changed · 254 added · 0 removed |
BYK
pushed a commit
that referenced
this pull request
Nov 14, 2026
…efer object fetch time (#3414) Follow-up to #3413. It fixes two issues Cursor Bugbot found after that PR auto-merged. - **Refetch restores reserved hover height.** `settled` was `requested !== undefined && !isFetching`, so any later request turned the reserved height back on. That covers a window-focus refetch or a request for new links in a streamed message. A saved link that had already resolved without a live card then grew to 22rem while its hover card was open. `fetchObjects` now adds an entry for every link it asked about, including links without a card. `settled` is true once an answer covers the link or a request fails, and later requests keep it true. - **Link Annotations stamp the fetch time.** `savedObjectsFromAnnotations` took the newest Annotation for a plugin and key. A newer `resource_link` therefore set "Last fetched" over the older object Annotation that holds the facts. The object Annotation now sets the fetch time and preview images over a newer link with the same key. <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3A38ca34424e6025ca446d8a2f --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3A38ca34424e6025ca446d8a2f) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A38ca34424e6025ca446d8a2f/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
23 tasks done
This branch was successfully deployed
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.

Saved object cards said "Latest saved state", which tells the reader nothing. They now say Last fetched 5 minutes ago (relative time from the Annotation's
updatedAt, absolute time on hover). Live cards show no fetch time, because they were just fetched.A hover card for a link that has only a saved link Annotation (common for GitHub PRs) first shows the sparse saved card. Then it swaps to the live card when
/api/objectsanswers. The height changed (167px → 221px in the mock), so the popup jumped. That hover card now has a fixed height (min(22rem, available height)) while the live card can still replace it, and it keeps that height after the swap. The card body scrolls when it is taller, and the footer stays at the bottom. If the live fetch finishes without a card, the saved card goes back to its natural height.Other hover cards never swap, so they keep their natural height.
Preview images and the new fetch time come from one
SavedObjectsContext, which replacesObjectPreviewImagesContext.Screenshots
Mock dashboard.
/api/objectsis delayed 6s and returns a live PR card forgetsentry/junior#2201.Before: the popup grows when the live card arrives.

After: same height in both states.

Not covered
getsentry/junior#2201→Update Junior to 4.2 after the release (#2201)). This moves the anchor, so the popup still shifts sideways.via @BYK.
--
View Session [Sentry]