Commit Graph

69778 Commits

Author SHA1 Message Date
Johan Persson 5320aa84a3 fix(ui): remove Router context requirement for Link, ButtonLink, Row
Introduced InternalLinkProvider component that conditionally wraps
children in RouterProvider only when an internal href is present.
This allows Link, ButtonLink, and Row components to render without
requiring a Router context when used with external or no hrefs.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 15:14:11 +01:00
Johan Persson b1f723b3f1 refactor(ui): migrate ButtonIcon and ButtonLink to useDefinition hook
Migrates ButtonIcon and ButtonLink to use the useDefinition hook
with fully independent styling. Each component now has its own
complete CSS, types, and definition without sharing internals
with Button.

- ButtonIcon: Add complete styles, use defineComponent with
  ButtonIconOwnProps, extend LeafSurfaceProps
- ButtonLink: Add new CSS module with complete styles, use
  defineComponent with ButtonLinkOwnProps, extend LeafSurfaceProps
- Update API report

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson ec0dc5b835 refactor(ui): add surface prop types and validation to defineComponent
Adds shared prop types for surface-aware components and type-level
validation to ensure proper surface prop declarations.

- Add `LeafSurfaceProps` and `ContainerSurfaceProps` shared types
- Add `SurfacePropsConstraint` type that errors if `surface: 'leaf'`
  is set but `onSurface` is missing from props (and vice versa for
  container components)
- Update Button to extend `LeafSurfaceProps` instead of declaring
  `onSurface` manually

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson a3d776707d chore(ui): Update api report.
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 2b1ec74820 refactor(ui): further improve useDefinition hook.
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson a52bf3498e refactor(ui): Remove unnecessary memoization for useDefinition hook.
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 10580a93df refactor(ui): improve useDefinition types
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 971b119366 refactor(ui): migrate Box to use useDefinition hook
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 561370d1bb refactor(ui): migrate Button to use useDefinition hook
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson beda906825 fix(ui): use curried defineComponent for type safety
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 1bf6060efb refactor(ui): update Button to use defineComponent
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 0cbc4726aa feat(ui): export useDefinition hook and types
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 40bb35156b feat(ui): implement useDefinition hook
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 76e273ef8f refactor(ui): extract helpers for useDefinition hook
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson 6192ed1f19 feat(ui): add defineComponent factory
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson f9e5f3a8ca feat(ui): add useDefinition type definitions
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:14:27 +01:00
Johan Persson ec66afb03e docs(table): rewrite Table component documentation
Comprehensive rewrite of the Table component documentation including:

- Updated prop definitions with JSX descriptions
- New interactive examples for sorting, search, pagination, selection
- Expanded code snippets covering all major use cases
- Added custom row and primitives examples
- Improved MDX structure and styling

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:13:50 +01:00
Johan Persson 40a30551a0 feat(docs-ui): improve documentation components
- Add ReactAriaLink component for linking to React Aria docs
- Make PropsTable columns configurable
- Improve Chip styling to support multiline content
- Allow ReactNode in PropDef descriptions

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:13:50 +01:00
Johan Persson caeb9ada1d fix(ui)!: remove Fragment wrapper in Table to prevent id prop error
React Aria's Collection component injects an `id` prop into rendered
children. When children were wrapped in Fragment, this caused
"Invalid prop `id` supplied to `React.Fragment`" errors on render.

BREAKING CHANGE: The `cell` and `header` properties in `ColumnConfig`
now return `ReactElement` instead of `ReactNode`. Cell and header
functions that return non-element values must be updated to always
return a valid element.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-01-23 14:13:50 +01:00
Fredrik Adelöw 24eb7d7933 Merge pull request #32489 from backstage/renovate/actions-checkout-6.x
chore(deps): update actions/checkout action to v6.0.2
2026-01-22 21:16:01 +01:00
renovate[bot] 57d75c90df chore(deps): update actions/checkout action to v6.0.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 17:19:35 +00:00
backstage-goalie[bot] 0ed7823f36 Merge pull request #32485 from backstage/renovate/ws-8.x-lockfile
chore(deps): update dependency ws to v8.19.0
2026-01-22 17:15:41 +00:00
renovate[bot] 12efa16428 chore(deps): update dependency ws to v8.19.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 16:29:54 +00:00
backstage-goalie[bot] 9f5a01ff91 Merge pull request #32484 from backstage/renovate/winston-3.x-lockfile
chore(deps): update dependency winston to v3.19.0
2026-01-22 16:28:23 +00:00
Aramis Sennyey 1e669ccd64 chore: migrate audit events docs to docsite (#32143)
* chore: migrate audit events docs to docsite

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>

* change headers

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>

* fix rebase conflict in sidebars.ts

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>

* correct sidebar

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>

---------

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
2026-01-22 08:45:06 -07:00
renovate[bot] 063272149a chore(deps): update dependency winston to v3.19.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 15:44:15 +00:00
Fredrik Adelöw c1618d4085 Merge pull request #32479 from backstage/dependabot/npm_and_yarn/undici-7.19.0
chore(deps): bump undici from 5.29.0 to 7.19.0
2026-01-22 15:33:57 +01:00
backstage-goalie[bot] 167300dced Merge pull request #32477 from backstage/renovate/swagger-ui-react-5.x-lockfile
chore(deps): update dependency swagger-ui-react to v5.31.0
2026-01-22 14:31:44 +00:00
Patrik Oldsberg 1a3b4bccec Merge pull request #31690 from backstage/sennyeya/disable-ref-build
chore: disable old api reference generation
2026-01-22 15:14:13 +01:00
Fredrik Adelöw 3ce10d4c2f Merge pull request #32195 from backstage/sennyeya/openapi-license-newline
chore: add newline to licenseInfo files
2026-01-22 15:07:20 +01:00
dependabot[bot] 0098d15aa8 chore(deps): bump undici from 5.29.0 to 7.19.0
Bumps [undici](https://github.com/nodejs/undici) from 5.29.0 to 7.19.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.29.0...v7.19.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 7.19.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 13:57:33 +00:00
Fredrik Adelöw ecdd30290f Merge pull request #32471 from backstage/freben/tar
upgrade to `tar` v7
2026-01-22 14:52:31 +01:00
backstage-goalie[bot] d8fa2d7358 Merge pull request #32476 from backstage/renovate/supertest-7.x-lockfile
chore(deps): update dependency supertest to v7.2.2
2026-01-22 13:43:46 +00:00
backstage-goalie[bot] 434f4655f7 Merge pull request #32449 from backstage/renovate/sass-1.x-lockfile
chore(deps): update dependency sass to v1.97.2
2026-01-22 13:23:46 +00:00
renovate[bot] d095bab166 chore(deps): update dependency swagger-ui-react to v5.31.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 13:10:32 +00:00
renovate[bot] 12b28a9357 chore(deps): update dependency supertest to v7.2.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 13:10:04 +00:00
Fredrik Adelöw 875123707c Merge pull request #32468 from backstage/freben/refactor-pg-tests
test the pg thing too
2026-01-22 14:02:07 +01:00
backstage-goalie[bot] 9356e2dc35 Merge pull request #32474 from backstage/renovate/react-resizable-3.x-lockfile
chore(deps): update dependency react-resizable to v3.1.3
2026-01-22 12:59:09 +00:00
Fredrik Adelöw 4c786b8332 Merge pull request #32473 from backstage/freben/notes
fix links in release notes
2026-01-22 13:34:49 +01:00
Fredrik Adelöw eb38220d12 collect all pg config interpretation in one function
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-22 13:33:32 +01:00
renovate[bot] b5a8bb0f7f chore(deps): update dependency react-resizable to v3.1.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 12:07:18 +00:00
Fredrik Adelöw 8b2ce74d6f fix links in release notes
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-22 13:06:47 +01:00
Fredrik Adelöw 4fc7bf037a upgrade to tar v7
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-22 12:58:08 +01:00
backstage-goalie[bot] a03b7cace9 Merge pull request #32469 from backstage/renovate/testing-library-monorepo
chore(deps): update dependency @testing-library/react to v16.3.2
2026-01-22 11:51:04 +00:00
backstage-goalie[bot] bacdb8616d Merge pull request #32467 from backstage/renovate/react-hook-form-7.x-lockfile
chore(deps): update dependency react-hook-form to v7.71.1
2026-01-22 11:32:00 +00:00
renovate[bot] a582db6807 chore(deps): update dependency @testing-library/react to v16.3.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-01-22 11:05:41 +00:00
Fredrik Adelöw 181f2fefa7 Merge pull request #32435 from backstage/renovate/nextjs-monorepo
fix(deps): update nextjs monorepo to v15.5.9
2026-01-22 11:53:53 +01:00
Fredrik Adelöw 6dfec318f1 Merge pull request #32438 from backstage/renovate/codemirror
chore(deps): update codemirror
2026-01-22 11:53:14 +01:00
Fredrik Adelöw b9a4c7633d Merge pull request #32389 from backstage/dependabot/npm_and_yarn/microsite/diff-5.2.2
chore(deps): bump diff from 5.2.0 to 5.2.2 in /microsite
2026-01-22 11:52:32 +01:00
Fredrik Adelöw fc02375ff3 Merge pull request #32427 from backstage/renovate/github-codeql-action-3.x
chore(deps): update github/codeql-action action to v3.31.10
2026-01-22 11:52:08 +01:00