feat(dashboard): extract Capabilities and Triggers into separate tabs in agent definition editor#602
Merged
zbigniewsobiecki merged 2 commits intodevfrom Mar 2, 2026
Conversation
… in agent definition editor Moves CapabilitiesSection and TriggersSection out of the monolithic Definition tab into their own dedicated tabs. Updates handleTabChange to sync JSON ↔ all structured tabs (definition, capabilities, triggers). Tab order: Definition | Capabilities | Triggers | Prompts (edit only) | Raw JSON Closes: https://trello.com/c/69a56e72a79db92b36d7a9e3 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… in agent definition editor
Collaborator
|
🤖 On it — checking the feature/separate-capabilities-triggers-tabs branch |
nhopeatall
approved these changes
Mar 2, 2026
Collaborator
nhopeatall
left a comment
There was a problem hiding this comment.
LGTM — Clean extraction of Capabilities and Triggers into separate tabs. The handleTabChange logic correctly generalizes JSON ↔ structured-tab sync to cover all three structured tabs (definition, capabilities, triggers), and structured-to-structured transitions correctly share the same def state without needing serialization. No issues found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CapabilitiesSectionandTriggersSectionfrom the monolithic "Definition" tab into their own dedicated tabshandleTabChangeto properly sync JSON ↔ structured-tab transitions for all three structured tabs (definition, capabilities, triggers)Changes
Single file changed:
web/src/components/settings/agent-definition-editor.tsxhandleTabChange— Updated to treatdefinition,capabilities, andtriggersas structured tabs. When leaving any structured tab → JSON, the currentdefstate is serialized to JSON text. When entering any structured tab from JSON, the JSON text is parsed back intodef.TabsList— Added<TabsTrigger value="capabilities">Capabilities</TabsTrigger>and<TabsTrigger value="triggers">Triggers</TabsTrigger>between Definition and Prompts triggers.Definition
TabsContent— Removed<CapabilitiesSection>and<TriggersSection>from the Definition tab content (they now live in their own tabs).New
TabsContentblocks — Added dedicated<TabsContent value="capabilities">and<TabsContent value="triggers">sections.Test plan
Card: https://trello.com/c/69a56e72a79db92b36d7a9e3
🤖 Generated with Claude Code