Questions in a chat panel behind a floating button
CI / test (push) Successful in 2m5s
CI / build (push) Skipped
CI / deploy (push) Skipped

Where a finished detailed analysis can be asked about (chart, comparison,
forecast), a floating button with the silhouette icon opens a chat panel
(a side panel on desktop, full screen on phones): earlier questions and
answers as bubbles, the question box at the bottom, or a one-line package
offer when no questions are left. The end of the analysis keeps a short
line that opens the same panel; the button hides while that line is in
view. The panel stays mounted when closed, so an answer keeps arriving and
the button shows a dot for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-23 10:57:08 +00:00
co-authored by Claude Opus 5.5
parent 6a147aa253
commit e5c90b260d
6 changed files with 374 additions and 99 deletions
@@ -8,8 +8,8 @@ import type { Analysis, PayMethod } from "@/lib/types";
import { AI_SHORT } from "./AiNote";
import { AnalysisLoading } from "./AnalysisLoading";
import { AnalysisQuestions } from "./AnalysisQuestions";
import { PackageChooser } from "./PackageCards";
import { QuestionsDock } from "./QuestionsDock";
import { RegenerateButton } from "./RegenerateButton";
import { RetryNotice } from "./RetryNotice";
import { AnalysisView } from "./AnalysisView";
@@ -157,7 +157,7 @@ export function DetailedAnalysis({
{note && <p className="hint">{note}</p>}
<AnalysisView content={analysis.content} kind={target.kind} language={analysis.language} />
{questionsLeft !== undefined && (
<AnalysisQuestions
<QuestionsDock
analysisId={analysis.id}
left={questionsLeft}
isAdmin={isAdmin}