74233 Commits

Author SHA1 Message Date
Patrik Oldsberg 479282f38e frontend-test-utils: fix TestApiPair type inference for tuple syntax
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-27 21:23:18 +01:00
Patrik Oldsberg a39b080302 patches: remove pr-33057 from patch release
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-27 21:03:05 +01:00
bond yan 790de54a85 Merge pull request #33043 from backstage/optionally-allow-mkdocs-keys
Add `dangerouslyAllowAdditionalKeys` option for TechDocs MkDocs configuration
2026-02-27 14:58:09 -05:00
Patrik Oldsberg ce7894007f patches: add pr-33057 to patch release
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-27 20:24:25 +01:00
Patrik Oldsberg 56d01c7a7d test-utils: add const type parameter modifier to TestApiProvider and TestApiRegistry.from
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2026-02-27 20:22:28 +01:00
Andre Wanlin 120d425326 Fixed failing tests
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:03 -06:00
Andre Wanlin d8116c463d Latest feedback
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:03 -06:00
Andre Wanlin c6e0bc40bd Changeset feedback
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:03 -06:00
Andre Wanlin 5da7c6c5c2 Add check for removed config
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:02 -06:00
Andre Wanlin e27bd4e40f Added more changesets
Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:02 -06:00
Andre Wanlin 527cf88a90 Integration - Removed long deprecated code
Signed-off-by: Andre Wanlin <awanlin@spotify.com>

Fixed lock file

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

Improve changesets

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

Removed link

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

Update .changeset/sharp-ravens-shop.md

Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>

Update .changeset/six-trees-carry.md

Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>

Update .changeset/tiny-zoos-smash.md

Co-authored-by: Aramis Sennyey <159921952+aramissennyeydd@users.noreply.github.com>
Signed-off-by: Andre Wanlin <67169551+awanlin@users.noreply.github.com>

Corrected gerrit changes based on feedback

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

Updated API report

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

Fixed some tests

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

Fixed test

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

Fixed another test

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

Removed parseGerritGitilesUrl

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

Table clean up

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

Remove from changeset

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

Changes based on feedback

Signed-off-by: Andre Wanlin <awanlin@spotify.com>
2026-02-27 12:50:00 -06:00
Rajib Quayum 91f86f80b6 fix: repo fix
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:33:08 -05:00
Rajib Quayum bac85bb5a8 chore: update changeset to remove unnecessary ones
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:16:36 -05:00
Rajib Quayum 8ac301afc1 chore: fix index.ts path
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:16:36 -05:00
Rajib Quayum f738d47c35 chore: add api report file for MuiClassNameSetup
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:16:35 -05:00
Rajib Quayum 83856ffe55 chore: add changeset
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:16:35 -05:00
Rajib Quayum 9dc1bd53d3 fix: move MUI 5 class name setup to own file with new entry point in package, update various index files to import class name setup as the first thing
Signed-off-by: Rajib Quayum <rajibq@users.noreply.github.com>
2026-02-27 13:16:35 -05:00
Andre Wanlin 32cb991728 Merge pull request #31842 from milliehartnt123/milliehartnt123-create-ui-doc
Updated Using Backstage documentation for Feature Issue 21943 Write a UI Guide
2026-02-27 11:15:35 -06:00
Ben Lambert f598909f0f feat(scaffolder): implement scaffolderServiceRef for credentials aware communication (#33044)
* add scaffolderServiceRef to scaffolder-node

Signed-off-by: benjdlambert <ben@blam.sh>

* make ScaffolderApi methods required, add tests

Signed-off-by: benjdlambert <ben@blam.sh>

* use request objects for single-string params in ScaffolderService

Signed-off-by: benjdlambert <ben@blam.sh>

* add scaffolderServiceMock test utility

Signed-off-by: benjdlambert <ben@blam.sh>

* adjust review comments

Signed-off-by: benjdlambert <ben@blam.sh>

* add scaffolderApiMock test utility to scaffolder-react

Signed-off-by: benjdlambert <ben@blam.sh>

* use items/totalItems response shape for listTasks

Signed-off-by: benjdlambert <ben@blam.sh>

* pass credentials through for autocomplete

Signed-off-by: benjdlambert <ben@blam.sh>

---------

Signed-off-by: benjdlambert <ben@blam.sh>
2026-02-27 16:24:49 +00:00
Johan Persson 1b3dea2092 Fix ToggleButtonGroup orientation prop not reaching React Aria
orientation was listed in propDefs with dataAttribute: true, which
caused useDefinition to extract it from restProps. React Aria's
ToggleButtonGroup never received it and defaulted to horizontal.

Remove orientation from propDefs and OwnProps so it flows through
restProps to React Aria, which handles data-orientation itself.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 75d2b527fa Remove implementation plan
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 95702abc2b Add changesets for useDefinition migration and cleanup
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson fb5400e39b Update packages/ui api report.
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson d8dbab6d17 Delete useStyles hook and legacy type definitions
All components have been migrated to useDefinition. Remove the now-unused
useStyles hook and its associated types (ComponentDefinition, ClassNamesMap,
DataAttributeValues, DataAttributesMap) from the public API.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 3f2c27a1e4 Remove children from Skeleton and Avatar propDefs
Children was incorrectly added to OwnProps/propDefs during migration,
causing useDefinition to extract it from restProps. Since neither
component consumes children directly, children should flow through
restProps to the underlying div element.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson baafd4b20f Fix Container not rendering children
Children was in propDefs (extracted to ownProps by useDefinition) but
the component only spread restProps on a self-closing div, silently
dropping children. Now explicitly renders children from ownProps.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 43b9f78080 Extract shared Menu popover classNames, propDefs, and types
Address review feedback: extract MenuPopoverOwnProps shared type for
common props (placement, virtualized, maxWidth, maxHeight, style,
className). Extract menuPopoverClassNames and menuPopoverPropDefs in
definition.ts to ensure shared values stay in sync across Menu variants.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 403496c5cb Migrate Menu component from useStyles to useDefinition
Split monolithic MenuDefinition (17 classNames) into 9 per-sub-component
definitions (Menu, MenuListBox, MenuAutocomplete, MenuAutocompleteListbox,
MenuItem, MenuListBoxItem, MenuSection, MenuSeparator, MenuEmptyState).
MenuItem color prop uses dataAttribute with default in propDefs. Defaults
for placement, virtualized, selectionMode moved to propDefs.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 36b1ac8802 Migrate TagGroup component from useStyles to useDefinition
Split shared TagGroupDefinition into TagGroupDefinition (root) and
TagDefinition (tag sub-component). Tag's size prop now uses dataAttribute
with default in propDefs instead of manual data-size and default spreading.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 66dc56c7f9 Migrate Tabs component from useStyles to useDefinition
Split monolithic TabsDefinition into 5 per-sub-component definitions
(Tabs, TabList, Tab, TabPanel, TabsIndicators). Each sub-component now
uses useDefinition with its own OwnProps type. Removed clsx and direct
CSS module imports from component files.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 4742c3f2e0 Migrate Table component from useStyles to useDefinition
Split monolithic TableDefinition into 8 per-sub-component definitions
(TableRoot, TableHeader, TableBody, Row, Column, Cell, CellText,
CellProfile) following the established defineComponent pattern.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson bd3a76eac7 Fix SearchField CSS selector to use lowercase data attribute
The useDefinition hook renders data attributes in lowercase,
so the CSS selector `[data-startCollapsed]` no longer matched.
Updated to `[data-startcollapsed]` to restore collapsed state
styling.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson a06731af67 Address review feedback for RadioGroup, Select, and TablePagination
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 1851e95930 Fix Radio displayName incorrectly set to 'RadioGroup'
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 9f4661b7c1 Update API report for RadioGroup, Select, and TablePagination migrations
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 8288e5ac85 Migrate Select component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 2e1eddf6c6 Migrate TablePagination component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson c6d4df4314 Migrate RadioGroup component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson a393ed3f17 Migrate PluginHeader component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 437ae1943d Migrate HeaderPage component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 08bc4dbcfe Migrate Dialog component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 54d5ba4cff Remove unused restProps spread from Flex and Grid components
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 8b0d2583f5 Migrate Grid component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson b303857f1e Fix isRequired not passed to React Aria field components
isRequired was consumed locally for the secondary label but never
forwarded to the underlying AriaTextField/AriaSearchField, resulting
in missing aria-required attribute and no built-in validation.

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 42311e3a85 Update API report after batch migration
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 579c053270 Migrate Flex component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson e1dbf294dd Migrate Text component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson 9c5d262398 Migrate TextField component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson c62ab0cf7b Migrate SearchField component from useStyles to useDefinition
Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00
Johan Persson dbf64fc345 Fix PasswordField: move label into OwnProps, remove FieldLabelProps extension, useDefinition first
- Add label to PasswordFieldOwnProps and propDefs
- Remove Omit<FieldLabelProps, ...> from PasswordFieldProps
- Move useDefinition call to top of component
- Access aria-label/aria-labelledby from restProps instead of props

Signed-off-by: Johan Persson <johanopersson@gmail.com>
2026-02-27 17:18:03 +01:00