Commit Graph

94 Commits

Author SHA1 Message Date
Patrik Oldsberg 0a1faaa076 docs/frontend-system: add utility API testing docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-07 00:06:58 +01:00
Andreas Berger d6ff861d1c rename showIcons config to showNavItemIcons
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2026-02-05 11:15:57 +01:00
Andreas Berger c3a5f972f6 Adjustments after review
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2026-02-05 11:15:56 +01:00
Andreas Berger d04264404e update doc
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2026-02-05 11:15:56 +01:00
Andreas Berger 491a06cbf1 Add the ability to show icons for the tabs on the entity page (new frontend)
Signed-off-by: Andreas Berger <andreas@berger-ecommerce.com>
2026-02-05 11:15:56 +01:00
Patrik Oldsberg ac9bead0dc Add createTestEntityPage utility for testing entity extensions
This adds a test utility that simplifies testing entity cards and content
extensions in the new frontend system. The utility creates a test page
that provides EntityProvider context and accepts entity extensions through
input redirects.

Also adds the `apis` option to `renderTestApp` for API overrides, and
includes tests for entity cards in catalog, org, and api-docs plugins.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-04 11:29:47 +01: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
Patrik Oldsberg 013ec22eab frontend-test-utils: add mountedRoutes option for renderTestApp + document
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-03 23:05:57 +01:00
Patrik Oldsberg 68d2c57d94 docs: update to prefer new apis option and use mockApis
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-03 00:11:48 +01:00
Patrik Oldsberg 22864b75a9 feat(frontend-test-utils): add API override support to test utilities
Added support for API overrides in `createExtensionTester` and
`renderInTestApp` to allow tests to override specific APIs without
requiring wrapper components. This provides app-level API overrides
that are available throughout the entire extension tree.

The `apis` option follows the same typing pattern as `TestApiProvider`
from `@backstage/test-utils` for consistency and type safety.

Example usage:

```typescript
const tester = createExtensionTester(MyExtension, {
  apis: [
    [errorApiRef, mockErrorApi],
    [analyticsApiRef, mockAnalyticsApi],
  ],
});

renderInTestApp(<MyComponent />, {
  apis: [
    [errorApiRef, mockErrorApi],
    [analyticsApiRef, mockAnalyticsApi],
  ],
});
```

This enables cleaner tests with app-level API overrides, eliminating
the need to wrap components with TestApiProvider in many cases.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-03 00:11:48 +01:00
Patrik Oldsberg 3799135578 Update docs/frontend-system/building-plugins/03-common-extension-blueprints.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-17 01:09:55 +01:00
Patrik Oldsberg 872cecb902 docs: updates for app and plugin wrapper blueprint changes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 17:08:55 +01:00
Patrik Oldsberg c4e03c31ac Merge pull request #32345 from backstage/rugvip/restrict
frontend-app-api: restrict the ability for plugins to override APIs
2026-01-16 16:48:58 +01:00
Patrik Oldsberg 9ccf84e219 frontend-plugin-api: move app blueprints to new app-react package
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 11:59:49 +01:00
Patrik Oldsberg 3bd2a1a5bf frontend-app-api: restrict the ability for plugins to override APIs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-16 01:18:58 +01:00
aramissennyeydd 3904a1ac1c chore: point to new api reference site
Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2025-12-18 10:27:56 -07:00
Patrik Oldsberg e5a1b33b0b docs/frontend-system: remove use of compatWrapper
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 13:04:53 +01:00
Patrik Oldsberg 83439b1539 core-plugin-api: add forwards compatibility for route refs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-18 10:26:20 +01:00
Patrik Oldsberg 8279f30933 Merge pull request #31154 from backstage/rugvip/title
frontend-plugin-api: add coreExtensionData.title
2025-10-07 16:31:51 +02:00
Patrik Oldsberg 8ed53eb466 frontend-plugin-api: add coreExtensionData.title
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-09-16 01:02:26 +02:00
Aditya Kumar 7bd14534b8 Made the chages to the software catalog Link
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2025-09-10 11:10:39 +05:30
Aditya Kumar 4071458967 Update 02-testing.md
Signed-off-by: Aditya Kumar <136452216+AdityaK60@users.noreply.github.com>
2025-09-08 15:34:48 +05:30
Aditya Kumar 676b704db2 Fixed a broken link
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2025-09-03 13:37:26 +05:30
Aditya Kumar ba9e598c64 Fixed a broken link
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2025-09-03 11:46:21 +05:30
Aditya Kumar 10b54cb671 Minor doc changes
Signed-off-by: Aditya Kumar <aditya.kumar60@infosys.com>
2025-09-03 10:08:23 +05:30
Camila Belo 7ecdb62400 docs: update nfs status
Signed-off-by: Camila Belo <camilaibs@gmail.com>
2025-08-21 14:48:31 +02:00
benjdlambert 536b76f405 chore: clenaup docs again
Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-19 14:15:06 +02:00
benjdlambert d274e0c90e feat: updating name for default swappable refs
Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-11 13:41:27 +02:00
benjdlambert e8333c8cd4 chore: updating doc
Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-11 12:03:05 +02:00
benjdlambert 0be714921d feat: added some docs around swappable
Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-11 12:03:05 +02:00
benjdlambert d996f05ae5 chore: adaptable -> swappable
Signed-off-by: benjdlambert <ben@blam.sh>

Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-07 15:58:03 +02:00
benjdlambert af1d30064c chore: fixing docs
Signed-off-by: benjdlambert <ben@blam.sh>
2025-08-07 15:58:03 +02:00
Patrik Oldsberg 147482b700 frontend-plugin-api: switch naming recommendation from define to defineParams
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-08-04 17:17:05 +02:00
Patrik Oldsberg e4ddf22854 frontend-plugin-api,catalog-react: remove default* prefix from blueprint params
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-08-04 16:46:55 +02:00
Patrik Oldsberg d6764eed83 docs/frontend-system: update existing usage of ApiBlueprint
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-07-29 10:31:58 +02:00
Andre Wanlin b5545900a4 Initial removal
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2025-06-06 13:14:54 -05:00
Patrik Oldsberg fb58f20613 frontend-plugin-api: rename plugin ID option to pluginId
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-27 12:53:08 +02:00
Patrik Oldsberg 69c099f75e Merge pull request #29514 from backstage/rugvip/polish
docs/frontend-system: polish plugin migration docs
2025-04-08 19:53:00 +02:00
Patrik Oldsberg 65dd7b53be docs/frontend-system: remove instruction to add React import
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 19:07:30 +02:00
Patrik Oldsberg d3f90ed3eb Update docs/frontend-system/building-plugins/05-migrating.md
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 18:39:43 +02:00
Patrik Oldsberg cbd9b98805 Update docs/frontend-system/building-plugins/05-migrating.md
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 18:39:29 +02:00
Patrik Oldsberg 08b11ad513 docs/frontend-system: highlight and fix new alpha entry point in migration docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 16:40:29 +02:00
Patrik Oldsberg cbd276ebf3 docs/frontend-system: polish common extension blueprint docs
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 16:21:53 +02:00
Patrik Oldsberg 005a88da96 docs/frontend-system: tweaks to the plugin migration guide
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-04-08 16:07:05 +02:00
Paul Schultz 2e26579e06 chore: update react imports
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-04-08 07:35:24 -05:00
secustor d784231fbc fixup microsite links
Signed-off-by: secustor <sebastian@poxhofer.at>
2024-09-23 14:41:42 +02:00
Łukasz Jernaś 92108d029b fix(docs): Fix imports for blueprints in sample plugin
Signed-off-by: Łukasz Jernaś <lukasz.jernas@allegro.com>
2024-09-02 11:01:02 +02:00
zeshanziya a37860d0e1 correct old plugin code reference
Signed-off-by: zeshanziya <zeshan.ziya@axelerant.com>
2024-08-23 11:29:14 +05:30
Patrik Oldsberg 56be644573 Apply suggestions from code review
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-08-16 11:46:53 +02:00
Patrik Oldsberg 1cdc117250 Update docs/frontend-system/building-plugins/02-testing.md
Co-authored-by: Ben Lambert <blam@spotify.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2024-08-16 10:01:37 +02:00