@spotify/backstage-plugin-soundcheck 0.15.1 → 0.16.0

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.
Files changed (108) hide show
  1. package/CHANGELOG.md +43 -1
  2. package/dist/alpha.d.ts +3 -3
  3. package/dist/api.esm.js +1 -1
  4. package/dist/components/CampaignForm/CampaignForm.esm.js +1 -1
  5. package/dist/components/CampaignForm/hooks/useCampaignForm.esm.js +1 -1
  6. package/dist/components/CampaignForm/hooks/utils.esm.js +1 -1
  7. package/dist/components/CampaignForm/utils/campaignFormUtils.esm.js +2 -1
  8. package/dist/components/CampaignForm/utils/validation.esm.js +1 -1
  9. package/dist/components/CertificationAccordion/CertificationAccordion.esm.js +1 -1
  10. package/dist/components/CertificationSidebar/CertificationSidebar.esm.js +1 -1
  11. package/dist/components/CertificationSidebar/Check.esm.js +1 -1
  12. package/dist/components/CertificationsPage/CertificationTab.esm.js +1 -1
  13. package/dist/components/CertificationsPage/CertificationTabs.esm.js +1 -1
  14. package/dist/components/CertificationsPage/Playlist/PlaylistProgress.esm.js +1 -1
  15. package/dist/components/CheckCard/CheckCard.esm.js +1 -1
  16. package/dist/components/CheckDetails/CheckDetails.esm.js +1 -1
  17. package/dist/components/CheckDetails/CheckResultDetails.esm.js +2 -0
  18. package/dist/components/CheckDetails/CollapseRow.esm.js +1 -1
  19. package/dist/components/CheckDetails/ExemptionDetails.esm.js +2 -0
  20. package/dist/components/CheckDetails/FactTable.esm.js +2 -0
  21. package/dist/components/CheckDetails/ResolvedValueTable.esm.js +2 -0
  22. package/dist/components/CheckDetails/ResultStateBox.esm.js +1 -1
  23. package/dist/components/CheckDetails/SelectedValueContext.esm.js +2 -0
  24. package/dist/components/CheckDetails/findUniqueFacts.esm.js +2 -0
  25. package/dist/components/CheckDryRun/CheckDryRun.esm.js +1 -1
  26. package/dist/components/CheckDryRun/CheckDryRunContext.esm.js +1 -1
  27. package/dist/components/CheckDryRun/CheckDryRunDetails.esm.js +1 -1
  28. package/dist/components/CheckDryRun/CheckDryRunDialog.esm.js +1 -1
  29. package/dist/components/CheckForm/CheckForm.esm.js +1 -1
  30. package/dist/components/CheckForm/FormFields/RuleInput/Conditions/FactValueDisplay.esm.js +1 -1
  31. package/dist/components/CheckForm/FormFields/RuleInput/Conditions/RuleConditionInput.esm.js +1 -1
  32. package/dist/components/CheckForm/FormFields/RuleInput/Conditions/ValueListInput.esm.js +1 -1
  33. package/dist/components/CheckForm/Steps/CheckReviewStep.esm.js +1 -1
  34. package/dist/components/CheckForm/utils/checkFormUtils.esm.js +2 -1
  35. package/dist/components/CheckForm/utils/validation.esm.js +1 -1
  36. package/dist/components/CheckIcon/CheckIcon.esm.js +1 -1
  37. package/dist/components/CheckPage/CheckStatusHistoryChart.esm.js +1 -1
  38. package/dist/components/CheckPage/utils.esm.js +1 -1
  39. package/dist/components/CollectorPage/Configurators/AzureDevOps/AzureDevOpsConfigurator.esm.js +2 -0
  40. package/dist/components/CollectorPage/Configurators/AzureDevOps/NumberOfDaysComponent.esm.js +2 -0
  41. package/dist/components/CollectorPage/Configurators/AzureDevOps/NumberOfWorkItemsComponent.esm.js +2 -0
  42. package/dist/components/CollectorPage/Configurators/AzureDevOps/utils.esm.js +2 -0
  43. package/dist/components/CollectorPage/Configurators/AzureDevOps/validation.esm.js +2 -0
  44. package/dist/components/CollectorPage/Configurators/BigQuery/QueryFactDetailsComponent.esm.js +1 -1
  45. package/dist/components/CollectorPage/Configurators/Catalog/CatalogConfigurator.esm.js +2 -0
  46. package/dist/components/CollectorPage/Configurators/Catalog/utils.esm.js +2 -0
  47. package/dist/components/CollectorPage/Configurators/Common/CollectorOption.esm.js +1 -1
  48. package/dist/components/CollectorPage/Configurators/Common/FactCollectionConfig.esm.js +1 -1
  49. package/dist/components/CollectorPage/Configurators/Common/utils.esm.js +1 -1
  50. package/dist/components/CollectorPage/Configurators/Configurator.esm.js +1 -1
  51. package/dist/components/CollectorPage/Configurators/HTTP/HttpConfigurator.esm.js +2 -0
  52. package/dist/components/CollectorPage/Configurators/HTTP/HttpRequestComponent.esm.js +2 -0
  53. package/dist/components/CollectorPage/Configurators/HTTP/HttpResponseComponent.esm.js +2 -0
  54. package/dist/components/CollectorPage/Configurators/HTTP/HttpRetriesComponent.esm.js +2 -0
  55. package/dist/components/CollectorPage/Configurators/HTTP/HttpStatusesInput.esm.js +2 -0
  56. package/dist/components/CollectorPage/Configurators/HTTP/RequestFactDetailsComponent.esm.js +2 -0
  57. package/dist/components/CollectorPage/Configurators/HTTP/utils.esm.js +2 -0
  58. package/dist/components/CollectorPage/Configurators/HTTP/validation.esm.js +2 -0
  59. package/dist/components/CollectorPage/Configurators/SCM/JsonFactDetailsComponent.esm.js +1 -1
  60. package/dist/components/CollectorPage/Configurators/SCM/RegexFactDetailsComponent.esm.js +1 -1
  61. package/dist/components/CollectorsPage/CollectorListPage/CollectorLogo.esm.js +1 -1
  62. package/dist/components/CollectorsPage/CollectorListPage/CollectorSummaryCard.esm.js +1 -1
  63. package/dist/components/EntityChip/EntityChip.esm.js +2 -0
  64. package/dist/components/EntitySoundcheckCard/Card.esm.js +1 -1
  65. package/dist/components/Filter/EntityAutocompletePicker.esm.js +1 -1
  66. package/dist/components/Filter/FilterComponent.esm.js +1 -1
  67. package/dist/components/Filter/FilterKeyValueInput.esm.js +2 -0
  68. package/dist/components/Filter/FilterPreviewTable/FilterPreviewTable.esm.js +1 -1
  69. package/dist/components/Filter/KeyValueInputDialog.esm.js +2 -0
  70. package/dist/components/Filter/types.esm.js +1 -1
  71. package/dist/components/Filter/utils.esm.js +1 -1
  72. package/dist/components/FormFilterSection/FormFilterSection.esm.js +1 -1
  73. package/dist/components/Frequency/FrequencyComponent.esm.js +1 -1
  74. package/dist/components/OverviewTable/ResultsTable.esm.js +1 -1
  75. package/dist/components/OverviewTable/ResultsTableRow.esm.js +1 -1
  76. package/dist/components/Router.esm.js +1 -1
  77. package/dist/components/RuleResult/BranchResultComponent.esm.js +2 -0
  78. package/dist/components/RuleResult/ConditionResultComponent.esm.js +2 -0
  79. package/dist/components/RuleResult/RuleResultComponent.esm.js +2 -0
  80. package/dist/components/SearchBar/SearchBar.esm.js +1 -1
  81. package/dist/components/SoundcheckHeader/Breadcrumbs.esm.js +1 -1
  82. package/dist/components/SoundcheckHeader/SoundcheckHeader.esm.js +1 -1
  83. package/dist/components/SummaryCard/SummaryCardActionsMenu.esm.js +1 -1
  84. package/dist/components/TechHealth/Filters/FacetFilter.esm.js +1 -1
  85. package/dist/components/TrackEditPage/TrackEditView.esm.js +1 -1
  86. package/dist/components/TrackForm/TrackForm.esm.js +1 -1
  87. package/dist/components/TrackForm/utils/trackFormUtils.esm.js +2 -1
  88. package/dist/components/TrackForm/utils/useTrackForm.esm.js +1 -1
  89. package/dist/components/TrackForm/utils/validation.esm.js +1 -1
  90. package/dist/components/TrackPage/TrackEntitiesTable/utils.esm.js +1 -1
  91. package/dist/graphql/generated/index.esm.js +127 -126
  92. package/dist/hooks/certifications/useTrackOverviewForOwner.esm.js +2 -0
  93. package/dist/hooks/checks/useDeleteCheck.esm.js +1 -1
  94. package/dist/hooks/graphqlKeys.esm.js +1 -1
  95. package/dist/hooks/tracks/useCreateTrack.esm.js +1 -1
  96. package/dist/hooks/tracks/useDeleteTrack.esm.js +1 -1
  97. package/dist/hooks/tracks/useGetAllTracks.esm.js +1 -1
  98. package/dist/hooks/tracks/useGetChecksMap.esm.js +1 -1
  99. package/dist/hooks/tracks/useUpdateTrack.esm.js +1 -1
  100. package/dist/images/azure-devops-rgb.svg +13 -0
  101. package/dist/images/azure-devops-white.svg +13 -0
  102. package/dist/images/http-rgb.svg +11 -0
  103. package/dist/images/http-white.svg +11 -0
  104. package/dist/text.esm.js +1 -1
  105. package/dist/utils/validation.esm.js +1 -1
  106. package/package.json +26 -20
  107. package/dist/hooks/certifications/useProgramOverviewForOwner.esm.js +0 -2
  108. /package/dist/components/CollectorPage/Configurators/{BigQuery → Common}/css/prism-dark-sql.css.esm.js +0 -0
@@ -1,2 +1,2 @@
1
- var t=(e=>(e.GetAllPrograms="soundcheck/programs",e.GetChecks="soundcheck/checks",e.GetCollectors="soundcheck/collectors",e.GetFactSchema="soundcheck/collectors/schema",e.GetEntityFacets="soundcheck/catalog/facets",e.GetSoftwareEntityRefsForUser="soundcheck/entities/softwareEntityRefsForUser",e.GetEntityRefs="soundcheck/catalog/entityRefs",e.ExecutableChecks="soundcheck/executableChecks",e.GetCampaigns="soundcheck/campaigns",e.GetCampaignProgress="soundcheck/campaigns/getCampaignProgress",e.GetOverallCheckPassRateTrends="soundcheck/charts/overallCheckPassRateTrends",e.GetIndividualCheckPassRateTrends="soundcheck/charts/getIndividualCheckPassRateTrends",e.GetOverallTrackPassRateTrends="soundcheck/charts/overallTrackPassRateTrends",e.GetIndividualTrackPassRateTrends="soundcheck/charts/individualTrackPassRateTrends",e.GetOverallEntityPassRateTrends="soundcheck/charts/overallEntityPassRateTrends",e.GetIndividualEntityPassRateTrends="soundcheck/charts/individualEntityPassRateTrends",e.GetOverallGroupPassRateTrends="soundcheck/charts/overallGroupPassRateTrends",e.GetIndividualGroupPassRateTrends="soundcheck/charts/individualGroupPassRateTrends",e.EntityByRef="soundcheck/catalog/entityByRef",e.EntitiesByRefs="soundcheck/catalog/entitiesByRef",e.TrackEntities="soundcheck/track/entities",e.CheckEntities="soundcheck/check/entities",e.CertificationStatus="soundcheck/certificationStatus",e.CertificationStatusHistory="soundcheck/certificationStatusHistory",e.CheckStatus="soundcheck/checkStatus",e.CheckStatuses="soundcheck/checkStatuses",e.CheckStatusHistory="soundcheck/checkStatusHistory",e.CheckStatusHistories="soundcheck/checkStatusHistories",e.CheckDetails="soundcheck/checkDetails",e.Certifications="soundcheck/certifications",e.CertificationDetails="soundcheck/certificationDetails",e.GetCheckOwners="soundcheck/checks/getOwners",e.GetTrackOwners="soundcheck/tracks/getOwners",e.GetCampaignOwners="soundcheck/campaigns/getOwners",e.GetTrackRelatedGroups="soundcheck/track/getTrackRelatedGroups",e.CheckTemplates="soundcheck/checkTemplates",e.GetFacetsForOwner="soundcheck/facets-for-owner",e.GetTrackOverviewForOwner="soundcheck/track-overview-for-owner",e))(t||{}),s=(e=>(e.DeleteCheck="soundcheck/deleteCheck",e.CreateCheck="soundcheck/createCheck",e.UpdateCheck="soundcheck/updateCheck",e.ExecuteCheck="soundcheck/executeCheck",e.DeleteProgram="soundcheck/deleteProgram",e.CreateProgram="soundcheck/createProgram",e.UpdateProgram="soundcheck/updateProgram",e.UpdateCollectorConfig="soundcheck/updateCollectorConfig",e.CreateCampaign="soundcheck/createCampaign",e.UpdateCampaign="soundcheck/updateCampaign",e.DeleteCampaign="soundcheck/deleteCampaign",e.ArchiveCampaign="soundcheck/archiveCampaign",e))(s||{});export{s as MutationKeys,t as QueryKeys};
1
+ var t=(e=>(e.GetAllTracks="soundcheck/tracks",e.GetChecks="soundcheck/checks",e.GetCollectors="soundcheck/collectors",e.GetFactSchema="soundcheck/collectors/schema",e.GetEntityFacets="soundcheck/catalog/facets",e.GetSoftwareEntityRefsForUser="soundcheck/entities/softwareEntityRefsForUser",e.GetEntityRefs="soundcheck/catalog/entityRefs",e.ExecutableChecks="soundcheck/executableChecks",e.GetCampaigns="soundcheck/campaigns",e.GetOverallCheckPassRateTrends="soundcheck/charts/overallCheckPassRateTrends",e.GetIndividualCheckPassRateTrends="soundcheck/charts/getIndividualCheckPassRateTrends",e.GetOverallTrackPassRateTrends="soundcheck/charts/overallTrackPassRateTrends",e.GetIndividualTrackPassRateTrends="soundcheck/charts/individualTrackPassRateTrends",e.GetOverallEntityPassRateTrends="soundcheck/charts/overallEntityPassRateTrends",e.GetIndividualEntityPassRateTrends="soundcheck/charts/individualEntityPassRateTrends",e.GetOverallGroupPassRateTrends="soundcheck/charts/overallGroupPassRateTrends",e.GetIndividualGroupPassRateTrends="soundcheck/charts/individualGroupPassRateTrends",e.EntityByRef="soundcheck/catalog/entityByRef",e.EntitiesByRefs="soundcheck/catalog/entitiesByRef",e.TrackEntities="soundcheck/track/entities",e.CheckEntities="soundcheck/check/entities",e.CertificationStatus="soundcheck/certificationStatus",e.CertificationStatusHistory="soundcheck/certificationStatusHistory",e.CheckStatus="soundcheck/checkStatus",e.CheckStatuses="soundcheck/checkStatuses",e.CheckStatusHistory="soundcheck/checkStatusHistory",e.CheckStatusHistories="soundcheck/checkStatusHistories",e.CheckDetails="soundcheck/checkDetails",e.Certifications="soundcheck/certifications",e.CertificationDetails="soundcheck/certificationDetails",e.GetCheckOwners="soundcheck/checks/getOwners",e.GetTrackOwners="soundcheck/tracks/getOwners",e.GetCampaignOwners="soundcheck/campaigns/getOwners",e.GetTrackRelatedGroups="soundcheck/track/getTrackRelatedGroups",e.CheckTemplates="soundcheck/checkTemplates",e.GetFacetsForOwner="soundcheck/facets-for-owner",e.GetTrackOverviewForOwner="soundcheck/track-overview-for-owner",e))(t||{}),s=(e=>(e.DeleteCheck="soundcheck/deleteCheck",e.CreateCheck="soundcheck/createCheck",e.UpdateCheck="soundcheck/updateCheck",e.ExecuteCheck="soundcheck/executeCheck",e.DeleteTrack="soundcheck/deleteTrack",e.CreateTrack="soundcheck/createTrack",e.UpdateTrack="soundcheck/updateTrack",e.UpdateCollectorConfig="soundcheck/updateCollectorConfig",e.CreateCampaign="soundcheck/createCampaign",e.UpdateCampaign="soundcheck/updateCampaign",e.DeleteCampaign="soundcheck/deleteCampaign",e.ArchiveCampaign="soundcheck/archiveCampaign",e))(s||{});export{s as MutationKeys,t as QueryKeys};
2
2
  //# sourceMappingURL=graphqlKeys.esm.js.map
@@ -1,2 +1,2 @@
1
- import{useApi as c}from"@backstage/core-plugin-api";import{useQueryClient as i,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as m}from"../../api.esm.js";import{MutationKeys as l,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as k}from"../useSoundcheckAlert.esm.js";const p="Error Creating Track";function d(){const a=c(m),o=i(),{showAlert:s}=k(),n=async e=>{const r=await a.createProgram(e);if(!r)throw new Error("Failed to create track.");return r};return u([l.CreateProgram],n,{onSuccess:async()=>{const e=[t.GetAllPrograms,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(e.map(r=>o.invalidateQueries({queryKey:[r]})))},onError:e=>{let r="Failed to create track.";e instanceof Error&&(r=e.message),s({severity:"error",title:p,message:r})}})}export{d as useCreateTrack};
1
+ import{useApi as n}from"@backstage/core-plugin-api";import{useQueryClient as i,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as l}from"../../api.esm.js";import{MutationKeys as m,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as k}from"../useSoundcheckAlert.esm.js";const T="Error Creating Track";function d(){const a=n(l),o=i(),{showAlert:s}=k(),c=async r=>{const e=await a.createTrack(r);if(!e)throw new Error("Failed to create track.");return e};return u([m.CreateTrack],c,{onSuccess:async()=>{const r=[t.GetAllTracks,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(r.map(e=>o.invalidateQueries({queryKey:[e]})))},onError:r=>{let e="Failed to create track.";r instanceof Error&&(e=r.message),s({severity:"error",title:T,message:e})}})}export{d as useCreateTrack};
2
2
  //# sourceMappingURL=useCreateTrack.esm.js.map
@@ -1,2 +1,2 @@
1
- import{useApi as c}from"@backstage/core-plugin-api";import{useQueryClient as l,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as m}from"../../api.esm.js";import{MutationKeys as d,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as k}from"../useSoundcheckAlert.esm.js";const f="Error Deleting Track";function p(){const s=c(m),a=l(),{showAlert:n}=k(),i=async e=>{const r=await s.deleteProgram(e);if(!r)throw new Error(`Failed to delete track ${e}`);return r};return u([d.DeleteProgram],i,{onSuccess:()=>{const e=[t.GetAllPrograms,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(e.map(r=>a.invalidateQueries({queryKey:[r]})))},onError:(e,r)=>{let o=`Failed to delete track ${r}`;e instanceof Error&&(o=e.message),n({severity:"error",title:f,message:o})}})}export{p as useDeleteTrack};
1
+ import{useApi as c}from"@backstage/core-plugin-api";import{useQueryClient as l,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as m}from"../../api.esm.js";import{MutationKeys as d,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as k}from"../useSoundcheckAlert.esm.js";const T="Error Deleting Track";function f(){const s=c(m),a=l(),{showAlert:n}=k(),i=async e=>{const r=await s.deleteTrack(e);if(!r)throw new Error(`Failed to delete track ${e}`);return r};return u([d.DeleteTrack],i,{onSuccess:()=>{const e=[t.GetAllTracks,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(e.map(r=>a.invalidateQueries({queryKey:[r]})))},onError:(e,r)=>{let o=`Failed to delete track ${r}`;e instanceof Error&&(o=e.message),n({severity:"error",title:T,message:o})}})}export{f as useDeleteTrack};
2
2
  //# sourceMappingURL=useDeleteTrack.esm.js.map
@@ -1,2 +1,2 @@
1
- import{useApi as o}from"@backstage/core-plugin-api";import{useQuery as s}from"@tanstack/react-query";import{soundcheckApiRef as n}from"../../api.esm.js";import{QueryKeys as c}from"../graphqlKeys.esm.js";function m(e,r){const t=o(n);return s([c.GetAllPrograms,e],async()=>t.getTracks(e),{staleTime:5*60*1e3,refetchInterval:!1,refetchOnWindowFocus:!1,enabled:r?.enabled??!0})}export{m as useGetAllTracks};
1
+ import{useApi as o}from"@backstage/core-plugin-api";import{useQuery as s}from"@tanstack/react-query";import{soundcheckApiRef as c}from"../../api.esm.js";import{QueryKeys as n}from"../graphqlKeys.esm.js";function i(e,r){const t=o(c);return s([n.GetAllTracks,e],async()=>t.getTracks(e),{staleTime:5*60*1e3,refetchInterval:!1,refetchOnWindowFocus:!1,enabled:r?.enabled??!0})}export{i as useGetAllTracks};
2
2
  //# sourceMappingURL=useGetAllTracks.esm.js.map
@@ -1,2 +1,2 @@
1
- import{useMemo as s}from"react";import{useGetChecks as n}from"../checks/useGetChecks.esm.js";const a=()=>{const{data:o,isLoading:r}=n({}),i=s(()=>o?.edges.map(e=>e.node),[o?.edges]),t=s(()=>i?.filter(e=>!!e).map(e=>({id:e.id??"",name:e.name??e.id,description:e.description??""}))??[],[i]),c=s(()=>i?.reduce((e,d)=>(e[d.id]={id:d.id,name:d.name??d.id,description:d.description??"",filter:d.filter??void 0},e),{}),[i]);return{checkChips:t,checksMap:c,checksLoading:r}};export{a as useGetChecksMap};
1
+ import{useMemo as o}from"react";import{useGetChecks as r}from"../checks/useGetChecks.esm.js";const a=()=>{const{data:s,isLoading:c}=r({}),i=o(()=>s?.edges.map(e=>e.node),[s?.edges]),t=o(()=>i?.filter(e=>!!e).map(e=>({id:e.id??"",name:e.name??e.id,description:e.description??""}))??[],[i]),n=o(()=>i?.reduce((e,d)=>(e[d.id]={id:d.id,name:d.name??d.id,description:d.description??"",filter:d.filter??void 0,exclude:d.exclude??void 0},e),{}),[i]);return{checkChips:t,checksMap:n,checksLoading:c}};export{a as useGetChecksMap};
2
2
  //# sourceMappingURL=useGetChecksMap.esm.js.map
@@ -1,2 +1,2 @@
1
- import{useApi as i}from"@backstage/core-plugin-api";import{useQueryClient as c,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as m}from"../../api.esm.js";import{MutationKeys as l,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as d}from"../useSoundcheckAlert.esm.js";const p="Error Updating Track";function k(){const a=i(m),o=c(),{showAlert:s}=d(),n=async e=>{const r=await a.updateProgram(e);if(!r)throw new Error("Failed to update track.");return r};return u([l.UpdateProgram],n,{onSuccess:async()=>{const e=[t.GetAllPrograms,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(e.map(r=>o.invalidateQueries({queryKey:[r]})))},onError:e=>{let r="Failed to update track.";e instanceof Error&&(r=e.message),s({severity:"error",title:p,message:r})}})}export{k as useUpdateTrack};
1
+ import{useApi as c}from"@backstage/core-plugin-api";import{useQueryClient as i,useMutation as u}from"@tanstack/react-query";import{soundcheckApiRef as l}from"../../api.esm.js";import{MutationKeys as d,QueryKeys as t}from"../graphqlKeys.esm.js";import{useSoundcheckAlert as p}from"../useSoundcheckAlert.esm.js";const m="Error Updating Track";function k(){const a=c(l),o=i(),{showAlert:s}=p(),n=async r=>{const e=await a.updateTrack(r);if(!e)throw new Error("Failed to update track.");return e};return u([d.UpdateTrack],n,{onSuccess:async()=>{const r=[t.GetAllTracks,t.GetOverallTrackPassRateTrends,t.GetIndividualTrackPassRateTrends,t.GetTrackOwners,t.GetFacetsForOwner,t.GetTrackOverviewForOwner];return Promise.all(r.map(e=>o.invalidateQueries({queryKey:[e]})))},onError:r=>{let e="Failed to update track.";r instanceof Error&&(e=r.message),s({severity:"error",title:m,message:e})}})}export{k as useUpdateTrack};
2
2
  //# sourceMappingURL=useUpdateTrack.esm.js.map
@@ -0,0 +1,13 @@
1
+ <svg width="596" height="95" viewBox="0 0 596 95" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M120.385 75H109.838L129.04 20.4545H141.239L160.468 75H149.921L135.353 31.6406H134.926L120.385 75ZM120.731 53.6133H149.495V61.5501H120.731V53.6133ZM162.944 75V68.8743L184.037 42.4272V42.081H163.636V34.0909H195.836V40.6694L175.754 66.6637V67.0099H196.528V75H162.944ZM227.915 57.7947V34.0909H237.556V75H228.208V67.729H227.782C226.858 70.0195 225.34 71.8928 223.227 73.3487C221.132 74.8047 218.549 75.5327 215.477 75.5327C212.796 75.5327 210.425 74.9379 208.366 73.7482C206.324 72.5408 204.726 70.7919 203.572 68.5014C202.418 66.1932 201.841 63.4055 201.841 60.1385V34.0909H211.482V58.647C211.482 61.2393 212.192 63.299 213.613 64.826C215.033 66.353 216.897 67.1165 219.206 67.1165C220.626 67.1165 222.002 66.7702 223.334 66.0778C224.665 65.3853 225.757 64.3555 226.61 62.9883C227.48 61.6033 227.915 59.8722 227.915 57.7947ZM243.72 75V34.0909H253.069V40.9091H253.495C254.241 38.5476 255.519 36.7276 257.33 35.4492C259.159 34.1531 261.245 33.505 263.589 33.505C264.122 33.505 264.717 33.5316 265.373 33.5849C266.048 33.6204 266.608 33.6825 267.051 33.7713V42.6403C266.643 42.4982 265.995 42.3739 265.107 42.2674C264.237 42.1431 263.394 42.081 262.577 42.081C260.819 42.081 259.239 42.4627 257.836 43.2262C256.451 43.9719 255.359 45.0107 254.56 46.3423C253.761 47.674 253.362 49.2099 253.362 50.9499V75H243.72ZM286.133 75.799C282.031 75.799 278.489 74.9467 275.506 73.2422C272.541 71.5199 270.259 69.0874 268.661 65.9446C267.063 62.7841 266.264 59.0643 266.264 54.7852C266.264 50.5771 267.063 46.8839 268.661 43.7056C270.277 40.5096 272.532 38.0238 275.426 36.2482C278.32 34.4549 281.721 33.5582 285.627 33.5582C288.148 33.5582 290.528 33.9666 292.765 34.7834C295.02 35.5824 297.008 36.8253 298.731 38.5121C300.471 40.1989 301.838 42.3473 302.832 44.9574C303.827 47.5497 304.324 50.6392 304.324 54.2259V57.1822H270.792V50.6836H295.082C295.064 48.837 294.665 47.1946 293.883 45.7564C293.102 44.3004 292.01 43.1552 290.607 42.3207C289.222 41.4862 287.607 41.0689 285.76 41.0689C283.789 41.0689 282.058 41.5483 280.567 42.5071C279.075 43.4482 277.912 44.6911 277.078 46.2358C276.261 47.7628 275.844 49.4407 275.826 51.2695V56.9425C275.826 59.3217 276.261 61.3636 277.131 63.0682C278.001 64.755 279.217 66.0511 280.78 66.9567C282.342 67.8445 284.171 68.2884 286.266 68.2884C287.669 68.2884 288.938 68.093 290.075 67.7024C291.211 67.294 292.197 66.6992 293.031 65.918C293.866 65.1367 294.496 64.169 294.922 63.0149L303.924 64.027C303.356 66.4062 302.273 68.4837 300.675 70.2592C299.095 72.017 297.07 73.3842 294.602 74.3608C292.134 75.3196 289.311 75.799 286.133 75.799ZM342.494 75H324.01V20.4545H342.866C348.282 20.4545 352.934 21.5465 356.822 23.7305C360.729 25.8967 363.729 29.0128 365.824 33.0788C367.92 37.1449 368.967 42.0099 368.967 47.674C368.967 53.3558 367.911 58.2386 365.798 62.3224C363.703 66.4062 360.675 69.5401 356.716 71.7241C352.774 73.908 348.033 75 342.494 75ZM333.891 66.4506H342.014C345.814 66.4506 348.983 65.7582 351.522 64.3732C354.061 62.9705 355.97 60.8842 357.248 58.1143C358.527 55.3267 359.166 51.8466 359.166 47.674C359.166 43.5014 358.527 40.0391 357.248 37.2869C355.97 34.517 354.079 32.4485 351.576 31.0813C349.09 29.6964 346 29.0039 342.307 29.0039H333.891V66.4506ZM392.29 75.799C388.189 75.799 384.646 74.9467 381.663 73.2422C378.698 71.5199 376.417 69.0874 374.819 65.9446C373.221 62.7841 372.422 59.0643 372.422 54.7852C372.422 50.5771 373.221 46.8839 374.819 43.7056C376.434 40.5096 378.689 38.0238 381.584 36.2482C384.478 34.4549 387.878 33.5582 391.784 33.5582C394.305 33.5582 396.685 33.9666 398.922 34.7834C401.177 35.5824 403.166 36.8253 404.888 38.5121C406.628 40.1989 407.995 42.3473 408.989 44.9574C409.984 47.5497 410.481 50.6392 410.481 54.2259V57.1822H376.949V50.6836H401.239C401.221 48.837 400.822 47.1946 400.041 45.7564C399.259 44.3004 398.167 43.1552 396.765 42.3207C395.38 41.4862 393.764 41.0689 391.917 41.0689C389.946 41.0689 388.215 41.5483 386.724 42.5071C385.232 43.4482 384.069 44.6911 383.235 46.2358C382.418 47.7628 382.001 49.4407 381.983 51.2695V56.9425C381.983 59.3217 382.418 61.3636 383.288 63.0682C384.158 64.755 385.374 66.0511 386.937 66.9567C388.499 67.8445 390.328 68.2884 392.423 68.2884C393.826 68.2884 395.096 68.093 396.232 67.7024C397.368 67.294 398.354 66.6992 399.188 65.918C400.023 65.1367 400.653 64.169 401.079 63.0149L410.081 64.027C409.513 66.4062 408.43 68.4837 406.832 70.2592C405.252 72.017 403.228 73.3842 400.76 74.3608C398.292 75.3196 395.468 75.799 392.29 75.799ZM450.257 34.0909L435.688 75H425.035L410.466 34.0909H420.747L430.148 64.4798H430.575L440.003 34.0909H450.257ZM502.344 47.7273C502.344 53.6044 501.243 58.6381 499.041 62.8285C496.857 67.0011 493.874 70.1971 490.093 72.4165C486.328 74.636 482.058 75.7457 477.282 75.7457C472.506 75.7457 468.226 74.636 464.444 72.4165C460.68 70.1793 457.697 66.9744 455.496 62.8018C453.312 58.6115 452.22 53.5866 452.22 47.7273C452.22 41.8501 453.312 36.8253 455.496 32.6527C457.697 28.4624 460.68 25.2575 464.444 23.038C468.226 20.8185 472.506 19.7088 477.282 19.7088C482.058 19.7088 486.328 20.8185 490.093 23.038C493.874 25.2575 496.857 28.4624 499.041 32.6527C501.243 36.8253 502.344 41.8501 502.344 47.7273ZM492.41 47.7273C492.41 43.5902 491.762 40.1012 490.465 37.2603C489.187 34.4016 487.411 32.2443 485.139 30.7884C482.866 29.3146 480.247 28.5778 477.282 28.5778C474.317 28.5778 471.698 29.3146 469.425 30.7884C467.152 32.2443 465.368 34.4016 464.072 37.2603C462.793 40.1012 462.154 43.5902 462.154 47.7273C462.154 51.8643 462.793 55.3622 464.072 58.2209C465.368 61.0618 467.152 63.2191 469.425 64.6928C471.698 66.1488 474.317 66.8768 477.282 66.8768C480.247 66.8768 482.866 66.1488 485.139 64.6928C487.411 63.2191 489.187 61.0618 490.465 58.2209C491.762 55.3622 492.41 51.8643 492.41 47.7273ZM507.509 90.3409V34.0909H516.991V40.8558H517.55C518.047 39.8615 518.749 38.805 519.654 37.6864C520.56 36.5501 521.785 35.5824 523.33 34.7834C524.875 33.9666 526.845 33.5582 529.242 33.5582C532.403 33.5582 535.253 34.3661 537.792 35.9819C540.349 37.5799 542.373 39.9503 543.864 43.093C545.373 46.218 546.128 50.0533 546.128 54.5987C546.128 59.0909 545.391 62.9084 543.918 66.0511C542.444 69.1939 540.437 71.5909 537.898 73.2422C535.359 74.8935 532.483 75.7191 529.269 75.7191C526.925 75.7191 524.981 75.3285 523.436 74.5472C521.892 73.766 520.649 72.8249 519.708 71.7241C518.784 70.6055 518.065 69.549 517.55 68.5547H517.151V90.3409H507.509ZM516.964 54.5455C516.964 57.1911 517.337 59.5082 518.083 61.4968C518.847 63.4854 519.938 65.0391 521.359 66.1577C522.797 67.2585 524.537 67.8089 526.579 67.8089C528.71 67.8089 530.494 67.2408 531.932 66.1044C533.371 64.9503 534.454 63.3789 535.182 61.3903C535.927 59.3839 536.3 57.1023 536.3 54.5455C536.3 52.0064 535.936 49.7514 535.208 47.7805C534.48 45.8097 533.397 44.2649 531.959 43.1463C530.521 42.0277 528.728 41.4684 526.579 41.4684C524.519 41.4684 522.771 42.0099 521.332 43.093C519.894 44.1761 518.802 45.6942 518.056 47.6474C517.328 49.6005 516.964 51.8999 516.964 54.5455ZM582.968 44.9041L574.179 45.8629C573.93 44.9751 573.495 44.1406 572.873 43.3594C572.27 42.5781 571.453 41.9478 570.423 41.4684C569.393 40.989 568.133 40.7493 566.641 40.7493C564.635 40.7493 562.948 41.1843 561.581 42.0543C560.231 42.9244 559.566 44.0518 559.583 45.4368C559.566 46.6264 560.001 47.5941 560.888 48.3398C561.794 49.0856 563.285 49.6982 565.363 50.1776L572.341 51.669C576.212 52.5036 579.088 53.8263 580.97 55.6374C582.87 57.4485 583.829 59.8189 583.847 62.7486C583.829 65.3232 583.074 67.5959 581.583 69.5668C580.109 71.5199 578.058 73.0469 575.43 74.1477C572.802 75.2486 569.784 75.799 566.375 75.799C561.368 75.799 557.337 74.7514 554.283 72.6562C551.229 70.5433 549.409 67.6048 548.823 63.8406L558.225 62.935C558.651 64.7816 559.557 66.1754 560.942 67.1165C562.327 68.0575 564.129 68.5281 566.348 68.5281C568.639 68.5281 570.476 68.0575 571.861 67.1165C573.264 66.1754 573.965 65.0124 573.965 63.6275C573.965 62.4556 573.513 61.4879 572.607 60.7244C571.719 59.9609 570.334 59.375 568.452 58.9666L561.474 57.5018C557.55 56.685 554.647 55.3089 552.765 53.3736C550.883 51.4205 549.951 48.9524 549.969 45.9695C549.951 43.4482 550.634 41.2642 552.019 39.4176C553.422 37.5533 555.366 36.1151 557.852 35.103C560.356 34.0732 563.241 33.5582 566.508 33.5582C571.302 33.5582 575.075 34.5792 577.827 36.6211C580.597 38.663 582.311 41.424 582.968 44.9041Z" fill="black"/>
3
+ <path d="M89.0625 21.5056V72.0456L68.2812 89.0625L36.0703 77.3359V88.9616L17.8362 65.1344L70.9828 69.2906V23.7797L89.0625 21.5056ZM71.345 24.0469L41.5269 5.9375V17.8184L14.1431 25.8637L5.9375 36.3969V60.3191L17.6819 65.5025V34.8472L71.345 24.0469Z" fill="url(#paint0_linear_2006_8)"/>
4
+ <defs>
5
+ <linearGradient id="paint0_linear_2006_8" x1="47.5" y1="88.8012" x2="47.5" y2="6.09187" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#0078D4"/>
7
+ <stop offset="0.16" stop-color="#1380DA"/>
8
+ <stop offset="0.53" stop-color="#3C91E5"/>
9
+ <stop offset="0.82" stop-color="#559CEC"/>
10
+ <stop offset="1" stop-color="#5EA0EF"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg width="596" height="95" viewBox="0 0 596 95" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M120.385 75H109.838L129.04 20.4545H141.239L160.468 75H149.921L135.353 31.6406H134.926L120.385 75ZM120.731 53.6133H149.495V61.5501H120.731V53.6133ZM162.944 75V68.8743L184.037 42.4272V42.081H163.636V34.0909H195.836V40.6694L175.754 66.6637V67.0099H196.528V75H162.944ZM227.915 57.7947V34.0909H237.556V75H228.208V67.729H227.782C226.858 70.0195 225.34 71.8928 223.227 73.3487C221.132 74.8047 218.549 75.5327 215.477 75.5327C212.796 75.5327 210.425 74.9379 208.366 73.7482C206.324 72.5408 204.726 70.7919 203.572 68.5014C202.418 66.1932 201.841 63.4055 201.841 60.1385V34.0909H211.482V58.647C211.482 61.2393 212.192 63.299 213.613 64.826C215.033 66.353 216.897 67.1165 219.206 67.1165C220.626 67.1165 222.002 66.7702 223.334 66.0778C224.665 65.3853 225.757 64.3555 226.61 62.9883C227.48 61.6033 227.915 59.8722 227.915 57.7947ZM243.72 75V34.0909H253.069V40.9091H253.495C254.241 38.5476 255.519 36.7276 257.33 35.4492C259.159 34.1531 261.245 33.505 263.589 33.505C264.122 33.505 264.717 33.5316 265.373 33.5849C266.048 33.6204 266.608 33.6825 267.051 33.7713V42.6403C266.643 42.4982 265.995 42.3739 265.107 42.2674C264.237 42.1431 263.394 42.081 262.577 42.081C260.819 42.081 259.239 42.4627 257.836 43.2262C256.451 43.9719 255.359 45.0107 254.56 46.3423C253.761 47.674 253.362 49.2099 253.362 50.9499V75H243.72ZM286.133 75.799C282.031 75.799 278.489 74.9467 275.506 73.2422C272.541 71.5199 270.259 69.0874 268.661 65.9446C267.063 62.7841 266.264 59.0643 266.264 54.7852C266.264 50.5771 267.063 46.8839 268.661 43.7056C270.277 40.5096 272.532 38.0238 275.426 36.2482C278.32 34.4549 281.721 33.5582 285.627 33.5582C288.148 33.5582 290.528 33.9666 292.765 34.7834C295.02 35.5824 297.008 36.8253 298.731 38.5121C300.471 40.1989 301.838 42.3473 302.832 44.9574C303.827 47.5497 304.324 50.6392 304.324 54.2259V57.1822H270.792V50.6836H295.082C295.064 48.837 294.665 47.1946 293.883 45.7564C293.102 44.3004 292.01 43.1552 290.607 42.3207C289.222 41.4862 287.607 41.0689 285.76 41.0689C283.789 41.0689 282.058 41.5483 280.567 42.5071C279.075 43.4482 277.912 44.6911 277.078 46.2358C276.261 47.7628 275.844 49.4407 275.826 51.2695V56.9425C275.826 59.3217 276.261 61.3636 277.131 63.0682C278.001 64.755 279.217 66.0511 280.78 66.9567C282.342 67.8445 284.171 68.2884 286.266 68.2884C287.669 68.2884 288.938 68.093 290.075 67.7024C291.211 67.294 292.197 66.6992 293.031 65.918C293.866 65.1367 294.496 64.169 294.922 63.0149L303.924 64.027C303.356 66.4062 302.273 68.4837 300.675 70.2592C299.095 72.017 297.07 73.3842 294.602 74.3608C292.134 75.3196 289.311 75.799 286.133 75.799ZM342.494 75H324.01V20.4545H342.866C348.282 20.4545 352.934 21.5465 356.822 23.7305C360.729 25.8967 363.729 29.0128 365.824 33.0788C367.92 37.1449 368.967 42.0099 368.967 47.674C368.967 53.3558 367.911 58.2386 365.798 62.3224C363.703 66.4062 360.675 69.5401 356.716 71.7241C352.774 73.908 348.033 75 342.494 75ZM333.891 66.4506H342.014C345.814 66.4506 348.983 65.7582 351.522 64.3732C354.061 62.9705 355.97 60.8842 357.248 58.1143C358.527 55.3267 359.166 51.8466 359.166 47.674C359.166 43.5014 358.527 40.0391 357.248 37.2869C355.97 34.517 354.079 32.4485 351.576 31.0813C349.09 29.6964 346 29.0039 342.307 29.0039H333.891V66.4506ZM392.29 75.799C388.189 75.799 384.646 74.9467 381.663 73.2422C378.698 71.5199 376.417 69.0874 374.819 65.9446C373.221 62.7841 372.422 59.0643 372.422 54.7852C372.422 50.5771 373.221 46.8839 374.819 43.7056C376.434 40.5096 378.689 38.0238 381.584 36.2482C384.478 34.4549 387.878 33.5582 391.784 33.5582C394.305 33.5582 396.685 33.9666 398.922 34.7834C401.177 35.5824 403.166 36.8253 404.888 38.5121C406.628 40.1989 407.995 42.3473 408.989 44.9574C409.984 47.5497 410.481 50.6392 410.481 54.2259V57.1822H376.949V50.6836H401.239C401.221 48.837 400.822 47.1946 400.041 45.7564C399.259 44.3004 398.167 43.1552 396.765 42.3207C395.38 41.4862 393.764 41.0689 391.917 41.0689C389.946 41.0689 388.215 41.5483 386.724 42.5071C385.232 43.4482 384.069 44.6911 383.235 46.2358C382.418 47.7628 382.001 49.4407 381.983 51.2695V56.9425C381.983 59.3217 382.418 61.3636 383.288 63.0682C384.158 64.755 385.374 66.0511 386.937 66.9567C388.499 67.8445 390.328 68.2884 392.423 68.2884C393.826 68.2884 395.096 68.093 396.232 67.7024C397.368 67.294 398.354 66.6992 399.188 65.918C400.023 65.1367 400.653 64.169 401.079 63.0149L410.081 64.027C409.513 66.4062 408.43 68.4837 406.832 70.2592C405.252 72.017 403.228 73.3842 400.76 74.3608C398.292 75.3196 395.468 75.799 392.29 75.799ZM450.257 34.0909L435.688 75H425.035L410.466 34.0909H420.747L430.148 64.4798H430.575L440.003 34.0909H450.257ZM502.344 47.7273C502.344 53.6044 501.243 58.6381 499.041 62.8285C496.857 67.0011 493.874 70.1971 490.093 72.4165C486.328 74.636 482.058 75.7457 477.282 75.7457C472.506 75.7457 468.226 74.636 464.444 72.4165C460.68 70.1793 457.697 66.9744 455.496 62.8018C453.312 58.6115 452.22 53.5866 452.22 47.7273C452.22 41.8501 453.312 36.8253 455.496 32.6527C457.697 28.4624 460.68 25.2575 464.444 23.038C468.226 20.8185 472.506 19.7088 477.282 19.7088C482.058 19.7088 486.328 20.8185 490.093 23.038C493.874 25.2575 496.857 28.4624 499.041 32.6527C501.243 36.8253 502.344 41.8501 502.344 47.7273ZM492.41 47.7273C492.41 43.5902 491.762 40.1012 490.465 37.2603C489.187 34.4016 487.411 32.2443 485.139 30.7884C482.866 29.3146 480.247 28.5778 477.282 28.5778C474.317 28.5778 471.698 29.3146 469.425 30.7884C467.152 32.2443 465.368 34.4016 464.072 37.2603C462.793 40.1012 462.154 43.5902 462.154 47.7273C462.154 51.8643 462.793 55.3622 464.072 58.2209C465.368 61.0618 467.152 63.2191 469.425 64.6928C471.698 66.1488 474.317 66.8768 477.282 66.8768C480.247 66.8768 482.866 66.1488 485.139 64.6928C487.411 63.2191 489.187 61.0618 490.465 58.2209C491.762 55.3622 492.41 51.8643 492.41 47.7273ZM507.509 90.3409V34.0909H516.991V40.8558H517.55C518.047 39.8615 518.749 38.805 519.654 37.6864C520.56 36.5501 521.785 35.5824 523.33 34.7834C524.875 33.9666 526.845 33.5582 529.242 33.5582C532.403 33.5582 535.253 34.3661 537.792 35.9819C540.349 37.5799 542.373 39.9503 543.864 43.093C545.373 46.218 546.128 50.0533 546.128 54.5987C546.128 59.0909 545.391 62.9084 543.918 66.0511C542.444 69.1939 540.437 71.5909 537.898 73.2422C535.359 74.8935 532.483 75.7191 529.269 75.7191C526.925 75.7191 524.981 75.3285 523.436 74.5472C521.892 73.766 520.649 72.8249 519.708 71.7241C518.784 70.6055 518.065 69.549 517.55 68.5547H517.151V90.3409H507.509ZM516.964 54.5455C516.964 57.1911 517.337 59.5082 518.083 61.4968C518.847 63.4854 519.938 65.0391 521.359 66.1577C522.797 67.2585 524.537 67.8089 526.579 67.8089C528.71 67.8089 530.494 67.2408 531.932 66.1044C533.371 64.9503 534.454 63.3789 535.182 61.3903C535.927 59.3839 536.3 57.1023 536.3 54.5455C536.3 52.0064 535.936 49.7514 535.208 47.7805C534.48 45.8097 533.397 44.2649 531.959 43.1463C530.521 42.0277 528.728 41.4684 526.579 41.4684C524.519 41.4684 522.771 42.0099 521.332 43.093C519.894 44.1761 518.802 45.6942 518.056 47.6474C517.328 49.6005 516.964 51.8999 516.964 54.5455ZM582.968 44.9041L574.179 45.8629C573.93 44.9751 573.495 44.1406 572.873 43.3594C572.27 42.5781 571.453 41.9478 570.423 41.4684C569.393 40.989 568.133 40.7493 566.641 40.7493C564.635 40.7493 562.948 41.1843 561.581 42.0543C560.231 42.9244 559.566 44.0518 559.583 45.4368C559.566 46.6264 560.001 47.5941 560.888 48.3398C561.794 49.0856 563.285 49.6982 565.363 50.1776L572.341 51.669C576.212 52.5036 579.088 53.8263 580.97 55.6374C582.87 57.4485 583.829 59.8189 583.847 62.7486C583.829 65.3232 583.074 67.5959 581.583 69.5668C580.109 71.5199 578.058 73.0469 575.43 74.1477C572.802 75.2486 569.784 75.799 566.375 75.799C561.368 75.799 557.337 74.7514 554.283 72.6562C551.229 70.5433 549.409 67.6048 548.823 63.8406L558.225 62.935C558.651 64.7816 559.557 66.1754 560.942 67.1165C562.327 68.0575 564.129 68.5281 566.348 68.5281C568.639 68.5281 570.476 68.0575 571.861 67.1165C573.264 66.1754 573.965 65.0124 573.965 63.6275C573.965 62.4556 573.513 61.4879 572.607 60.7244C571.719 59.9609 570.334 59.375 568.452 58.9666L561.474 57.5018C557.55 56.685 554.647 55.3089 552.765 53.3736C550.883 51.4205 549.951 48.9524 549.969 45.9695C549.951 43.4482 550.634 41.2642 552.019 39.4176C553.422 37.5533 555.366 36.1151 557.852 35.103C560.356 34.0732 563.241 33.5582 566.508 33.5582C571.302 33.5582 575.075 34.5792 577.827 36.6211C580.597 38.663 582.311 41.424 582.968 44.9041Z" fill="white"/>
3
+ <path d="M89.0625 21.5056V72.0456L68.2812 89.0625L36.0703 77.3359V88.9616L17.8362 65.1344L70.9828 69.2906V23.7797L89.0625 21.5056ZM71.345 24.0469L41.5269 5.9375V17.8184L14.1431 25.8637L5.9375 36.3969V60.3191L17.6819 65.5025V34.8472L71.345 24.0469Z" fill="url(#paint0_linear_2006_8)"/>
4
+ <defs>
5
+ <linearGradient id="paint0_linear_2006_8" x1="47.5" y1="88.8012" x2="47.5" y2="6.09187" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="white"/>
7
+ <stop offset="0.16" stop-color="white"/>
8
+ <stop offset="0.53" stop-color="white"/>
9
+ <stop offset="0.82" stop-color="white"/>
10
+ <stop offset="1" stop-color="white"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg width="295" height="85" viewBox="0 0 295 85" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M96.2322 75V18.2727H104.791V42.9247H133.072V18.2727H141.658V75H133.072V50.2649H104.791V75H96.2322ZM147.425 25.6406V18.2727H191.328V25.6406H173.628V75H165.097V25.6406H147.425ZM194.332 25.6406V18.2727H238.235V25.6406H220.535V75H212.004V25.6406H194.332ZM244.036 75V18.2727H264.256C268.67 18.2727 272.326 19.076 275.225 20.6825C278.124 22.2891 280.294 24.4865 281.734 27.2749C283.175 30.0447 283.895 33.1655 283.895 36.6371C283.895 40.1271 283.165 43.2663 281.707 46.0547C280.266 48.8246 278.087 51.022 275.17 52.647C272.271 54.2536 268.624 55.0568 264.229 55.0568H250.324V47.7997H263.453C266.241 47.7997 268.503 47.3196 270.239 46.3594C271.975 45.3807 273.249 44.0511 274.062 42.3707C274.874 40.6903 275.28 38.7791 275.28 36.6371C275.28 34.495 274.874 32.593 274.062 30.9311C273.249 29.2692 271.966 27.9673 270.212 27.0256C268.476 26.0838 266.186 25.6129 263.342 25.6129H252.595V75H244.036Z" fill="black"/>
3
+ <g clip-path="url(#clip0_2008_11)">
4
+ <path d="M38.5 8C17.2371 8 0 25.2369 0 46.5C0 67.7631 17.2371 85 38.5 85C59.7629 85 77 67.7631 77 46.5C77 25.2369 59.7629 8 38.5 8ZM23.5983 17.0185C22.9087 17.9737 22.2483 18.9994 21.6226 20.0985C20.6668 21.7773 19.8141 23.5844 19.0668 25.4944C17.4747 25.0561 15.8902 24.5639 14.3157 24.017C16.9617 21.1725 20.1015 18.7932 23.5983 17.0185ZM10.3255 29.2627C12.5838 30.1103 14.8618 30.8532 17.155 31.4923C16.2113 35.2306 15.6261 39.2282 15.4284 43.3556H5.61192C6.0984 38.229 7.76022 33.44 10.3255 29.2627ZM10.3255 63.7373C7.76002 59.5598 6.0982 54.771 5.61192 49.6444H15.4284C15.6263 53.7718 16.2113 57.7694 17.155 61.5077C14.8618 62.1468 12.5838 62.8898 10.3255 63.7373ZM14.3157 68.9832C15.8902 68.4363 17.4747 67.9437 19.0666 67.5058C19.8141 69.4158 20.6668 71.2229 21.6226 72.9017C22.2481 74.0007 22.9087 75.0265 23.5983 75.9817C20.1015 74.2068 16.9617 71.8277 14.3157 68.9832ZM35.3556 77.9061C31.3293 76.3961 27.7626 72.0634 25.2765 66.0809C28.6193 65.4639 31.9848 65.0821 35.3556 64.9358V77.9061ZM35.3556 58.6332C31.3185 58.7947 27.288 59.2692 23.2889 60.053C22.4676 56.8239 21.9251 53.3145 21.7262 49.6442H35.3556V58.6332ZM35.3556 43.3556H21.7262C21.9251 39.6853 22.4676 36.1759 23.2889 32.9468C27.2878 33.7308 31.3185 34.2051 35.3556 34.3666V43.3556ZM35.3556 28.064C31.9848 27.9177 28.6195 27.5359 25.2765 26.9189C27.7626 20.9364 31.3293 16.6039 35.3556 15.0937V28.064ZM66.6747 29.2633C69.24 33.4404 70.9016 38.2292 71.3879 43.3556H61.5714C61.3737 39.2286 60.7885 35.231 59.845 31.4931C62.1384 30.854 64.4166 30.1112 66.6747 29.2633ZM62.6849 24.0176C61.1104 24.5645 59.5259 25.0571 57.9336 25.4952C57.1861 23.5848 56.3334 21.7773 55.3774 20.0983C54.7517 18.9994 54.0913 17.9735 53.4019 17.0183C56.8989 18.7934 60.0387 21.1729 62.6849 24.0176ZM41.6444 15.0939C45.6707 16.6039 49.2376 20.937 51.7237 26.9199C48.3809 27.5367 45.0154 27.9183 41.6444 28.0644V15.0939ZM41.6444 34.367C45.6819 34.2057 49.7126 33.7314 53.7113 32.9478C54.5326 36.1767 55.0749 39.6859 55.2738 43.3558H41.6444V34.367ZM41.6444 49.6444H55.2738C55.0749 53.3143 54.5326 56.8235 53.7113 60.0524C49.7126 59.2686 45.6819 58.7945 41.6444 58.633V49.6444ZM41.6444 77.9061V64.9358C45.0156 65.0821 48.3811 65.4635 51.7237 66.0805C49.2376 72.063 45.6707 76.3961 41.6444 77.9061ZM53.4019 75.9815C54.0915 75.0263 54.7519 74.0007 55.3774 72.9015C56.3334 71.2225 57.1861 69.415 57.9336 67.5048C59.5257 67.9431 61.1102 68.4355 62.6849 68.9824C60.0387 71.8271 56.8989 74.2066 53.4019 75.9815ZM66.6747 63.7369C64.4166 62.8888 62.1384 62.146 59.8452 61.5067C60.7887 57.7689 61.3737 53.7714 61.5716 49.6444H71.3881C70.9016 54.7708 69.24 59.5596 66.6747 63.7369Z" fill="#1380DA"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_2008_11">
8
+ <rect width="77" height="77" fill="white" transform="translate(0 8)"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>
@@ -0,0 +1,11 @@
1
+ <svg width="295" height="85" viewBox="0 0 295 85" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M96.2322 75V18.2727H104.791V42.9247H133.072V18.2727H141.658V75H133.072V50.2649H104.791V75H96.2322ZM147.425 25.6406V18.2727H191.328V25.6406H173.628V75H165.097V25.6406H147.425ZM194.332 25.6406V18.2727H238.235V25.6406H220.535V75H212.004V25.6406H194.332ZM244.036 75V18.2727H264.256C268.67 18.2727 272.326 19.076 275.225 20.6825C278.124 22.2891 280.294 24.4865 281.734 27.2749C283.175 30.0447 283.895 33.1655 283.895 36.6371C283.895 40.1271 283.165 43.2663 281.707 46.0547C280.266 48.8246 278.087 51.022 275.17 52.647C272.271 54.2536 268.624 55.0568 264.229 55.0568H250.324V47.7997H263.453C266.241 47.7997 268.503 47.3196 270.239 46.3594C271.975 45.3807 273.249 44.0511 274.062 42.3707C274.874 40.6903 275.28 38.7791 275.28 36.6371C275.28 34.495 274.874 32.593 274.062 30.9311C273.249 29.2692 271.966 27.9673 270.212 27.0256C268.476 26.0838 266.186 25.6129 263.342 25.6129H252.595V75H244.036Z" fill="white"/>
3
+ <g clip-path="url(#clip0_2008_11)">
4
+ <path d="M38.5 8C17.2371 8 0 25.2369 0 46.5C0 67.7631 17.2371 85 38.5 85C59.7629 85 77 67.7631 77 46.5C77 25.2369 59.7629 8 38.5 8ZM23.5983 17.0185C22.9087 17.9737 22.2483 18.9994 21.6226 20.0985C20.6668 21.7773 19.8141 23.5844 19.0668 25.4944C17.4747 25.0561 15.8902 24.5639 14.3157 24.017C16.9617 21.1725 20.1015 18.7932 23.5983 17.0185ZM10.3255 29.2627C12.5838 30.1103 14.8618 30.8532 17.155 31.4923C16.2113 35.2306 15.6261 39.2282 15.4284 43.3556H5.61192C6.0984 38.229 7.76022 33.44 10.3255 29.2627ZM10.3255 63.7373C7.76002 59.5598 6.0982 54.771 5.61192 49.6444H15.4284C15.6263 53.7718 16.2113 57.7694 17.155 61.5077C14.8618 62.1468 12.5838 62.8898 10.3255 63.7373ZM14.3157 68.9832C15.8902 68.4363 17.4747 67.9437 19.0666 67.5058C19.8141 69.4158 20.6668 71.2229 21.6226 72.9017C22.2481 74.0007 22.9087 75.0265 23.5983 75.9817C20.1015 74.2068 16.9617 71.8277 14.3157 68.9832ZM35.3556 77.9061C31.3293 76.3961 27.7626 72.0634 25.2765 66.0809C28.6193 65.4639 31.9848 65.0821 35.3556 64.9358V77.9061ZM35.3556 58.6332C31.3185 58.7947 27.288 59.2692 23.2889 60.053C22.4676 56.8239 21.9251 53.3145 21.7262 49.6442H35.3556V58.6332ZM35.3556 43.3556H21.7262C21.9251 39.6853 22.4676 36.1759 23.2889 32.9468C27.2878 33.7308 31.3185 34.2051 35.3556 34.3666V43.3556ZM35.3556 28.064C31.9848 27.9177 28.6195 27.5359 25.2765 26.9189C27.7626 20.9364 31.3293 16.6039 35.3556 15.0937V28.064ZM66.6747 29.2633C69.24 33.4404 70.9016 38.2292 71.3879 43.3556H61.5714C61.3737 39.2286 60.7885 35.231 59.845 31.4931C62.1384 30.854 64.4166 30.1112 66.6747 29.2633ZM62.6849 24.0176C61.1104 24.5645 59.5259 25.0571 57.9336 25.4952C57.1861 23.5848 56.3334 21.7773 55.3774 20.0983C54.7517 18.9994 54.0913 17.9735 53.4019 17.0183C56.8989 18.7934 60.0387 21.1729 62.6849 24.0176ZM41.6444 15.0939C45.6707 16.6039 49.2376 20.937 51.7237 26.9199C48.3809 27.5367 45.0154 27.9183 41.6444 28.0644V15.0939ZM41.6444 34.367C45.6819 34.2057 49.7126 33.7314 53.7113 32.9478C54.5326 36.1767 55.0749 39.6859 55.2738 43.3558H41.6444V34.367ZM41.6444 49.6444H55.2738C55.0749 53.3143 54.5326 56.8235 53.7113 60.0524C49.7126 59.2686 45.6819 58.7945 41.6444 58.633V49.6444ZM41.6444 77.9061V64.9358C45.0156 65.0821 48.3811 65.4635 51.7237 66.0805C49.2376 72.063 45.6707 76.3961 41.6444 77.9061ZM53.4019 75.9815C54.0915 75.0263 54.7519 74.0007 55.3774 72.9015C56.3334 71.2225 57.1861 69.415 57.9336 67.5048C59.5257 67.9431 61.1102 68.4355 62.6849 68.9824C60.0387 71.8271 56.8989 74.2066 53.4019 75.9815ZM66.6747 63.7369C64.4166 62.8888 62.1384 62.146 59.8452 61.5067C60.7887 57.7689 61.3737 53.7714 61.5716 49.6444H71.3881C70.9016 54.7708 69.24 59.5596 66.6747 63.7369Z" fill="white"/>
5
+ </g>
6
+ <defs>
7
+ <clipPath id="clip0_2008_11">
8
+ <rect width="77" height="77" fill="white" transform="translate(0 8)"/>
9
+ </clipPath>
10
+ </defs>
11
+ </svg>
package/dist/text.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{ResultState as e}from"./graphql/generated/index.esm.js";const o=r=>({[e.Passed]:"Check passed",[e.NotReported]:"Check not reported",[e.Failed]:"Check failed",[e.Warning]:"Check produced warning(s)",[e.NotApplicable]:"Check not applicable",[e.Error]:"Check produced error(s)"})[r];export{o as resultToText};
1
+ import{ResultState as e}from"./graphql/generated/index.esm.js";const t=r=>({[e.Passed]:"Check passed",[e.NotReported]:"Check not reported",[e.Failed]:"Check failed",[e.Warning]:"Check produced warning(s)",[e.NotApplicable]:"Check not applicable",[e.Exempt]:"Entity exempt from check",[e.Error]:"Check produced error(s)"})[r];export{t as resultToText};
2
2
  //# sourceMappingURL=text.esm.js.map
@@ -1,2 +1,2 @@
1
- import{z as e}from"zod";import{TimeUnit as n}from"../components/Frequency/types.esm.js";import"../components/Frequency/util.esm.js";import"../components/Frequency/FrequencyComponent.esm.js";import{validateCacheConfig as r}from"./collectors.esm.js";import{validateFrequency as a}from"./frequency.esm.js";const s="At least one check is required",o="This field is required",i=e.nativeEnum(n),c=e.strictObject({enabled:e.boolean(),hasDuration:e.boolean(),unit:i.optional(),value:e.number().min(1,"Value must be greater than 0.").optional()}).refine(t=>r(t)===!0,t=>({message:r(t)})),m=e.strictObject({type:e.enum(["HumanDuration","cron"]),unit:i.optional(),value:e.number().min(1,"Value must be greater than 0.").optional(),cron:e.string().optional()}).refine(t=>a(t)===!0,t=>({message:a(t)})),l=e.strictObject({selectedKinds:e.string().array(),selectedTypes:e.string().array(),selectedLifecycles:e.string().array(),selectedOwners:e.string().array(),selectedSystems:e.string().array(),selectedTags:e.string().array()});export{s as CHECK_IS_REQUIRED_MSG,c as CacheConfigSchema,o as FIELD_IS_REQUIRED_MSG,l as FiltersSchema,m as FrequencySchema};
1
+ import{z as e}from"zod";import{filterPresent as i}from"../components/Filter/utils.esm.js";import"../components/Filter/FilterComponent.esm.js";import{TimeUnit as s}from"../components/Frequency/types.esm.js";import"../components/Frequency/util.esm.js";import"../components/Frequency/FrequencyComponent.esm.js";import{validateCacheConfig as n}from"./collectors.esm.js";import{validateFrequency as l}from"./frequency.esm.js";const c="At least one check is required",u="This field is required",o=e.nativeEnum(s),m=e.strictObject({enabled:e.boolean(),hasDuration:e.boolean(),unit:o.optional(),value:e.number().min(1,"Value must be greater than 0.").optional()}).refine(t=>n(t)===!0,t=>({message:n(t)})),y=e.strictObject({type:e.enum(["HumanDuration","cron"]),unit:o.optional(),value:e.number().min(1,"Value must be greater than 0.").optional(),cron:e.string().optional()}).refine(t=>l(t)===!0,t=>({message:l(t)})),r=e.strictObject({selectedKinds:e.string().array(),selectedTypes:e.string().array(),selectedLifecycles:e.string().array(),selectedOwners:e.string().array(),selectedSystems:e.string().array(),selectedTags:e.string().array()}),a=e.strictObject({selectedLabels:e.object({key:e.string(),value:e.string().array().min(1,"Requires at least 1 value for key.")}).array().optional(),selectedAnnotations:e.object({key:e.string(),value:e.string().array().min(1,"Requires at least 1 value for key.")}).array().optional(),selectedOtherFilters:e.object({key:e.string(),value:e.string().array().min(1,"Requires at least 1 value for key.")}).array().optional()}),p=e.strictObject({filter:r.optional(),keyValueFilter:a.optional(),excludeFilter:r.optional(),excludeKeyValueFilter:a.optional()}).refine(t=>!(!i(t.filter,t.keyValueFilter)&&i(t.excludeFilter,t.excludeKeyValueFilter)),"Cannot have an exclude filter without an include filter.");export{c as CHECK_IS_REQUIRED_MSG,m as CacheConfigSchema,u as FIELD_IS_REQUIRED_MSG,r as FiltersSchema,y as FrequencySchema,a as KeyValueFiltersSchema,p as formFiltersSchema};
2
2
  //# sourceMappingURL=validation.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.15.1",
4
+ "version": "0.16.0",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "./dist/index.esm.js",
@@ -15,7 +15,10 @@
15
15
  "@spotify/backstage-plugin-soundcheck-backend",
16
16
  "@spotify/backstage-plugin-soundcheck-common",
17
17
  "@spotify/backstage-plugin-soundcheck-node"
18
- ]
18
+ ],
19
+ "features": {
20
+ "./alpha": "@backstage/FrontendPlugin"
21
+ }
19
22
  },
20
23
  "sideEffects": false,
21
24
  "exports": {
@@ -58,13 +61,13 @@
58
61
  "@backstage/catalog-client": "^1.9.1",
59
62
  "@backstage/catalog-model": "^1.7.3",
60
63
  "@backstage/config": "^1.3.2",
61
- "@backstage/core-compat-api": "^0.3.5",
62
- "@backstage/core-components": "^0.16.3",
63
- "@backstage/core-plugin-api": "^1.10.3",
64
- "@backstage/frontend-plugin-api": "^0.9.4",
65
- "@backstage/plugin-catalog-react": "^1.15.1",
66
- "@backstage/plugin-permission-react": "^0.4.30",
67
- "@backstage/plugin-scaffolder-react": "^1.14.3",
64
+ "@backstage/core-compat-api": "^0.3.6",
65
+ "@backstage/core-components": "^0.16.4",
66
+ "@backstage/core-plugin-api": "^1.10.4",
67
+ "@backstage/frontend-plugin-api": "^0.9.5",
68
+ "@backstage/plugin-catalog-react": "^1.15.2",
69
+ "@backstage/plugin-permission-react": "^0.4.31",
70
+ "@backstage/plugin-scaffolder-react": "^1.14.5",
68
71
  "@backstage/types": "^1.2.1",
69
72
  "@date-io/luxon": "^1.0.0",
70
73
  "@hookform/resolvers": "^3.3.2",
@@ -74,18 +77,20 @@
74
77
  "@material-ui/pickers": "3.3.11",
75
78
  "@mui/icons-material": "^5.11.16",
76
79
  "@mui/styles": "^5.14.7",
77
- "@spotify/backstage-plugin-core": "^0.8.5",
78
- "@spotify/backstage-plugin-soundcheck-common": "^0.15.0",
80
+ "@spotify/backstage-plugin-core": "^0.8.6",
81
+ "@spotify/backstage-plugin-soundcheck-common": "^0.16.0",
79
82
  "@tanstack/react-query": "^4.6.1",
80
83
  "@types/react-csv": "^1.1.6",
81
84
  "@uiw/react-md-editor": "3.20.10",
82
85
  "classnames": "^2.3.2",
86
+ "copy-to-clipboard": "^3.3.3",
83
87
  "cron-validate": "^1.4.5",
84
88
  "cronstrue": "^2.28.0",
85
89
  "d3-scale-chromatic": "^3.0.0",
86
90
  "framer-motion": "^6.0.0",
87
91
  "git-url-parse": "^16.0.0",
88
92
  "graphql-request": "6.1.0",
93
+ "immer": "^10.1.1",
89
94
  "js-yaml": "^4.1.0",
90
95
  "lodash": "^4.17.21",
91
96
  "luxon": "^3.1.1",
@@ -102,28 +107,29 @@
102
107
  "react-window": "^1.8.8",
103
108
  "recharts": "^2.8.0",
104
109
  "rehype-sanitize": "^6.0.0",
110
+ "use-immer": "^0.11.0",
105
111
  "uuid": "^11.0.0",
106
112
  "zod": "^3.20.0"
107
113
  },
108
114
  "peerDependencies": {
109
- "react": "^16.13.1 || ^17.0.0 || ^18.0.0",
110
- "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
115
+ "react": "^17.0.0 || ^18.0.0",
116
+ "react-dom": "^17.0.0 || ^18.0.0",
111
117
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
112
118
  },
113
119
  "devDependencies": {
114
- "@backstage/cli": "^0.29.5",
115
- "@backstage/core-app-api": "^1.15.4",
116
- "@backstage/dev-utils": "^1.1.6",
120
+ "@backstage/cli": "^0.30.0",
121
+ "@backstage/core-app-api": "^1.15.5",
122
+ "@backstage/dev-utils": "^1.1.7",
117
123
  "@backstage/e2e-test-utils": "^0.1.1",
118
- "@backstage/frontend-test-utils": "^0.2.5",
119
- "@backstage/test-utils": "^1.7.4",
124
+ "@backstage/frontend-test-utils": "^0.2.6",
125
+ "@backstage/test-utils": "^1.7.5",
120
126
  "@graphql-codegen/cli": "^5.0.0",
121
127
  "@graphql-codegen/typescript": "^4.0.0",
122
128
  "@graphql-codegen/typescript-graphql-request": "^6.0.0",
123
129
  "@graphql-codegen/typescript-operations": "^4.0.0",
124
130
  "@playwright/test": "^1.32.3",
125
- "@sp4b-dev/test-utils": "^0.0.11",
126
- "@spotify/backstage-plugin-core-common": "^0.6.5",
131
+ "@sp4b-dev/test-utils": "^0.0.12",
132
+ "@spotify/backstage-plugin-core-common": "^0.6.6",
127
133
  "@spotify/backstage-plugin-soundcheck-node": "^0.9.2",
128
134
  "@testing-library/jest-dom": "^6.0.0",
129
135
  "@testing-library/react": "^14.0.0",
@@ -1,2 +0,0 @@
1
- import{useApi as m}from"@backstage/core-plugin-api";import{useQuery as c}from"@tanstack/react-query";import{soundcheckApiRef as s}from"../../api.esm.js";import{QueryKeys as u}from"../graphqlKeys.esm.js";function f(e,r,o,t,n){const i=m(s);return c([u.GetTrackOverviewForOwner,e??"",r??"",o??"",t??"",n??""],async()=>i.getProgramOverviewForOwner(e,r,o,t,n),{enabled:!!e&&!!r?.kind,staleTime:5*60*1e3,refetchInterval:!1,refetchOnWindowFocus:!1})}export{f as useProgramOverviewForOwner};
2
- //# sourceMappingURL=useProgramOverviewForOwner.esm.js.map