feat(platform): custom agents empty state, skeleton, and toggle improvements#457
Conversation
…ions Move custom agents and automations to page-level empty state rendering matching the pattern used by customers, products, and vendors. Add dedicated empty state and skeleton components with proper padding. Also resolve merge conflicts from TanStack DB collections migration.
📝 WalkthroughWalkthroughThis PR integrates AI-assisted workflow creation into the automation flow and enhances custom agents functionality. It adds a chat thread creation mechanism triggered after automation creation, updates automation metadata with thread IDs, and invokes a workflow assistant with an initial prompt. The custom agents feature gains new empty-state and skeleton UI components, and the active-toggle component now handles agent publishing in addition to version activation. Related routes conditionally render loading and empty states. Translations are added for custom agent empty states and automation initialization prompts. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 2 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
⚔️ Resolve merge conflicts (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
services/platform/app/routes/dashboard/$id/custom-agents/index.tsx (1)
35-44: 🧹 Nitpick | 🔵 TrivialConsider removing the redundant
isLoadingprop.Since the loading state is handled by the early return on line 19,
isLoadingwill always befalsewhenCustomAgentTablerenders. Consider removing this prop if it's not needed by the table component.♻️ Proposed refactor
return ( <ContentWrapper> <CustomAgentTable organizationId={organizationId} agents={agents} - isLoading={isLoading} collection={customAgentCollection} /> </ContentWrapper> );
Summary
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
UI/UX Improvements