chore: remove additional text from changelog and add to docu

Signed-off-by: ElaineDeMattosSilvaB <elaine.mattos@gmail.com>
This commit is contained in:
ElaineDeMattosSilvaB
2026-02-25 16:25:34 +01:00
parent 65a3890a54
commit f6a9cffd74
2 changed files with 7 additions and 18 deletions
-17
View File
@@ -4,20 +4,3 @@
---
Add optional `description` field to plugin-level feature flags.
Plugin developers can now provide an optional description for their feature flags:
```ts
export const myPlugin = createPlugin({
id: 'my-plugin',
featureFlags: [
{
name: 'show-beta-feature',
description: 'Enables the new beta dashboard view',
},
],
});
If no description is provided, the default "Registered in {pluginId} plugin" message is shown.
```
+7 -1
View File
@@ -19,11 +19,17 @@ import { createPlugin } from '@backstage/core-plugin-api';
export const examplePlugin = createPlugin({
// ...
featureFlags: [{ name: 'show-example-feature' }],
featureFlags: [
{
name: 'show-example-feature',
description: 'Enables the new beta dashboard view',
},
// ...
});
```
Note that the `description` property is optional. If not provided, the default "Registered in {pluginId} plugin" message is shown.
### In the application
Defining a feature flag in the application is done by adding feature flags in `featureFlags` array in the