Skip to content

fix(issues): Balance stack trace frame headers#119792

Merged
scttcper merged 1 commit into
masterfrom
scttcper/stack-trace-header
Jul 16, 2026
Merged

fix(issues): Balance stack trace frame headers#119792
scttcper merged 1 commit into
masterfrom
scttcper/stack-trace-header

Conversation

@scttcper

@scttcper scttcper commented Jul 15, 2026

Copy link
Copy Markdown
Member

Long filenames in collapsed stack trace frames could take over the header and hide most of the function name. Long package names also competed equally with the more useful function context.

Give filenames a balanced cap only when a collapsed frame has a function, let package context yield first, and tighten the action spacing. Expanded and package-only frames keep the full available width.

before

image

after

image

Long filenames could crowd out function names, while long package names competed equally with the more useful function context.

Cap filenames only on collapsed frames with functions, let package context yield first, and tighten the action spacing. Expanded and package-only frames keep the full available width.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Story previews

Preview the stories changed in this PR on the Vercel deployment:

Preview deployment: https://sentry-5sm87c82u.sentry.dev

@scttcper scttcper marked this pull request as ready for review July 15, 2026 23:32
@scttcper scttcper requested a review from a team as a code owner July 15, 2026 23:32
@scttcper scttcper requested a review from a team July 15, 2026 23:32

@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 2 potential issues.

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 5b99135. Configure here.

gap: ${p => p.theme.space.sm};
min-width: 0;
overflow: hidden;
`;

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.

New styled flex wrappers

Low Severity

FunctionContext and PackageContext are new styled() wrappers that set display: inline-flex. Frontend guidelines require layout via Flex from @sentry/scraps/layout instead of hand-rolled flex styled components. Flex already supports as="span", display="inline-flex", align, flex, gap, minWidth, and overflow.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by project rule: Frontend guidelines

Reviewed by Cursor Bugbot for commit 5b99135. Configure here.

align-items: baseline;
min-width: 0;
max-width: 100%;
max-width: ${p => (!p.isExpanded && p.hasFunction ? '55%' : '100%')};

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.

Lead hint reduces path budget

Low Severity

The new 55% collapsed cap is applied on LocationWrapper, which also wraps the non-shrinking LeadHint. On lead-hint frames, hint text such as Crashed in non-app consumes part of that budget, so the path truncates more than the intended filename-vs-function balance.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 5b99135. Configure here.

@scttcper scttcper merged commit 1cf72b6 into master Jul 16, 2026
81 checks passed
@scttcper scttcper deleted the scttcper/stack-trace-header branch July 16, 2026 17:38
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.

2 participants