Skip to content

Conversation

@kurtaking
Copy link
Member

@kurtaking kurtaking commented Jan 28, 2026

Hey, I just made a Pull Request!

Refactors the "On Behalf Of" form component to use @backstage/ui components.

image

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).

image

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

@backstage-service backstage-service added the workspace/announcements Used to tag announcements workspace isses and pull requests label Jan 28, 2026
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-announcements workspaces/announcements/plugins/announcements patch v2.0.0

@kurtaking kurtaking changed the title show on behalf of in publisher column announcements: rewrite <OnBehalfOf /> with @backstage/ui select and include value in announcements table Jan 28, 2026
@kurtaking kurtaking self-assigned this Jan 28, 2026
@kurtaking kurtaking force-pushed the announcements/on-behalf-of-rewrite branch from bdd91f9 to 8d5a481 Compare January 28, 2026 18:51
@kurtaking kurtaking marked this pull request as ready for review January 28, 2026 18:58
@kurtaking kurtaking requested review from a team and gaelgoth as code owners January 28, 2026 18:58
@kurtaking kurtaking requested review from 04kash and Copilot and removed request for a team January 28, 2026 18:58
Copy link
Contributor

Copilot AI left a 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 OnBehalfTeamDropdown from MUI Autocomplete to @backstage/ui Select component
  • 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.

Signed-off-by: Kurt King <[email protected]>
@kurtaking kurtaking enabled auto-merge (squash) January 29, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workspace/announcements Used to tag announcements workspace isses and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants