projectEnvironments.spec.jsx.snap 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267
  1. // Jest Snapshot v1, https://goo.gl/fbAQLP
  2. exports[`ProjectEnvironments render active renders empty message 1`] = `
  3. <ProjectEnvironments
  4. api={
  5. Client {
  6. "_chain": [Function],
  7. "_wrapRequest": [Function],
  8. "bulkUpdate": [Function],
  9. "handleRequestError": [Function],
  10. "hasProjectBeenRenamed": [Function],
  11. }
  12. }
  13. location={
  14. Object {
  15. "pathname": "environments/",
  16. }
  17. }
  18. params={
  19. Object {
  20. "orgId": "org-slug",
  21. "projectId": "project-slug",
  22. }
  23. }
  24. routes={Array []}
  25. >
  26. <div>
  27. <SentryDocumentTitle
  28. objSlug="project-slug"
  29. title="Environments"
  30. >
  31. <SideEffect(DocumentTitle)
  32. title="Environments - project-slug - Sentry"
  33. >
  34. <DocumentTitle
  35. title="Environments - project-slug - Sentry"
  36. />
  37. </SideEffect(DocumentTitle)>
  38. </SentryDocumentTitle>
  39. <StyledSettingsPageHeading
  40. noTitleStyles={false}
  41. tabs={
  42. <NavTabs
  43. underlined={true}
  44. >
  45. <ListLink
  46. activeClassName="active"
  47. index={true}
  48. isActive={[Function]}
  49. to="/org-slug/project-slug/settings/environments/"
  50. >
  51. Environments
  52. </ListLink>
  53. <ListLink
  54. activeClassName="active"
  55. index={true}
  56. isActive={[Function]}
  57. to="/org-slug/project-slug/settings/environments/hidden/"
  58. >
  59. Hidden
  60. </ListLink>
  61. </NavTabs>
  62. }
  63. title="Manage Environments"
  64. >
  65. <SettingsPageHeading
  66. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  67. noTitleStyles={false}
  68. tabs={
  69. <NavTabs
  70. underlined={true}
  71. >
  72. <ListLink
  73. activeClassName="active"
  74. index={true}
  75. isActive={[Function]}
  76. to="/org-slug/project-slug/settings/environments/"
  77. >
  78. Environments
  79. </ListLink>
  80. <ListLink
  81. activeClassName="active"
  82. index={true}
  83. isActive={[Function]}
  84. to="/org-slug/project-slug/settings/environments/hidden/"
  85. >
  86. Hidden
  87. </ListLink>
  88. </NavTabs>
  89. }
  90. title="Manage Environments"
  91. >
  92. <div
  93. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  94. >
  95. <TitleAndActions>
  96. <div
  97. className="css-b5tiyd-TitleAndActions e1uay4fd0"
  98. >
  99. <Title
  100. styled={false}
  101. tabs={
  102. <NavTabs
  103. underlined={true}
  104. >
  105. <ListLink
  106. activeClassName="active"
  107. index={true}
  108. isActive={[Function]}
  109. to="/org-slug/project-slug/settings/environments/"
  110. >
  111. Environments
  112. </ListLink>
  113. <ListLink
  114. activeClassName="active"
  115. index={true}
  116. isActive={[Function]}
  117. to="/org-slug/project-slug/settings/environments/hidden/"
  118. >
  119. Hidden
  120. </ListLink>
  121. </NavTabs>
  122. }
  123. >
  124. <div
  125. className="css-wjm92z-Title e1uay4fd1"
  126. >
  127. <HeaderTitle>
  128. <h4
  129. className="css-1w8ttcn-HeaderTitle eqkydle2"
  130. >
  131. Manage Environments
  132. </h4>
  133. </HeaderTitle>
  134. </div>
  135. </Title>
  136. </div>
  137. </TitleAndActions>
  138. <div>
  139. <NavTabs
  140. underlined={true}
  141. >
  142. <ul
  143. className="nav nav-tabs border-bottom"
  144. >
  145. <ListLink
  146. activeClassName="active"
  147. index={true}
  148. isActive={[Function]}
  149. to="/org-slug/project-slug/settings/environments/"
  150. >
  151. <li
  152. className="active"
  153. >
  154. <Link
  155. onlyActiveOnIndex={true}
  156. style={Object {}}
  157. to="/org-slug/project-slug/settings/environments/"
  158. >
  159. <a
  160. onClick={[Function]}
  161. style={Object {}}
  162. >
  163. Environments
  164. </a>
  165. </Link>
  166. </li>
  167. </ListLink>
  168. <ListLink
  169. activeClassName="active"
  170. index={true}
  171. isActive={[Function]}
  172. to="/org-slug/project-slug/settings/environments/hidden/"
  173. >
  174. <li
  175. className=""
  176. >
  177. <Link
  178. onlyActiveOnIndex={true}
  179. style={Object {}}
  180. to="/org-slug/project-slug/settings/environments/hidden/"
  181. >
  182. <a
  183. onClick={[Function]}
  184. style={Object {}}
  185. >
  186. Hidden
  187. </a>
  188. </Link>
  189. </li>
  190. </ListLink>
  191. </ul>
  192. </NavTabs>
  193. </div>
  194. </div>
  195. </SettingsPageHeading>
  196. </StyledSettingsPageHeading>
  197. <PermissionAlert
  198. access={
  199. Array [
  200. "project:write",
  201. ]
  202. }
  203. >
  204. <WithOrganizationMockWrapper
  205. access={
  206. Array [
  207. "project:write",
  208. ]
  209. }
  210. >
  211. <withConfig(Access)
  212. access={
  213. Array [
  214. "project:write",
  215. ]
  216. }
  217. organization={
  218. Object {
  219. "access": Array [
  220. "org:read",
  221. "org:write",
  222. "org:admin",
  223. "org:integrations",
  224. "project:read",
  225. "project:write",
  226. "project:admin",
  227. "team:read",
  228. "team:write",
  229. "team:admin",
  230. ],
  231. "features": Array [],
  232. "id": "3",
  233. "name": "Organization Name",
  234. "onboardingTasks": Array [],
  235. "projects": Array [],
  236. "scrapeJavaScript": true,
  237. "slug": "org-slug",
  238. "status": Object {
  239. "id": "active",
  240. "name": "active",
  241. },
  242. "teams": Array [],
  243. }
  244. }
  245. >
  246. <Access
  247. access={
  248. Array [
  249. "project:write",
  250. ]
  251. }
  252. config={
  253. Object {
  254. "features": Set {},
  255. "messages": Array [],
  256. "user": Object {
  257. "email": "foo@example.com",
  258. "flags": Object {
  259. "newsletter_consent_prompt": false,
  260. },
  261. "hasPasswordAuth": true,
  262. "id": "1",
  263. "isAuthenticated": true,
  264. "name": "Foo Bar",
  265. "options": Object {
  266. "timezone": "UTC",
  267. },
  268. "permissions": Set {},
  269. "username": "foo@example.com",
  270. },
  271. }
  272. }
  273. isSuperuser={false}
  274. organization={
  275. Object {
  276. "access": Array [
  277. "org:read",
  278. "org:write",
  279. "org:admin",
  280. "org:integrations",
  281. "project:read",
  282. "project:write",
  283. "project:admin",
  284. "team:read",
  285. "team:write",
  286. "team:admin",
  287. ],
  288. "features": Array [],
  289. "id": "3",
  290. "name": "Organization Name",
  291. "onboardingTasks": Array [],
  292. "projects": Array [],
  293. "scrapeJavaScript": true,
  294. "slug": "org-slug",
  295. "status": Object {
  296. "id": "active",
  297. "name": "active",
  298. },
  299. "teams": Array [],
  300. }
  301. }
  302. renderNoAccessMessage={false}
  303. requireAll={true}
  304. />
  305. </withConfig(Access)>
  306. </WithOrganizationMockWrapper>
  307. </PermissionAlert>
  308. <Panel>
  309. <Component
  310. className="css-10qfvek-Panel e119nu470"
  311. >
  312. <div
  313. className="css-10qfvek-Panel e119nu470"
  314. >
  315. <PanelHeader>
  316. <div
  317. className="css-cjwccy-PanelHeader-getPadding en8g1d30"
  318. >
  319. Active Environments
  320. </div>
  321. </PanelHeader>
  322. <PanelBody
  323. direction="column"
  324. disablePadding={true}
  325. flex={false}
  326. >
  327. <div
  328. className="css-a4ya23-textStyles"
  329. >
  330. <EmptyMessage>
  331. <Component
  332. className="css-11r4vxm-EmptyMessage e1h3yfdx4"
  333. >
  334. <div
  335. className="css-11r4vxm-EmptyMessage e1h3yfdx4"
  336. data-test-id="empty-message"
  337. >
  338. <Description
  339. noMargin={true}
  340. >
  341. <div
  342. className="css-pwn5v-TextBlock-Description-MarginStyles e1h3yfdx0"
  343. >
  344. You don't have any environments yet.
  345. </div>
  346. </Description>
  347. </div>
  348. </Component>
  349. </EmptyMessage>
  350. </div>
  351. </PanelBody>
  352. </div>
  353. </Component>
  354. </Panel>
  355. </div>
  356. </ProjectEnvironments>
  357. `;
  358. exports[`ProjectEnvironments render hidden renders empty message 1`] = `
  359. <ProjectEnvironments
  360. api={
  361. Client {
  362. "_chain": [Function],
  363. "_wrapRequest": [Function],
  364. "bulkUpdate": [Function],
  365. "handleRequestError": [Function],
  366. "hasProjectBeenRenamed": [Function],
  367. }
  368. }
  369. location={
  370. Object {
  371. "pathname": "environments/hidden/",
  372. }
  373. }
  374. params={
  375. Object {
  376. "orgId": "org-slug",
  377. "projectId": "project-slug",
  378. }
  379. }
  380. routes={Array []}
  381. >
  382. <div>
  383. <SentryDocumentTitle
  384. objSlug="project-slug"
  385. title="Environments"
  386. >
  387. <SideEffect(DocumentTitle)
  388. title="Environments - project-slug - Sentry"
  389. >
  390. <DocumentTitle
  391. title="Environments - project-slug - Sentry"
  392. />
  393. </SideEffect(DocumentTitle)>
  394. </SentryDocumentTitle>
  395. <StyledSettingsPageHeading
  396. noTitleStyles={false}
  397. tabs={
  398. <NavTabs
  399. underlined={true}
  400. >
  401. <ListLink
  402. activeClassName="active"
  403. index={true}
  404. isActive={[Function]}
  405. to="/org-slug/project-slug/settings/environments/"
  406. >
  407. Environments
  408. </ListLink>
  409. <ListLink
  410. activeClassName="active"
  411. index={true}
  412. isActive={[Function]}
  413. to="/org-slug/project-slug/settings/environments/hidden/"
  414. >
  415. Hidden
  416. </ListLink>
  417. </NavTabs>
  418. }
  419. title="Manage Environments"
  420. >
  421. <SettingsPageHeading
  422. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  423. noTitleStyles={false}
  424. tabs={
  425. <NavTabs
  426. underlined={true}
  427. >
  428. <ListLink
  429. activeClassName="active"
  430. index={true}
  431. isActive={[Function]}
  432. to="/org-slug/project-slug/settings/environments/"
  433. >
  434. Environments
  435. </ListLink>
  436. <ListLink
  437. activeClassName="active"
  438. index={true}
  439. isActive={[Function]}
  440. to="/org-slug/project-slug/settings/environments/hidden/"
  441. >
  442. Hidden
  443. </ListLink>
  444. </NavTabs>
  445. }
  446. title="Manage Environments"
  447. >
  448. <div
  449. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  450. >
  451. <TitleAndActions>
  452. <div
  453. className="css-b5tiyd-TitleAndActions e1uay4fd0"
  454. >
  455. <Title
  456. styled={false}
  457. tabs={
  458. <NavTabs
  459. underlined={true}
  460. >
  461. <ListLink
  462. activeClassName="active"
  463. index={true}
  464. isActive={[Function]}
  465. to="/org-slug/project-slug/settings/environments/"
  466. >
  467. Environments
  468. </ListLink>
  469. <ListLink
  470. activeClassName="active"
  471. index={true}
  472. isActive={[Function]}
  473. to="/org-slug/project-slug/settings/environments/hidden/"
  474. >
  475. Hidden
  476. </ListLink>
  477. </NavTabs>
  478. }
  479. >
  480. <div
  481. className="css-wjm92z-Title e1uay4fd1"
  482. >
  483. <HeaderTitle>
  484. <h4
  485. className="css-1w8ttcn-HeaderTitle eqkydle2"
  486. >
  487. Manage Environments
  488. </h4>
  489. </HeaderTitle>
  490. </div>
  491. </Title>
  492. </div>
  493. </TitleAndActions>
  494. <div>
  495. <NavTabs
  496. underlined={true}
  497. >
  498. <ul
  499. className="nav nav-tabs border-bottom"
  500. >
  501. <ListLink
  502. activeClassName="active"
  503. index={true}
  504. isActive={[Function]}
  505. to="/org-slug/project-slug/settings/environments/"
  506. >
  507. <li
  508. className=""
  509. >
  510. <Link
  511. onlyActiveOnIndex={true}
  512. style={Object {}}
  513. to="/org-slug/project-slug/settings/environments/"
  514. >
  515. <a
  516. onClick={[Function]}
  517. style={Object {}}
  518. >
  519. Environments
  520. </a>
  521. </Link>
  522. </li>
  523. </ListLink>
  524. <ListLink
  525. activeClassName="active"
  526. index={true}
  527. isActive={[Function]}
  528. to="/org-slug/project-slug/settings/environments/hidden/"
  529. >
  530. <li
  531. className="active"
  532. >
  533. <Link
  534. onlyActiveOnIndex={true}
  535. style={Object {}}
  536. to="/org-slug/project-slug/settings/environments/hidden/"
  537. >
  538. <a
  539. onClick={[Function]}
  540. style={Object {}}
  541. >
  542. Hidden
  543. </a>
  544. </Link>
  545. </li>
  546. </ListLink>
  547. </ul>
  548. </NavTabs>
  549. </div>
  550. </div>
  551. </SettingsPageHeading>
  552. </StyledSettingsPageHeading>
  553. <PermissionAlert
  554. access={
  555. Array [
  556. "project:write",
  557. ]
  558. }
  559. >
  560. <WithOrganizationMockWrapper
  561. access={
  562. Array [
  563. "project:write",
  564. ]
  565. }
  566. >
  567. <withConfig(Access)
  568. access={
  569. Array [
  570. "project:write",
  571. ]
  572. }
  573. organization={
  574. Object {
  575. "access": Array [
  576. "org:read",
  577. "org:write",
  578. "org:admin",
  579. "org:integrations",
  580. "project:read",
  581. "project:write",
  582. "project:admin",
  583. "team:read",
  584. "team:write",
  585. "team:admin",
  586. ],
  587. "features": Array [],
  588. "id": "3",
  589. "name": "Organization Name",
  590. "onboardingTasks": Array [],
  591. "projects": Array [],
  592. "scrapeJavaScript": true,
  593. "slug": "org-slug",
  594. "status": Object {
  595. "id": "active",
  596. "name": "active",
  597. },
  598. "teams": Array [],
  599. }
  600. }
  601. >
  602. <Access
  603. access={
  604. Array [
  605. "project:write",
  606. ]
  607. }
  608. config={
  609. Object {
  610. "features": Set {},
  611. "messages": Array [],
  612. "user": Object {
  613. "email": "foo@example.com",
  614. "flags": Object {
  615. "newsletter_consent_prompt": false,
  616. },
  617. "hasPasswordAuth": true,
  618. "id": "1",
  619. "isAuthenticated": true,
  620. "name": "Foo Bar",
  621. "options": Object {
  622. "timezone": "UTC",
  623. },
  624. "permissions": Set {},
  625. "username": "foo@example.com",
  626. },
  627. }
  628. }
  629. isSuperuser={false}
  630. organization={
  631. Object {
  632. "access": Array [
  633. "org:read",
  634. "org:write",
  635. "org:admin",
  636. "org:integrations",
  637. "project:read",
  638. "project:write",
  639. "project:admin",
  640. "team:read",
  641. "team:write",
  642. "team:admin",
  643. ],
  644. "features": Array [],
  645. "id": "3",
  646. "name": "Organization Name",
  647. "onboardingTasks": Array [],
  648. "projects": Array [],
  649. "scrapeJavaScript": true,
  650. "slug": "org-slug",
  651. "status": Object {
  652. "id": "active",
  653. "name": "active",
  654. },
  655. "teams": Array [],
  656. }
  657. }
  658. renderNoAccessMessage={false}
  659. requireAll={true}
  660. />
  661. </withConfig(Access)>
  662. </WithOrganizationMockWrapper>
  663. </PermissionAlert>
  664. <Panel>
  665. <Component
  666. className="css-10qfvek-Panel e119nu470"
  667. >
  668. <div
  669. className="css-10qfvek-Panel e119nu470"
  670. >
  671. <PanelHeader>
  672. <div
  673. className="css-cjwccy-PanelHeader-getPadding en8g1d30"
  674. >
  675. Hidden
  676. </div>
  677. </PanelHeader>
  678. <PanelBody
  679. direction="column"
  680. disablePadding={true}
  681. flex={false}
  682. >
  683. <div
  684. className="css-a4ya23-textStyles"
  685. >
  686. <EmptyMessage>
  687. <Component
  688. className="css-11r4vxm-EmptyMessage e1h3yfdx4"
  689. >
  690. <div
  691. className="css-11r4vxm-EmptyMessage e1h3yfdx4"
  692. data-test-id="empty-message"
  693. >
  694. <Description
  695. noMargin={true}
  696. >
  697. <div
  698. className="css-pwn5v-TextBlock-Description-MarginStyles e1h3yfdx0"
  699. >
  700. You don't have any hidden environments.
  701. </div>
  702. </Description>
  703. </div>
  704. </Component>
  705. </EmptyMessage>
  706. </div>
  707. </PanelBody>
  708. </div>
  709. </Component>
  710. </Panel>
  711. </div>
  712. </ProjectEnvironments>
  713. `;
  714. exports[`ProjectEnvironments render hidden renders environment list 1`] = `
  715. <ProjectEnvironments
  716. api={
  717. Client {
  718. "_chain": [Function],
  719. "_wrapRequest": [Function],
  720. "bulkUpdate": [Function],
  721. "handleRequestError": [Function],
  722. "hasProjectBeenRenamed": [Function],
  723. }
  724. }
  725. location={
  726. Object {
  727. "pathname": "environments/hidden/",
  728. }
  729. }
  730. params={
  731. Object {
  732. "orgId": "org-slug",
  733. "projectId": "project-slug",
  734. }
  735. }
  736. routes={Array []}
  737. >
  738. <div>
  739. <SentryDocumentTitle
  740. objSlug="project-slug"
  741. title="Environments"
  742. >
  743. <SideEffect(DocumentTitle)
  744. title="Environments - project-slug - Sentry"
  745. >
  746. <DocumentTitle
  747. title="Environments - project-slug - Sentry"
  748. />
  749. </SideEffect(DocumentTitle)>
  750. </SentryDocumentTitle>
  751. <StyledSettingsPageHeading
  752. noTitleStyles={false}
  753. tabs={
  754. <NavTabs
  755. underlined={true}
  756. >
  757. <ListLink
  758. activeClassName="active"
  759. index={true}
  760. isActive={[Function]}
  761. to="/org-slug/project-slug/settings/environments/"
  762. >
  763. Environments
  764. </ListLink>
  765. <ListLink
  766. activeClassName="active"
  767. index={true}
  768. isActive={[Function]}
  769. to="/org-slug/project-slug/settings/environments/hidden/"
  770. >
  771. Hidden
  772. </ListLink>
  773. </NavTabs>
  774. }
  775. title="Manage Environments"
  776. >
  777. <SettingsPageHeading
  778. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  779. noTitleStyles={false}
  780. tabs={
  781. <NavTabs
  782. underlined={true}
  783. >
  784. <ListLink
  785. activeClassName="active"
  786. index={true}
  787. isActive={[Function]}
  788. to="/org-slug/project-slug/settings/environments/"
  789. >
  790. Environments
  791. </ListLink>
  792. <ListLink
  793. activeClassName="active"
  794. index={true}
  795. isActive={[Function]}
  796. to="/org-slug/project-slug/settings/environments/hidden/"
  797. >
  798. Hidden
  799. </ListLink>
  800. </NavTabs>
  801. }
  802. title="Manage Environments"
  803. >
  804. <div
  805. className="css-1fvvoq2-StyledSettingsPageHeading e1uay4fd4"
  806. >
  807. <TitleAndActions>
  808. <div
  809. className="css-b5tiyd-TitleAndActions e1uay4fd0"
  810. >
  811. <Title
  812. styled={false}
  813. tabs={
  814. <NavTabs
  815. underlined={true}
  816. >
  817. <ListLink
  818. activeClassName="active"
  819. index={true}
  820. isActive={[Function]}
  821. to="/org-slug/project-slug/settings/environments/"
  822. >
  823. Environments
  824. </ListLink>
  825. <ListLink
  826. activeClassName="active"
  827. index={true}
  828. isActive={[Function]}
  829. to="/org-slug/project-slug/settings/environments/hidden/"
  830. >
  831. Hidden
  832. </ListLink>
  833. </NavTabs>
  834. }
  835. >
  836. <div
  837. className="css-wjm92z-Title e1uay4fd1"
  838. >
  839. <HeaderTitle>
  840. <h4
  841. className="css-1w8ttcn-HeaderTitle eqkydle2"
  842. >
  843. Manage Environments
  844. </h4>
  845. </HeaderTitle>
  846. </div>
  847. </Title>
  848. </div>
  849. </TitleAndActions>
  850. <div>
  851. <NavTabs
  852. underlined={true}
  853. >
  854. <ul
  855. className="nav nav-tabs border-bottom"
  856. >
  857. <ListLink
  858. activeClassName="active"
  859. index={true}
  860. isActive={[Function]}
  861. to="/org-slug/project-slug/settings/environments/"
  862. >
  863. <li
  864. className=""
  865. >
  866. <Link
  867. onlyActiveOnIndex={true}
  868. style={Object {}}
  869. to="/org-slug/project-slug/settings/environments/"
  870. >
  871. <a
  872. onClick={[Function]}
  873. style={Object {}}
  874. >
  875. Environments
  876. </a>
  877. </Link>
  878. </li>
  879. </ListLink>
  880. <ListLink
  881. activeClassName="active"
  882. index={true}
  883. isActive={[Function]}
  884. to="/org-slug/project-slug/settings/environments/hidden/"
  885. >
  886. <li
  887. className="active"
  888. >
  889. <Link
  890. onlyActiveOnIndex={true}
  891. style={Object {}}
  892. to="/org-slug/project-slug/settings/environments/hidden/"
  893. >
  894. <a
  895. onClick={[Function]}
  896. style={Object {}}
  897. >
  898. Hidden
  899. </a>
  900. </Link>
  901. </li>
  902. </ListLink>
  903. </ul>
  904. </NavTabs>
  905. </div>
  906. </div>
  907. </SettingsPageHeading>
  908. </StyledSettingsPageHeading>
  909. <PermissionAlert
  910. access={
  911. Array [
  912. "project:write",
  913. ]
  914. }
  915. >
  916. <WithOrganizationMockWrapper
  917. access={
  918. Array [
  919. "project:write",
  920. ]
  921. }
  922. >
  923. <withConfig(Access)
  924. access={
  925. Array [
  926. "project:write",
  927. ]
  928. }
  929. organization={
  930. Object {
  931. "access": Array [
  932. "org:read",
  933. "org:write",
  934. "org:admin",
  935. "org:integrations",
  936. "project:read",
  937. "project:write",
  938. "project:admin",
  939. "team:read",
  940. "team:write",
  941. "team:admin",
  942. ],
  943. "features": Array [],
  944. "id": "3",
  945. "name": "Organization Name",
  946. "onboardingTasks": Array [],
  947. "projects": Array [],
  948. "scrapeJavaScript": true,
  949. "slug": "org-slug",
  950. "status": Object {
  951. "id": "active",
  952. "name": "active",
  953. },
  954. "teams": Array [],
  955. }
  956. }
  957. >
  958. <Access
  959. access={
  960. Array [
  961. "project:write",
  962. ]
  963. }
  964. config={
  965. Object {
  966. "features": Set {},
  967. "messages": Array [],
  968. "user": Object {
  969. "email": "foo@example.com",
  970. "flags": Object {
  971. "newsletter_consent_prompt": false,
  972. },
  973. "hasPasswordAuth": true,
  974. "id": "1",
  975. "isAuthenticated": true,
  976. "name": "Foo Bar",
  977. "options": Object {
  978. "timezone": "UTC",
  979. },
  980. "permissions": Set {},
  981. "username": "foo@example.com",
  982. },
  983. }
  984. }
  985. isSuperuser={false}
  986. organization={
  987. Object {
  988. "access": Array [
  989. "org:read",
  990. "org:write",
  991. "org:admin",
  992. "org:integrations",
  993. "project:read",
  994. "project:write",
  995. "project:admin",
  996. "team:read",
  997. "team:write",
  998. "team:admin",
  999. ],
  1000. "features": Array [],
  1001. "id": "3",
  1002. "name": "Organization Name",
  1003. "onboardingTasks": Array [],
  1004. "projects": Array [],
  1005. "scrapeJavaScript": true,
  1006. "slug": "org-slug",
  1007. "status": Object {
  1008. "id": "active",
  1009. "name": "active",
  1010. },
  1011. "teams": Array [],
  1012. }
  1013. }
  1014. renderNoAccessMessage={false}
  1015. requireAll={true}
  1016. />
  1017. </withConfig(Access)>
  1018. </WithOrganizationMockWrapper>
  1019. </PermissionAlert>
  1020. <Panel>
  1021. <Component
  1022. className="css-10qfvek-Panel e119nu470"
  1023. >
  1024. <div
  1025. className="css-10qfvek-Panel e119nu470"
  1026. >
  1027. <PanelHeader>
  1028. <div
  1029. className="css-cjwccy-PanelHeader-getPadding en8g1d30"
  1030. >
  1031. Hidden
  1032. </div>
  1033. </PanelHeader>
  1034. <PanelBody
  1035. direction="column"
  1036. disablePadding={true}
  1037. flex={false}
  1038. >
  1039. <div
  1040. className="css-a4ya23-textStyles"
  1041. >
  1042. <EnvironmentRow
  1043. actionText="Show"
  1044. environment={
  1045. Object {
  1046. "id": "1",
  1047. "isHidden": true,
  1048. "name": "zzz",
  1049. }
  1050. }
  1051. isHidden={true}
  1052. key="1"
  1053. name="zzz"
  1054. onHide={[Function]}
  1055. shouldShowAction={true}
  1056. >
  1057. <PanelItem
  1058. align="center"
  1059. justify="space-between"
  1060. p={2}
  1061. >
  1062. <Base
  1063. align="center"
  1064. className="css-1uaastv-PanelItem eo8n7lk0"
  1065. justify="space-between"
  1066. p={2}
  1067. >
  1068. <div
  1069. className="css-1uaastv-PanelItem eo8n7lk0"
  1070. is={null}
  1071. >
  1072. <Flex
  1073. align="center"
  1074. >
  1075. <Base
  1076. align="center"
  1077. className="css-5ipae5"
  1078. >
  1079. <div
  1080. className="css-5ipae5"
  1081. is={null}
  1082. >
  1083. zzz
  1084. </div>
  1085. </Base>
  1086. </Flex>
  1087. <WithOrganizationMockWrapper
  1088. access={
  1089. Array [
  1090. "project:write",
  1091. ]
  1092. }
  1093. >
  1094. <withConfig(Access)
  1095. access={
  1096. Array [
  1097. "project:write",
  1098. ]
  1099. }
  1100. organization={
  1101. Object {
  1102. "access": Array [
  1103. "org:read",
  1104. "org:write",
  1105. "org:admin",
  1106. "org:integrations",
  1107. "project:read",
  1108. "project:write",
  1109. "project:admin",
  1110. "team:read",
  1111. "team:write",
  1112. "team:admin",
  1113. ],
  1114. "features": Array [],
  1115. "id": "3",
  1116. "name": "Organization Name",
  1117. "onboardingTasks": Array [],
  1118. "projects": Array [],
  1119. "scrapeJavaScript": true,
  1120. "slug": "org-slug",
  1121. "status": Object {
  1122. "id": "active",
  1123. "name": "active",
  1124. },
  1125. "teams": Array [],
  1126. }
  1127. }
  1128. >
  1129. <Access
  1130. access={
  1131. Array [
  1132. "project:write",
  1133. ]
  1134. }
  1135. config={
  1136. Object {
  1137. "features": Set {},
  1138. "messages": Array [],
  1139. "user": Object {
  1140. "email": "foo@example.com",
  1141. "flags": Object {
  1142. "newsletter_consent_prompt": false,
  1143. },
  1144. "hasPasswordAuth": true,
  1145. "id": "1",
  1146. "isAuthenticated": true,
  1147. "name": "Foo Bar",
  1148. "options": Object {
  1149. "timezone": "UTC",
  1150. },
  1151. "permissions": Set {},
  1152. "username": "foo@example.com",
  1153. },
  1154. }
  1155. }
  1156. isSuperuser={false}
  1157. organization={
  1158. Object {
  1159. "access": Array [
  1160. "org:read",
  1161. "org:write",
  1162. "org:admin",
  1163. "org:integrations",
  1164. "project:read",
  1165. "project:write",
  1166. "project:admin",
  1167. "team:read",
  1168. "team:write",
  1169. "team:admin",
  1170. ],
  1171. "features": Array [],
  1172. "id": "3",
  1173. "name": "Organization Name",
  1174. "onboardingTasks": Array [],
  1175. "projects": Array [],
  1176. "scrapeJavaScript": true,
  1177. "slug": "org-slug",
  1178. "status": Object {
  1179. "id": "active",
  1180. "name": "active",
  1181. },
  1182. "teams": Array [],
  1183. }
  1184. }
  1185. renderNoAccessMessage={false}
  1186. requireAll={true}
  1187. >
  1188. <div>
  1189. <EnvironmentButton
  1190. align="center"
  1191. disabled={false}
  1192. onClick={[Function]}
  1193. size="xsmall"
  1194. >
  1195. <Button
  1196. align="center"
  1197. className="css-10adnmx-EnvironmentButton e1pnz46f0"
  1198. disabled={false}
  1199. onClick={[Function]}
  1200. size="xsmall"
  1201. >
  1202. <StyledButton
  1203. aria-disabled={false}
  1204. aria-label="Show"
  1205. className="css-10adnmx-EnvironmentButton e1pnz46f0"
  1206. disabled={false}
  1207. onClick={[Function]}
  1208. role="button"
  1209. size="xsmall"
  1210. >
  1211. <ForwardRef
  1212. aria-disabled={false}
  1213. aria-label="Show"
  1214. className="e1pnz46f0 css-16clfm1-StyledButton-getColors-EnvironmentButton edwq9my0"
  1215. disabled={false}
  1216. onClick={[Function]}
  1217. role="button"
  1218. size="xsmall"
  1219. >
  1220. <button
  1221. aria-disabled={false}
  1222. aria-label="Show"
  1223. className="e1pnz46f0 css-16clfm1-StyledButton-getColors-EnvironmentButton edwq9my0"
  1224. onClick={[Function]}
  1225. role="button"
  1226. size="xsmall"
  1227. >
  1228. <ButtonLabel
  1229. align="center"
  1230. size="xsmall"
  1231. >
  1232. <Component
  1233. align="center"
  1234. className="css-1bqncjo-ButtonLabel edwq9my1"
  1235. size="xsmall"
  1236. >
  1237. <span
  1238. className="css-1bqncjo-ButtonLabel edwq9my1"
  1239. >
  1240. Show
  1241. </span>
  1242. </Component>
  1243. </ButtonLabel>
  1244. </button>
  1245. </ForwardRef>
  1246. </StyledButton>
  1247. </Button>
  1248. </EnvironmentButton>
  1249. </div>
  1250. </Access>
  1251. </withConfig(Access)>
  1252. </WithOrganizationMockWrapper>
  1253. </div>
  1254. </Base>
  1255. </PanelItem>
  1256. </EnvironmentRow>
  1257. </div>
  1258. </PanelBody>
  1259. </div>
  1260. </Component>
  1261. </Panel>
  1262. </div>
  1263. </ProjectEnvironments>
  1264. `;