feat: add the description also to the NFS

Signed-off-by: ElaineDeMattosSilvaB <elaine.mattos@gmail.com>
This commit is contained in:
ElaineDeMattosSilvaB
2026-02-25 17:13:23 +01:00
parent f6a9cffd74
commit 9f05964277
3 changed files with 9 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/frontend-plugin-api': patch
'@backstage/frontend-app-api': patch
---
Add optional `description` field to plugin-level feature flags.
@@ -357,6 +357,7 @@ export function createSpecializedApp(options?: CreateSpecializedAppOptions): {
OpaqueFrontendPlugin.toInternal(feature).featureFlags.forEach(flag =>
featureFlagApi.registerFlag({
name: flag.name,
description: flag.description,
pluginId: feature.id,
}),
);
@@ -365,6 +366,7 @@ export function createSpecializedApp(options?: CreateSpecializedAppOptions): {
toInternalFrontendModule(feature).featureFlags.forEach(flag =>
featureFlagApi.registerFlag({
name: flag.name,
description: flag.description,
pluginId: feature.pluginId,
}),
);
@@ -29,6 +29,7 @@ import { FrontendPlugin } from './createFrontendPlugin';
export type FeatureFlagConfig = {
/** Feature flag name */
name: string;
description?: string;
};
/** @public */