chore: show only necessary tags on a category

This commit is contained in:
Ibrahima G. Coulibaly
2025-07-22 19:09:41 +01:00
parent ed81954bf8
commit e27b893548
38 changed files with 48 additions and 61 deletions

View File

@@ -145,8 +145,8 @@ export const filterToolsByUserTypes = (
if (userTypes.length === 0) return tools;
return tools.filter((tool) => {
// Always treat xml tools as dev-only
if (tool.type === 'xml') {
const devToolsCategories: ToolCategory[] = ['xml', 'json', 'csv'];
if (devToolsCategories.includes(tool.type)) {
return userTypes.includes('Developers');
}
// If tool has no userTypes defined, show it to all users