Skip to content

feat(investigations): Say what started an investigation in its activity - #131323

Open
sentry-junior[bot] wants to merge 8 commits into
masterfrom
jr/feat/investigation-started-activity
Open

sentry-junior[bot] wants to merge 8 commits into
masterfrom
jr/feat/investigation-started-activity

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • A person: "Investigation started by [avatar + name chip]". The current user is used directly when they created it. Anyone else is looked up from createdBy through the members endpoint.
  • An automation: "Investigation started by [Breached Metrics] automation". The chip shows the automation's name, or its strategy label if it has none.
  • A source issue: "Investigation started from [issue chip]", an accent chip with the issue icon that links to the metric issue, like the issue feed's linked-investigation chip.
  • If none of these are known, the row just says "Investigation started".

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 trigger field. 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's createdBy, so the row names them. A run that a service account starts has no createdBy and no automation reference yet, so it also says "from [issue]" until the detail API sends trigger.

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

Location Before After
Investigation › Activity, started by a person Started by a person before Started by a person after
Investigation › Activity, started by an automation Started by an automation before Started by an automation after
Investigation › Activity, started from an issue Started from an issue before Started from an issue after

via @Chelseahua.

--

View Session [Sentry]

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>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Story previews

Preview 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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ 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.
sentry-junior Bot and others added 2 commits December 3, 2026 00:54
…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>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
scraps Ignored Ignored Preview Dec 3, 2026 12:57am UTC

Request Review

This branch was successfully deployed

2 active (1 outdated) deployments
Preview – sentry — 7922eb62 Deployed Dec 3, 2026 by vercel[bot]
Preview — 6fdb331f Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant