refactor(tools): overhaul tool creation UX with auto-derivation badges, persistent preview, and test drawer - #430
Closed
esafwan wants to merge 8 commits into
Closed
refactor(tools): overhaul tool creation UX with auto-derivation badges, persistent preview, and test drawer#430esafwan wants to merge 8 commits into
esafwan wants to merge 8 commits into
Conversation
…t preview, and TestToolDrawer
…vation and persistent preview
…apsible contract section - Seed curated Agent Tool Type categories (Data Operations, Integrations, Automation & Workflow, Communication, AI & Generation, Miscellaneous) idempotently on install/migrate via sync_default_tool_categories() - Auto-fill Tool Category from a per-template default mapping using the existing auto-derive/Auto-badge mechanism (flips to Edited on manual change) - Move Tool Category and Description into a collapsed-by-default Contract section with a one-line summary when collapsed - Make Description optional in the form schema (already auto-derived)
Contributor
Author
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
Simplifies and modernizes the tool creation UI (
ToolCreationForm.tsx&toolCreationForm.utils.ts) by implementing patterns fromdocs/tool.md(auto-derivation defaults, persistent live preview, and test call drawer).Key Changes
toolCreationForm.utils.ts):get_sales_order), description, read-only flag, required permission, and parameter schema for all 12 Document Operation verbs (Get, Create, Update, Delete, Get List, etc.).buildFunctionDefinition()) updating on every keystroke.TestToolDrawer.tsx):Follow-up polish (this PR, later commits)
Agent Tool Typecategories (Data Operations, Integrations, Automation & Workflow, Communication, AI & Generation, Miscellaneous) idempotently on migrate; each of the 5 tool types now auto-selects a sensible default category via the same Auto/Edited badge mechanism, instead of requiring a manual pick from a narrow, integration-specific list.bg-backgroundfill, matching the same contrast convention established in the HUF Table add/edit record form (PR style(frontend): polish add data form card layout and design tokens #428).Proof of Test
Verification
tsc -b && vite build) after every commit.http://huf.localhost:8100/huf/agents/:agentName, re-deploying (migrate, build, clear-cache) and re-checking in-browser after each change.