@spotify/backstage-plugin-soundcheck 0.16.0 → 0.16.1

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 (71) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/alpha.d.ts +60 -45
  3. package/dist/api.esm.js +1 -1
  4. package/dist/components/Badges/CampaignBadge.esm.js +1 -1
  5. package/dist/components/Badges/NoLevelBadge.esm.js +1 -1
  6. package/dist/components/Badges/PlaylistBadge.esm.js +1 -1
  7. package/dist/components/CampaignForm/Steps/CampaignDetailsStep/CampaignOwnerField.esm.js +1 -1
  8. package/dist/components/CertificationSidebar/CertificationSidebar.esm.js +1 -1
  9. package/dist/components/CertificationSidebar/Check.esm.js +1 -1
  10. package/dist/components/CertificationSidebar/CheckResultInputPopup.esm.js +2 -0
  11. package/dist/components/CertificationSidebar/CheckResultSummaryList.esm.js +1 -1
  12. package/dist/components/CertificationSidebar/ExemptionJustificationDialog.esm.js +2 -0
  13. package/dist/components/CertificationsPage/CertificationTabs.esm.js +1 -1
  14. package/dist/components/CertificationsPage/CertificationsPage.esm.js +1 -1
  15. package/dist/components/CheckDetails/CheckDetails.esm.js +1 -1
  16. package/dist/components/CheckDetails/FactTable.esm.js +1 -1
  17. package/dist/components/CheckDetails/JustificationDetails.esm.js +2 -0
  18. package/dist/components/CheckDetails/ResultStateBox.esm.js +1 -1
  19. package/dist/components/CheckDryRun/CheckDryRun.esm.js +1 -1
  20. package/dist/components/CheckForm/FormFields/CheckPathResolverInput.esm.js +1 -1
  21. package/dist/components/CheckForm/FormFields/CheckScheduleSection/ScheduleSection.esm.js +1 -1
  22. package/dist/components/CheckForm/FormFields/CheckTypeInput/CheckTypeInput.esm.js +2 -0
  23. package/dist/components/CheckForm/FormFields/TeamDetailsInput/TeamDetailsInput.esm.js +1 -1
  24. package/dist/components/CheckForm/Steps/CheckDetailsStep.esm.js +1 -1
  25. package/dist/components/CheckForm/Steps/CheckReviewStep.esm.js +1 -1
  26. package/dist/components/CheckForm/Steps/CheckRulesStep.esm.js +1 -1
  27. package/dist/components/CheckForm/useCheckForm.esm.js +1 -1
  28. package/dist/components/CheckForm/utils/checkFormUtils.esm.js +2 -2
  29. package/dist/components/CheckForm/utils/validation.esm.js +1 -1
  30. package/dist/components/CollectorPage/Configurators/AzureDevOps/NumberOfWorkItemsComponent.esm.js +1 -1
  31. package/dist/components/CollectorPage/Configurators/BigQuery/QueryFactDetailsComponent.esm.js +1 -1
  32. package/dist/components/CollectorPage/Configurators/Github/CodeScanningAlertsFactDetails.esm.js +2 -0
  33. package/dist/components/CollectorPage/Configurators/Github/DependabotAlertsFactDetails.esm.js +2 -0
  34. package/dist/components/CollectorPage/Configurators/Github/GithubConfigurator.esm.js +1 -1
  35. package/dist/components/CollectorPage/Configurators/Github/SecretScanningAlertsFactDetails.esm.js +2 -0
  36. package/dist/components/CollectorPage/Configurators/Github/SecurityAdvisoriesFactDetails.esm.js +2 -0
  37. package/dist/components/CollectorPage/Configurators/Github/types.esm.js +2 -0
  38. package/dist/components/CollectorPage/Configurators/Github/utils.esm.js +1 -1
  39. package/dist/components/CollectorPage/Configurators/Github/validation.esm.js +2 -0
  40. package/dist/components/CollectorPage/Configurators/HTTP/HttpRequestComponent.esm.js +1 -1
  41. package/dist/components/CollectorPage/Configurators/HTTP/HttpStatusesInput.esm.js +1 -1
  42. package/dist/components/CollectorPage/Configurators/SCM/utils.esm.js +1 -1
  43. package/dist/components/EntityChip/EntityChip.esm.js +1 -1
  44. package/dist/components/FactExplorer/FactExplorer.esm.js +1 -1
  45. package/dist/components/Filter/EntityAutocompletePicker.esm.js +1 -1
  46. package/dist/components/FormControlledAutocomplete/FormControlledMultipleAutocomplete.esm.js +2 -0
  47. package/dist/components/FormControlledSelect/FormControlledSelect.esm.js +1 -1
  48. package/dist/components/GroupSelector/GroupSelector.esm.js +1 -1
  49. package/dist/components/OrgHealth/OrgHealthPage.esm.js +2 -0
  50. package/dist/components/OverviewPage/OverviewPageHeader.esm.js +1 -1
  51. package/dist/components/RoutingPage/RoutingPage.esm.js +1 -1
  52. package/dist/components/RuleResult/BranchResultComponent.esm.js +1 -1
  53. package/dist/components/TechHealth/Filters/FacetFilter.esm.js +1 -1
  54. package/dist/components/TechHealth/Filters/FilterProvider.esm.js +1 -1
  55. package/dist/components/TechHealthTabs/PassRateTabHeader.esm.js +1 -1
  56. package/dist/components/TrackForm/Steps/TrackDetailsStep/TrackBadgeTypeSelect/TrackBadgeTypeSelect.esm.js +1 -1
  57. package/dist/components/TrackForm/Steps/TrackDetailsStep/TrackOwnerSelect/TrackOwnerSelect.esm.js +1 -1
  58. package/dist/components/TracksPage/TracksPage.esm.js +1 -1
  59. package/dist/graphql/generated/index.esm.js +93 -54
  60. package/dist/hooks/certifications/useCertificationDetailsForTrack.esm.js +1 -1
  61. package/dist/hooks/checks/useSetManualResult.esm.js +2 -0
  62. package/dist/hooks/exemptions/useDeleteExemption.esm.js +2 -0
  63. package/dist/hooks/exemptions/useGetExemption.esm.js +2 -0
  64. package/dist/hooks/exemptions/useSetEntityExempt.esm.js +2 -0
  65. package/dist/hooks/facets/useFacetFilters.esm.js +1 -1
  66. package/dist/hooks/graphqlKeys.esm.js +1 -1
  67. package/dist/index.d.ts +0 -1
  68. package/dist/utils/export.esm.js +3 -3
  69. package/package.json +21 -21
  70. package/dist/components/CheckDetails/ExemptionDetails.esm.js +0 -2
  71. package/dist/components/CheckDryRun/checkDryRunUtils.esm.js +0 -2
@@ -1,6 +1,6 @@
1
- import{dump as a}from"js-yaml";const r=e=>{const t={ordinal:e.ordinal,checks:e.checks};return e.name&&(t.name=e.name),e.description&&(e.description=e.description),t},i=(e,t)=>{const s=new Blob([e],{type:"text/plain"}),n=window.document.createElement("a");n.href=window.URL.createObjectURL(s),n.download=t,n.click(),n.remove()},o=e=>{const t={id:e.id,name:e.name,ownerEntityRef:e.ownerEntityRef,levels:e.levels.map(r)};e.description&&(t.description=e.description),e.documentationURL&&(t.documentationURL=e.documentationURL),e.filter&&(t.filter=e.filter);const s=`# Exported YAML Track. You can rename the track id if needed.
1
+ import{dump as r}from"js-yaml";import{pickBy as o}from"lodash";const i=e=>{const t={...e};return o(t,n=>!!n||n==="")},c=e=>{const t={ordinal:e.ordinal,checks:e.checks.map(i)};return e.name&&(t.name=e.name),e.description&&(e.description=e.description),t},s=(e,t)=>{const n=new Blob([e],{type:"text/plain"}),a=window.document.createElement("a");a.href=window.URL.createObjectURL(n),a.download=t,a.click(),a.remove()},d=e=>{const t={id:e.id,name:e.name,ownerEntityRef:e.ownerEntityRef,levels:e.levels.map(c)};e.description&&(t.description=e.description),e.documentationURL&&(t.documentationURL=e.documentationURL),e.filter&&(t.filter=e.filter),e.exclude&&(t.exclude=e.exclude);const n=`# Exported YAML Track. You can rename the track id if needed.
2
2
  # Please ensure you have also exported the associated checks and that the ids match.
3
- `+a(t,{noRefs:!0});return i(s,`track-${e.id}.yaml`),s},c=e=>{const t={id:e.id,rule:e.rule};e.ownerEntityRef&&(t.ownerEntityRef=e.ownerEntityRef),e.name&&(t.name=e.name),e.description&&(t.description=e.description),e.pathResolver&&(t.pathResolver=e.pathResolver),e.filter&&(t.filter=e.filter),e.warning&&(t.warning=e.warning),e.passedMessage&&(t.passedMessage=e.passedMessage),e.failedMessage&&(t.failedMessage=e.failedMessage),e.passedMessage&&(t.passedMessage=e.passedMessage),e.schedule&&(t.schedule=e.schedule);const s=`# Exported YAML Check. You can rename the check id if needed.
3
+ `+r(t,{noRefs:!0});return s(n,`track-${e.id}.yaml`),n},l=e=>{const t={id:e.id};e.ownerEntityRef&&(t.ownerEntityRef=e.ownerEntityRef),e.name&&(t.name=e.name),e.description&&(t.description=e.description),e.pathResolver&&(t.pathResolver=e.pathResolver),e.rule&&(t.rule=e.rule),e.filter&&(t.filter=e.filter),e.exclude&&(t.exclude=e.exclude),e.warning&&(t.warning=e.warning),e.passedMessage&&(t.passedMessage=e.passedMessage),e.failedMessage&&(t.failedMessage=e.failedMessage),e.schedule&&(t.schedule=e.schedule),e.templateRef&&(t.templateRef=e.templateRef),e.supportChannel&&(t.supportChannel=e.supportChannel),e.type&&(t.type=e.type);const n=`# Exported YAML Check. You can rename the check id if needed.
4
4
  # Please ensure the ids match in the associated tracks.
5
- `+a(t,{noRefs:!0});return i(s,`check-${e.id}.yaml`),s};export{c as exportCheck,o as exportTrack};
5
+ `+r(t,{noRefs:!0});return s(n,`check-${e.id}.yaml`),n};export{l as exportCheck,d as exportTrack};
6
6
  //# sourceMappingURL=export.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.16.0",
4
+ "version": "0.16.1",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "homepage": "https://backstage.spotify.com",
7
7
  "main": "./dist/index.esm.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "typesVersions": {
39
39
  "*": {
40
- "index": [
40
+ "*": [
41
41
  "dist/index.d.ts"
42
42
  ],
43
43
  "alpha": [
@@ -48,7 +48,7 @@
48
48
  "scripts": {
49
49
  "start": "backstage-cli package start",
50
50
  "build": "backstage-cli package build --minify",
51
- "lint": "backstage-cli package lint",
51
+ "lint": "backstage-cli package lint --max-warnings 0",
52
52
  "test": "backstage-cli package test",
53
53
  "diff": "backstage-cli plugin:diff",
54
54
  "clean": "backstage-cli package clean",
@@ -61,24 +61,24 @@
61
61
  "@backstage/catalog-client": "^1.9.1",
62
62
  "@backstage/catalog-model": "^1.7.3",
63
63
  "@backstage/config": "^1.3.2",
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",
64
+ "@backstage/core-compat-api": "^0.4.0",
65
+ "@backstage/core-components": "^0.17.0",
66
+ "@backstage/core-plugin-api": "^1.10.5",
67
+ "@backstage/frontend-plugin-api": "^0.10.0",
68
+ "@backstage/plugin-catalog-react": "^1.16.0",
69
+ "@backstage/plugin-permission-react": "^0.4.32",
70
+ "@backstage/plugin-scaffolder-react": "^1.14.6",
71
71
  "@backstage/types": "^1.2.1",
72
72
  "@date-io/luxon": "^1.0.0",
73
- "@hookform/resolvers": "^3.3.2",
73
+ "@hookform/resolvers": "^4.0.0",
74
74
  "@material-ui/core": "^4.12.2",
75
75
  "@material-ui/icons": "^4.9.1",
76
76
  "@material-ui/lab": "4.0.0-alpha.61",
77
77
  "@material-ui/pickers": "3.3.11",
78
78
  "@mui/icons-material": "^5.11.16",
79
79
  "@mui/styles": "^5.14.7",
80
- "@spotify/backstage-plugin-core": "^0.8.6",
81
- "@spotify/backstage-plugin-soundcheck-common": "^0.16.0",
80
+ "@spotify/backstage-plugin-core": "^0.8.7",
81
+ "@spotify/backstage-plugin-soundcheck-common": "^0.16.1",
82
82
  "@tanstack/react-query": "^4.6.1",
83
83
  "@types/react-csv": "^1.1.6",
84
84
  "@uiw/react-md-editor": "3.20.10",
@@ -117,20 +117,20 @@
117
117
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
118
118
  },
119
119
  "devDependencies": {
120
- "@backstage/cli": "^0.30.0",
121
- "@backstage/core-app-api": "^1.15.5",
122
- "@backstage/dev-utils": "^1.1.7",
120
+ "@backstage/cli": "^0.31.0",
121
+ "@backstage/core-app-api": "^1.16.0",
122
+ "@backstage/dev-utils": "^1.1.8",
123
123
  "@backstage/e2e-test-utils": "^0.1.1",
124
- "@backstage/frontend-test-utils": "^0.2.6",
125
- "@backstage/test-utils": "^1.7.5",
124
+ "@backstage/frontend-test-utils": "^0.3.0",
125
+ "@backstage/test-utils": "^1.7.6",
126
126
  "@graphql-codegen/cli": "^5.0.0",
127
127
  "@graphql-codegen/typescript": "^4.0.0",
128
128
  "@graphql-codegen/typescript-graphql-request": "^6.0.0",
129
129
  "@graphql-codegen/typescript-operations": "^4.0.0",
130
130
  "@playwright/test": "^1.32.3",
131
- "@sp4b-dev/test-utils": "^0.0.12",
132
- "@spotify/backstage-plugin-core-common": "^0.6.6",
133
- "@spotify/backstage-plugin-soundcheck-node": "^0.9.2",
131
+ "@sp4b-dev/test-utils": "^0.0.13",
132
+ "@spotify/backstage-plugin-core-common": "^0.6.7",
133
+ "@spotify/backstage-plugin-soundcheck-node": "^0.9.5",
134
134
  "@testing-library/jest-dom": "^6.0.0",
135
135
  "@testing-library/react": "^14.0.0",
136
136
  "@testing-library/user-event": "^14.0.0",
@@ -1,2 +0,0 @@
1
- import{MarkdownContent as i}from"@backstage/core-components";import{useTheme as a,Divider as p,Typography as s}from"@material-ui/core";import{ExemptionDetailsSchema as c}from"@spotify/backstage-plugin-soundcheck-common";import{DateTime as l}from"luxon";import e from"react";import{EntityChip as d}from"../EntityChip/EntityChip.esm.js";const f=({exemption:m})=>{const o=a(),r=c.safeParse(m);if(!r.success)return null;const t=r.data,n=l.fromISO(t.timestamp).toFormat("MM/dd/yyyy");return e.createElement("div",null,e.createElement(i,{content:t.reason}),e.createElement(p,null),e.createElement("div",{style:{paddingTop:o.spacing(1)}},e.createElement(s,{variant:"caption"},e.createElement(d,{entityOrRef:t.submittedBy}),"submitted exemption on ",n,".")))};export{f as ExemptionDetails};
2
- //# sourceMappingURL=ExemptionDetails.esm.js.map
@@ -1,2 +0,0 @@
1
- import{mapToCheckerInput as e,mapCheckerToFormValues as p}from"../CheckForm/utils/checkFormUtils.esm.js";const m=o=>e(p(o),o);export{m as mapCheckToCheckInput};
2
- //# sourceMappingURL=checkDryRunUtils.esm.js.map