ownershipInput.spec.jsx.snap 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProjectTeamsSettings render() renders 1`] = `
  3. .glamor-64 {
  4. display: -webkit-box;
  5. display: -webkit-flex;
  6. display: -ms-flexbox;
  7. display: flex;
  8. height: 40px;
  9. -webkit-align-items: center;
  10. -webkit-box-align: center;
  11. -ms-flex-align: center;
  12. align-items: center;
  13. margin-bottom: 1em;
  14. }
  15. .glamor-0 {
  16. padding: 0.5em;
  17. margin-right: 5px;
  18. width: 80px;
  19. -webkit-flex-shrink: 0;
  20. -ms-flex-negative: 0;
  21. flex-shrink: 0;
  22. }
  23. .glamor-4 {
  24. display: block;
  25. width: 100%;
  26. background: #fff;
  27. border: 1px solid;
  28. box-shadow: inset;
  29. padding: 0.5em;
  30. -webkit-transition: border 0.1s linear;
  31. transition: border 0.1s linear;
  32. resize: vertical;
  33. padding: 0.5em;
  34. margin-right: 5px;
  35. }
  36. .glamor-4 {
  37. display: block;
  38. width: 100%;
  39. background: #fff;
  40. border: 1px solid;
  41. box-shadow: inset;
  42. padding: 0.5em;
  43. -webkit-transition: border 0.1s linear;
  44. transition: border 0.1s linear;
  45. resize: vertical;
  46. padding: 0.5em;
  47. margin-right: 5px;
  48. }
  49. .glamor-4 {
  50. display: block;
  51. width: 100%;
  52. background: #fff;
  53. border: 1px solid;
  54. box-shadow: inset;
  55. padding: 0.5em;
  56. -webkit-transition: border 0.1s linear;
  57. transition: border 0.1s linear;
  58. resize: vertical;
  59. padding: 0.5em;
  60. margin-right: 5px;
  61. }
  62. .glamor-4 {
  63. display: block;
  64. width: 100%;
  65. background: #fff;
  66. border: 1px solid;
  67. box-shadow: inset;
  68. padding: 0.5em;
  69. -webkit-transition: border 0.1s linear;
  70. transition: border 0.1s linear;
  71. resize: vertical;
  72. padding: 0.5em;
  73. margin-right: 5px;
  74. }
  75. .glamor-4:focus {
  76. outline: none;
  77. }
  78. .glamor-4:hover,
  79. .glamor-4:focus,
  80. .glamor-4:active {
  81. border: 1px solid;
  82. }
  83. .glamor-9 {
  84. -webkit-flex-shrink: 0;
  85. -ms-flex-negative: 0;
  86. flex-shrink: 0;
  87. margin-right: 5px;
  88. }
  89. .glamor-7 {
  90. vertical-align: middle;
  91. -webkit-flex-shrink: 0;
  92. -ms-flex-negative: 0;
  93. flex-shrink: 0;
  94. margin-right: 5px;
  95. }
  96. .glamor-45 {
  97. box-sizing: border-box;
  98. -webkit-flex: 1;
  99. -ms-flex: 1;
  100. flex: 1;
  101. display: -webkit-box;
  102. display: -webkit-flex;
  103. display: -ms-flexbox;
  104. display: flex;
  105. -webkit-align-items: center;
  106. -webkit-box-align: center;
  107. -ms-flex-align: center;
  108. align-items: center;
  109. }
  110. .glamor-41 {
  111. position: relative;
  112. display: inline-block;
  113. }
  114. .glamor-37 {
  115. margin-right: 5px;
  116. -webkit-flex: 1;
  117. -ms-flex: 1;
  118. flex: 1;
  119. white-space: nowrap;
  120. height: 37px;
  121. }
  122. .glamor-37 .button-label {
  123. font-size: 14px;
  124. padding: 4px 8px;
  125. padding-left: 4px;
  126. }
  127. .glamor-29 {
  128. position: relative;
  129. z-index: 2;
  130. box-shadow: none;
  131. margin-right: 5px;
  132. -webkit-flex: 1;
  133. -ms-flex: 1;
  134. flex: 1;
  135. white-space: nowrap;
  136. height: 37px;
  137. }
  138. .glamor-29 .button-label {
  139. font-size: 14px;
  140. padding: 4px 8px;
  141. padding-left: 4px;
  142. }
  143. .glamor-26 {
  144. box-sizing: border-box;
  145. display: -webkit-box;
  146. display: -webkit-flex;
  147. display: -ms-flexbox;
  148. display: flex;
  149. -webkit-align-items: center;
  150. -webkit-box-align: center;
  151. -ms-flex-align: center;
  152. align-items: center;
  153. }
  154. .glamor-13 {
  155. -webkit-box-pack: end;
  156. -webkit-justify-content: flex-end;
  157. -ms-flex-pack: end;
  158. justify-content: flex-end;
  159. display: -webkit-box;
  160. display: -webkit-flex;
  161. display: -ms-flexbox;
  162. display: flex;
  163. }
  164. .glamor-13 span {
  165. margin-right: 2px;
  166. }
  167. .glamor-13 .avatar {
  168. width: 28px;
  169. height: 28px;
  170. }
  171. .glamor-15 {
  172. margin-left: 3px;
  173. padding: 0px;
  174. }
  175. .glamor-20 {
  176. margin-left: 0.33em;
  177. }
  178. .glamor-18 {
  179. vertical-align: middle;
  180. margin-left: 0.33em;
  181. }
  182. .glamor-60 {
  183. width: 37px;
  184. height: 37px;
  185. -webkit-flex-shrink: 0;
  186. -ms-flex-negative: 0;
  187. flex-shrink: 0;
  188. display: -webkit-box;
  189. display: -webkit-flex;
  190. display: -ms-flexbox;
  191. display: flex;
  192. -webkit-box-pack: center;
  193. -webkit-justify-content: center;
  194. -ms-flex-pack: center;
  195. justify-content: center;
  196. }
  197. .glamor-60 .button-label {
  198. padding: 0.5em;
  199. }
  200. .glamor-60 div {
  201. margin: 0px !important;
  202. }
  203. .glamor-54 {
  204. box-sizing: border-box;
  205. margin-right: 8px;
  206. margin-left: -2px;
  207. }
  208. .glamor-50 {
  209. display: block;
  210. }
  211. .glamor-48 {
  212. vertical-align: middle;
  213. display: block;
  214. }
  215. .glamor-68 {
  216. text-align: end;
  217. padding-top: 10px;
  218. }
  219. <OwnerInput
  220. initialText="url:src @dummy@example.com"
  221. organization={
  222. Object {
  223. "access": Array [
  224. "org:read",
  225. "org:write",
  226. "org:admin",
  227. "project:read",
  228. "project:write",
  229. "project:admin",
  230. "team:read",
  231. "team:write",
  232. "team:admin",
  233. ],
  234. "features": Array [],
  235. "id": "3",
  236. "name": "Organization Name",
  237. "onboardingTasks": Array [],
  238. "projects": Array [],
  239. "slug": "org-slug",
  240. "status": Object {
  241. "id": "active",
  242. "name": "active",
  243. },
  244. "teams": Array [],
  245. }
  246. }
  247. params={
  248. Object {
  249. "orgId": "org-slug",
  250. "projectId": "project-slug",
  251. }
  252. }
  253. project={
  254. Object {
  255. "hasAccess": true,
  256. "id": "2",
  257. "isBookmarked": false,
  258. "isMember": true,
  259. "name": "Project Name",
  260. "slug": "project-slug",
  261. "teams": Array [],
  262. }
  263. }
  264. >
  265. <RuleBuilder
  266. onAddRule={[Function]}
  267. organization={
  268. Object {
  269. "access": Array [
  270. "org:read",
  271. "org:write",
  272. "org:admin",
  273. "project:read",
  274. "project:write",
  275. "project:admin",
  276. "team:read",
  277. "team:write",
  278. "team:admin",
  279. ],
  280. "features": Array [],
  281. "id": "3",
  282. "name": "Organization Name",
  283. "onboardingTasks": Array [],
  284. "projects": Array [],
  285. "slug": "org-slug",
  286. "status": Object {
  287. "id": "active",
  288. "name": "active",
  289. },
  290. "teams": Array [],
  291. }
  292. }
  293. project={
  294. Object {
  295. "hasAccess": true,
  296. "id": "2",
  297. "isBookmarked": false,
  298. "isMember": true,
  299. "name": "Project Name",
  300. "slug": "project-slug",
  301. "teams": Array [],
  302. }
  303. }
  304. >
  305. <BuilderBar>
  306. <div
  307. className="glamor-64 glamor-65"
  308. >
  309. <BuilderSelect
  310. onChange={[Function]}
  311. value="path"
  312. >
  313. <SelectInput
  314. className="glamor-0 glamor-1"
  315. disabled={false}
  316. multiple={false}
  317. onChange={[Function]}
  318. placeholder="Select an option..."
  319. required={false}
  320. value="path"
  321. >
  322. <select
  323. className="glamor-0 glamor-1"
  324. disabled={false}
  325. multiple={false}
  326. onChange={[Function]}
  327. placeholder="Select an option..."
  328. required={false}
  329. value="path"
  330. >
  331. <option
  332. value="path"
  333. >
  334. Path
  335. </option>
  336. <option
  337. value="url"
  338. >
  339. URL
  340. </option>
  341. </select>
  342. </SelectInput>
  343. </BuilderSelect>
  344. <BuilderInput
  345. controlled={true}
  346. onChange={[Function]}
  347. placeholder="src/example/*"
  348. value=""
  349. >
  350. <input
  351. className="glamor-4 glamor-5"
  352. onChange={[Function]}
  353. placeholder="src/example/*"
  354. value=""
  355. />
  356. </BuilderInput>
  357. <Divider
  358. src="icon-chevron-right"
  359. >
  360. <InlineSvg
  361. className="glamor-9 glamor-6"
  362. src="icon-chevron-right"
  363. >
  364. <StyledSvg
  365. className="glamor-9 glamor-6"
  366. height="1em"
  367. style={Object {}}
  368. viewBox={Object {}}
  369. width="1em"
  370. >
  371. <svg
  372. className="glamor-6 glamor-7 glamor-8"
  373. height="1em"
  374. style={Object {}}
  375. viewBox={Object {}}
  376. width="1em"
  377. >
  378. <use
  379. href="#test"
  380. xlinkHref="#test"
  381. />
  382. </svg>
  383. </StyledSvg>
  384. </InlineSvg>
  385. </Divider>
  386. <Flex
  387. align="center"
  388. flex="1"
  389. >
  390. <Base
  391. align="center"
  392. className="glamor-45"
  393. flex="1"
  394. >
  395. <div
  396. className="glamor-45"
  397. is={null}
  398. >
  399. <DropdownAutoComplete
  400. alignMenu="right"
  401. items={
  402. Array [
  403. Object {
  404. "items": Array [],
  405. "label": "Teams",
  406. "value": "team",
  407. },
  408. Object {
  409. "items": Array [],
  410. "label": "Users",
  411. "value": "user",
  412. },
  413. ]
  414. }
  415. onSelect={[Function]}
  416. >
  417. <DropdownAutoCompleteMenu
  418. alignMenu="right"
  419. items={
  420. Array [
  421. Object {
  422. "items": Array [],
  423. "label": "Teams",
  424. "value": "team",
  425. },
  426. Object {
  427. "items": Array [],
  428. "label": "Users",
  429. "value": "user",
  430. },
  431. ]
  432. }
  433. onSelect={[Function]}
  434. >
  435. <AutoComplete
  436. itemToString={[Function]}
  437. onSelect={[Function]}
  438. >
  439. <DropdownMenu
  440. isOpen={false}
  441. keepMenuOpen={false}
  442. onClickOutside={[Function]}
  443. >
  444. <AutoCompleteRoot>
  445. <Component
  446. className="glamor-41 glamor-42"
  447. >
  448. <div
  449. className="glamor-41 glamor-42"
  450. >
  451. <div
  452. onClick={[Function]}
  453. onMouseEnter={[Function]}
  454. onMouseLeave={[Function]}
  455. role="button"
  456. >
  457. <BuilderDropdownButton
  458. isOpen={false}
  459. >
  460. <DropdownButton
  461. className="glamor-37 glamor-28"
  462. isOpen={false}
  463. >
  464. <StyledButton
  465. className="glamor-37 glamor-28"
  466. isOpen={false}
  467. >
  468. <Component
  469. className="glamor-28 glamor-29 glamor-30"
  470. isOpen={false}
  471. >
  472. <Button
  473. className="glamor-28 glamor-29 glamor-30"
  474. disabled={false}
  475. >
  476. <button
  477. className="glamor-28 glamor-29 glamor-30 button button-default"
  478. disabled={false}
  479. onClick={[Function]}
  480. role="button"
  481. >
  482. <Flex
  483. align="center"
  484. className="button-label"
  485. >
  486. <Base
  487. align="center"
  488. className="button-label glamor-26"
  489. >
  490. <div
  491. className="button-label glamor-26"
  492. is={null}
  493. >
  494. <Owners>
  495. <div
  496. className="glamor-13 glamor-14"
  497. />
  498. </Owners>
  499. <AddOwnersLabel>
  500. <div
  501. className="glamor-15 glamor-16"
  502. >
  503. Add Owners
  504. </div>
  505. </AddOwnersLabel>
  506. <StyledChevronDown>
  507. <Component
  508. className="glamor-20 glamor-17"
  509. >
  510. <InlineSvg
  511. className="glamor-20 glamor-17"
  512. src="icon-chevron-down"
  513. >
  514. <StyledSvg
  515. className="glamor-20 glamor-17"
  516. height="1em"
  517. style={Object {}}
  518. viewBox={Object {}}
  519. width="1em"
  520. >
  521. <svg
  522. className="glamor-17 glamor-18 glamor-8"
  523. height="1em"
  524. style={Object {}}
  525. viewBox={Object {}}
  526. width="1em"
  527. >
  528. <use
  529. href="#test"
  530. xlinkHref="#test"
  531. />
  532. </svg>
  533. </StyledSvg>
  534. </InlineSvg>
  535. </Component>
  536. </StyledChevronDown>
  537. </div>
  538. </Base>
  539. </Flex>
  540. </button>
  541. </Button>
  542. </Component>
  543. </StyledButton>
  544. </DropdownButton>
  545. </BuilderDropdownButton>
  546. </div>
  547. </div>
  548. </Component>
  549. </AutoCompleteRoot>
  550. </DropdownMenu>
  551. </AutoComplete>
  552. </DropdownAutoCompleteMenu>
  553. </DropdownAutoComplete>
  554. </div>
  555. </Base>
  556. </Flex>
  557. <RuleAddButton
  558. icon="icon-circle-add"
  559. onClick={[Function]}
  560. priority="primary"
  561. >
  562. <Button
  563. className="glamor-60 glamor-61"
  564. disabled={false}
  565. icon="icon-circle-add"
  566. onClick={[Function]}
  567. priority="primary"
  568. >
  569. <button
  570. className="glamor-60 glamor-61 button button-primary"
  571. disabled={false}
  572. onClick={[Function]}
  573. role="button"
  574. >
  575. <Flex
  576. align="center"
  577. className="button-label"
  578. >
  579. <Base
  580. align="center"
  581. className="button-label glamor-26"
  582. >
  583. <div
  584. className="button-label glamor-26"
  585. is={null}
  586. >
  587. <Icon>
  588. <Base
  589. className="glamor-54 glamor-55"
  590. >
  591. <div
  592. className="glamor-54 glamor-55"
  593. is={null}
  594. >
  595. <StyledInlineSvg
  596. size="16px"
  597. src="icon-circle-add"
  598. >
  599. <InlineSvg
  600. className="glamor-50 glamor-47"
  601. size="16px"
  602. src="icon-circle-add"
  603. >
  604. <StyledSvg
  605. className="glamor-50 glamor-47"
  606. height="16px"
  607. style={Object {}}
  608. viewBox={Object {}}
  609. width="16px"
  610. >
  611. <svg
  612. className="glamor-47 glamor-48 glamor-8"
  613. height="16px"
  614. style={Object {}}
  615. viewBox={Object {}}
  616. width="16px"
  617. >
  618. <use
  619. href="#test"
  620. xlinkHref="#test"
  621. />
  622. </svg>
  623. </StyledSvg>
  624. </InlineSvg>
  625. </StyledInlineSvg>
  626. </div>
  627. </Base>
  628. </Icon>
  629. </div>
  630. </Base>
  631. </Flex>
  632. </button>
  633. </Button>
  634. </RuleAddButton>
  635. </div>
  636. </BuilderBar>
  637. </RuleBuilder>
  638. <div
  639. onKeyDown={[Function]}
  640. style={
  641. Object {
  642. "position": "relative",
  643. }
  644. }
  645. >
  646. <TextareaAutosize
  647. autoCapitalize="off"
  648. autoComplete="off"
  649. autoCorrect="off"
  650. onChange={[Function]}
  651. placeholder="#example usage
  652. path:src/example/pipeline/* person@sentry.io #infrastructure
  653. url:http://example.com/settings/* #product"
  654. rows={1}
  655. spellCheck="false"
  656. style={
  657. Object {
  658. "border": "1 solid",
  659. "fontFamily": "Monaco, Consolas, \\"Courier New\\", monospace",
  660. "margin": 0,
  661. "minHeight": 140,
  662. "outline": 0,
  663. "overflow": "auto",
  664. "padding": "5px 5px 0",
  665. "resize": "none",
  666. "whiteSpace": "pre-wrap",
  667. "width": "100%",
  668. "wordBreak": "break-all",
  669. }
  670. }
  671. value="new"
  672. >
  673. <textarea
  674. autoCapitalize="off"
  675. autoComplete="off"
  676. autoCorrect="off"
  677. onChange={[Function]}
  678. placeholder="#example usage
  679. path:src/example/pipeline/* person@sentry.io #infrastructure
  680. url:http://example.com/settings/* #product"
  681. rows={1}
  682. spellCheck="false"
  683. style={
  684. Object {
  685. "border": "1 solid",
  686. "fontFamily": "Monaco, Consolas, \\"Courier New\\", monospace",
  687. "margin": 0,
  688. "minHeight": 140,
  689. "outline": 0,
  690. "overflow": "auto",
  691. "padding": "5px 5px 0",
  692. "resize": "none",
  693. "whiteSpace": "pre-wrap",
  694. "width": "100%",
  695. "wordBreak": "break-all",
  696. }
  697. }
  698. value="new"
  699. />
  700. </TextareaAutosize>
  701. <SaveButton>
  702. <div
  703. className="glamor-68 glamor-69"
  704. >
  705. <Button
  706. disabled={false}
  707. onClick={[Function]}
  708. priority="primary"
  709. size="small"
  710. >
  711. <button
  712. className="button button-primary button-sm"
  713. disabled={false}
  714. onClick={[Function]}
  715. role="button"
  716. >
  717. <Flex
  718. align="center"
  719. className="button-label"
  720. >
  721. <Base
  722. align="center"
  723. className="button-label glamor-26"
  724. >
  725. <div
  726. className="button-label glamor-26"
  727. is={null}
  728. >
  729. Save Changes
  730. </div>
  731. </Base>
  732. </Flex>
  733. </button>
  734. </Button>
  735. </div>
  736. </SaveButton>
  737. </div>
  738. </OwnerInput>
  739. `;