Commit Graph

1538 Commits

Author SHA1 Message Date
Gabriel Dugny c47f3d8a73 Flip boolean config
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-02-10 23:59:40 +01:00
Gabriel Dugny 46c1c648b0 Merge remote-tracking branch 'origin/master' into techdocs-nfs
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>

# Conflicts:
#	packages/techdocs-cli-embedded-app/package.json
#	plugins/techdocs/src/alpha/index.tsx
#	yarn.lock
2026-02-10 23:47:25 +01:00
github-actions[bot] 7c41134684 Version Packages (next) 2026-02-10 16:14:59 +00:00
Fredrik Adelöw 1107812a0f Merge pull request #32631 from backstage/freben/predicates-2
Introduce the `@backstage/filter-predicates` package
2026-02-10 16:17:35 +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
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
Fredrik Adelöw 7feb83b586 introduce the @backstage/filter-predicates package
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-02-03 14:47:13 +01:00
github-actions[bot] d4b85dddee Version Packages (next) 2026-01-27 15:51:11 +00:00
Patrik Oldsberg 22dce2b644 techdocs: migrate nfs addons to utility API
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-01-26 16:53:04 +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
Gabriel Dugny 9e29545114 fix(techdocs): Improve sidebar position, scroll (#31483)
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-01-21 11:15:05 +01:00
github-actions[bot] 2e902e7b43 Version Packages 2026-01-20 16:40:05 +00:00
bond yan 2bfbf56da7 Merge pull request #32260 from GabDug/blv/techdocs-copy-button-layout
fix(techdocs): Code block Copy To Clipboard button layout with latest mkdocs-material
2026-01-19 14:17:16 -05:00
bond yan 1861ee760c Merge pull request #32087 from leboncoin/fix-techdocs-colors-calc
fix(techdocs): correct colors calculation
2026-01-19 14:15:00 -05:00
Gabriel Dugny 27798df0a3 Migrate techdocs-cli-embedded-app to NFS
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-01-11 20:25:25 +01:00
Gabriel Dugny 94ff7abe78 fix(techdocs): Code block Copy To Clipboard button layout with latest mkdocs-material
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2026-01-07 14:22:19 +01:00
github-actions[bot] e237d65cdc Version Packages (next) 2026-01-05 22:23:51 +00:00
Backstage Service Account 9f1ee3e667 Version Packages (next) (#32222)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-30 16:06:20 +01:00
github-actions[bot] c24788d5bb Version Packages 2025-12-16 14:08:20 +00:00
Patrik Oldsberg a0de7cf2b7 Merge pull request #31933 from backstage/upgrade-jsdom
chore: upgrade jsdom to v27 and Jest to v30
2025-12-15 16:01:01 +01:00
Fredrik Adelöw adeb5fd152 Merge pull request #31683 from beverts312/techdocs-schema
fix(techdocs): use correct type for additionalAllowedUriProtocols
2025-12-13 19:34:13 +01:00
Johan Persson cd0b8a11a3 chore: make jest a peer dependency with v29/v30 support
Move jest from dependencies to peer dependencies, allowing users to
choose between Jest 29 and Jest 30.

The CLI now detects the Jest version at runtime and uses the
appropriate environment:
- Jest 29: Uses standard jest-environment-jsdom
- Jest 30: Uses a custom environment based on @jest/environment-jsdom-abstract
  with fixes for Web API globals (fetch, streams, Error, etc.)

The cross-fetch polyfill is only injected for Jest 29, as with Jest 30+
our patched Jest environment is used. The network request blocker is made
MSW-compatible by checking if fetch was wrapped before blocking.

Jest 30 (with jsdom v27) fixes `Could not parse CSS stylesheet`
warnings/errors when testing components from @backstage/ui or other
packages using CSS `@layer` declarations.

New peer dependencies (install based on your Jest version):
- jest (required, ^29 or ^30)
- Jest 29 requires: jest-environment-jsdom
- Jest 30 requires: @jest/environment-jsdom-abstract, jsdom

Production code changes for jsdom 27 testability:
- AppIdentityProxy: extract navigateToUrl method for spying
- LiveReloadAddon: export utils.reloadPage for spying
- collect.ts: export internal.resolvePackagePath for mocking

MockFetchApi: evaluate global.fetch at call time instead of construction
time, allowing MSW to patch fetch after MockFetchApi is constructed.

Test adaptations for jsdom 27:
- Use RGB values instead of named colors in CSS assertions
- Update error format expectations (hyphenated type names, SyntaxError
  instead of FetchError for JSON parse errors)
- Simplify URL error assertions for cross-version compatibility
- Fix accessible name whitespace handling for external links
- Use history.replaceState for location mocking (non-configurable)
- Use fireEvent.blur for contentEditable elements
- Move async assertions inside waitFor for race conditions
- Remove Blob.prototype.text polyfill (now native)
- Remove test case using credentials in plugin:// URLs

Test adaptations for Jest 30:
- Replace `expect.objectContaining([...])` with direct array equality
- Replace `expect.objectContaining({ length: N })` with
  `expect.any(Array)` + separate `toHaveLength()` assertions
- Use child process for native Node.js module resolution in
  collect.test.ts to work around Jest 30's resolver behavior
- Update snapshot headers for new Jest format

Also removes the jest-haste-map patch which is no longer needed.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2025-12-11 18:06:55 +01:00
github-actions[bot] e08f48a9b5 Version Packages (next) 2025-12-09 15:00:09 +00:00
Thomas Cardonne 0afb8a63ec fix(techdocs): correct colors calculation
Signed-off-by: Thomas Cardonne <thomas.cardonne@adevinta.com>
2025-12-09 15:26:40 +01:00
Fredrik Adelöw f3f84f1e4b make .withOverrides have a simplified result type
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2025-12-03 16:51:12 +01:00
Patrik Oldsberg 2c6ea33a74 Merge pull request #31946 from backstage/rugvip/tsbumps
cli: switch tsconfig to default to bundler resolution
2025-12-02 23:31:11 +01:00
Patrik Oldsberg f85dafa7f2 update API reports for moduleResolution: bundler
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-12-02 22:25:00 +01:00
github-actions[bot] 336db00d21 Version Packages (next) 2025-12-02 15:37:41 +00:00
Vincenzo Scamporlino ce87e679a1 techdocs: marking techdocs config as optional
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
2025-11-25 22:07:22 +01:00
github-actions[bot] 756986e5e7 Version Packages (next) 2025-11-25 16:21:32 +00:00
Patrik Oldsberg 395ff1c43b plugins: remove unused dependencies on core-compat-api
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 14:36:02 +01:00
Patrik Oldsberg 1c7ea4a3e8 plugins: remove unnecessary use of convertLegacyRouteRef(s)
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 14:36:02 +01:00
Patrik Oldsberg d02db50b42 plugins: cleanup unnecessary use of compatWrapper
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 12:56:54 +01:00
Patrik Oldsberg ebe5538d55 update API reports for core/frontend inversion
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-23 01:59:07 +01:00
Bailey Everts 5c33821e8a fix(techdocs): use correct type for additionalAllowedUriProtocols
Signed-off-by: Bailey Everts <beverts312@users.noreply.github.com>
2025-11-20 16:44:39 -07:00
github-actions[bot] 792f4d7e3d Version Packages 2025-11-18 12:23:09 +00:00
Patrik Oldsberg a1c58124a7 sync API reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-17 10:35:43 +01:00
github-actions[bot] 3738293d26 Version Packages (next) 2025-11-04 15:00:26 +00:00
Ben Lambert 3bdeb378e2 Merge pull request #31277 from Andy2003/feature/provide-icon-for-search-result-icon
Add support for customizable icons in SearchResultListItemBlueprint
2025-11-04 11:21:14 +01:00
Patrik Oldsberg 878c25146c frontend-plugin-api: make ExtensionInput type parameters optional
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-11-03 22:36:53 +01:00
Fredrik Adelöw dc5aad652e Merge pull request #31242 from hopehadfield/remove-more-unused
Remove unused dependencies from kubernetes, signals, and techdocs
2025-10-29 22:50:03 +01:00
github-actions[bot] 2c1fe37d3b Version Packages (next) 2025-10-24 13:22:48 +00:00
github-actions[bot] 807af8ce0e Version Packages (next) 2025-10-21 16:14:43 +00:00
Gabriel Dugny 52e01b98bc chore: Simplify by removing a useless useMemo & merging useEffect
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2025-10-17 22:05:55 +02:00
Gabriel Dugny a4d4a7084a chore: changeset & clarifications
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2025-10-16 18:47:13 +02:00
Gabriel Dugny 1b3d2a1bbe chore: split to dedicated hook
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2025-10-16 18:21:11 +02:00
Gabriel Dugny da6b06f4ff fix(techdocs): Header reload when navigating inside Techdocs
Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>

Attempt to fix regression introduced by https://github.com/backstage/backstage/pull/30984

LLM-generated, not review thoroughly yet.

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
2025-10-16 18:02:23 +02:00
github-actions[bot] d6ce2db9ca Version Packages 2025-10-14 15:29:54 +00:00
Andreas Berger 0a4e495019 Merge remote-tracking branch 'origin/master' into feature/provide-icon-for-search-result-icon 2025-10-09 08:50:15 +02:00