diff --git a/packages/app-shell/src/views/metadata-admin/default-schemas.ts b/packages/app-shell/src/views/metadata-admin/default-schemas.ts index 6ff590f21..c0bd476dd 100644 --- a/packages/app-shell/src/views/metadata-admin/default-schemas.ts +++ b/packages/app-shell/src/views/metadata-admin/default-schemas.ts @@ -159,6 +159,35 @@ const SCHEMAS: Record> = { ...headerProps, instructions: { type: 'string', title: 'Instructions', format: 'multiline' }, tools: { type: 'array', title: 'Tools', items: { type: 'string' } }, + surface: { + type: 'string', + title: 'Surface', + description: "Agent surface this skill binds to (ADR-0063).", + enum: ['ask', 'build', 'both'], + }, + triggerPhrases: { + type: 'array', + title: 'Trigger Phrases', + description: 'Natural-language phrases that activate this skill.', + items: { type: 'string' }, + }, + triggerConditions: { + type: 'array', + title: 'Trigger Conditions', + description: 'Programmatic activation conditions (context field / operator / value). The activation-critical field — previously only hand-editable (#1878/#1895).', + items: { + type: 'object', + properties: { + field: { type: 'string', title: 'Field' }, + operator: { + type: 'string', + title: 'Operator', + enum: ['eq', 'neq', 'in', 'not_in', 'contains'], + }, + value: { type: 'string', title: 'Value' }, + }, + }, + }, }, }, diff --git a/packages/plugin-dashboard/src/DashboardGridLayout.tsx b/packages/plugin-dashboard/src/DashboardGridLayout.tsx index 98e347bc8..0729fa1f7 100644 --- a/packages/plugin-dashboard/src/DashboardGridLayout.tsx +++ b/packages/plugin-dashboard/src/DashboardGridLayout.tsx @@ -306,7 +306,7 @@ export const DashboardGridLayout: React.FC = ({
{hasDndProvider && }
-

{schema.title || 'Dashboard'}

+

{schema.title || schema.label || 'Dashboard'}

{editMode ? ( <>