From 16942238cb835f1e005a34c0c976625a6901344a Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 28 Nov 2023 10:48:08 +0100 Subject: [PATCH 1/3] chore: fixing header options Signed-off-by: blam --- plugins/scaffolder/src/components/Router/Router.tsx | 1 + .../src/next/TemplateWizardPage/TemplateWizardPage.tsx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/plugins/scaffolder/src/components/Router/Router.tsx b/plugins/scaffolder/src/components/Router/Router.tsx index bdda92c0ef..c3d971bd11 100644 --- a/plugins/scaffolder/src/components/Router/Router.tsx +++ b/plugins/scaffolder/src/components/Router/Router.tsx @@ -142,6 +142,7 @@ export const Router = (props: PropsWithChildren) => { element={ { @@ -87,6 +92,7 @@ export const TemplateWizardPage = (props: TemplateWizardPageProps) => { pageTitleOverride="Create a new component" title="Create a new component" subtitle="Create new software components using standard templates in your organization" + {...props.headerOptions} /> Date: Tue, 28 Nov 2023 10:49:27 +0100 Subject: [PATCH 2/3] chore: changeset Signed-off-by: blam --- .changeset/sour-pumas-reply.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/sour-pumas-reply.md diff --git a/.changeset/sour-pumas-reply.md b/.changeset/sour-pumas-reply.md new file mode 100644 index 0000000000..99b812acdd --- /dev/null +++ b/.changeset/sour-pumas-reply.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-scaffolder': patch +--- + +Fixing `headerOptions` not being passed through the `TemplatePage` component From af3a06a080ff8213739a658d9f5a91c9e65c1e33 Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 28 Nov 2023 11:16:22 +0100 Subject: [PATCH 3/3] chore: update api-reports Signed-off-by: blam --- plugins/scaffolder/api-report-alpha.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/scaffolder/api-report-alpha.md b/plugins/scaffolder/api-report-alpha.md index e659b8f30d..6a1e0648a4 100644 --- a/plugins/scaffolder/api-report-alpha.md +++ b/plugins/scaffolder/api-report-alpha.md @@ -85,6 +85,11 @@ export type TemplateWizardPageProps = { }; layouts?: LayoutOptions[]; formProps?: FormProps_3; + headerOptions?: { + pageTitleOverride?: string; + title?: string; + subtitle?: string; + }; }; // (No @packageDocumentation comment for this package)