Skip to content

ref(components): Remove GroupTombstone from shared component props#110949

Merged
scttcper merged 6 commits intomasterfrom
scttcper/remove-tombstone-from-group-components
Mar 19, 2026
Merged

ref(components): Remove GroupTombstone from shared component props#110949
scttcper merged 6 commits intomasterfrom
scttcper/remove-tombstone-from-group-components

Conversation

@scttcper
Copy link
Member

Stacked on #110937.

The only place that renders tombstones is groupTombstones.tsx, so move the tombstone title/message rendering there instead of routing it through GroupHeaderRow. This removes GroupTombstoneHelper from the prop types of GroupHeaderRow, GroupTitle, EventMessage, and createIssueLink. Also removes the unused data prop from EventMessage.

scttcper and others added 2 commits March 17, 2026 15:47
The EventOrGroupHeader, EventOrGroupTitle, and EventOrGroupExtraDetails
components previously accepted Event | Group | GroupTombstoneHelper but
now only accept Group | GroupTombstoneHelper. With Event removed from the
interface, the EventOrGroup prefix is no longer accurate, so rename:

- EventOrGroupHeader → GroupTitleRow
- EventOrGroupTitle → GroupTitle
- EventOrGroupExtraDetails → GroupMetaRow

Update all call sites, migrate tests from EventFixture to GroupFixture,
and add missing assertions to render-only tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@scttcper scttcper requested review from a team as code owners March 17, 2026 23:42
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 17, 2026
Move tombstone rendering into groupTombstones.tsx, the only consumer
that passes tombstone data. This simplifies the shared components:

- GroupHeaderRow: data narrows from Group | GroupTombstoneHelper to Group
- GroupTitle: data narrows from BaseGroup | GroupTombstoneHelper to BaseGroup
- EventMessage: remove unused data prop entirely
- createIssueLink: remove GroupTombstoneHelper from union
- IssueSummary: remove dead isTombstone check and TitleWithoutLink

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
@scttcper scttcper force-pushed the scttcper/remove-tombstone-from-group-components branch from fd6b49c to 98104d4 Compare March 17, 2026 23:44
Base automatically changed from scttcper/no-more-groupEvent to master March 18, 2026 18:11
@scttcper scttcper requested review from a team as code owners March 18, 2026 18:11
Copy link
Contributor

@cvxluo cvxluo left a comment

Choose a reason for hiding this comment

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

i think this needs a rebase but lgtm

…bstone-from-group-components

# Conflicts:
#	static/app/components/feedback/feedbackItem/crashReportSection.tsx
#	static/app/components/groupHeaderRow.spec.tsx
#	static/app/components/groupHeaderRow.tsx
#	static/app/components/groupMetaRow.spec.tsx
#	static/app/components/groupTitle.spec.tsx
#	static/app/components/groupTitle.tsx
#	static/app/views/settings/project/projectFilters/groupTombstones.tsx
Both are only used internally within events.tsx — no external imports.
Copy link
Member

@malwilley malwilley left a comment

Choose a reason for hiding this comment

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

RIP Group | GroupTombstoneHelper

@scttcper scttcper merged commit f9f8ed3 into master Mar 19, 2026
63 checks passed
@scttcper scttcper deleted the scttcper/remove-tombstone-from-group-components branch March 19, 2026 17:39
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.

3 participants