1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- import {Fragment} from 'react';
- import styled from '@emotion/styled';
- import FeatureBadge from 'sentry/components/badge/featureBadge';
- import {Breadcrumbs} from 'sentry/components/breadcrumbs';
- import FloatingFeedbackWidget from 'sentry/components/feedback/widget/floatingFeedbackWidget';
- import * as Layout from 'sentry/components/layouts/thirds';
- import {DatePageFilter} from 'sentry/components/organizations/datePageFilter';
- import {EnvironmentPageFilter} from 'sentry/components/organizations/environmentPageFilter';
- import PageFilterBar from 'sentry/components/organizations/pageFilterBar';
- import {ProjectPageFilter} from 'sentry/components/organizations/projectPageFilter';
- import {t} from 'sentry/locale';
- import {decodeScalar} from 'sentry/utils/queryString';
- import {useLocation} from 'sentry/utils/useLocation';
- import useOrganization from 'sentry/utils/useOrganization';
- import {normalizeUrl} from 'sentry/utils/withDomainRequired';
- import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
- import {ModulePageProviders} from 'sentry/views/performance/modulePageProviders';
- import {
- DESTINATION_TITLE,
- MODULE_TITLE,
- RELEASE_LEVEL,
- } from 'sentry/views/performance/queues/settings';
- function DestinationSummaryPage() {
- const organization = useOrganization();
- const {query} = useLocation();
- const destination = decodeScalar(query.destination);
- return (
- <Fragment>
- <Layout.Header>
- <Layout.HeaderContent>
- <Breadcrumbs
- crumbs={[
- {
- label: t('Performance'),
- to: normalizeUrl(`/organizations/${organization.slug}/performance/`),
- preservePageFilters: true,
- },
- {
- label: MODULE_TITLE,
- },
- {
- label: DESTINATION_TITLE,
- },
- ]}
- />
- <Layout.Title>
- {destination}
- <FeatureBadge type={RELEASE_LEVEL} />
- </Layout.Title>
- </Layout.HeaderContent>
- </Layout.Header>
- <Layout.Body>
- <Layout.Main fullWidth>
- <FloatingFeedbackWidget />
- <ModuleLayout.Layout>
- <ModuleLayout.Full>
- <HeaderContainer>
- <PageFilterBar condensed>
- <ProjectPageFilter />
- <EnvironmentPageFilter />
- <DatePageFilter />
- </PageFilterBar>
- </HeaderContainer>
- </ModuleLayout.Full>
- </ModuleLayout.Layout>
- </Layout.Main>
- </Layout.Body>
- </Fragment>
- );
- }
- function DestinationSummaryPageWithProviders() {
- return (
- <ModulePageProviders
- title={[t('Performance'), MODULE_TITLE].join(' — ')}
- baseURL="/performance/queues"
- features="performance-queues-view"
- >
- <DestinationSummaryPage />
- </ModulePageProviders>
- );
- }
- export default DestinationSummaryPageWithProviders;
- const HeaderContainer = styled('div')`
- display: flex;
- justify-content: space-between;
- `;
|