Skip to content

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Jan 29, 2026

Remaps scraps imports to use the top level module exports. This change will allow us to enable module boundary rules and distinguish between scraps private modules and the public interface (we cannot do that currently as scraps is still to tightly coupled to sentry so this is the next best thing)

The PR generates lines due to scraps being sorted into separate import groups

ref DE-796

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 29, 2026
@linear
Copy link

linear bot commented Jan 29, 2026

@@ -1,4 +1,5 @@
import {Button, type ButtonProps} from 'sentry/components/core/button';
import {Button, type ButtonProps} from '@sentry/scraps/button';
Copy link
Member

Choose a reason for hiding this comment

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

Hmm some of these use import type { ComponentProps } but some use import { Component, type ComponentProps }. While we're touching every file should we enforce one? import type is less of a foot-gun imo

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