Skip to content

Conversation

@isabellaenriquez
Copy link
Member

@isabellaenriquez isabellaenriquez commented Nov 28, 2025

Split out from #103983

Pt 2 of https://linear.app/getsentry/issue/BIL-1817/update-usage-overview-table-with-new-designs

This PR updates the Usage Overview buttons (including a copy and small design change: View usage history -> View all usage) and also moves Usage Overview-related components to a subfolder.

Screenshot 2025-11-28 at 2 07 18 PM

On mobile, becomes ellipsis button with dropdown:
Screenshot 2025-11-28 at 2 08 02 PM

Also updated some styling related to borders, padding, and background colors on the Overview page:

Screenshot 2025-11-28 at 2 18 33 PM Screenshot 2025-11-28 at 2 18 42 PM

@isabellaenriquez isabellaenriquez requested a review from a team as a code owner November 28, 2025 19:09
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 28, 2025
Comment on lines 824 to 830
{`${startDate.format(startsAndEndsSameYear ? 'MMM D' : 'MMM D, YYYY')} - ${endDate.format('MMM D, YYYY')}`}
</Text>
</Flex>
{hasBillingPerms && (
<Flex gap="lg" direction={{xs: 'column', sm: 'row'}}>
<LinkButton
icon={<IconGraph />}
aria-label={t('View usage history')}
priority="link"
to="/settings/billing/usage/"
>
{t('View usage history')}
</LinkButton>
<Button
icon={<IconDownload />}
aria-label={t('Download as CSV')}
disabled={isPending || isError}
onClick={() => {
trackGetsentryAnalytics('subscription_page.download_reports.clicked', {
organization,
reportType: 'summary',
});
if (currentHistory) {
window.open(currentHistory.links.csv, '_blank');
}
}}
>
{t('Download as CSV')}
</Button>
</Flex>
)}
{hasBillingPerms && <UsageOverviewActions organization={organization} />}
</Flex>
<UsageOverviewTable
subscription={subscription}

This comment was marked as outdated.

Copy link
Member Author

Choose a reason for hiding this comment

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

intentional since button design has changed on mobile views

</Button>
</Flex>
)}
{hasBillingPerms && <UsageOverviewActions organization={organization} />}
Copy link
Contributor

Choose a reason for hiding this comment

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

Bug: Removed responsive direction from header Flex

The parent Flex container lost its direction={{xs: 'column', sm: 'row'}} prop during the refactor. On narrow screens that aren't classified as NavLayout.MOBILE (like small tablets), the header will remain in row layout instead of stacking vertically, potentially causing layout overflow or cramped appearance. The align={{xs: 'start', sm: 'center'}} prop suggests this flex was intended to have responsive direction behavior.

Fix in Cursor Fix in Web

Base automatically changed from isabella/uo-v2-pt-1 to master December 2, 2025 16:31
@isabellaenriquez isabellaenriquez merged commit 00b265b into master Dec 2, 2025
48 checks passed
@isabellaenriquez isabellaenriquez deleted the isabella/uo-v2-pt-2 branch December 2, 2025 18:10
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.

5 participants