mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-17 10:34:27 +00:00
fix: change max turns to 20
This commit is contained in:
@@ -54,7 +54,8 @@ export const GraphChat: FC<GraphChatProps> = ({
|
||||
onDismiss: onDismissJtbdPopup,
|
||||
} = useJtbdPopup()
|
||||
|
||||
const onTakeSurvey = () => onTakeSurveyBase(5, 'workflow_survey')
|
||||
const onTakeSurvey = () =>
|
||||
onTakeSurveyBase({ experimentId: 'workflow_survey' })
|
||||
|
||||
// Trigger JTBD popup when AI finishes responding
|
||||
const previousChatStatus = useRef(status)
|
||||
|
||||
@@ -4,7 +4,7 @@ import { BROWSEROS_PREFS } from '@/lib/browseros/prefs'
|
||||
|
||||
const JTBD_API_URL = 'https://jtbd-agent.fly.dev'
|
||||
// const LOCAL_JTBD_API_URL = 'http://localhost:3001'
|
||||
const DEFAULT_MAX_TURNS = 7
|
||||
const DEFAULT_MAX_TURNS = 20
|
||||
const DEFAULT_EXPERIMENT_ID = 'default'
|
||||
|
||||
export interface SurveyChatOptions {
|
||||
|
||||
@@ -61,7 +61,7 @@ export const ChatError: FC<ChatErrorProps> = ({ error, onRetry }) => {
|
||||
</a>
|
||||
{' or '}
|
||||
<a
|
||||
href="/options.html?page=survey&maxTurns=5&experimentId=daily_limit"
|
||||
href="/options.html?page=survey&maxTurns=20&experimentId=daily_limit"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="underline hover:text-foreground"
|
||||
|
||||
@@ -26,7 +26,7 @@ export const JtbdPopup: FC<JtbdPopupProps> = ({ onTakeSurvey, onDismiss }) => {
|
||||
<div>
|
||||
<p className="font-medium text-sm">Help us improve BrowserOS!</p>
|
||||
<p className="mt-1 text-muted-foreground text-xs">
|
||||
Take a quick 2-minute survey.
|
||||
Take a quick 3-minute survey.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -45,7 +45,7 @@ export function useJtbdPopup() {
|
||||
}, [])
|
||||
|
||||
const onTakeSurvey = useCallback(
|
||||
async (maxTurns = 15, experimentId = 'popup_survey') => {
|
||||
async ({ maxTurns = 20, experimentId = 'popup_survey' } = {}) => {
|
||||
const current = await jtbdPopupStorage.getValue()
|
||||
track(JTBD_POPUP_CLICKED_EVENT, { messageCount: current.messageCount })
|
||||
setPopupVisible(false)
|
||||
|
||||
Reference in New Issue
Block a user