Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
17aec43
ref: first manual cleanup of "page-frame" string
TkDodo Jun 17, 2026
7467371
ref: remove useHasPageFrameFeature + usages
TkDodo Jun 18, 2026
69ce501
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 18, 2026
77f7a3d
fix(✂️): knip
TkDodo Jun 18, 2026
04e4cb6
ref: remove footer and unused layouts
TkDodo Jun 18, 2026
a681120
ref: simplify appBodyContent
TkDodo Jun 18, 2026
db7fae2
ref: simplify ResultsHeader
TkDodo Jun 18, 2026
bfeba0a
ref: remove MaybeTopBarSlot
TkDodo Jun 18, 2026
0010382
ref: unify styled GrowingInput
TkDodo Jun 18, 2026
d19c342
ref: inline content
TkDodo Jun 18, 2026
9ed94d1
ref: rename MobileNavigation
TkDodo Jun 18, 2026
b5a6ebb
simplify super-user warning message
TkDodo Jun 18, 2026
79faeb2
remove leftover null
TkDodo Jun 18, 2026
4c5470c
test: there is no "Create Dashboard" text anymore with pageFrame mode
TkDodo Jun 18, 2026
c008229
remove unnecessary test
TkDodo Jun 18, 2026
7498c92
ref: update tests to work with pageFrame mode
TkDodo Jun 18, 2026
0651e94
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 18, 2026
badf48a
ref: set back tests to query by header
TkDodo Jun 18, 2026
2f80a68
fix: use a global h1 for title slot
TkDodo Jun 18, 2026
4b1b604
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 18, 2026
593c466
fix: restore headings for Layout.Title outside of organization layout
TkDodo Jun 18, 2026
ff26c8f
Revert "fix: use a global h1 for title slot"
TkDodo Jun 18, 2026
1ced4c2
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 18, 2026
84f89cb
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
f293e68
fix: ts
TkDodo Jun 19, 2026
1932aab
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
051fe37
test: render topBar as h1s
TkDodo Jun 19, 2026
6573509
fix markdown tests
TkDodo Jun 19, 2026
590a3a7
fix heading related test assertions
TkDodo Jun 19, 2026
b046e03
test timing
TkDodo Jun 19, 2026
490732d
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
8ad6e4a
fix wrong cleanup
TkDodo Jun 19, 2026
8878fe6
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
b009712
fix: enable visibility-explore-view feature in acceptance test
TkDodo Jun 19, 2026
dc4a35e
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
ea240ee
fix: restore test-id forwarding
TkDodo Jun 19, 2026
d90bdcd
Merge branch 'master' into tkdodo/ref/cleanup-page-frame-feature-flag
TkDodo Jun 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions static/app/components/core/drawer/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {TooltipContext} from '@sentry/scraps/tooltip';
import {IconClose} from 'sentry/icons/iconClose';
import {t} from 'sentry/locale';
import {PRIMARY_HEADER_HEIGHT} from 'sentry/views/navigation/constants';
import {useHasPageFrameFeature} from 'sentry/views/navigation/useHasPageFrameFeature';

import {
DEFAULT_WIDTH_PERCENT,
Expand Down Expand Up @@ -137,15 +136,14 @@ export function DrawerHeader({
hideCloseButtonText = false,
}: DrawerHeaderProps) {
const {onClose} = useDrawerContentContext();
const hasPageFrameFeature = useHasPageFrameFeature();

return (
<Header
ref={ref}
className={className}
hideCloseButton={hideCloseButton}
hideBar={hideBar}
height={hasPageFrameFeature ? `${PRIMARY_HEADER_HEIGHT}px` : undefined}
height={`${PRIMARY_HEADER_HEIGHT}px`}
>
{!hideCloseButton && (
<Fragment>
Expand Down
8 changes: 4 additions & 4 deletions static/app/components/core/markdown/markdown.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ describe('Markdown', () => {
});

it('renders headings', () => {
render(<Markdown raw="# Heading 1" />);
expect(screen.getByRole('heading', {level: 1})).toHaveTextContent('Heading 1');
render(<Markdown raw="## Heading 2" />);
expect(screen.getByRole('heading', {level: 2})).toHaveTextContent('Heading 2');
});

it('renders multiple heading levels', () => {
render(<Markdown raw={'# H1\n\n## H2\n\n### H3'} />);
expect(screen.getByRole('heading', {level: 1})).toHaveTextContent('H1');
render(<Markdown raw={'## H2\n\n### H3\n\n#### H4'} />);
expect(screen.getByRole('heading', {level: 2})).toHaveTextContent('H2');
expect(screen.getByRole('heading', {level: 3})).toHaveTextContent('H3');
expect(screen.getByRole('heading', {level: 4})).toHaveTextContent('H4');
});

it('renders bold and italic', () => {
Expand Down
26 changes: 8 additions & 18 deletions static/app/components/core/modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {useLegacyStore} from 'sentry/stores/useLegacyStore';
import {getModalPortal} from 'sentry/utils/getModalPortal';
import {useEffectAfterFirstRender} from 'sentry/utils/useEffectAfterFirstRender';
import {useLocation} from 'sentry/utils/useLocation';
import {useHasPageFrameFeature} from 'sentry/views/navigation/useHasPageFrameFeature';

import {makeClosableHeader, makeCloseButton, ModalBody, ModalFooter} from './components';

Expand Down Expand Up @@ -118,7 +117,6 @@ type Props = {

export function GlobalModal({onClose}: Props) {
const {renderer, options, visible, triggerElement} = useModalStore();
const hasPageFrame = useHasPageFrameFeature();
const location = useLocation();
const theme = useTheme();
const closeEvents = options.closeEvents ?? 'all';
Expand Down Expand Up @@ -258,22 +256,14 @@ export function GlobalModal({onClose}: Props) {
role="dialog"
aria-modal
css={options.modalCss}
initial={hasPageFrame ? {opacity: 0, scale: 0.98} : {opacity: 0, y: -10}}
animate={hasPageFrame ? {opacity: 1, scale: 1} : {opacity: 1, y: 0}}
exit={
hasPageFrame
? {opacity: 0, scale: 0.99, transition: theme.motion.framer.exit.fast}
: {opacity: 0, y: 15}
}
transition={
hasPageFrame
? theme.motion.framer.enter.moderate
: {
type: 'spring',
stiffness: 450,
damping: 25,
}
}
initial={{opacity: 0, scale: 0.98}}
animate={{opacity: 1, scale: 1}}
exit={{
opacity: 0,
scale: 0.99,
transition: theme.motion.framer.exit.fast,
}}
transition={theme.motion.framer.enter.moderate}
>
<Surface variant="overlay" elevation="high">
{p => (
Expand Down
30 changes: 8 additions & 22 deletions static/app/components/events/eventDrawer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type {ComponentPropsWithoutRef} from 'react';
import {css} from '@emotion/react';
import styled from '@emotion/styled';

import {DrawerBody, DrawerHeader} from '@sentry/scraps/drawer';
Expand All @@ -12,7 +11,6 @@ import {
NAVIGATION_MOBILE_TOPBAR_HEIGHT_WITH_PAGE_FRAME,
PRIMARY_HEADER_HEIGHT,
} from 'sentry/views/navigation/constants';
import {useHasPageFrameFeature} from 'sentry/views/navigation/useHasPageFrameFeature';

export const Header = styled('h3')`
display: block;
Expand Down Expand Up @@ -54,33 +52,21 @@ export const ShortId = styled('div')`
line-height: 1;
`;

const EventDrawerContainerRoot = styled('div')<{hasPageFrameFeature: boolean}>`
export const EventDrawerContainer = styled('div')`
height: 100%;
display: grid;
grid-template-rows: max-content max-content auto;

${p =>
p.hasPageFrameFeature &&
css`
/* Responsive height that matches the TopBar (48px mobile, 53px desktop) */
--event-drawer-header-height: ${NAVIGATION_MOBILE_TOPBAR_HEIGHT_WITH_PAGE_FRAME}px;
--event-navigator-box-shadow: none;
--event-navigator-border-bottom: 1px solid ${p.theme.tokens.border.primary};
/* Responsive height that matches the TopBar (48px mobile, 53px desktop) */
--event-drawer-header-height: ${NAVIGATION_MOBILE_TOPBAR_HEIGHT_WITH_PAGE_FRAME}px;
--event-navigator-box-shadow: none;
--event-navigator-border-bottom: 1px solid ${p => p.theme.tokens.border.primary};

@media (min-width: ${p.theme.breakpoints.md}) {
--event-drawer-header-height: ${PRIMARY_HEADER_HEIGHT}px;
}
`}
@media (min-width: ${p => p.theme.breakpoints.md}) {
--event-drawer-header-height: ${PRIMARY_HEADER_HEIGHT}px;
}
`;

export function EventDrawerContainer(props: ComponentPropsWithoutRef<'div'>) {
const hasPageFrameFeature = useHasPageFrameFeature();

return (
<EventDrawerContainerRoot {...props} hasPageFrameFeature={hasPageFrameFeature} />
);
}

export const EventDrawerHeader = styled(DrawerHeader)`
position: unset;
/* Height priority: container variable (responsive) → DrawerHeader height prop → default */
Expand Down
10 changes: 5 additions & 5 deletions static/app/components/featureShowcase.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ describe('FeatureShowcase', () => {

await userEvent.click(screen.getByTestId('reveal'));

expect(screen.getByRole('heading')).toHaveTextContent('First');
expect(screen.getByRole('heading', {name: 'First'})).toHaveTextContent('First');

await userEvent.click(screen.getByRole('button', {name: 'Next'}));

expect(screen.getByRole('heading')).toHaveTextContent('Second');
expect(screen.getByRole('heading', {name: 'Second'})).toHaveTextContent('Second');
expect(onStepChange).toHaveBeenCalled();
});

Expand Down Expand Up @@ -123,11 +123,11 @@ describe('FeatureShowcase', () => {
await userEvent.click(screen.getByTestId('reveal'));

await userEvent.click(screen.getByRole('button', {name: 'Next'}));
expect(screen.getByRole('heading')).toHaveTextContent('Second');
expect(screen.getByRole('heading', {name: 'Second'})).toHaveTextContent('Second');
expect(screen.getByRole('button', {name: 'Back'})).toBeInTheDocument();

await userEvent.click(screen.getByRole('button', {name: 'Back'}));
expect(screen.getByRole('heading')).toHaveTextContent('First');
expect(screen.getByRole('heading', {name: 'First'})).toHaveTextContent('First');
expect(screen.queryByRole('button', {name: 'Back'})).not.toBeInTheDocument();
});

Expand All @@ -143,7 +143,7 @@ describe('FeatureShowcase', () => {

await userEvent.click(screen.getByTestId('reveal'));

expect(screen.getByRole('heading')).toHaveTextContent('First');
expect(screen.getByRole('heading', {name: 'First'})).toHaveTextContent('First');
expect(screen.getByTestId('step-image')).toBeInTheDocument();
expect(screen.getByTestId('step-action')).toBeInTheDocument();
expect(screen.getByText('1 / 2')).toBeInTheDocument();
Expand Down
170 changes: 0 additions & 170 deletions static/app/components/footer.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions static/app/components/layouts/fullViewport.tsx

This file was deleted.

Loading
Loading