chore: add agent selector support in health check creation#2836
chore: add agent selector support in health check creation#2836
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughAdds agent-based UI and behavior: a new "agent" group option in the group-by dropdown, grouping logic for checks by agent (including "local"), a FormikAgentSelector component that fetches agent names and a conditional Agents field in the canary spec form, and agent-aware tab filtering including a "local" tab. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User
participant Selector as FormikAgentSelector
participant API as AgentNamesAPI
participant Formik as Formik State
participant Filters as Filter State
participant Grouping as grouping.ts
participant Tabs as CanaryTabs
participant Checks as ChecksList
User->>Selector: open selector / choose agents
Selector->>API: fetch agent names
API-->>Selector: return names
Selector->>Formik: update spec.agentSelector
Formik->>Filters: apply agent filter
Filters->>Grouping: request grouping by "agent"
Grouping->>Checks: group checks by agent name or "local"
Grouping-->>Tabs: produce tabs data
Tabs->>Checks: render filtered/selected checks
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Fixes: #2831
Summary by CodeRabbit