From c37df0a5d7a1b7aa1d5ef3d6ce4ba8b826c21c90 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Fri, 20 Mar 2026 13:24:39 +0100 Subject: [PATCH] scaffolder: add input redirect for formFields to templates sub-page Add a replaces directive to the formFields input on the templates sub-page so that extensions previously attached to page:scaffolder's formFields input are automatically redirected. This ensures the migration to SubPageBlueprint is not a breaking change. Signed-off-by: Patrik Oldsberg Made-with: Cursor --- plugins/scaffolder/src/alpha/extensions.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/scaffolder/src/alpha/extensions.tsx b/plugins/scaffolder/src/alpha/extensions.tsx index 73b9c9df79..8632268014 100644 --- a/plugins/scaffolder/src/alpha/extensions.tsx +++ b/plugins/scaffolder/src/alpha/extensions.tsx @@ -45,9 +45,10 @@ export const scaffolderPage = PageBlueprint.make({ export const scaffolderTemplatesSubPage = SubPageBlueprint.makeWithOverrides({ name: 'templates', inputs: { - formFields: createExtensionInput([ - FormFieldBlueprint.dataRefs.formFieldLoader, - ]), + formFields: createExtensionInput( + [FormFieldBlueprint.dataRefs.formFieldLoader], + { replaces: [{ id: 'page:scaffolder', input: 'formFields' }] }, + ), }, factory(originalFactory, { apis, inputs }) { const formFieldsApi = apis.get(formFieldsApiRef);