mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix(skill): align category tabs with actual skill tags
Remove unused categories (Search, Security, Analysis) and add real ones (Document, Design, Creative). Consolidate xlsx tags to Document/Productivity and webapp-testing to Development only, eliminating orphan tags with single-skill coverage.
This commit is contained in:
@ -7,14 +7,13 @@ export type TemplateCategory = {
|
||||
id: string
|
||||
label: string
|
||||
}
|
||||
// TODO: use real categories from backend
|
||||
const MOCK_CATEGORIES: TemplateCategory[] = [
|
||||
const CATEGORIES: TemplateCategory[] = [
|
||||
{ id: 'all', label: 'All' },
|
||||
{ id: 'document', label: 'Document' },
|
||||
{ id: 'productivity', label: 'Productivity' },
|
||||
{ id: 'analysis', label: 'Analysis' },
|
||||
{ id: 'search', label: 'Search' },
|
||||
{ id: 'development', label: 'Development' },
|
||||
{ id: 'security', label: 'Security' },
|
||||
{ id: 'design', label: 'Design' },
|
||||
{ id: 'creative', label: 'Creative' },
|
||||
]
|
||||
|
||||
type CategoryTabsProps = {
|
||||
@ -24,7 +23,7 @@ type CategoryTabsProps = {
|
||||
}
|
||||
|
||||
const CategoryTabs = ({
|
||||
categories = MOCK_CATEGORIES,
|
||||
categories = CATEGORIES,
|
||||
activeCategory,
|
||||
onCategoryChange,
|
||||
}: CategoryTabsProps) => {
|
||||
|
||||
@ -135,7 +135,7 @@ export const SKILL_TEMPLATES: SkillTemplateEntry[] = [
|
||||
description: 'Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.',
|
||||
fileCount: 5,
|
||||
icon: '🧪',
|
||||
tags: ['Development', 'Testing'],
|
||||
tags: ['Development'],
|
||||
loadContent: () => import('./skills/webapp-testing').then(m => m.default),
|
||||
},
|
||||
{
|
||||
@ -144,7 +144,7 @@ export const SKILL_TEMPLATES: SkillTemplateEntry[] = [
|
||||
description: 'Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas',
|
||||
fileCount: 2,
|
||||
icon: '📈',
|
||||
tags: ['Document', 'Analysis'],
|
||||
tags: ['Document', 'Productivity'],
|
||||
loadContent: () => import('./skills/xlsx').then(m => m.default),
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user