Skip to content

Commit

Permalink
feat(ddm): Add layout and alpha badge (#56398)
Browse files Browse the repository at this point in the history
  • Loading branch information
matejminar authored Sep 19, 2023
1 parent feabebf commit 4dcbe53
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions static/app/components/sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ function Sidebar({location, organization}: Props) {
label={t('DDM')}
to={`/organizations/${organization.slug}/ddm/`}
id="ddm"
isAlpha
/>
</Feature>
);
Expand Down
31 changes: 30 additions & 1 deletion static/app/views/ddm/ddm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import ButtonBar from 'sentry/components/buttonBar';
import FeatureBadge from 'sentry/components/featureBadge';
import {FeatureFeedback} from 'sentry/components/featureFeedback';
import * as Layout from 'sentry/components/layouts/thirds';
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container';
import {PageHeadingQuestionTooltip} from 'sentry/components/pageHeadingQuestionTooltip';
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
import {t} from 'sentry/locale';
import useOrganization from 'sentry/utils/useOrganization';
Expand All @@ -7,7 +13,30 @@ function DDM() {

return (
<SentryDocumentTitle title={t('DDM')} orgSlug={organization.slug}>
{t('DDM')}
<PageFiltersContainer>
<Layout.Page>
<Layout.Header>
<Layout.HeaderContent>
<Layout.Title>
{t('DDM')}
<PageHeadingQuestionTooltip
docsUrl="https://docs.sentry.io"
title={t('Delightful Developer Metrics.')}
/>
<FeatureBadge type="alpha" />
</Layout.Title>
</Layout.HeaderContent>
<Layout.HeaderActions>
<ButtonBar gap={1}>
<FeatureFeedback featureName="DDM" buttonProps={{size: 'sm'}} />
</ButtonBar>
</Layout.HeaderActions>
</Layout.Header>
<Layout.Body>
<Layout.Main fullWidth>.</Layout.Main>
</Layout.Body>
</Layout.Page>
</PageFiltersContainer>
</SentryDocumentTitle>
);
}
Expand Down

0 comments on commit 4dcbe53

Please sign in to comment.