-
Notifications
You must be signed in to change notification settings - Fork 542
announcements: rewrite <OnBehalfOf /> with @backstage/ui select and include value in announcements table
#7288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Changed Packages
|
<OnBehalfOf /> with @backstage/ui select and include value in announcements table
Signed-off-by: Kurt King <[email protected]>
bdd91f9 to
8d5a481
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the "On Behalf Of" form component to use @backstage/ui components instead of Material-UI, and enhances the announcements table to display on behalf of information alongside the publisher.
Changes:
- Migrated
OnBehalfTeamDropdownfrom MUIAutocompleteto@backstage/uiSelectcomponent - Updated announcements table to show "on behalf of [group]" text when the field is populated
- Added comprehensive test coverage for the new on behalf of display functionality
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
AnnouncementsTable.tsx |
Added conditional rendering of "on behalf of" information in the publisher column when a valid entity reference exists |
AnnouncementsTable.test.tsx |
Added three new test cases covering display behavior with valid, missing, and invalid on_behalf_of values; updated test setup to use shared mock instance |
OnBehalfTeamDropdown.tsx |
Replaced MUI Autocomplete with Backstage UI Select component, simplified option rendering to use label/value pattern |
OnBehalfTeamDropdown.test.tsx |
Updated test expectations to match new Select component behavior where display names appear in both trigger and options |
.changeset/curly-zebras-agree.md |
Added changeset documenting the UI component migration and table display enhancement |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...uncements/src/alpha/components/admin/announcements/AnnouncementForm/OnBehalfTeamDropdown.tsx
Show resolved
Hide resolved
...ements/plugins/announcements/src/alpha/components/admin/announcements/AnnouncementsTable.tsx
Outdated
Show resolved
Hide resolved
...ements/plugins/announcements/src/alpha/components/admin/announcements/AnnouncementsTable.tsx
Outdated
Show resolved
Hide resolved
…into announcements/on-behalf-of-rewrite
Signed-off-by: Kurt King <[email protected]>
Hey, I just made a Pull Request!
Refactors the "On Behalf Of" form component to use
@backstage/uicomponents.With this, I got the idea to update the announcements table to render "on behalf of
[group]" when value is present. It's a decent way of adding this information back to the table without an additional column (similar to status indicator).✔️ Checklist
Signed-off-byline in the message. (more info)