Repository navigation
feat(investigations): Say what started an investigation in its activity - #131323
Open
sentry-junior[bot] wants to merge 8 commits into
Open
sentry-junior[bot] wants to merge 8 commits into
sentry-junior[bot] wants to merge 8 commits into
Conversation
Replace the "Investigation first created" row with "Investigation started", followed by who or what started it: the user, the automation, or the issue the investigation came from. Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com>
Contributor
Story previewsPreview the stories changed in this PR on the Vercel deployment: Preview deployment: https://sentry-i7rradoao.sentry.dev |
…eed chips Use the issue activity feed's inline chips for the person, automation, and source issue in the "Investigation started" row, and add a story with each case. Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com>
…hout a second avatar The row already leads with their avatar, so show only their name, like the author of an issue activity note. Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com>
…r the timeline dot Keep the timeline dot for every "Investigation started" row and show the person as an avatar chip, like the automation and issue references. Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com>
The chips sat inline in ActivityLineHeadline's sentence, below the text, and Rubik's capitals sat high in each chip. Lay the row out as flex items trimmed to cap height, so the marker, words, avatar, and chip labels share one center. Use the filled activity dot as the marker. Co-Authored-By: Chelsea Hua <chelsea.hua@sentry.io>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 11c80ab. Configure here.
…estigation When a person created an investigation, the started row fell through to "from [issue]" while their member lookup was loading, after it failed, or if they left the org. Only service accounts create investigations without createdBy, so credit the source issue only then.
…on-started-activity Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com> # Conflicts: # static/app/views/investigations/activity/investigationActivity.spec.tsx
Co-Authored-By: Chelsea Hua <48571226+Chelseahua@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.

The last row of the investigation Activity feed said "Investigation first created". It now says Investigation started, followed by who or what started it, to match the design (cc @Chelseahua). Every case uses the feed's filled activity dot as its marker and shows the reference in the issue activity feed's inline chips:
createdBythrough the members endpoint.Alignment. In
ActivityLineHeadline's inline sentence the chips sat about 1.5px below the text, and the names sat high inside their chips, because Rubik's capitals sit above the middle of its line box. This row lays the words and chips out as flex items and trims the text to cap height (text-box: trim-both cap alphabetic), so the marker, text, chip, avatar, and chip label share one center. Measured in the screenshots, they now line up to within half a pixel. The shared issue-feed components are unchanged.The Activity stories have a new "What started the investigation" story with each case.
The automation case reads the optional
triggerfield. The detail API doesn't send that field yet. It was added to the list response in #130175, which hasn't merged, and that PR's serializer path has since been renamed. Until the field ships, an automation-started breached-metric investigation falls through to the "from [issue]" wording.This also covers investigations from the new workflow path (
?version=2). They use the same notebook detail page and Activity feed. A person who starts one from the monitor is the notebook'screatedBy, so the row names them. A run that a service account starts has nocreatedByand no automation reference yet, so it also says "from [issue]" until the detail API sendstrigger.The issue chip shows the monitor name, like the header does. The mockup shows the issue's short ID (for example
CHECKOUT-231), but the detail response only has the group ID and the monitor name, so the short ID would need one more request or a backend change.Changed
via @Chelseahua.
--
View Session [Sentry]