updates on the issue and the another thing updates on the ai optimization
This commit is contained in:
@@ -12,6 +12,7 @@ import { IconButton } from '@/components/ds';
|
||||
|
||||
import { Spark, Metric, StatGrid, StateBlock, AnswerList } from './AIParts';
|
||||
import AIFlowStep from './AIFlowStep';
|
||||
import AIAddressStep from './AIAddressStep';
|
||||
import AIRowsStep from './AIRowsStep';
|
||||
import { failedRowsCsv, downloadCsv } from '@/lib/assistant/bulkFile';
|
||||
|
||||
@@ -127,6 +128,19 @@ const AssistantMessage = ({ message, onCopy, onSubmitForm, onCancelAction, onCho
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* The address turn. Without this branch the step passed the gate in
|
||||
AIPanel and nothing drew it — the question appeared with an empty
|
||||
space beneath it, which is worse than the free-text version it
|
||||
replaced. */}
|
||||
{message.flowStep?.type === 'address' && !message.flowStep.__answered && (
|
||||
<AIAddressStep
|
||||
step={message.flowStep}
|
||||
isBusy={message.flowStep.__answered}
|
||||
onChoose={(value, option) => onChooseStep(message, value, option)}
|
||||
onCancel={() => onCancelAction(message)}
|
||||
/>
|
||||
)}
|
||||
|
||||
{message.flowStep?.type === 'select' && (
|
||||
<AIFlowStep
|
||||
step={message.flowStep}
|
||||
|
||||
Reference in New Issue
Block a user