Skip to content

Conversation

@Abdkhan14
Copy link
Contributor

@Abdkhan14 Abdkhan14 commented Nov 25, 2025

  • I will be consolidating shared components between the 2 views (comparison view, total distribution view and loading view) in following PRs
Screenshot 2025-11-24 at 9 08 59 PM

@Abdkhan14 Abdkhan14 requested a review from a team as a code owner November 25, 2025 02:05
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 25, 2025
Copy link
Contributor

@nsdeschenes nsdeschenes left a comment

Choose a reason for hiding this comment

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

One small nit to look at

import Placeholder from 'sentry/components/placeholder';
import {IconMegaphone} from 'sentry/icons/iconMegaphone';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
Copy link
Contributor

Choose a reason for hiding this comment

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

Small nit: Are you able to utilize the theme.space.<size> for the spaces over this util function 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nsdeschenes done ✅

@Abdkhan14 Abdkhan14 merged commit 10e2130 into abdk/attr-breakdowns-search-persistence Nov 25, 2025
15 of 16 checks passed
@Abdkhan14 Abdkhan14 deleted the abdk/attr-breakdowns-loading-state branch November 25, 2025 17:07
Comment on lines 243 to 247
const SelectionHintContainer = styled('div')`
display: flex;
flex-direction: column;
gap: ${space(0.5)};
margin-bottom: ${space(1)};
`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be really cool if, while touching those styled components, we could refactor them towards the layout primitives of the design-system.

For example, this one would just be a simple:

<Flex orientation="column" gap="xs" align="center">

<ChartsGrid>
{Array.from({length: 9}).map((_, index) => (
<LoadingChart key={index} />
))}
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Loading skeleton shows 9 charts, actual content shows 12

The LoadingCharts component renders 9 placeholder charts (Array.from({length: 9})), but the actual content views use CHARTS_PER_PAGE = CHARTS_COLUMN_COUNT * 4 which equals 12 charts per page (3 columns × 4 rows vs 3 columns × 3 rows). This mismatch causes a visual layout jump when loading completes, as the grid height changes from 3 rows to potentially 4 rows.

Fix in Cursor Fix in Web

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.

4 participants