feat(scraps): adopt GlobalDrawer component into design system#113489
Conversation
a4f8ad2 to
12c11a2
Compare
This comment was marked as outdated.
This comment was marked as outdated.
34f8863 to
1867484
Compare
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 d3bf81ee482168e5c298d1670c3339078b510d7d. Configure here.
22ecdb2 to
fdc98a9
Compare
| openDrawer(() => <SeerDrawer group={group} project={project} event={event} />, { | ||
| ariaLabel: t('Seer drawer'), | ||
| drawerKey: 'seer-autofix-drawer', | ||
| drawerCss: css` | ||
| height: fit-content; | ||
| max-height: 100%; | ||
| `, | ||
| resizable: true, | ||
| closeOnOutsideClick: false, | ||
| shouldLockScroll: false, | ||
| mode: 'passive', | ||
| onClose: () => { | ||
| navigate( | ||
| { |
There was a problem hiding this comment.
Bug: The Seer drawer now always renders at full viewport height because the drawerCss prop that set height: fit-content was removed.
Severity: LOW
Suggested Fix
Reintroduce the height: fit-content styling to the Seer drawer. This can be done by applying a style directly to the Drawer component or by using a styled-component wrapper that sets the height appropriately, ensuring it only takes up the space required by its content.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.
Location: static/app/views/issueDetails/streamline/sidebar/seerDrawer.tsx#L55-L62
Potential issue: The Seer drawer component will now always render at the full height of
the viewport, regardless of its content's size. This is because the `drawerCss` prop,
which previously applied `height: fit-content`, was removed during the refactor to use
the `mode: 'passive'` API. The underlying `DrawerSlidePanel` component has a hardcoded
`height: 100%`, and without the `drawerCss` override, this style is now applied, causing
the drawer to occupy the entire screen height instead of fitting its content.
| drawerCss: css` | ||
| height: fit-content; | ||
| max-height: 100%; | ||
| `, | ||
| resizable: true, | ||
| closeOnOutsideClick: false, | ||
| shouldLockScroll: false, |
There was a problem hiding this comment.
warms my heart to see all these props removed

Moves
GlobalDrawerinto@sentry/scraps/drawer. Combines individual boolean options with a singlemode: 'blocking' | 'passive', which is also wired through to theSlideOverPanelprimitive. Removed overrides likedrawerCssandtransitionProps(only used in a few places, not needed).Most file changes here are just updating imports from
sentry/components/globalDrawer/componentsto@sentry/scraps/drawerRecommended review mode: Only files owned by you

Closes DE-1167, DE-1170, DE-1173