Commit Graph

738 Commits

Author SHA1 Message Date
Patrik Oldsberg 9c81af9676 frontend-plugin-api: make pluginId optional in FrontendFeature type
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-18 13:07:51 +01:00
github-actions[bot] e6df5d52ce Version Packages 2026-02-17 16:06:18 +00:00
Patrik Oldsberg cfb4177cd8 review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 13:42:26 +01:00
Patrik Oldsberg 40dfe4a00f frontend-plugin-api: drop match strategy from PageLayout tabs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 13:14:45 +01:00
Patrik Oldsberg 4308cb9fe5 frontend-plugin-api: fix SubPageBlueprint path docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 12:56:29 +01:00
Patrik Oldsberg b7ae1243e0 frontend-plugin-api: make header actions a element[]
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 12:35:20 +01:00
Patrik Oldsberg 1f4e283bcb frontend-plugin-api: do not default page icon and title to plugin values
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:56:21 +01:00
Patrik Oldsberg 92d77a98ff rename header action to plugin header action
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:37 +01:00
Patrik Oldsberg b91e17f622 snapshot fixes for tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:36 +01:00
Patrik Oldsberg 85261a3b3c frontend-plugin-api: use react element for header action
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:35 +01:00
Patrik Oldsberg cc3c035267 frontend-plugin-api: document that icons should be 24x24
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:32 +01:00
Patrik Oldsberg 4d2b2642c0 frontend-plugin-api: added noHeader param for page blueprint
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:28 +01:00
Patrik Oldsberg d2705be180 frontend-plugin-api: add support for sub page icons
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:28 +01:00
Patrik Oldsberg da2015bb3b prettier and API reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:27 +01:00
Patrik Oldsberg d6de6069aa frontend-plugin-api: switch to just PageHeaderAction
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:24 +01:00
Patrik Oldsberg 4738047ab7 frontend-plugin-api: intial page and plugin header actions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:24 +01:00
Patrik Oldsberg c8960d0ec3 frontend-plugin-api: add icon method to IconsApi that returns an element, deprecate getIcon
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:23 +01:00
Patrik Oldsberg abd0a5ad52 frontend-plugin-api: migration to IconElement + API reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:23 +01:00
Patrik Oldsberg c47f8402b9 frontend-plugin-api: IconElement
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:23 +01:00
Patrik Oldsberg 0ce750513d frontend-plugin-api: ability to override plugin title and icon
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:23 +01:00
Patrik Oldsberg e1f22f2d15 plugin icons and titles
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:22 +01:00
Patrik Oldsberg 4b996d05d3 frontend-plugin-api: initial support for subpages
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-17 11:55:22 +01:00
github-actions[bot] 7c41134684 Version Packages (next) 2026-02-10 16:14:59 +00:00
Patrik Oldsberg 15ed3f9ccb Add extension snapshot testing support to frontend-test-utils
Adds the snapshot() method to ExtensionTester, enabling snapshot
testing of extension tree structures. The snapshots use a tree-shaped
format that mirrors the extension hierarchy, with empty fields and
default values omitted for clarity.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-04 10:37:33 +01:00
Paul Schultz a7e0d506a2 feat: enable react router feature flags for v7
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2026-02-03 09:37:11 -06:00
github-actions[bot] 1ea737c1e2 Version Packages (next) 2026-02-03 14:24:29 +00:00
Patrik Oldsberg 3fac11b941 Merge pull request #32617 from backstage/rugvip/api-override-test-utils
frontend-test-utils: add API override support
2026-02-03 13:55:58 +01:00
Patrik Oldsberg 8100b2a56f Merge pull request #32626 from backstage/rugvip/remove-multi-attachto-types
frontend-plugin-api: remove type support for multiple attachment points
2026-02-03 12:17:06 +01:00
Patrik Oldsberg 421770753a refactor: migrate tests to use new API override utilities
Updated tests across the repository to use the new `apis` option with
`renderInTestApp` and `createExtensionTester` instead of wrapping
components with `TestApiProvider`. This simplifies tests and demonstrates
the use of the new API override functionality.

Updated test files:
- packages/frontend-plugin-api/src/components/ExtensionBoundary.test.tsx
- packages/frontend-plugin-api/src/blueprints/AppRootElementBlueprint.test.tsx
- plugins/catalog/src/alpha/pages.test.tsx

Total: 15 test cases migrated
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-03 00:11:48 +01:00
Patrik Oldsberg 12ef180a5f Merge pull request #30092 from Sarabadu/module-id-validation
validate plugin and module ids
2026-02-02 20:13:35 +01:00
Patrik Oldsberg 10ebed46b1 frontend-plugin-api: remove type support for multiple attachment points
This is a follow-up to the deprecation in #32521, completely removing
the Array variant from the ExtensionDefinitionAttachTo type.

The runtime still supports multiple attachment points for backward
compatibility, but new code will receive type errors.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-02 16:25:14 +01:00
github-actions[bot] d4b85dddee Version Packages (next) 2026-01-27 15:51:11 +00:00
Patrik Oldsberg 3b488a071e Merge pull request #32521 from backstage/rugvip/no-multi
frontend-plugin-api: deprecate support for multiple attachment points
2026-01-27 13:52:57 +01:00
Patrik Oldsberg 3d963ae749 Merge pull request #32527 from backstage/rugvip/pluginId
frontend-plugin-api: plugins now have pluginId
2026-01-27 13:10:59 +01:00
Patrik Oldsberg 7a6683faa2 frontend-app-api: backfill pluginId field
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-27 12:37:03 +01:00
Patrik Oldsberg 53b6549c85 frontend-plugin-api: plugins now have pluginId
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-26 19:50:39 +01:00
Patrik Oldsberg 9554c36e4c frontend-plugin-api: deprecate multiple attachment points and document api pattern
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-26 16:53:03 +01:00
Fredrik Adelöw 69d880e171 Bump to latest zod
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:52:02 +01:00
Juan Pablo Garcia Ripa bd7d15dd7e add some test for invalid ids
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
2026-01-26 00:04:49 +01:00
Juan Pablo Garcia Ripa bb9b471bd3 add plugin id format warning on frontend framework
Signed-off-by: Juan Pablo Garcia Ripa <sarabadu@gmail.com>
2026-01-25 16:55:44 +01:00
Patrik Oldsberg 409af724bf test and review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-23 12:06:21 +01:00
Patrik Oldsberg c38b74df5f frontend-plugin-api: complete deprecation of app blueprints
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-23 11:41:16 +01:00
Patrik Oldsberg 7edb810248 frontend-plugin-api: add new internal option for extension inputs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-23 11:41:15 +01:00
github-actions[bot] 2e902e7b43 Version Packages 2026-01-20 16:40:05 +00:00
Patrik Oldsberg a1be5e1770 review fixes for plugin wrapper blueprint
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-20 00:11:46 +01:00
Patrik Oldsberg 768b588203 frontend-plugin-api: remove redundant cast
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-19 14:43:15 +01:00
Patrik Oldsberg 85c8156984 frontend-plugin-api: simplify deprecation of AppRootWrapperBlueprint
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-19 14:14:21 +01:00
Patrik Oldsberg d194acb0e3 frontend-plugin-api: move new PluginWrapper to alpha
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 17:08:58 +01:00
Patrik Oldsberg 7b7e547d46 frontend-plugin-api: add ExtensionBoundary test for throwing PluginWrapper
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 17:08:58 +01:00
Patrik Oldsberg c4c2419daa review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 17:08:58 +01:00