|
@@ -16,131 +16,97 @@ exports[`projectAlertRules renders 1`] = `
|
|
|
<DocumentTitle
|
|
|
title="Sentry"
|
|
|
>
|
|
|
- <SettingsPageHeading
|
|
|
- action={
|
|
|
- <Tooltip
|
|
|
- disabled={true}
|
|
|
- title="You do not have permission to edit alert rules."
|
|
|
- >
|
|
|
- <Button
|
|
|
- disabled={false}
|
|
|
- icon="icon-circle-add"
|
|
|
- priority="primary"
|
|
|
- size="small"
|
|
|
- to="new/"
|
|
|
- >
|
|
|
- New Alert Rule
|
|
|
- </Button>
|
|
|
- </Tooltip>
|
|
|
- }
|
|
|
- noTitleStyles={false}
|
|
|
- tabs={
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
- >
|
|
|
- Settings
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
- >
|
|
|
- Rules
|
|
|
- </ListLink>
|
|
|
- </NavTabs>
|
|
|
- }
|
|
|
- title="Alerts"
|
|
|
+ <WithOrganizationMockWrapper
|
|
|
+ projectId="project1"
|
|
|
>
|
|
|
- <Wrapper
|
|
|
- tabs={
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
- >
|
|
|
- Settings
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
- >
|
|
|
- Rules
|
|
|
- </ListLink>
|
|
|
- </NavTabs>
|
|
|
+ <ProjectAlertHeader
|
|
|
+ organization={
|
|
|
+ Object {
|
|
|
+ "access": Array [
|
|
|
+ "org:read",
|
|
|
+ "org:write",
|
|
|
+ "org:admin",
|
|
|
+ "org:integrations",
|
|
|
+ "project:read",
|
|
|
+ "project:write",
|
|
|
+ "project:admin",
|
|
|
+ "team:read",
|
|
|
+ "team:write",
|
|
|
+ "team:admin",
|
|
|
+ ],
|
|
|
+ "features": Array [],
|
|
|
+ "id": "3",
|
|
|
+ "name": "Organization Name",
|
|
|
+ "onboardingTasks": Array [],
|
|
|
+ "projects": Array [],
|
|
|
+ "scrapeJavaScript": true,
|
|
|
+ "slug": "org-slug",
|
|
|
+ "status": Object {
|
|
|
+ "id": "active",
|
|
|
+ "name": "active",
|
|
|
+ },
|
|
|
+ "teams": Array [],
|
|
|
+ }
|
|
|
}
|
|
|
+ projectId="project1"
|
|
|
>
|
|
|
- <div
|
|
|
- className="css-1r5ylk7-Wrapper e1kblvez2"
|
|
|
+ <SettingsPageHeading
|
|
|
+ action={
|
|
|
+ <Tooltip
|
|
|
+ disabled={true}
|
|
|
+ title="You do not have permission to edit alert rules."
|
|
|
+ >
|
|
|
+ <Button
|
|
|
+ disabled={false}
|
|
|
+ icon="icon-circle-add"
|
|
|
+ priority="primary"
|
|
|
+ size="small"
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/new/"
|
|
|
+ >
|
|
|
+ New Alert Rule
|
|
|
+ </Button>
|
|
|
+ </Tooltip>
|
|
|
+ }
|
|
|
+ noTitleStyles={false}
|
|
|
+ tabs={
|
|
|
+ <NavTabs
|
|
|
+ underlined={true}
|
|
|
+ >
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
+ >
|
|
|
+ Rules
|
|
|
+ </ListLink>
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
+ >
|
|
|
+ Settings
|
|
|
+ </ListLink>
|
|
|
+ </NavTabs>
|
|
|
+ }
|
|
|
+ title="Alerts"
|
|
|
>
|
|
|
- <Flex
|
|
|
- align="center"
|
|
|
- >
|
|
|
- <Base
|
|
|
- align="center"
|
|
|
- className="css-5ipae5"
|
|
|
+ <Wrapper>
|
|
|
+ <div
|
|
|
+ className="css-1r5ylk7-Wrapper e1kblvez2"
|
|
|
>
|
|
|
- <div
|
|
|
- className="css-5ipae5"
|
|
|
- is={null}
|
|
|
+ <Flex
|
|
|
+ align="center"
|
|
|
>
|
|
|
- <Title
|
|
|
- styled={false}
|
|
|
- tabs={
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
- >
|
|
|
- Settings
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
- >
|
|
|
- Rules
|
|
|
- </ListLink>
|
|
|
- </NavTabs>
|
|
|
- }
|
|
|
+ <Base
|
|
|
+ align="center"
|
|
|
+ className="css-5ipae5"
|
|
|
>
|
|
|
- <Base
|
|
|
- className="css-zs9eah-Title e1kblvez0"
|
|
|
- tabs={
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
- >
|
|
|
- Settings
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
- >
|
|
|
- Rules
|
|
|
- </ListLink>
|
|
|
- </NavTabs>
|
|
|
- }
|
|
|
+ <div
|
|
|
+ className="css-5ipae5"
|
|
|
+ is={null}
|
|
|
>
|
|
|
- <div
|
|
|
- className="css-zs9eah-Title e1kblvez0"
|
|
|
- is={null}
|
|
|
+ <Title
|
|
|
+ styled={false}
|
|
|
tabs={
|
|
|
<NavTabs
|
|
|
underlined={true}
|
|
@@ -148,233 +114,283 @@ exports[`projectAlertRules renders 1`] = `
|
|
|
<ListLink
|
|
|
activeClassName="active"
|
|
|
index={false}
|
|
|
- to="alerts"
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
>
|
|
|
- Settings
|
|
|
+ Rules
|
|
|
</ListLink>
|
|
|
<ListLink
|
|
|
activeClassName="active"
|
|
|
index={false}
|
|
|
- to=""
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
>
|
|
|
- Rules
|
|
|
+ Settings
|
|
|
</ListLink>
|
|
|
</NavTabs>
|
|
|
}
|
|
|
>
|
|
|
- <HeaderTitle>
|
|
|
- <h4
|
|
|
- className="css-1w8ttcn-HeaderTitle e6lvex72"
|
|
|
- >
|
|
|
- Alerts
|
|
|
- </h4>
|
|
|
- </HeaderTitle>
|
|
|
- </div>
|
|
|
- </Base>
|
|
|
- </Title>
|
|
|
- <Action
|
|
|
- tabs={
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
- >
|
|
|
- Settings
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
+ <Base
|
|
|
+ className="css-zs9eah-Title e1kblvez0"
|
|
|
+ tabs={
|
|
|
+ <NavTabs
|
|
|
+ underlined={true}
|
|
|
+ >
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
+ >
|
|
|
+ Rules
|
|
|
+ </ListLink>
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
+ >
|
|
|
+ Settings
|
|
|
+ </ListLink>
|
|
|
+ </NavTabs>
|
|
|
+ }
|
|
|
>
|
|
|
- Rules
|
|
|
- </ListLink>
|
|
|
- </NavTabs>
|
|
|
- }
|
|
|
- >
|
|
|
- <div
|
|
|
- className="css-1lt2zte-Action e1kblvez1"
|
|
|
- >
|
|
|
- <Tooltip
|
|
|
- disabled={true}
|
|
|
- title="You do not have permission to edit alert rules."
|
|
|
+ <div
|
|
|
+ className="css-zs9eah-Title e1kblvez0"
|
|
|
+ is={null}
|
|
|
+ tabs={
|
|
|
+ <NavTabs
|
|
|
+ underlined={true}
|
|
|
+ >
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
+ >
|
|
|
+ Rules
|
|
|
+ </ListLink>
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
+ >
|
|
|
+ Settings
|
|
|
+ </ListLink>
|
|
|
+ </NavTabs>
|
|
|
+ }
|
|
|
+ >
|
|
|
+ <HeaderTitle>
|
|
|
+ <h4
|
|
|
+ className="css-1w8ttcn-HeaderTitle e6lvex72"
|
|
|
+ >
|
|
|
+ Alerts
|
|
|
+ </h4>
|
|
|
+ </HeaderTitle>
|
|
|
+ </div>
|
|
|
+ </Base>
|
|
|
+ </Title>
|
|
|
+ <Action
|
|
|
+ tabs={
|
|
|
+ <NavTabs
|
|
|
+ underlined={true}
|
|
|
+ >
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
+ >
|
|
|
+ Rules
|
|
|
+ </ListLink>
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
+ >
|
|
|
+ Settings
|
|
|
+ </ListLink>
|
|
|
+ </NavTabs>
|
|
|
+ }
|
|
|
>
|
|
|
- <Button
|
|
|
- disabled={false}
|
|
|
- icon="icon-circle-add"
|
|
|
- priority="primary"
|
|
|
- size="small"
|
|
|
- to="new/"
|
|
|
+ <div
|
|
|
+ className="css-1lt2zte-Action e1kblvez1"
|
|
|
>
|
|
|
- <StyledButton
|
|
|
- aria-disabled={false}
|
|
|
- aria-label="New Alert Rule"
|
|
|
- disabled={false}
|
|
|
- onClick={[Function]}
|
|
|
- priority="primary"
|
|
|
- role="button"
|
|
|
- size="small"
|
|
|
- to="new/"
|
|
|
+ <Tooltip
|
|
|
+ disabled={true}
|
|
|
+ title="You do not have permission to edit alert rules."
|
|
|
>
|
|
|
- <Component
|
|
|
- aria-disabled={false}
|
|
|
- aria-label="New Alert Rule"
|
|
|
- className="css-zvpqlo-StyledButton-getColors eqrebog0"
|
|
|
- onClick={[Function]}
|
|
|
- role="button"
|
|
|
+ <Button
|
|
|
+ disabled={false}
|
|
|
+ icon="icon-circle-add"
|
|
|
+ priority="primary"
|
|
|
size="small"
|
|
|
- to="new/"
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/new/"
|
|
|
>
|
|
|
- <Link
|
|
|
+ <StyledButton
|
|
|
aria-disabled={false}
|
|
|
aria-label="New Alert Rule"
|
|
|
- className="css-zvpqlo-StyledButton-getColors eqrebog0"
|
|
|
+ disabled={false}
|
|
|
onClick={[Function]}
|
|
|
- onlyActiveOnIndex={false}
|
|
|
+ priority="primary"
|
|
|
role="button"
|
|
|
size="small"
|
|
|
- style={Object {}}
|
|
|
- to="new/"
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/new/"
|
|
|
>
|
|
|
- <a
|
|
|
+ <Component
|
|
|
aria-disabled={false}
|
|
|
aria-label="New Alert Rule"
|
|
|
className="css-zvpqlo-StyledButton-getColors eqrebog0"
|
|
|
onClick={[Function]}
|
|
|
role="button"
|
|
|
size="small"
|
|
|
- style={Object {}}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/new/"
|
|
|
>
|
|
|
- <ButtonLabel
|
|
|
- priority="primary"
|
|
|
+ <Link
|
|
|
+ aria-disabled={false}
|
|
|
+ aria-label="New Alert Rule"
|
|
|
+ className="css-zvpqlo-StyledButton-getColors eqrebog0"
|
|
|
+ onClick={[Function]}
|
|
|
+ onlyActiveOnIndex={false}
|
|
|
+ role="button"
|
|
|
size="small"
|
|
|
+ style={Object {}}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/new/"
|
|
|
>
|
|
|
- <Component
|
|
|
- className="css-7ui8bl-ButtonLabel eqrebog1"
|
|
|
- priority="primary"
|
|
|
+ <a
|
|
|
+ aria-disabled={false}
|
|
|
+ aria-label="New Alert Rule"
|
|
|
+ className="css-zvpqlo-StyledButton-getColors eqrebog0"
|
|
|
+ onClick={[Function]}
|
|
|
+ role="button"
|
|
|
size="small"
|
|
|
+ style={Object {}}
|
|
|
>
|
|
|
- <span
|
|
|
- className="css-7ui8bl-ButtonLabel eqrebog1"
|
|
|
+ <ButtonLabel
|
|
|
+ priority="primary"
|
|
|
+ size="small"
|
|
|
>
|
|
|
- <Icon
|
|
|
- hasChildren={true}
|
|
|
+ <Component
|
|
|
+ className="css-7ui8bl-ButtonLabel eqrebog1"
|
|
|
+ priority="primary"
|
|
|
size="small"
|
|
|
>
|
|
|
- <Component
|
|
|
- className="css-1vdnsie-Icon eqrebog2"
|
|
|
- hasChildren={true}
|
|
|
- size="small"
|
|
|
+ <span
|
|
|
+ className="css-7ui8bl-ButtonLabel eqrebog1"
|
|
|
>
|
|
|
- <span
|
|
|
- className="css-1vdnsie-Icon eqrebog2"
|
|
|
+ <Icon
|
|
|
+ hasChildren={true}
|
|
|
size="small"
|
|
|
>
|
|
|
- <StyledInlineSvg
|
|
|
- size="12px"
|
|
|
- src="icon-circle-add"
|
|
|
+ <Component
|
|
|
+ className="css-1vdnsie-Icon eqrebog2"
|
|
|
+ hasChildren={true}
|
|
|
+ size="small"
|
|
|
>
|
|
|
- <InlineSvg
|
|
|
- className="css-1ov3rcq-StyledInlineSvg eqrebog3"
|
|
|
- size="12px"
|
|
|
- src="icon-circle-add"
|
|
|
+ <span
|
|
|
+ className="css-1vdnsie-Icon eqrebog2"
|
|
|
+ size="small"
|
|
|
>
|
|
|
- <StyledSvg
|
|
|
- className="css-1ov3rcq-StyledInlineSvg eqrebog3"
|
|
|
- height="12px"
|
|
|
- viewBox={Object {}}
|
|
|
- width="12px"
|
|
|
+ <StyledInlineSvg
|
|
|
+ size="12px"
|
|
|
+ src="icon-circle-add"
|
|
|
>
|
|
|
- <svg
|
|
|
- className="eqrebog3 css-1jjmnki-StyledSvg-StyledInlineSvg e2idor0"
|
|
|
- height="12px"
|
|
|
- viewBox={Object {}}
|
|
|
- width="12px"
|
|
|
+ <InlineSvg
|
|
|
+ className="css-1ov3rcq-StyledInlineSvg eqrebog3"
|
|
|
+ size="12px"
|
|
|
+ src="icon-circle-add"
|
|
|
>
|
|
|
- <use
|
|
|
- href="#test"
|
|
|
- xlinkHref="#test"
|
|
|
- />
|
|
|
- </svg>
|
|
|
- </StyledSvg>
|
|
|
- </InlineSvg>
|
|
|
- </StyledInlineSvg>
|
|
|
- </span>
|
|
|
- </Component>
|
|
|
- </Icon>
|
|
|
- New Alert Rule
|
|
|
- </span>
|
|
|
- </Component>
|
|
|
- </ButtonLabel>
|
|
|
- </a>
|
|
|
- </Link>
|
|
|
- </Component>
|
|
|
- </StyledButton>
|
|
|
- </Button>
|
|
|
- </Tooltip>
|
|
|
+ <StyledSvg
|
|
|
+ className="css-1ov3rcq-StyledInlineSvg eqrebog3"
|
|
|
+ height="12px"
|
|
|
+ viewBox={Object {}}
|
|
|
+ width="12px"
|
|
|
+ >
|
|
|
+ <svg
|
|
|
+ className="eqrebog3 css-1jjmnki-StyledSvg-StyledInlineSvg e2idor0"
|
|
|
+ height="12px"
|
|
|
+ viewBox={Object {}}
|
|
|
+ width="12px"
|
|
|
+ >
|
|
|
+ <use
|
|
|
+ href="#test"
|
|
|
+ xlinkHref="#test"
|
|
|
+ />
|
|
|
+ </svg>
|
|
|
+ </StyledSvg>
|
|
|
+ </InlineSvg>
|
|
|
+ </StyledInlineSvg>
|
|
|
+ </span>
|
|
|
+ </Component>
|
|
|
+ </Icon>
|
|
|
+ New Alert Rule
|
|
|
+ </span>
|
|
|
+ </Component>
|
|
|
+ </ButtonLabel>
|
|
|
+ </a>
|
|
|
+ </Link>
|
|
|
+ </Component>
|
|
|
+ </StyledButton>
|
|
|
+ </Button>
|
|
|
+ </Tooltip>
|
|
|
+ </div>
|
|
|
+ </Action>
|
|
|
</div>
|
|
|
- </Action>
|
|
|
- </div>
|
|
|
- </Base>
|
|
|
- </Flex>
|
|
|
- <div>
|
|
|
- <NavTabs
|
|
|
- underlined={true}
|
|
|
- >
|
|
|
- <ul
|
|
|
- className="nav nav-tabs border-bottom"
|
|
|
- >
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to="alerts"
|
|
|
+ </Base>
|
|
|
+ </Flex>
|
|
|
+ <div>
|
|
|
+ <NavTabs
|
|
|
+ underlined={true}
|
|
|
>
|
|
|
- <li
|
|
|
- className=""
|
|
|
+ <ul
|
|
|
+ className="nav nav-tabs border-bottom"
|
|
|
>
|
|
|
- <Link
|
|
|
- onlyActiveOnIndex={false}
|
|
|
- style={Object {}}
|
|
|
- to="alerts"
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
>
|
|
|
- <a
|
|
|
- onClick={[Function]}
|
|
|
- style={Object {}}
|
|
|
+ <li
|
|
|
+ className=""
|
|
|
>
|
|
|
- Settings
|
|
|
- </a>
|
|
|
- </Link>
|
|
|
- </li>
|
|
|
- </ListLink>
|
|
|
- <ListLink
|
|
|
- activeClassName="active"
|
|
|
- index={false}
|
|
|
- to=""
|
|
|
- >
|
|
|
- <li
|
|
|
- className=""
|
|
|
- >
|
|
|
- <Link
|
|
|
- onlyActiveOnIndex={false}
|
|
|
- style={Object {}}
|
|
|
- to=""
|
|
|
+ <Link
|
|
|
+ onlyActiveOnIndex={false}
|
|
|
+ style={Object {}}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/rules/"
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ onClick={[Function]}
|
|
|
+ style={Object {}}
|
|
|
+ >
|
|
|
+ Rules
|
|
|
+ </a>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </ListLink>
|
|
|
+ <ListLink
|
|
|
+ activeClassName="active"
|
|
|
+ index={false}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
>
|
|
|
- <a
|
|
|
- style={Object {}}
|
|
|
+ <li
|
|
|
+ className=""
|
|
|
>
|
|
|
- Rules
|
|
|
- </a>
|
|
|
- </Link>
|
|
|
- </li>
|
|
|
- </ListLink>
|
|
|
- </ul>
|
|
|
- </NavTabs>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </Wrapper>
|
|
|
- </SettingsPageHeading>
|
|
|
+ <Link
|
|
|
+ onlyActiveOnIndex={false}
|
|
|
+ style={Object {}}
|
|
|
+ to="/settings/org-slug/projects/project1/alerts/settings/"
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ onClick={[Function]}
|
|
|
+ style={Object {}}
|
|
|
+ >
|
|
|
+ Settings
|
|
|
+ </a>
|
|
|
+ </Link>
|
|
|
+ </li>
|
|
|
+ </ListLink>
|
|
|
+ </ul>
|
|
|
+ </NavTabs>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </Wrapper>
|
|
|
+ </SettingsPageHeading>
|
|
|
+ </ProjectAlertHeader>
|
|
|
+ </WithOrganizationMockWrapper>
|
|
|
<PermissionAlert
|
|
|
access={
|
|
|
Array [
|