Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(error-tracking): stabilize exception card header story (#107041)

Paul D'Ambra38aaea2a7b7f
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 8e44393ad243..cc416bb2617f 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2641,9 +2641,9 @@ snapshots:
errortracking-exceptioncard--exception-card-header-widths--light:
hash: v1.k794b7964.96ab37bc32797721d97410925e8c89bf739322a340ff8ee62dbd014a139a7f59.HCV39CI_4XqbwUW8QD8DDxSw_CeL5cui9smBv0MDeY0
errortracking-exceptioncard--exception-card-header-widths-with-action--dark:
- hash: v1.k794b7964.b80263f67c0d7d1e25bc2a91d738d80474ce40c97df64d2636bcc6a5dfa38e97.1uYHWbCS1ez7dIDtoz0c3GGZhBI3vHTN-1zaky50yqI
+ hash: v1.k794b7964.d573c7881713d67ef1a7dc960fd33c48212b432d655fdd88bf41930c75d00b8b.Hq0oLw33s_BJHtZ4VmLPD0SCZ7xmP8glZGkjfy7remc
errortracking-exceptioncard--exception-card-header-widths-with-action--light:
- hash: v1.k794b7964.25974971fa0cf2dbe86348ce1144e8b8a0ff7c1a7e172ecc941e6b345144841f.dT_74I4ZqX-DFX_ayPWR8lutK4EVque9Zyjbci6Hj6I
+ hash: v1.k794b7964.fa3926467438994babfeb859e507aa4071b0489654e5a9151e856b3fc6695459.WmIqn8c1cmv9lbViVkzoqkrA6UF08Z-BkInlJIBINNM
errortracking-exceptioncard--exception-card-logs--dark:
hash: v1.k794b7964.1030bfe45ba31d3fe94873ce09cdaeda8f81e86c0f71072d64a6267c551c6242.0pD2zOgFDmK5w5r-MnEbEzSAtOGpgYFKzEI8oJ8gUcs
errortracking-exceptioncard--exception-card-logs--light:
diff --git a/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.stories.tsx b/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.stories.tsx
index 5b9dfcf776a5..f6a89180f3cb 100644
--- a/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.stories.tsx
+++ b/products/error_tracking/frontend/components/ExceptionCard/ExceptionCard.stories.tsx
@@ -658,18 +658,20 @@ export function ExceptionCardHeaderWidthsWithAction(): JSX.Element {
const event = asErrorEventType(TEST_EVENTS['javascript_resolved'])
return (
- <HeaderWidthMatrix widths={HEADER_WIDTHS.filter(({ width }) => width <= 576)}>
- {(width) => (
- <OpenTab tab="timeline" issueId={`header-action-${width}`}>
- <ExceptionCard
- issueId={`header-action-${width}`}
- issueName="Test Issue"
- loading={false}
- event={event}
- />
- </OpenTab>
- )}
- </HeaderWidthMatrix>
+ <div className="[&_[data-attr=session-timeline-scroll-container]]:overflow-clip">
+ <HeaderWidthMatrix widths={HEADER_WIDTHS.filter(({ width }) => width <= 576)}>
+ {(width) => (
+ <OpenTab tab="timeline" issueId={`header-action-${width}`}>
+ <ExceptionCard
+ issueId={`header-action-${width}`}
+ issueName="Test Issue"
+ loading={false}
+ event={event}
+ />
+ </OpenTab>
+ )}
+ </HeaderWidthMatrix>
+ </div>
)
}
ExceptionCardHeaderWidthsWithAction.parameters = headerActionParameters()