From 9f0596427734f31713d7bbf8840db0b252109168 Mon Sep 17 00:00:00 2001 From: ElaineDeMattosSilvaB Date: Wed, 25 Feb 2026 17:13:23 +0100 Subject: [PATCH] feat: add the description also to the NFS Signed-off-by: ElaineDeMattosSilvaB --- .changeset/polite-deer-rhyme.md | 6 ++++++ .../frontend-app-api/src/wiring/createSpecializedApp.tsx | 2 ++ packages/frontend-plugin-api/src/wiring/types.ts | 1 + 3 files changed, 9 insertions(+) create mode 100644 .changeset/polite-deer-rhyme.md diff --git a/.changeset/polite-deer-rhyme.md b/.changeset/polite-deer-rhyme.md new file mode 100644 index 0000000000..890cc16c1e --- /dev/null +++ b/.changeset/polite-deer-rhyme.md @@ -0,0 +1,6 @@ +--- +'@backstage/frontend-plugin-api': patch +'@backstage/frontend-app-api': patch +--- + +Add optional `description` field to plugin-level feature flags. diff --git a/packages/frontend-app-api/src/wiring/createSpecializedApp.tsx b/packages/frontend-app-api/src/wiring/createSpecializedApp.tsx index d56a609bb9..c53e3191ea 100644 --- a/packages/frontend-app-api/src/wiring/createSpecializedApp.tsx +++ b/packages/frontend-app-api/src/wiring/createSpecializedApp.tsx @@ -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, }), ); diff --git a/packages/frontend-plugin-api/src/wiring/types.ts b/packages/frontend-plugin-api/src/wiring/types.ts index 0b59e7a7fb..f4d0af9501 100644 --- a/packages/frontend-plugin-api/src/wiring/types.ts +++ b/packages/frontend-plugin-api/src/wiring/types.ts @@ -29,6 +29,7 @@ import { FrontendPlugin } from './createFrontendPlugin'; export type FeatureFlagConfig = { /** Feature flag name */ name: string; + description?: string; }; /** @public */