diff --git a/plugins/scaffolder/api-report.md b/plugins/scaffolder/api-report.md index f805e0bea3..8e0a07a2dc 100644 --- a/plugins/scaffolder/api-report.md +++ b/plugins/scaffolder/api-report.md @@ -127,7 +127,7 @@ export type LogEvent = { taskId: string; }; -// @public +// @alpha export type NextRouterProps = { components?: { TemplateCardComponent?: React_2.ComponentType<{ diff --git a/plugins/scaffolder/src/next/Router/Router.tsx b/plugins/scaffolder/src/next/Router/Router.tsx index 9ac5aa8f40..580d41d27b 100644 --- a/plugins/scaffolder/src/next/Router/Router.tsx +++ b/plugins/scaffolder/src/next/Router/Router.tsx @@ -32,7 +32,7 @@ import { TemplateGroupFilter } from '../TemplateListPage/TemplateGroups'; /** * The Props for the Scaffolder Router * - * @public + * @alpha */ export type NextRouterProps = { components?: { @@ -47,7 +47,7 @@ export type NextRouterProps = { /** * The Scaffolder Router * - * @public + * @alpha */ export const Router = (props: PropsWithChildren) => { const { components: { TemplateCardComponent } = {} } = props; diff --git a/plugins/scaffolder/src/next/TemplateListPage/RegisterExistingButton.tsx b/plugins/scaffolder/src/next/TemplateListPage/RegisterExistingButton.tsx index be6b496a6c..8269602703 100644 --- a/plugins/scaffolder/src/next/TemplateListPage/RegisterExistingButton.tsx +++ b/plugins/scaffolder/src/next/TemplateListPage/RegisterExistingButton.tsx @@ -27,7 +27,7 @@ import { usePermission } from '@backstage/plugin-permission-react'; /** * Properties for {@link RegisterExistingButton} * - * @public + * @alpha */ export type RegisterExistingButtonProps = { title: string; @@ -35,7 +35,7 @@ export type RegisterExistingButtonProps = { /** * A button that helps users to register an existing component. - * @public + * @alpha */ export const RegisterExistingButton = (props: RegisterExistingButtonProps) => { const { title, to } = props; diff --git a/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/TemplateCard.tsx b/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/TemplateCard.tsx index 26f74ac053..09a334f48e 100644 --- a/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/TemplateCard.tsx +++ b/plugins/scaffolder/src/next/TemplateListPage/TemplateCard/TemplateCard.tsx @@ -75,7 +75,7 @@ const useStyles = makeStyles(theme => ({ /** * The Props for the Template Card component - * @public + * @alpha */ export interface TemplateCardProps { template: TemplateEntityV1beta3; @@ -84,7 +84,7 @@ export interface TemplateCardProps { /** * The Template Card component that is rendered in a list for each template - * @public + * @alpha */ export const TemplateCard = (props: TemplateCardProps) => { const { template } = props; @@ -102,7 +102,7 @@ export const TemplateCard = (props: TemplateCardProps) => { content={template.metadata.description ?? 'No description'} /> - {template.metadata.tags?.length ? ( + {template.metadata.tags?.length > 0 && ( <> @@ -111,12 +111,12 @@ export const TemplateCard = (props: TemplateCardProps) => { ))} - ) : null} + )}
- {ownedByRelations.length ? ( + {ownedByRelations.length > 0 && ( <> { defaultKind="Group" /> - ) : null} + )}