-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(starfish): add document titles to db module (#53098)
Adds titles to match the breadcrumbs i.e <img width="353" alt="image" src="https://github.com/getsentry/sentry/assets/44422760/d134433e-cd54-4268-b056-926491840ca6">
- Loading branch information
1 parent
c3c1b08
commit 7aa790c
Showing
2 changed files
with
156 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,39 @@ | ||
import * as Layout from 'sentry/components/layouts/thirds'; | ||
import PageFiltersContainer from 'sentry/components/organizations/pageFilters/container'; | ||
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; | ||
import {t} from 'sentry/locale'; | ||
import { | ||
PageErrorAlert, | ||
PageErrorProvider, | ||
} from 'sentry/utils/performance/contexts/pageError'; | ||
import useOrganization from 'sentry/utils/useOrganization'; | ||
import {ModuleName} from 'sentry/views/starfish/types'; | ||
import {ROUTE_NAMES} from 'sentry/views/starfish/utils/routeNames'; | ||
import SpansView from 'sentry/views/starfish/views/spans/spansView'; | ||
|
||
export default function DBModule() { | ||
const organization = useOrganization(); | ||
|
||
return ( | ||
<Layout.Page> | ||
<PageErrorProvider> | ||
<Layout.Header> | ||
<Layout.HeaderContent> | ||
<Layout.Title>{t('Database Queries')}</Layout.Title> | ||
</Layout.HeaderContent> | ||
</Layout.Header> | ||
<SentryDocumentTitle title={ROUTE_NAMES.database} orgSlug={organization.slug}> | ||
<Layout.Page> | ||
<PageErrorProvider> | ||
<Layout.Header> | ||
<Layout.HeaderContent> | ||
<Layout.Title>{t('Database Queries')}</Layout.Title> | ||
</Layout.HeaderContent> | ||
</Layout.Header> | ||
|
||
<Layout.Body> | ||
<Layout.Main fullWidth> | ||
<PageErrorAlert /> | ||
<PageFiltersContainer> | ||
<SpansView moduleName={ModuleName.DB} /> | ||
</PageFiltersContainer> | ||
</Layout.Main> | ||
</Layout.Body> | ||
</PageErrorProvider> | ||
</Layout.Page> | ||
<Layout.Body> | ||
<Layout.Main fullWidth> | ||
<PageErrorAlert /> | ||
<PageFiltersContainer> | ||
<SpansView moduleName={ModuleName.DB} /> | ||
</PageFiltersContainer> | ||
</Layout.Main> | ||
</Layout.Body> | ||
</PageErrorProvider> | ||
</Layout.Page> | ||
</SentryDocumentTitle> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters