fix: JSX comment inside ternary breaks parsing
This commit is contained in:
@@ -679,39 +679,37 @@ export default function ReasoningWorkspace({
|
|||||||
{updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />}
|
{updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />}
|
||||||
|
|
||||||
{/* ── Response area (replaced by loading / error during reasoning) ─ */}
|
{/* ── Response area (replaced by loading / error during reasoning) ─ */}
|
||||||
{!isUpdating ? (
|
{!isUpdating && canAnswer ? (
|
||||||
canAnswer && (
|
<form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5">
|
||||||
<form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5">
|
<div>
|
||||||
<div>
|
<label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700">
|
||||||
<label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700">
|
Your response
|
||||||
Your response
|
</label>
|
||||||
</label>
|
<textarea
|
||||||
<textarea
|
id="rw-answer"
|
||||||
id="rw-answer"
|
value={answer}
|
||||||
value={answer}
|
onChange={(e) => setAnswer(e.target.value)}
|
||||||
onChange={(e) => setAnswer(e.target.value)}
|
rows={4}
|
||||||
rows={4}
|
disabled={updateStatus === "loading"}
|
||||||
disabled={updateStatus === "loading"}
|
className="w-full rounded-lg border border-gray-300 px-4 py-3 text-sm focus:border-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-400 disabled:cursor-not-allowed disabled:opacity-60"
|
||||||
className="w-full rounded-lg border border-gray-300 px-4 py-3 text-sm focus:border-gray-500 focus:outline-none focus:ring-2 focus:ring-gray-400 disabled:cursor-not-allowed disabled:opacity-60"
|
placeholder="Enter the answer to the selected question..."
|
||||||
placeholder="Enter the answer to the selected question..."
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
<div className="flex items-center justify-between">
|
||||||
<div className="flex items-center justify-between">
|
<p className="text-xs text-gray-400">
|
||||||
<p className="text-xs text-gray-400">
|
One update turn only in this prototype.
|
||||||
One update turn only in this prototype.
|
</p>
|
||||||
</p>
|
<button
|
||||||
<button
|
type="submit"
|
||||||
type="submit"
|
disabled={!answer.trim()}
|
||||||
disabled={!answer.trim()}
|
className="rounded-lg bg-blue-700 px-5 py-2 text-sm font-medium text-white transition hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-40"
|
||||||
className="rounded-lg bg-blue-700 px-5 py-2 text-sm font-medium text-white transition hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-40"
|
>
|
||||||
>
|
Update situation
|
||||||
Update situation
|
</button>
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
</form>
|
) : !isUpdating ? null : (
|
||||||
)
|
/* Local update loading card — replaces the response panel during reasoning */
|
||||||
) : (
|
|
||||||
/* ── Local update loading card (replaces response panel) ─ */}
|
|
||||||
<LoadingOverlay
|
<LoadingOverlay
|
||||||
elapsed={updateElapsed}
|
elapsed={updateElapsed}
|
||||||
currentMessage={updateMsg}
|
currentMessage={updateMsg}
|
||||||
|
|||||||
Reference in New Issue
Block a user