chore: added changeset

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2021-05-20 09:38:59 +02:00
parent bfe8306b98
commit 497f4ce188
+33
View File
@@ -0,0 +1,33 @@
---
'@backstage/plugin-scaffolder': minor
'@backstage/create-app': patch
---
Scaffolder Field Extensions are here! This means you'll now have to change how the `ScaffolderPage` is wired up in your `app/src/App.tsx` to pass in the custom fields to the Scaffolder.
You'll need to move this:
```tsx
<Route path="/create" element={<ScaffolderPage />} />
```
To this:
```tsx
import {
ScaffolderCustomFields,
RepoUrlPickerFieldExtension,
OwnerPickerFieldExtension,
} from '@backstage/plugin-scaffolder';
<Route path="/create" element={<ScaffolderPage />}>
<ScaffolderCustomFields>
<RepoUrlPickerFieldExtension />
<OwnerPickerFieldExtension />
</ScaffolderCustomFields>
</Route>;
```
Failure to do this will result in no component being rendered for the custom field's like `OwnerPicker` and `RepoUrlPicker`.
More documentation on how to write your own `FieldExtensions` to follow.