@backstage-community/plugin-sonarqube 0.20.0 → 0.21.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @backstage-community/plugin-sonarqube
2
2
 
3
+ ## 0.21.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5125502: Backstage version bump to v1.45.1
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [5125502]
12
+ - @backstage-community/plugin-sonarqube-react@0.13.0
13
+
14
+ ## 0.20.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 6836ad6: new frontend system docs added
19
+
3
20
  ## 0.20.0
4
21
 
5
22
  ### Minor Changes
package/README.md CHANGED
@@ -108,6 +108,52 @@ spec:
108
108
 
109
109
  `YOUR_INSTANCE_NAME/` is optional and will query the default instance if not provided.
110
110
 
111
+ ## New Frontend System
112
+
113
+ ### Setup
114
+
115
+ If you're using [feature discovery](https://backstage.io/docs/frontend-system/architecture/app/#feature-discovery),
116
+ the plugin will be automatically discovered and enabled.
117
+
118
+ Otherwise, you can manually enable the plugin by adding it to your app:
119
+
120
+ ```tsx
121
+ // packages/app/src/App.tsx
122
+ import sonarqubePlugin from '@backstage-community/plugin-sonarqube/alpha';
123
+
124
+ const app = createApp({
125
+ features: [
126
+ // ...
127
+ sonarqubePlugin,
128
+ ],
129
+ });
130
+ ```
131
+
132
+ ### Extensions
133
+
134
+ The following extensions are available in the plugin:
135
+
136
+ - `api:sonarqube/sonarqube-api`
137
+ - `entity:sonarqube/entity-sonarqube-card`
138
+ - `entity:sonarqube/sonarqube-related-entities-overview`
139
+
140
+ ### Legacy Frontend System
141
+
142
+ When using the legacy frontend system, customize through component props:
143
+
144
+ - **`EntitySonarQubeCard`** - Props: `variant`, `missingAnnotationReadMoreUrl`, `duplicationRatings`
145
+ - **`SonarQubeRelatedEntitiesOverview`** - Props: `relationType`, `entityKind`
146
+ - **`EntitySonarQubeContentPage`** - Props: `title`, `supportTitle`, `missingAnnotationReadMoreUrl`
147
+
148
+ Example:
149
+
150
+ ```tsx
151
+ <EntitySonarQubeCard
152
+ variant="gridItem"
153
+ missingAnnotationReadMoreUrl="https://your-docs-url.com"
154
+ />
155
+ ```
156
+
111
157
  ### Integrating with `EntityPage` (New Frontend System)
112
158
 
113
159
  Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
package/dist/alpha.d.ts CHANGED
@@ -9,7 +9,7 @@ import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
9
9
  * @alpha
10
10
  */
11
11
  declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{}, {}, {
12
- "api:sonarqube": _backstage_frontend_plugin_api.ExtensionDefinition<{
12
+ "api:sonarqube": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
13
13
  kind: "api";
14
14
  name: undefined;
15
15
  config: {};
@@ -20,7 +20,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
20
20
  [x: string]: unknown;
21
21
  }>(params: _backstage_core_plugin_api.ApiFactory<TApi, TImpl, TDeps>) => _backstage_frontend_plugin_api.ExtensionBlueprintParams<_backstage_core_plugin_api.AnyApiFactory>;
22
22
  }>;
23
- "entity-card:sonarqube/card": _backstage_frontend_plugin_api.ExtensionDefinition<{
23
+ "entity-card:sonarqube/card": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
24
24
  kind: "entity-card";
25
25
  name: "card";
26
26
  config: {
@@ -45,7 +45,7 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
45
45
  type?: _backstage_plugin_catalog_react_alpha.EntityCardType | undefined;
46
46
  };
47
47
  }>;
48
- "entity-content:sonarqube/entity": _backstage_frontend_plugin_api.ExtensionDefinition<{
48
+ "entity-content:sonarqube/entity": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
49
49
  kind: "entity-content";
50
50
  name: "entity";
51
51
  config: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-sonarqube",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "",
5
5
  "backstage": {
6
6
  "role": "frontend-plugin",
@@ -71,14 +71,14 @@
71
71
  "test": "backstage-cli package test"
72
72
  },
73
73
  "dependencies": {
74
- "@backstage-community/plugin-sonarqube-react": "^0.12.0",
75
- "@backstage/catalog-model": "^1.7.5",
76
- "@backstage/core-compat-api": "^0.5.3",
77
- "@backstage/core-components": "^0.18.2",
78
- "@backstage/core-plugin-api": "^1.11.1",
79
- "@backstage/frontend-app-api": "^0.13.1",
80
- "@backstage/frontend-plugin-api": "^0.12.1",
81
- "@backstage/plugin-catalog-react": "^1.21.2",
74
+ "@backstage-community/plugin-sonarqube-react": "^0.13.0",
75
+ "@backstage/catalog-model": "^1.7.6",
76
+ "@backstage/core-compat-api": "^0.5.4",
77
+ "@backstage/core-components": "^0.18.3",
78
+ "@backstage/core-plugin-api": "^1.12.0",
79
+ "@backstage/frontend-app-api": "^0.13.2",
80
+ "@backstage/frontend-plugin-api": "^0.13.1",
81
+ "@backstage/plugin-catalog-react": "^1.21.3",
82
82
  "@material-ui/core": "^4.12.2",
83
83
  "@material-ui/icons": "^4.9.1",
84
84
  "@material-ui/styles": "^4.10.0",
@@ -89,11 +89,11 @@
89
89
  "react-use": "^17.2.4"
90
90
  },
91
91
  "devDependencies": {
92
- "@backstage/cli": "^0.34.4",
93
- "@backstage/core-app-api": "^1.19.1",
94
- "@backstage/dev-utils": "^1.1.15",
95
- "@backstage/frontend-test-utils": "^0.4.0",
96
- "@backstage/test-utils": "^1.7.12",
92
+ "@backstage/cli": "^0.34.5",
93
+ "@backstage/core-app-api": "^1.19.2",
94
+ "@backstage/dev-utils": "^1.1.17",
95
+ "@backstage/frontend-test-utils": "^0.4.1",
96
+ "@backstage/test-utils": "^1.7.13",
97
97
  "@testing-library/dom": "^10.0.0",
98
98
  "@testing-library/jest-dom": "^6.0.0",
99
99
  "@testing-library/react": "^15.0.0",