-
-
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.
Add page routes for schedule and escalation policies (#76408)
Adds Routes for the Schedule and Escalation Policies pages within the Alerts product section
- Loading branch information
1 parent
69ecc4c
commit 54772f2
Showing
4 changed files
with
87 additions
and
1 deletion.
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
29 changes: 29 additions & 0 deletions
29
static/app/views/alerts/escalationPolicies/escalationPolicyList.tsx
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {Fragment} from 'react'; | ||
|
||
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 useOrganization from 'sentry/utils/useOrganization'; | ||
import useRouter from 'sentry/utils/useRouter'; | ||
import AlertHeader from 'sentry/views/alerts/list/header'; | ||
|
||
function EscalationPolicyList() { | ||
const router = useRouter(); | ||
const organization = useOrganization(); | ||
|
||
return ( | ||
<Fragment> | ||
<SentryDocumentTitle title={t('Escalation Policies')} orgSlug={organization.slug} /> | ||
|
||
<PageFiltersContainer> | ||
<AlertHeader router={router} activeTab="policies" /> | ||
<Layout.Body> | ||
<Layout.Main fullWidth>WIP by Michael</Layout.Main> | ||
</Layout.Body> | ||
</PageFiltersContainer> | ||
</Fragment> | ||
); | ||
} | ||
|
||
export default EscalationPolicyList; |
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
31 changes: 31 additions & 0 deletions
31
static/app/views/alerts/triageSchedules/triageSchedules.tsx
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {Fragment} from 'react'; | ||
|
||
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 useOrganization from 'sentry/utils/useOrganization'; | ||
import useRouter from 'sentry/utils/useRouter'; | ||
import AlertHeader from 'sentry/views/alerts/list/header'; | ||
|
||
function TriageSchedulePage() { | ||
const router = useRouter(); | ||
const organization = useOrganization(); | ||
|
||
return ( | ||
<Fragment> | ||
<SentryDocumentTitle title={t('Escalation Policies')} orgSlug={organization.slug} /> | ||
|
||
<PageFiltersContainer> | ||
<AlertHeader router={router} activeTab="schedules" /> | ||
<Layout.Body> | ||
<Layout.Main fullWidth> | ||
Add your content to the schedules page here! | ||
</Layout.Main> | ||
</Layout.Body> | ||
</PageFiltersContainer> | ||
</Fragment> | ||
); | ||
} | ||
|
||
export default TriageSchedulePage; |