mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-30 18:14:06 +01:00
Item page: while Opus prepares a question, only the progress line shows, not the answers it is replacing
This commit is contained in:
1 parent
cc202322a2
commit
9d5b7ef5c3
1 file changed
+9
-3
@@ -76,9 +76,15 @@ function Question({ d, siblings, choices, here, onAnswered, feedback }: { d: Dec
|
||||
<p className="mt-2 text-pretty text-[15px] font-semibold leading-6">
|
||||
<Refs text={d.question} repo={d.repo} />
|
||||
</p>
|
||||
{d.preparing && !d.answer && <OpusWorking text="Opus is preparing options…" className="mt-2" />}
|
||||
{!choices && <div className="mt-2"><RecommendationLine d={d} /></div>}
|
||||
<ChoiceGroup d={d} user={user} choices={choices} onAnswered={onAnswered} />
|
||||
{/* While Opus prepares, the earlier answers are about to be replaced, so only the progress line shows. */}
|
||||
{d.preparing && !d.answer ? (
|
||||
<OpusWorking text="Opus is preparing options…" className="mt-2" />
|
||||
) : (
|
||||
<>
|
||||
{!choices && <div className="mt-2"><RecommendationLine d={d} /></div>}
|
||||
<ChoiceGroup d={d} user={user} choices={choices} onAnswered={onAnswered} />
|
||||
</>
|
||||
)}
|
||||
{/* With several open questions the composer serves one; the others get their own box. */}
|
||||
{feedback && canComment(user) && !canActOn(user, [d]) && <FeedbackBox d={d} className="mt-3" />}
|
||||
</article>
|
||||
|
||||
Reference in new issue
Block a user