From 29e27ac704fa960c6e577280e64fd68efee68991 Mon Sep 17 00:00:00 2001 From: Andre Wanlin Date: Mon, 16 Feb 2026 19:01:13 -0600 Subject: [PATCH] Clean up and prettier Signed-off-by: Andre Wanlin --- microsite/sidebars.ts | 6 +++- microsite/src/pages/plugins/index.tsx | 51 ++++++++++++++++----------- scripts/plugin-directory-audit.js | 5 --- 3 files changed, 36 insertions(+), 26 deletions(-) diff --git a/microsite/sidebars.ts b/microsite/sidebars.ts index f70de52324..879c849ac7 100644 --- a/microsite/sidebars.ts +++ b/microsite/sidebars.ts @@ -438,7 +438,11 @@ export default { ), sidebarElementWithIndex( { label: 'Publishing', description: 'Publishing your plugins.' }, - ['plugins/publish-private', 'plugins/add-to-directory', 'plugins/plugin-directory-audit'], + [ + 'plugins/publish-private', + 'plugins/add-to-directory', + 'plugins/plugin-directory-audit', + ], ), 'plugins/observability', ], diff --git a/microsite/src/pages/plugins/index.tsx b/microsite/src/pages/plugins/index.tsx index e108443d46..9acf3fb341 100644 --- a/microsite/src/pages/plugins/index.tsx +++ b/microsite/src/pages/plugins/index.tsx @@ -124,7 +124,10 @@ const Plugins = () => { const otherPlugins = useMemo(() => { return plugins.otherPlugins - .filter(pluginData => pluginData.status !== 'inactive' && pluginData.status !== 'archived') + .filter( + pluginData => + pluginData.status !== 'inactive' && pluginData.status !== 'archived', + ) .filter(pluginData => matchesCategory(pluginData, selectedCategories)) .filter(pluginData => matchesSearch(pluginData, searchTerm)); }, [selectedCategories, searchTerm]); @@ -171,15 +174,17 @@ const Plugins = () => { /> - {corePlugins.length === 0 && otherPlugins.length === 0 && inactivePlugins.length === 0 && ( -
-

No plugins found

-

- We couldn't find any plugins matching your criteria. Please try - adjusting your search or filter settings. -

-
- )} + {corePlugins.length === 0 && + otherPlugins.length === 0 && + inactivePlugins.length === 0 && ( +
+

No plugins found

+

+ We couldn't find any plugins matching your criteria. Please try + adjusting your search or filter settings. +

+
+ )} {showCoreFeatures && corePlugins.length > 0 && (
@@ -209,21 +214,27 @@ const Plugins = () => {
)} - {showOtherPlugins && otherPlugins.length === 0 && inactivePlugins.length > 0 && ( -
-

Active Plugins (0)

-

- We couldn't find any active plugins matching your criteria. -

-
- )} + {showOtherPlugins && + otherPlugins.length === 0 && + inactivePlugins.length > 0 && ( +
+

Active Plugins (0)

+

We couldn't find any active plugins matching your criteria.

+
+ )} {inactivePlugins.length > 0 && (

Inactive Plugins ({inactivePlugins.length})

- These plugins are no longer actively maintained as their NPM package has not seen an update in more than 365 days. They are kept here for reference but may not work with - current versions of Backstage. Details on the audit process can be found in the Plugin Directory Audit documentation. + These plugins are no longer actively maintained as their NPM + package has not seen an update in more than 365 days. They are + kept here for reference but may not work with current versions of + Backstage. Details on the audit process can be found in the{' '} + + Plugin Directory Audit + {' '} + documentation.

{inactivePlugins.map(pluginData => ( diff --git a/scripts/plugin-directory-audit.js b/scripts/plugin-directory-audit.js index 0b3d2f9c45..55cb6d6f67 100644 --- a/scripts/plugin-directory-audit.js +++ b/scripts/plugin-directory-audit.js @@ -40,11 +40,6 @@ async function main(args) { const auditMode = args.includes('--audit'); - console.log(__dirname, rootPath, pluginDataPath); - if (auditMode) { - console.log('Running in AUDIT mode - will update plugin YAML files'); - } - const pluginDataFiles = fs.readdirSync(pluginDataPath); const pluginsData = [];