@backstage/plugin-devtools 0.0.0-nightly-20260315031533 → 0.0.0-nightly-20260317031259

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,20 +1,22 @@
1
1
  # @backstage/plugin-devtools
2
2
 
3
- ## 0.0.0-nightly-20260315031533
3
+ ## 0.0.0-nightly-20260317031259
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - afabb37: Fixed URL encoding of task IDs for the trigger feature (tasks that contained a "/" in their ID were not triggered)
8
8
  - f80195e: Added `cancelScheduledTask` to the DevTools API and a cancel button to the scheduled tasks UI.
9
- - Updated dependencies
10
- - @backstage/core-compat-api@0.0.0-nightly-20260315031533
11
- - @backstage/frontend-plugin-api@0.0.0-nightly-20260315031533
12
- - @backstage/plugin-devtools-common@0.0.0-nightly-20260315031533
13
- - @backstage/core-plugin-api@0.0.0-nightly-20260315031533
14
- - @backstage/core-components@0.0.0-nightly-20260315031533
9
+ - 538c985: Updated installation documentation to use feature discovery as the default.
10
+ - 3f36ce1: Updated alpha plugin icons to follow the new frontend icon sizing rules when rendered in plugin and navigation surfaces.
11
+ - Updated dependencies
12
+ - @backstage/core-compat-api@0.0.0-nightly-20260317031259
13
+ - @backstage/core-components@0.0.0-nightly-20260317031259
14
+ - @backstage/frontend-plugin-api@0.0.0-nightly-20260317031259
15
+ - @backstage/plugin-devtools-common@0.0.0-nightly-20260317031259
16
+ - @backstage/core-plugin-api@0.0.0-nightly-20260317031259
17
+ - @backstage/plugin-devtools-react@0.0.0-nightly-20260317031259
15
18
  - @backstage/errors@1.2.7
16
- - @backstage/plugin-devtools-react@0.0.0-nightly-20260315031533
17
- - @backstage/plugin-permission-react@0.0.0-nightly-20260315031533
19
+ - @backstage/plugin-permission-react@0.0.0-nightly-20260317031259
18
20
 
19
21
  ## 0.1.37-next.2
20
22
 
package/README.md CHANGED
@@ -66,42 +66,14 @@ You need to setup the [DevTools backend plugin](../devtools-backend/README.md) b
66
66
 
67
67
  ### Frontend
68
68
 
69
- To setup the DevTools frontend you'll need to do the following steps:
69
+ Install the `@backstage/plugin-devtools` package in your frontend app:
70
70
 
71
- 1. First we need to add the `@backstage/plugin-devtools` package to your frontend app:
72
-
73
- ```sh
74
- # From your Backstage root directory
75
- yarn --cwd packages/app add @backstage/plugin-devtools
76
- ```
77
-
78
- 2. Now open the `packages/app/src/App.tsx` file
79
- 3. Then after all the import statements add the following line:
80
-
81
- ```ts
82
- import { DevToolsPage } from '@backstage/plugin-devtools';
83
- ```
84
-
85
- 4. In this same file just before the closing `</ FlatRoutes>`, this will be near the bottom of the file, add this line:
86
-
87
- ```ts
88
- <Route path="/devtools" element={<DevToolsPage />} />
89
- ```
90
-
91
- 5. Next open the `packages/app/src/components/Root/Root.tsx` file
92
- 6. We want to add this icon import after all the existing import statements:
93
-
94
- ```ts
95
- import BuildIcon from '@material-ui/icons/Build';
96
- ```
97
-
98
- 7. Then add this line just after the `<SidebarSettings />` line:
99
-
100
- ```ts
101
- <SidebarItem icon={BuildIcon} to="devtools" text="DevTools" />
102
- ```
71
+ ```sh
72
+ # From your Backstage root directory
73
+ yarn --cwd packages/app add @backstage/plugin-devtools
74
+ ```
103
75
 
104
- 8. Now run `yarn start` from the root of your project and you should see the DevTools option show up just below Settings in your sidebar and clicking on it will get you to the [Info tab](#info)
76
+ Once installed, the plugin is automatically available in your app through the default feature discovery. For more details and alternative installation methods, see [installing plugins](https://backstage.io/docs/frontend-system/building-apps/installing-plugins).
105
77
 
106
78
  ## Customizing
107
79
 
@@ -166,8 +138,6 @@ You can also add tabs to show content from other plugins that fit well with the
166
138
 
167
139
  #### Catalog Unprocessed Entities Tab
168
140
 
169
- ##### New Frontend System
170
-
171
141
  Create an extension and/or load a 3rd party extension to add additional tabs.
172
142
 
173
143
  ```shell
@@ -197,7 +167,7 @@ const appFeature = createFrontendModule({
197
167
  });
198
168
  ```
199
169
 
200
- ##### Old System
170
+ ##### Old Frontend System
201
171
 
202
172
  Here's how to add the Catalog Unprocessed Entities tab:
203
173
 
@@ -230,6 +200,38 @@ Here's how to add the Catalog Unprocessed Entities tab:
230
200
 
231
201
  4. Now run `yarn start` and navigate to the DevTools you'll see a new tab for Unprocessed Entities
232
202
 
203
+ ## Old Frontend System
204
+
205
+ If your Backstage app uses the old frontend system, you need to manually wire the plugin into your app as outlined in this section. If you are on the new frontend system, you can skip this.
206
+
207
+ 1. Open the `packages/app/src/App.tsx` file
208
+ 2. Then after all the import statements add the following line:
209
+
210
+ ```ts
211
+ import { DevToolsPage } from '@backstage/plugin-devtools';
212
+ ```
213
+
214
+ 3. In this same file just before the closing `</FlatRoutes>`, this will be near the bottom of the file, add this line:
215
+
216
+ ```ts
217
+ <Route path="/devtools" element={<DevToolsPage />} />
218
+ ```
219
+
220
+ 4. Next open the `packages/app/src/components/Root/Root.tsx` file
221
+ 5. We want to add this icon import after all the existing import statements:
222
+
223
+ ```ts
224
+ import BuildIcon from '@material-ui/icons/Build';
225
+ ```
226
+
227
+ 6. Then add this line just after the `<SidebarSettings />` line:
228
+
229
+ ```ts
230
+ <SidebarItem icon={BuildIcon} to="devtools" text="DevTools" />
231
+ ```
232
+
233
+ 7. Now run `yarn start` from the root of your project and you should see the DevTools option show up just below Settings in your sidebar and clicking on it will get you to the [Info tab](#info)
234
+
233
235
  ## Permissions
234
236
 
235
237
  The DevTools plugin supports the [permissions framework](https://backstage.io/docs/permissions/overview), the following sections outline how you can use them with the assumption that you have the permissions framework setup and working.
@@ -54,7 +54,7 @@ const devToolsNavItem = NavItemBlueprint.make({
54
54
  var plugin = createFrontendPlugin({
55
55
  pluginId: "devtools",
56
56
  title: "DevTools",
57
- icon: /* @__PURE__ */ jsx(BuildIcon, {}),
57
+ icon: /* @__PURE__ */ jsx(BuildIcon, { fontSize: "inherit" }),
58
58
  info: { packageJson: () => import('../package.json.esm.js') },
59
59
  routes: {
60
60
  root: rootRouteRef
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n createExtensionInput,\n coreExtensionData,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../api';\nimport BuildIcon from '@material-ui/icons/Build';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const devToolsApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: devToolsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DevToolsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const devToolsPage = PageBlueprint.makeWithOverrides({\n inputs: {\n contents: createExtensionInput(\n [\n coreExtensionData.reactElement,\n coreExtensionData.routePath,\n coreExtensionData.routeRef.optional(),\n coreExtensionData.title,\n ],\n {\n optional: true,\n },\n ),\n },\n factory(originalFactory, { inputs }) {\n return originalFactory({\n path: '/devtools',\n routeRef: rootRouteRef,\n loader: () => {\n const contents = inputs.contents.map(content => ({\n path: content.get(coreExtensionData.routePath),\n title: content.get(coreExtensionData.title),\n children: content.get(coreExtensionData.reactElement),\n }));\n return import('../components/DevToolsPage').then(m => (\n <m.DevToolsPage contents={contents} />\n ));\n },\n });\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: rootRouteRef,\n icon: BuildIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'devtools',\n title: 'DevTools',\n icon: <BuildIcon />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [devToolsApi, devToolsPage, devToolsNavItem],\n});\n"],"names":[],"mappings":";;;;;;;AAgCO,MAAM,WAAA,GAAc,aAAa,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,cAAA;AAAA,IACL,IAAA,EAAM;AAAA,MACJ,YAAA,EAAc,eAAA;AAAA,MACd,QAAA,EAAU;AAAA,KACZ;AAAA,IACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,QAAA,EAAS,KACjC,IAAI,cAAA,CAAe,EAAE,YAAA,EAAc,QAAA,EAAU;AAAA,GAChD;AACL,CAAC;AAGM,MAAM,YAAA,GAAe,cAAc,iBAAA,CAAkB;AAAA,EAC1D,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU,oBAAA;AAAA,MACR;AAAA,QACE,iBAAA,CAAkB,YAAA;AAAA,QAClB,iBAAA,CAAkB,SAAA;AAAA,QAClB,iBAAA,CAAkB,SAAS,QAAA,EAAS;AAAA,QACpC,iBAAA,CAAkB;AAAA,OACpB;AAAA,MACA;AAAA,QACE,QAAA,EAAU;AAAA;AACZ;AACF,GACF;AAAA,EACA,OAAA,CAAQ,eAAA,EAAiB,EAAE,MAAA,EAAO,EAAG;AACnC,IAAA,OAAO,eAAA,CAAgB;AAAA,MACrB,IAAA,EAAM,WAAA;AAAA,MACN,QAAA,EAAU,YAAA;AAAA,MACV,QAAQ,MAAM;AACZ,QAAA,MAAM,QAAA,GAAW,MAAA,CAAO,QAAA,CAAS,GAAA,CAAI,CAAA,OAAA,MAAY;AAAA,UAC/C,IAAA,EAAM,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,SAAS,CAAA;AAAA,UAC7C,KAAA,EAAO,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,KAAK,CAAA;AAAA,UAC1C,QAAA,EAAU,OAAA,CAAQ,GAAA,CAAI,iBAAA,CAAkB,YAAY;AAAA,SACtD,CAAE,CAAA;AACF,QAAA,OAAO,OAAO,yCAA4B,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,yBAC9C,CAAA,CAAE,YAAA,EAAF,EAAe,QAAA,EAAoB,CACrC,CAAA;AAAA,MACH;AAAA,KACD,CAAA;AAAA,EACH;AACF,CAAC;AAGM,MAAM,eAAA,GAAkB,iBAAiB,IAAA,CAAK;AAAA,EACnD,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,UAAA;AAAA,IACP,QAAA,EAAU,YAAA;AAAA,IACV,IAAA,EAAM;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,UAAA;AAAA,EACV,KAAA,EAAO,UAAA;AAAA,EACP,IAAA,sBAAO,SAAA,EAAA,EAAU,CAAA;AAAA,EACjB,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,UAAA,EAAY,CAAC,WAAA,EAAa,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
1
+ {"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n createExtensionInput,\n coreExtensionData,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../api';\nimport BuildIcon from '@material-ui/icons/Build';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const devToolsApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: devToolsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DevToolsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const devToolsPage = PageBlueprint.makeWithOverrides({\n inputs: {\n contents: createExtensionInput(\n [\n coreExtensionData.reactElement,\n coreExtensionData.routePath,\n coreExtensionData.routeRef.optional(),\n coreExtensionData.title,\n ],\n {\n optional: true,\n },\n ),\n },\n factory(originalFactory, { inputs }) {\n return originalFactory({\n path: '/devtools',\n routeRef: rootRouteRef,\n loader: () => {\n const contents = inputs.contents.map(content => ({\n path: content.get(coreExtensionData.routePath),\n title: content.get(coreExtensionData.title),\n children: content.get(coreExtensionData.reactElement),\n }));\n return import('../components/DevToolsPage').then(m => (\n <m.DevToolsPage contents={contents} />\n ));\n },\n });\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: rootRouteRef,\n icon: BuildIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'devtools',\n title: 'DevTools',\n icon: <BuildIcon fontSize=\"inherit\" />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [devToolsApi, devToolsPage, devToolsNavItem],\n});\n"],"names":[],"mappings":";;;;;;;AAgCO,MAAM,WAAA,GAAc,aAAa,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,GAAA,EAAK,cAAA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M,MAAM,eAAA,GAAkB,iBAAiB,IAAA,CAAK;AAAA,EACnD,MAAA,EAAQ;AAAA,IACN,KAAA,EAAO,UAAA;AAAA,IACP,QAAA,EAAU,YAAA;AAAA,IACV,IAAA,EAAM;AAAA;AAEV,CAAC;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,UAAA;AAAA,EACV,KAAA,EAAO,UAAA;AAAA,EACP,IAAA,kBAAM,GAAA,CAAC,SAAA,EAAA,EAAU,QAAA,EAAS,SAAA,EAAU,CAAA;AAAA,EACpC,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,UAAA,EAAY,CAAC,WAAA,EAAa,YAAA,EAAc,eAAe;AACzD,CAAC,CAAA;;;;"}
@@ -1,5 +1,5 @@
1
1
  var name = "@backstage/plugin-devtools";
2
- var version = "0.0.0-nightly-20260315031533";
2
+ var version = "0.0.0-nightly-20260317031259";
3
3
  var backstage = {
4
4
  role: "frontend-plugin",
5
5
  pluginId: "devtools",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-devtools",
3
- "version": "0.0.0-nightly-20260315031533",
3
+ "version": "0.0.0-nightly-20260317031259",
4
4
  "backstage": {
5
5
  "role": "frontend-plugin",
6
6
  "pluginId": "devtools",
@@ -65,14 +65,14 @@
65
65
  "test": "backstage-cli package test"
66
66
  },
67
67
  "dependencies": {
68
- "@backstage/core-compat-api": "0.0.0-nightly-20260315031533",
69
- "@backstage/core-components": "0.0.0-nightly-20260315031533",
70
- "@backstage/core-plugin-api": "0.0.0-nightly-20260315031533",
68
+ "@backstage/core-compat-api": "0.0.0-nightly-20260317031259",
69
+ "@backstage/core-components": "0.0.0-nightly-20260317031259",
70
+ "@backstage/core-plugin-api": "0.0.0-nightly-20260317031259",
71
71
  "@backstage/errors": "1.2.7",
72
- "@backstage/frontend-plugin-api": "0.0.0-nightly-20260315031533",
73
- "@backstage/plugin-devtools-common": "0.0.0-nightly-20260315031533",
74
- "@backstage/plugin-devtools-react": "0.0.0-nightly-20260315031533",
75
- "@backstage/plugin-permission-react": "0.0.0-nightly-20260315031533",
72
+ "@backstage/frontend-plugin-api": "0.0.0-nightly-20260317031259",
73
+ "@backstage/plugin-devtools-common": "0.0.0-nightly-20260317031259",
74
+ "@backstage/plugin-devtools-react": "0.0.0-nightly-20260317031259",
75
+ "@backstage/plugin-permission-react": "0.0.0-nightly-20260317031259",
76
76
  "@material-ui/core": "^4.9.13",
77
77
  "@material-ui/icons": "^4.9.1",
78
78
  "@material-ui/lab": "^4.0.0-alpha.57",
@@ -81,8 +81,8 @@
81
81
  "react-use": "^17.2.4"
82
82
  },
83
83
  "devDependencies": {
84
- "@backstage/cli": "0.0.0-nightly-20260315031533",
85
- "@backstage/dev-utils": "0.0.0-nightly-20260315031533",
84
+ "@backstage/cli": "0.0.0-nightly-20260317031259",
85
+ "@backstage/dev-utils": "0.0.0-nightly-20260317031259",
86
86
  "@testing-library/jest-dom": "^6.0.0",
87
87
  "@types/lodash": "^4.14.151",
88
88
  "@types/react": "^18.0.0",