Commit Graph

86 Commits

Author SHA1 Message Date
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
Heikki Hellgren 10b1452d92 feat: allow using languages in createDevApp
This allows plugin developers to verify their translations on the fly
in dev app.

Relates also to #26127

Closes #26161

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-09-02 08:12:36 +03:00
Heikki Hellgren f28242025e feat: support login for the development app
this fixes the local development issue with new backend system where the
user is not logged in thus resulting 401 errors from all api endpoints.

adds possibility to also add other login providers for testing plugins
independently.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-11 08:21:54 +03:00
Heikki Hellgren 282f62f490 chore: use code snippet for signal debugging
Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-10 20:39:14 +03:00
Heikki Hellgren 9a41a7bfa8 chore: migrate to new backend in local development
additionally allow defining custom sidebar item for dev app page.

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
2024-04-10 20:36:44 +03:00
Juan Pablo Garcia Ripa 995f66b79d add mui lint rule
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
2024-04-08 22:44:31 +02:00
Tomasz Szuba e8f026a300 Use esm exports from react-use library
Signed-off-by: Tomasz Szuba <tszuba@box.com>
2024-03-19 19:53:04 +00:00
Fredrik Adelöw 1d7c989db2 remove even more BackstageTheme usages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2023-11-20 15:52:05 +01:00
Patrik Oldsberg 67cc85bb14 dev-utils,techdocs: use dynamic import instead of require for conditional react-dom
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-19 10:53:42 +02:00
Patrik Oldsberg 38cda52746 dev-utils,techdocs: add conditional support for React 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-18 09:37:03 +02:00
Patrik Oldsberg 9468a67b92 dev-utils,techdocs: add conditional support for React 18
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2023-10-13 16:06:21 +02:00
Andre Wanlin 254ad469f0 Removed deprecated items in DevAppBuilder
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>
2023-08-11 14:09:00 -05:00
Oleg S 74b216ee4e set PropsWithChildren as explicit type on components
Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
2023-05-24 12:47:27 +02:00
Patrik Oldsberg 2e701b3796 refactor react-router -> react-router-dom
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-12-10 15:17:53 +01:00
Patrik Oldsberg e0d2ad88c4 Merge pull request #13927 from sennyeya/NewCliOptionsPublicPathAndBackendUrl
Update AppManager to Allow for Multiple Stages with a Single Build
2022-12-06 14:05:17 +01:00
Aramis Sennyey 3ead02bc49 Revert test case changes.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
2022-11-30 11:56:07 -05:00
aaronbraundmeier@gmail.com 8015ff1258 inclusive terms
Signed-off-by: aaronbraundmeier@gmail.com <aaronbraundmeier@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2022-11-30 12:15:00 +01:00
Aramis Sennyey 43ad38e75d Fix test cases.
Signed-off-by: Aramis Sennyey <sennyeya@amazon.com>
2022-11-29 12:57:43 -05:00
Patrik Oldsberg 329ed2b9c7 dev-utils: fix route discovery with react-router stable
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-09-10 14:06:24 +02:00
blam 021980ef88 chore: remove react-hot-loader from devutils
Signed-off-by: blam <ben@blam.sh>
2022-08-23 10:53:05 +02:00
Johan Haals b1190bf676 await userEvent
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2022-04-05 10:19:54 +02:00
Dimitris Apostolou aedd4daa66 Fix typos
Signed-off-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
2022-03-13 14:12:05 +02:00
Patrik Oldsberg 4ce51ab0f1 use precise imports of react-use
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-12-30 12:53:16 +01:00
Colton Padden cb278fa3ad make Provider required in AppTheme
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-12-20 13:16:52 -05:00
Colton Padden 5d6684f0df release-2021-11-18 packages/core-plugin-api/src/apis/definitions/AppThemeApi.ts:45
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-12-17 15:04:35 -05:00
Colton Padden 46b84f79f8 release-2021-06-01 packages/core-plugin-api/src/routing/RouteRef.ts:118,120,122
Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-12-17 15:04:34 -05:00
Fredrik Adelöw dcd1a0c3f4 Do not unpack arguments directly on exported items
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-12-07 19:42:10 +01:00
Patrik Oldsberg 29ef695410 packages,plugins: migrate to using TestApiProvider and Registry
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-18 11:28:46 +01:00
Oliver Sand 58a4e67ded Add theme switcher to sidebar of dev app
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-11-12 11:16:19 +01:00
Patrik Oldsberg 0fb57d28e3 dev-utils,test-utils,app: update to use app-defaults
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:26:13 +01:00
Patrik Oldsberg 44976c138c core-app-api, create-app, dev-utils: updates to use withDefaults
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:24:35 +01:00
Patrik Oldsberg 014cbf8cb9 core-app-api: deprecate dependency on core-components
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-11 17:24:33 +01:00
Patrik Oldsberg 8142a8ecb2 packages,plugins: add package documentation
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-14 18:47:53 +02:00
Patrik Oldsberg f2e6ecf22b dev-utils: API report warnings cleanup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-09-05 23:34:02 +02:00
Patrik Oldsberg be2cd47406 dev-utils: fix busy refresh loop
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-08-19 00:25:58 +02:00
Fredrik Adelöw 923491eece run prettier formatting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-08-09 11:54:38 +02:00
Fidel Coria cedb602a42 custom theme on devApp for single plugin
Signed-off-by: Fidel Coria <fidel.coria@aa.com>
2021-07-19 17:39:52 -05:00
Patrik Oldsberg 9258c54f87 Merge branch 'master' into rugvip/mod 2021-06-22 10:07:18 +02:00
Patrik Oldsberg fa8c234b24 Merge pull request #6124 from backstage/rugvip/noroutes
plugins,dev-utils: remove usage of deprecated route registrations
2021-06-21 23:39:33 +02:00
Patrik Oldsberg d453c05dc3 apply core-imports codemod to all packages and plugins
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 15:33:08 +02:00
Patrik Oldsberg 76db86c457 dev-utils: remove support for registered routes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-19 14:05:00 +02:00
Fredrik Adelöw a88073c29a Update copyright headers
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-18 20:26:42 +02:00
Patrik Oldsberg baf13afd3f dev-utils: fix for scm integrations API factory not being provided
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-05-17 13:20:57 +02:00
Fredrik Adelöw 3385b374bd introduce @backstage/integration-react and its scmIntegrationsApiRef
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-16 18:37:59 +01:00
Andrew Thauer 28adfd3c4c fix: test failures & warnings 2021-02-24 10:12:49 -05:00
Fredrik Adelöw 5aa4ceea6e Make sure to provide dummy routes for all external routes of plugins given to DevApp 2021-02-22 21:52:31 +01:00
Patrik Oldsberg b37501a3d1 catalog: finalize port to new composability API + tweak dev-utils 2021-02-02 15:07:33 +01:00
Patrik Oldsberg 20ca5f179f Update packages/dev-utils/src/devApp/render.tsx
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
2021-02-02 11:34:48 +01:00
Patrik Oldsberg 6c07b5c6e5 dev-utils: add path option to addPage, switch to render element in route, and skip sidebar item title is not set 2021-02-01 23:46:51 +01:00
Oliver Sand c7b89e1557 Move EntityProvider to plugin-catalog-react 2021-01-29 10:54:10 +01:00