Commit Graph

26602 Commits

Author SHA1 Message Date
Patrik Oldsberg 1cedbc7d1b backend-test-utils: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-10 15:23:00 +01:00
Patrik Oldsberg 42abfb1b85 Add createServiceMock to backend-test-utils
Exports the internal simpleMock utility as createServiceMock, allowing
plugin authors to define mock creators for their own service refs
following the same pattern as the built-in mockServices mocks.

Also updates catalog-node to use createServiceMock instead of its own
copy, and simplifies the gateway-backend test to use the mock's
.factory property directly.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-10 15:22:59 +01:00
Patrik Oldsberg 80883b498d Merge pull request #32734 from backstage/rugvip/test-utils
frontend-test-utils: more mockApis and utilities
2026-02-10 13:21:16 +01:00
Fredrik Adelöw e41c289ba5 unbreak gitlab test
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-10 11:26:44 +01:00
Fredrik Adelöw 7e4f34fd72 Merge pull request #32434 from Jellyfrog/feat/gitlab-group-description
feat(gitlab): Allow setting optional description on group creation
2026-02-10 11:08:16 +01:00
Fredrik Adelöw 4d51f3bd20 Merge pull request #32523 from Jellyfrog/fix/gitlab-ensure-group-search
fix(scaffolder-gitlab): Use Groups.show instead of search to check path existence
2026-02-10 11:04:33 +01:00
Patrik Oldsberg 67959bf42a catalog-react: move frontend-test-utils to an option peer dep
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-09 22:11:52 +01:00
ElaineDeMattosSilvaB 004ad4389e fix: prevent scope from being mixed up again
Signed-off-by: ElaineDeMattosSilvaB <elaine.de-mattos-silva-bezerra@deutschebahn.com>
2026-02-09 21:52:34 +01:00
ElaineDeMattosSilvaB 5559d3f4d4 fix: code search scope from blob to blobs
Signed-off-by: ElaineDeMattosSilvaB <elaine.de-mattos-silva-bezerra@deutschebahn.com>
2026-02-09 21:50:50 +01:00
Patrik Oldsberg 3843732b73 scaffolder-react: update useTemplateSchema test to use new test utils
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-09 19:53:32 +01:00
Patrik Oldsberg e6c336bc76 catalog-react: switch to createApiMock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-09 19:32:10 +01:00
Patrik Oldsberg c1b94c43a4 Merge pull request #31225 from kunickiaj/feat/home-frontend-blueprints
feat(home): add new frontend system support
2026-02-09 13:29:05 +01:00
Patrik Oldsberg 8148621999 Move @backstage/backend-defaults to devDependencies in backend plugins
Move @backstage/backend-defaults from dependencies to devDependencies
in all backend plugins that had it as a production dependency. None of
these plugins use it in their production source code - it's only needed
for dev servers (dev/index.ts) and test files.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 11:36:39 +01:00
Adam Kunicki bfa2bc55df fix(home): expose alpha widget metadata to custom grid
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 22:10:36 -08:00
Adam Kunicki d7b8ff09f5 feat(home): register default alpha homepage widgets
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 21:51:50 -08:00
Adam Kunicki 56c58877b1 refactor(home): align layout input and widget data wiring
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 20:39:10 -08:00
Adam Kunicki e4544fb773 refactor(home): rename HomepageWidgetBlueprint to HomePageWidgetBlueprint
Align naming convention with HomePageLayoutBlueprint and the catalog
plugin's consistent entity- prefix pattern. Also update the kind string
from 'home-widget' to 'home-page-widget' to match 'home-page-layout'.
Added interface-level JSDoc to HomePageWidgetBlueprintParams.
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:24 -08:00
Adam Kunicki 1ba0ee341a docs(home): update docs and app-next example for HomePageLayoutBlueprint
- Update README.md to reference HomePageLayoutBlueprint instead of
  deleted HomepageBlueprint, with a complete working example
- Update docs/getting-started/homepage.md with corrected blueprint name
- Fix app-next example to properly accept and render widgets via the
  HomePageLayoutProps interface instead of ignoring them
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:24 -08:00
Adam Kunicki 03fc07adb7 refactor(home): restructure extension architecture to match catalog pattern
Reorganize the home plugin's new frontend system extensions to follow
the same pattern as the catalog plugin's EntityContentLayoutBlueprint.
Key changes:
- Widgets now attach directly to page:home instead of through an
  intermediate HomepageBlueprint extension
- Add HomePageLayoutBlueprint in home-react for custom layout creation,
  with a built-in default layout as fallback
- Remove compatWrapper from HomepageWidgetBlueprint (consumer
  responsibility, reduced need with NFS support in old system)
- Remove HomepageCompositionRoot usage (old system artifact)
- Delete HomepageBlueprint (replaced by HomePageLayoutBlueprint)
- Update app-next example and dev harness to use new pattern
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:24 -08:00
Adam Kunicki 06e0a2cb22 fix lint issues/ci
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:24 -08:00
Adam Kunicki e7e9fc6386 fix(home): restore CI by fixing loader and exposing widget dataRef
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:24 -08:00
Adam Kunicki d79fb2f65d chore(home): update api reports
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:23 -08:00
Adam Kunicki aeae90c969 refactor(home): bundle widget data into single extension ref
Following FormFieldBlueprint pattern, bundle component and metadata
into a single comprehensive homePageWidgetDataRef instead of outputting
them separately. This addresses review feedback about outputting data
that nothing consumes.
- Create homePageWidgetDataRef in plugin-home-react
- Update HomepageWidgetBlueprint to output bundled data
- Update HomepageBlueprint to consume bundled data and extract component
- Remove unused widgetMetadataRef export
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:23 -08:00
Adam Kunicki 66f29d2921 Update to use coreExtensionsData.title
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:23 -08:00
Adam Kunicki 90956a61bd feat(home): add new frontend system support
Migrates home plugin to support the new frontend system architecture by
introducing extension blueprints for composable homepage functionality.
Key changes:
- Add CustomHomepageWidgetBlueprint for creating installable homepage widgets
- Add CustomHomepageBlueprint for composing pages from widget extensions
- Introduce titleExtensionDataRef for NFS title handling
This attempts to bring  the home plugin up to par with other core plugins that have migrated
to the new frontend system
Signed-off-by: Adam Kunicki <kunickiaj@gmail.com>
2026-02-08 19:40:23 -08:00
Patrik Oldsberg 53aaaa2b32 Merge pull request #32703 from backstage/renovate/major-testing-library-monorepo
chore(deps): update dependency @testing-library/react to v16
2026-02-09 01:21:49 +01:00
Patrik Oldsberg beac2bbf95 Merge pull request #31565 from Eswaraiahsapram/add-missing-i18n-to-catalog-plugin
fix: add missing i18n support for catalog plugin
2026-02-08 10:53:03 +01:00
Patrik Oldsberg b9110a5724 frontend-test-utils: api cleanup, remove TestApiRegistry
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-06 22:48:22 +01:00
Charles de Dreuille 53aaa2bf53 Update convertMuiToBuiTheme.ts
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2026-02-06 14:23:30 +00:00
Charles de Dreuille 599f6687a2 Migrate all components to new tokens
Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
2026-02-06 13:48:08 +00:00
Patrik Oldsberg 3ccea26849 Merge pull request #32694 from UsainBloot/auth/auth0-invitation-param
[Auth] Auth0 Strategy - Support organization invite parameters
2026-02-06 10:19:22 +01:00
Jack Palmer 035a808d5e chore: address pr comments
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2026-02-06 09:02:24 +00:00
Eswaraiahsapram ab32da1e9c fix api report
Signed-off-by: Eswaraiahsapram <esapram@redhat.com>
2026-02-06 08:08:54 +05:30
Eswaraiahsapram 4c6b18a28e addressed review comments
Signed-off-by: Eswaraiahsapram <esapram@redhat.com>
2026-02-06 07:58:19 +05:30
Eswaraiahsapram 9b3cd87a04 addressed review comments
Signed-off-by: Eswaraiahsapram <esapram@redhat.com>
2026-02-06 07:58:19 +05:30
Eswaraiahsapram 992956e29f fix api report
Signed-off-by: Eswaraiahsapram <esapram@redhat.com>
2026-02-06 07:58:19 +05:30
Eswaraiahsapram 220d6c3f70 fix: add missing i18n support for catalog plugin
Signed-off-by: Eswaraiahsapram <esapram@redhat.com>
2026-02-06 07:58:07 +05:30
Patrik Oldsberg 6362ca4b17 catalog-react: factory mock shortcut for catalogApiMock
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-05 23:50:30 +01:00
Patrik Oldsberg a20cbb2514 frontend-test-utils: new utility for passing mock APIs directly
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-05 23:50:29 +01:00
Patrik Oldsberg 36fb574fff use new mockApis
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-05 23:50:28 +01:00
Charles de Dreuille f60fde453b Merge pull request #32701 from backstage/bui-migrate-catalog-warnings-alerts
refactor(catalog): migrate warnings components from MUI to BUI
2026-02-05 22:12:55 +00:00
Patrik Oldsberg 4ddc564e73 Merge pull request #31117 from Andy2003/feature/icons-for-tabs-on-entity-page
Add the ability to show icons for the tabs on the entity page (new frontend)
2026-02-05 22:56:26 +01:00
Andre Wanlin 860b49df9a Merge pull request #30343 from awanlin/topic/visualstudio-domain-support
Added support for `{org}.visualstudio.com` domains used by Azure DevOps
2026-02-05 13:59:07 -06:00
Andre Wanlin cc6206e436 Added support for {org}.visualstudio.com domains used by Azure DevOps
Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Address CodeQL comments

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Another correction

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Fixed casing

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Adjusted to be more secure based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Tighten up endsWith

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Corrections to TSDoc comment

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Changes based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Correct URL for discovery

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated docs

Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Updated changeset

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-05 13:28:26 -06:00
renovate[bot] 9fbb270e00 chore(deps): update dependency @testing-library/react to v16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-02-05 18:02:34 +00:00
Johan Persson 75ac65183d refactor(catalog): migrate warnings components from MUI to BUI
Migrated EntityRelationWarning and EntityProcessingErrorsPanel
from Material UI to Backstage UI components.

- Alert: severity → status, children → description prop
- Box: numeric spacing → string tokens (mb={1} → mb="2")

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-05 17:39:37 +01:00
Jack Palmer bf3861fdb6 chore: Throw error when organization declared in strategy does not match organization in request
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2026-02-05 15:21:06 +00:00
Jack Palmer 3458f3a731 tests: organization and invitation params
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2026-02-05 14:01:04 +00:00
Jack Palmer 867c905da5 feat: auth0 strategy - add additional organization query params to authorizationParams
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2026-02-05 13:44:15 +00:00
Jack Palmer 8949803609 feat: auth0 strategy - set invitation query parameter as authorizationParam when present
Signed-off-by: Jack Palmer <jackpalmer@spotify.com>
2026-02-05 13:23:57 +00:00