fix: Adding new follow up props to Frontend tools#3589
fix: Adding new follow up props to Frontend tools#3589ChloeDumit wants to merge 2 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds followUp: false to all five UpsellingKit frontend CopilotKit action registrations to prevent the AI from generating follow-up messages after upselling components are displayed. It also changes their available value from "disabled" to "frontend" to enable the actions to be called from the frontend. Additionally, a story args block is added to the F0OneSwitch Default story.
Changes:
- All five
use*Actionhooks inUpsellingKit/aiare updated:availablechanged from"disabled"to"frontend"andfollowUp: falseadded. F0OneSwitchDefault story gains anargsblock (with anonTogglehandler).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
F0OneSwitch.stories.tsx |
Adds a default args block to the Default story — but uses a non-existent onToggle prop |
useQuestionCardAction.tsx |
Sets available: "frontend" and followUp: false |
useModuleCardAction.tsx |
Sets available: "frontend" and followUp: false |
useFAQCardAction.tsx |
Sets available: "frontend" and followUp: false |
useDemoCardAction.tsx |
Sets available: "frontend" and followUp: false |
useBookAMeetingCardAction.tsx |
Sets available: "frontend" and followUp: false |
packages/react/src/sds/ai/F0OneSwitch/__stories__/F0OneSwitch.stories.tsx
Outdated
Show resolved
Hide resolved
✅ No New Circular DependenciesNo new circular dependencies detected. Current count: 0 |
d97c7b7 to
36d1b53
Compare
📦 Alpha Package Version PublishedUse Use |
🔍 Visual review for your branch is published 🔍Here are the links to: |
Coverage Report for packages/react
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description
We need to avoid having follow up after any upselling frontend tool, adding prop to avoid that