Skip to content

Conversation

@neoreddog
Copy link
Contributor

Hey, I just made a Pull Request!

Follow up task to #5678,

  • This adds a configuration override to the EntityContentBlueprint to allow it to switch between table and cards view.
  • Fixed the component tests by adding a compatWrapper to the factory loader, and route refs to the tests.
  • Introduced a new test for the card layout.
  • Each test case will test not truthy for the opposing layout.
image

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • 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)

…tent to use makeWithOverrides with a layout config item.

Signed-off-by: dambrose <[email protected]>
Signed-off-by: dambrose <[email protected]>
Signed-off-by: dambrose <[email protected]>
…n-configuration' into dambrose/github-actions-extension-configuration

Signed-off-by: dambrose <[email protected]>

# Conflicts:
#	workspaces/github-actions/.changeset/nine-jars-travel.md
…ated test environment.

Added a test case for the content card layout variant.

Updated test cases to include null cases for the opposite layout to what's being tested.

Signed-off-by: dambrose <[email protected]>
@backstage-goalie
Copy link
Contributor

backstage-goalie bot commented Oct 20, 2025

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-github-actions workspaces/github-actions/plugins/github-actions minor v0.16.0

Copy link
Member

@Rugvip Rugvip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Couple small nits

Comment on lines -55 to -57
await waitFor(
() => {
expect(screen.getByText('backstage/backstage')).toBeInTheDocument();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noting for readers that this test didn't behave as expected, it hid an issue where routing didn't work and the page blew up after initial render.

Copy link
Member

@Rugvip Rugvip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an API report update. Let's fix the extension name while at it and add that to the changeset

layout: z => z.enum(['table', 'cards']).default('table'),
},
},
name: 'github-actions-entity-content',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I realized this name should go away. The previous 'entity' doesn't really make sense either tbh and I think it's worth shipping a breaking change, especially since we're adding config with this.

The default full ID for this extension without a name is entity-content:github-actions. If we set the name to this the full name is gonna be entity-content:github-actions/github-actions-entity-content 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 0a1061b

…n-configuration' into dambrose/github-actions-extension-configuration

Signed-off-by: dambrose <[email protected]>
Signed-off-by: dambrose <[email protected]>
Signed-off-by: dambrose <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants