@spotify/backstage-plugin-soundcheck 0.12.10 → 0.12.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/alpha/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Page as y,Header as I,TabbedLayout as l}from"@backstage/core-components";import{useRouteRef as w,useApi as s,configApiRef as T,featureFlagsApiRef as S}from"@backstage/core-plugin-api";import{usePermission as A}from"@backstage/plugin-permission-react";import{makeStyles as L,Box as o}from"@material-ui/core";import{SpotifyLicenseBanner as D}from"@spotify/backstage-plugin-core";import{soundcheckCollectorReadPermission as B}from"@spotify/backstage-plugin-soundcheck-common";import e,{useState as F}from"react";import{useLocation as N,Routes as G,Route as t}from"react-router-dom";import"../../contexts/TrackFormContext.esm.js";import"../../contexts/CheckFormContext.esm.js";import"../../contexts/CampaignFormContext.esm.js";import{UserProvider as H}from"../../contexts/UserProvider.esm.js";import O from"../../hooks/useConfirmationModal.esm.js";import{AlertProvider as $}from"../../hooks/useSoundcheckAlert.esm.js";import{rootRouteRef as M}from"../../routes.esm.js";import{CampaignsPage as Q}from"../CampaignsPage/CampaignsPage.esm.js";import{CampaignDetailsPage as U}from"../CampaignsTab/CampaignDetailsPage/CampaignDetailsPage.esm.js";import{EditCampaignView as V}from"../CampaignsTab/MutateCampaignsViews/EditCampaignView.esm.js";import{CheckPage as p}from"../CheckPage/CheckPage.esm.js";import{CheckInsightsPage as u}from"../CheckPage/CheckInsightsPage.esm.js";import{ChecksTab as
|
|
1
|
+
import{Page as y,Header as I,TabbedLayout as l}from"@backstage/core-components";import{useRouteRef as w,useApi as s,configApiRef as T,featureFlagsApiRef as S}from"@backstage/core-plugin-api";import{usePermission as A}from"@backstage/plugin-permission-react";import{makeStyles as L,Box as o}from"@material-ui/core";import{SpotifyLicenseBanner as D}from"@spotify/backstage-plugin-core";import{soundcheckCollectorReadPermission as B}from"@spotify/backstage-plugin-soundcheck-common";import e,{useState as F}from"react";import{useLocation as N,Routes as G,Route as t}from"react-router-dom";import"../../contexts/TrackFormContext.esm.js";import"../../contexts/CheckFormContext.esm.js";import"../../contexts/CampaignFormContext.esm.js";import{UserProvider as H}from"../../contexts/UserProvider.esm.js";import O from"../../hooks/useConfirmationModal.esm.js";import{AlertProvider as $}from"../../hooks/useSoundcheckAlert.esm.js";import{rootRouteRef as M}from"../../routes.esm.js";import{CampaignsPage as Q}from"../CampaignsPage/CampaignsPage.esm.js";import{CampaignDetailsPage as U}from"../CampaignsTab/CampaignDetailsPage/CampaignDetailsPage.esm.js";import{EditCampaignView as V}from"../CampaignsTab/MutateCampaignsViews/EditCampaignView.esm.js";import{CheckPage as p}from"../CheckPage/CheckPage.esm.js";import{CheckInsightsPage as u}from"../CheckPage/CheckInsightsPage.esm.js";import{ChecksTab as W}from"../ChecksTab/ChecksTab.esm.js";import{CollectorPage as j}from"../CollectorPage/CollectorPage.esm.js";import{CollectorsPage as q}from"../CollectorsPage/CollectorsPage.esm.js";import{EditTrackPage as z}from"../EditTrackPage/EditTrackPage.esm.js";import{GroupSelector as J}from"../GroupSelector/GroupSelector.esm.js";import{OverviewPageContent as K}from"../OverviewPage/OverviewPageContent.esm.js";import{SoundcheckQueryClientProvider as X}from"../SoundcheckQueryClientProvider/SoundcheckQueryClientProvider.esm.js";import{TechHealth as Y}from"../TechHealth/TechHealth.esm.js";import{TrackPage as Z}from"../TrackPage/TrackPage.esm.js";import{TracksTab as _}from"../TracksTab/TracksTab.esm.js";import{Breadcrumbs as ee}from"./Breadcrumbs.esm.js";import{generateBreadcrumbs as te}from"./utils.esm.js";const le=L(n=>({tabContent:{margin:0,padding:0},root:{"& > *":{display:"flex",flexDirection:"column",flexGrow:1}},pageContent:{display:"flex",flexDirection:"row",flexGrow:1},pageLayout:{display:"flex",flexDirection:"column",flex:"1 1 0%",maxWidth:"100%","& > article":{display:"flex",flexDirection:"column",flex:"1 1 auto",padding:`${n.spacing(3)}px !important`}}})),re=({title:n="Soundcheck"})=>{const c=le(),d=w(M),m=s(T).getOptionalStringArray("soundcheck.flags")?.includes("enable-check-insights"),[h,f]=F(void 0),r=s(S),g=!r.getRegisteredFlags().find(a=>a.name==="soundcheck-enable-tech-health")||r.isActive("soundcheck-enable-tech-health"),E=!r.getRegisteredFlags().find(a=>a.name==="soundcheck-enable-collectors")||r.isActive("soundcheck-enable-collectors"),k=!r.getRegisteredFlags().find(a=>a.name==="soundcheck-enable-campaigns")||r.isActive("soundcheck-enable-campaigns"),{loading:b,allowed:C}=A({permission:B}),R=E&&!b&&C,v=g,i=N().pathname.replace(/\/+$/,""),x=i===d(),P=te(i);return e.createElement($,null,e.createElement(H,null,e.createElement(X,null,e.createElement(O,null,e.createElement(o,{className:c.root},e.createElement(y,{themeId:"tool"},e.createElement(D,{backend:"soundcheck",invalidLicenseMessage:"Submitted facts and check results will still be stored, but it will not be possible to view certifications or individual results until a valid license is present."}),e.createElement(I,{title:n,subtitle:e.createElement(ee,{pages:P})},x&&e.createElement(J,{setError:f})),e.createElement(o,{className:c.pageContent},e.createElement(o,{className:c.pageLayout},e.createElement(G,null,e.createElement(t,{path:"/campaigns/:campaignId/edit",element:e.createElement(V,null)}),e.createElement(t,{path:"/campaigns/:campaignId",element:e.createElement(U,null)}),e.createElement(t,{path:"/tracks/:trackId/edit",element:e.createElement(z,null)}),e.createElement(t,{path:"/tracks/:trackId",element:e.createElement(Z,null)}),m&&e.createElement(t,{path:"/tracks/:trackId/checks/:checkId",element:e.createElement(u,null)}),m?e.createElement(t,{path:"/checks/:checkId",element:e.createElement(u,null)}):e.createElement(t,{path:"/checks/:checkId",element:e.createElement(p,null)}),e.createElement(t,{path:"/checks/:checkId/edit",element:e.createElement(p,null)}),e.createElement(t,{path:"/collectors/:collectorId",element:e.createElement(j,null)}),e.createElement(t,{path:"/*",element:e.createElement(l,null,e.createElement(l.Route,{title:"Overview",path:"/"},e.createElement("div",{className:c.tabContent},e.createElement(K,{groupSelectorError:h}))),v&&e.createElement(l.Route,{title:"Tech Health",path:"/tech-health"},e.createElement(Y,null)),e.createElement(l.Route,{title:"Checks",path:"/checks"},e.createElement(W,null)),e.createElement(l.Route,{title:"Tracks",path:"/tracks"},e.createElement(_,null)),k&&e.createElement(l.Route,{title:"Campaigns",path:"/campaigns"},e.createElement(Q,null)),R&&e.createElement(l.Route,{title:"Collectors",path:"/collectors"},e.createElement(q,null)))}))))))))))};export{re as RoutingPage};
|
|
2
2
|
//# sourceMappingURL=RoutingPage.esm.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotify/backstage-plugin-soundcheck",
|
|
3
3
|
"description": "Ensure quality, reliability and alignment of software development with codified checks and guidance.",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.11",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://backstage.spotify.com",
|
|
7
7
|
"main": "./dist/index.esm.js",
|