123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`projectAlertRules renders 1`] = `
- <ProjectAlertRules
- params={
- Object {
- "orgId": "org1",
- "projectId": "project1",
- }
- }
- routes={Array []}
- >
- <SideEffect(DocumentTitle)
- title="Sentry"
- >
- <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"
- >
- <Wrapper
- 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-1r5ylk7-Wrapper e1kblvez2"
- >
- <Flex
- align="center"
- >
- <Base
- align="center"
- className="css-5ipae5"
- >
- <div
- className="css-5ipae5"
- is={null}
- >
- <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
- 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-zs9eah-Title e1kblvez0"
- is={null}
- tabs={
- <NavTabs
- underlined={true}
- >
- <ListLink
- activeClassName="active"
- index={false}
- to="alerts"
- >
- Settings
- </ListLink>
- <ListLink
- activeClassName="active"
- index={false}
- to=""
- >
- Rules
- </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=""
- >
- Rules
- </ListLink>
- </NavTabs>
- }
- >
- <div
- className="css-1lt2zte-Action e1kblvez1"
- >
- <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/"
- >
- <StyledButton
- aria-label="New Alert Rule"
- disabled={false}
- onClick={[Function]}
- priority="primary"
- role="button"
- size="small"
- to="new/"
- >
- <Component
- aria-label="New Alert Rule"
- className="css-zvpqlo-StyledButton-getColors eqrebog0"
- disabled={false}
- onClick={[Function]}
- priority="primary"
- role="button"
- size="small"
- to="new/"
- >
- <Link
- 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/"
- >
- <a
- aria-label="New Alert Rule"
- className="css-zvpqlo-StyledButton-getColors eqrebog0"
- disabled={false}
- onClick={[Function]}
- priority="primary"
- role="button"
- size="small"
- style={Object {}}
- >
- <ButtonLabel
- priority="primary"
- size="small"
- >
- <Component
- className="css-7ui8bl-ButtonLabel eqrebog1"
- priority="primary"
- size="small"
- >
- <span
- className="css-7ui8bl-ButtonLabel eqrebog1"
- >
- <Icon
- hasChildren={true}
- size="small"
- >
- <Component
- className="css-1vdnsie-Icon eqrebog2"
- hasChildren={true}
- size="small"
- >
- <span
- className="css-1vdnsie-Icon eqrebog2"
- size="small"
- >
- <StyledInlineSvg
- size="12px"
- src="icon-circle-add"
- >
- <InlineSvg
- className="css-1ov3rcq-StyledInlineSvg eqrebog3"
- size="12px"
- src="icon-circle-add"
- >
- <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>
- </Base>
- </Flex>
- <div>
- <NavTabs
- underlined={true}
- >
- <ul
- className="nav nav-tabs border-bottom"
- >
- <ListLink
- activeClassName="active"
- index={false}
- to="alerts"
- >
- <li
- className=""
- >
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to="alerts"
- >
- <a
- onClick={[Function]}
- style={Object {}}
- >
- Settings
- </a>
- </Link>
- </li>
- </ListLink>
- <ListLink
- activeClassName="active"
- index={false}
- to=""
- >
- <li
- className=""
- >
- <Link
- onlyActiveOnIndex={false}
- style={Object {}}
- to=""
- >
- <a
- style={Object {}}
- >
- Rules
- </a>
- </Link>
- </li>
- </ListLink>
- </ul>
- </NavTabs>
- </div>
- </div>
- </Wrapper>
- </SettingsPageHeading>
- <PermissionAlert
- access={
- Array [
- "project:write",
- ]
- }
- >
- <AccessContainer
- access={
- Array [
- "project:write",
- ]
- }
- >
- <Access
- access={
- Array [
- "project:write",
- ]
- }
- configUser={
- Object {
- "email": "foo@example.com",
- "flags": Object {
- "newsletter_consent_prompt": false,
- },
- "hasPasswordAuth": true,
- "id": "1",
- "isAuthenticated": true,
- "name": "Foo Bar",
- "options": Object {
- "timezone": "UTC",
- },
- "permissions": Set {},
- "username": "foo@example.com",
- }
- }
- organization={
- Object {
- "access": Array [
- "org:read",
- "org:write",
- "org:admin",
- "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 [],
- }
- }
- renderNoAccessMessage={false}
- requireAll={true}
- />
- </AccessContainer>
- </PermissionAlert>
- <div
- className="rules-list"
- >
- <RuleRow
- canEdit={true}
- data={
- Object {
- "actions": Array [
- Object {
- "id": "sentry.rules.actions.notify1",
- "name": "Send a notification to all services",
- },
- ],
- "conditions": Array [
- Object {
- "id": "sentry.rules.conditions.1",
- "name": "An alert is first seen",
- },
- ],
- "environment": "staging",
- "id": "1",
- "name": "My alert rule",
- }
- }
- firstRule={true}
- key="1"
- onDelete={[Function]}
- orgId="org1"
- params={
- Object {
- "orgId": "org1",
- "projectId": "project1",
- }
- }
- projectId="project1"
- routes={Array []}
- >
- <Panel>
- <Component
- className="css-yahxlu-Panel e1laxa7d0"
- >
- <div
- className="css-yahxlu-Panel e1laxa7d0"
- >
- <PanelHeader
- align="center"
- hasButtons={true}
- justify="space-between"
- >
- <Component
- align="center"
- className="css-jmvceg-PanelHeader-getPadding e1p8v8nv0"
- hasButtons={true}
- justify="space-between"
- >
- <Flex
- align="center"
- className="css-jmvceg-PanelHeader-getPadding e1p8v8nv0"
- justify="space-between"
- >
- <Base
- align="center"
- className="e1p8v8nv0 css-19i62qd-PanelHeader-getPadding"
- justify="space-between"
- >
- <div
- className="e1p8v8nv0 css-19i62qd-PanelHeader-getPadding"
- is={null}
- >
- <TextColorLink
- to="1/"
- >
- <Link
- className="css-1s5bpjc-TextColorLink e1abl5wd0"
- onlyActiveOnIndex={false}
- style={Object {}}
- to="1/"
- >
- <a
- className="css-1s5bpjc-TextColorLink e1abl5wd0"
- onClick={[Function]}
- style={Object {}}
- >
- My alert rule
- -
- All Environments
- </a>
- </Link>
- </TextColorLink>
- <Flex>
- <Base
- className="css-sncxrr"
- >
- <div
- className="css-sncxrr"
- is={null}
- >
- <Tooltip
- disabled={true}
- title="You do not have permission to edit alert rules."
- >
- <Button
- data-test-id="edit-rule"
- disabled={false}
- size="xsmall"
- style={
- Object {
- "marginRight": 5,
- }
- }
- to="1/"
- >
- <StyledButton
- aria-label="Edit Rule"
- data-test-id="edit-rule"
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- style={
- Object {
- "marginRight": 5,
- }
- }
- to="1/"
- >
- <Component
- aria-label="Edit Rule"
- className="css-dkprmi-StyledButton-getColors eqrebog0"
- data-test-id="edit-rule"
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- style={
- Object {
- "marginRight": 5,
- }
- }
- to="1/"
- >
- <Link
- aria-label="Edit Rule"
- className="css-dkprmi-StyledButton-getColors eqrebog0"
- data-test-id="edit-rule"
- disabled={false}
- onClick={[Function]}
- onlyActiveOnIndex={false}
- role="button"
- size="xsmall"
- style={
- Object {
- "marginRight": 5,
- }
- }
- to="1/"
- >
- <a
- aria-label="Edit Rule"
- className="css-dkprmi-StyledButton-getColors eqrebog0"
- data-test-id="edit-rule"
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- style={
- Object {
- "marginRight": 5,
- }
- }
- >
- <ButtonLabel
- size="xsmall"
- >
- <Component
- className="css-uthd1f-ButtonLabel eqrebog1"
- size="xsmall"
- >
- <span
- className="css-uthd1f-ButtonLabel eqrebog1"
- >
- Edit Rule
- </span>
- </Component>
- </ButtonLabel>
- </a>
- </Link>
- </Component>
- </StyledButton>
- </Button>
- </Tooltip>
- <Tooltip
- disabled={true}
- title="You do not have permission to edit alert rules."
- >
- <Confirm
- cancelText="Cancel"
- confirmText="Confirm"
- disableConfirmButton={false}
- disabled={false}
- message="Are you sure you want to remove this rule?"
- onConfirm={[Function]}
- priority="primary"
- >
- <Button
- disabled={false}
- icon="icon-trash"
- onClick={[Function]}
- size="xsmall"
- >
- <StyledButton
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- >
- <Component
- className="css-dkprmi-StyledButton-getColors eqrebog0"
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- >
- <button
- className="css-dkprmi-StyledButton-getColors eqrebog0"
- disabled={false}
- onClick={[Function]}
- role="button"
- size="xsmall"
- >
- <ButtonLabel
- size="xsmall"
- >
- <Component
- className="css-uthd1f-ButtonLabel eqrebog1"
- size="xsmall"
- >
- <span
- className="css-uthd1f-ButtonLabel eqrebog1"
- >
- <Icon
- hasChildren={false}
- size="xsmall"
- >
- <Component
- className="css-ljhpxy-Icon eqrebog2"
- hasChildren={false}
- size="xsmall"
- >
- <span
- className="css-ljhpxy-Icon eqrebog2"
- size="xsmall"
- >
- <StyledInlineSvg
- size="12px"
- src="icon-trash"
- >
- <InlineSvg
- className="css-1ov3rcq-StyledInlineSvg eqrebog3"
- size="12px"
- src="icon-trash"
- >
- <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>
- </span>
- </Component>
- </ButtonLabel>
- </button>
- </Component>
- </StyledButton>
- </Button>
- <Modal
- animation={false}
- autoFocus={true}
- backdrop={true}
- bsClass="modal"
- dialogComponentClass={[Function]}
- enforceFocus={true}
- keyboard={true}
- manager={
- ModalManager {
- "add": [Function],
- "containers": Array [],
- "data": Array [],
- "handleContainerOverflow": true,
- "hideSiblingNodes": true,
- "isTopModal": [Function],
- "modals": Array [],
- "remove": [Function],
- }
- }
- onHide={[Function]}
- renderBackdrop={[Function]}
- restoreFocus={true}
- show={false}
- >
- <Modal
- autoFocus={true}
- backdrop={true}
- backdropClassName="modal-backdrop"
- containerClassName="modal-open"
- enforceFocus={true}
- keyboard={true}
- manager={
- ModalManager {
- "add": [Function],
- "containers": Array [],
- "data": Array [],
- "handleContainerOverflow": true,
- "hideSiblingNodes": true,
- "isTopModal": [Function],
- "modals": Array [],
- "remove": [Function],
- }
- }
- onEntering={[Function]}
- onExited={[Function]}
- onHide={[Function]}
- renderBackdrop={[Function]}
- restoreFocus={true}
- show={false}
- />
- </Modal>
- </Confirm>
- </Tooltip>
- </div>
- </Base>
- </Flex>
- </div>
- </Base>
- </Flex>
- </Component>
- </PanelHeader>
- <PanelBody
- direction="column"
- disablePadding={true}
- flex={false}
- >
- <div
- className="css-9vq8an-textStyles"
- >
- <RuleDescriptionRow>
- <div
- className="css-16pvk6d-RuleDescriptionRow e1abl5wd1"
- >
- <RuleDescriptionColumn>
- <div
- className="css-15obcn9-RuleDescriptionColumn e1abl5wd2"
- >
- <Condition>
- <div
- className="css-1d9hhun-Condition e1abl5wd3"
- >
- <h6>
- When
- <strong />
- of these conditions are met:
- </h6>
- <GuideAnchor
- target="alert_conditions"
- type="text"
- >
- <GuideAnchorContainer
- innerRef={[Function]}
- type="text"
- >
- <div
- className="css-9u5for-GuideAnchorContainer e130o4350"
- type="text"
- >
- <table
- className="conditions-list table"
- >
- <tbody>
- <tr
- key="0"
- >
- <td>
- An alert is first seen
- </td>
- </tr>
- </tbody>
- </table>
- <StyledGuideAnchor
- active={false}
- className="guide-anchor-ping alert_conditions"
- >
- <div
- className="guide-anchor-ping alert_conditions css-1yndvnf-StyledGuideAnchor e130o4351"
- >
- <StyledGuideAnchorRipples>
- <div
- className="css-3zj3g7-StyledGuideAnchorRipples e130o4352"
- />
- </StyledGuideAnchorRipples>
- </div>
- </StyledGuideAnchor>
- </div>
- </GuideAnchorContainer>
- </GuideAnchor>
- </div>
- </Condition>
- </div>
- </RuleDescriptionColumn>
- <RuleDescriptionColumn>
- <div
- className="css-15obcn9-RuleDescriptionColumn e1abl5wd2"
- >
- <Condition>
- <div
- className="css-1d9hhun-Condition e1abl5wd3"
- >
- <h6>
- Take these actions at most
-
- <strong>
- once every
- <Duration
- seconds={NaN}
- >
- <span>
- NaN ms
- </span>
- </Duration>
- </strong>
-
- for an issue:
- </h6>
- <GuideAnchor
- target="alert_actions"
- type="text"
- >
- <GuideAnchorContainer
- innerRef={[Function]}
- type="text"
- >
- <div
- className="css-9u5for-GuideAnchorContainer e130o4350"
- type="text"
- >
- <table
- className="actions-list table"
- >
- <tbody>
- <tr
- key="0"
- >
- <td>
- Send a notification to all services
- </td>
- </tr>
- </tbody>
- </table>
- <StyledGuideAnchor
- active={false}
- className="guide-anchor-ping alert_actions"
- >
- <div
- className="guide-anchor-ping alert_actions css-1yndvnf-StyledGuideAnchor e130o4351"
- >
- <StyledGuideAnchorRipples>
- <div
- className="css-3zj3g7-StyledGuideAnchorRipples e130o4352"
- />
- </StyledGuideAnchorRipples>
- </div>
- </StyledGuideAnchor>
- </div>
- </GuideAnchorContainer>
- </GuideAnchor>
- </div>
- </Condition>
- </div>
- </RuleDescriptionColumn>
- </div>
- </RuleDescriptionRow>
- </div>
- </PanelBody>
- </div>
- </Component>
- </Panel>
- </RuleRow>
- </div>
- </DocumentTitle>
- </SideEffect(DocumentTitle)>
- </ProjectAlertRules>
- `;
|