Skip to content

Conversation

@awanlin
Copy link
Owner

@awanlin awanlin commented Aug 3, 2025

Hey, I just made a Pull Request!

✔️ 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)

Copy link
Owner Author

@awanlin awanlin left a comment

Choose a reason for hiding this comment

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

Left comments on the parts I could use some help with

<m.InternalRouter formFieldLoaders={formFieldLoaders} />,
<m.InternalRouter
formFieldLoaders={formFieldLoaders}
groups={config.groups}
Copy link
Owner Author

Choose a reason for hiding this comment

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

How do I translate an EntityPredicate to (entity: TemplateEntityV1beta3) => boolean?

Copy link

Choose a reason for hiding this comment

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

entityPredicateToFilterFunction from @backstage/plugin-catalog-react/alpha 😁

defaultPath: '/docs',
loader: () =>
import('../home/components/TechDocsCustomHome').then(m =>
compatWrapper(<m.TechDocsCustomHome tabsConfig={config.tabs} />),
Copy link
Owner Author

Choose a reason for hiding this comment

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

I think doing an if somewhere here where we check for config.tabs, if it's provided we use TechDocsCustomHome otherwise we use TechDocsIndexPage. I'm just not sure where that would go.

Also have some type issues here like getting it to be happy with the PanelType and the filterPredicate

Copy link

Choose a reason for hiding this comment

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

Yep something like that sounds good, might be best to push some WIP code here to have something to look at

panelType: 'InfoCardGrid'
filter:
metadata.tags:
$in: ['golden-path']
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is the end goal I'm trying to make work. I want to use the filtering that was introduced here: backstage#28951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants