Merge pull request #32527 from backstage/rugvip/pluginId

frontend-plugin-api: plugins now have pluginId
This commit is contained in:
Patrik Oldsberg
2026-01-27 13:10:59 +01:00
committed by GitHub
12 changed files with 51 additions and 15 deletions
@@ -35,13 +35,15 @@ function AppErrorItem(props: { error: AppError }): JSX.Element {
'extensionId' in context ? context.extensionId : node?.spec.id;
const routeId = 'routeId' in context ? context.routeId : undefined;
const plugin = 'plugin' in context ? context.plugin : node?.spec.plugin;
const pluginId = plugin?.id ?? 'N/A';
const pluginId = plugin?.pluginId ?? 'N/A';
const [info, setInfo] = useState<FrontendPluginInfo | undefined>(undefined);
useEffect(() => {
plugin?.info().then(setInfo, error => {
// eslint-disable-next-line no-console
console.error(`Failed to load info for plugin ${plugin.id}: ${error}`);
console.error(
`Failed to load info for plugin ${plugin.pluginId}: ${error}`,
);
});
}, [plugin]);