Expose the prompt that started a Planning Mode session wherever its history is reviewed. - Add a reusable read-only PlanningSessionPrompt display for history, errors, and plan-review Q&A. - Integrate prompt rendering and responsive styling into PlanningModeModal. - Document the Planning Mode history behavior and add a minor release changeset. - Cover populated, missing, long, and responsive prompt states with dashboard tests. Files changed: .changeset/fn-210-planning-session-prompt.md | 7 + docs/dashboard-guide.md | 3 + .../dashboard/app/components/PlanningModeModal.css | 9 + .../dashboard/app/components/PlanningModeModal.tsx | 26 +- .../app/components/PlanningSessionPrompt.css | 29 +++ .../app/components/PlanningSessionPrompt.tsx | 37 +++ .../PlanningModeModal.session-prompt.test.tsx | 280 +++++++++++++++++++++ .../__tests__/PlanningSessionPrompt.test.tsx | 48 +++ 8 files changed, 435 insertions(+), 4 deletions(-) Fusion-Task-Id: FN-210 Fusion-Task-Lineage: 08201db3-7b1b-4567-95e0-1e97dc3a7ae6 Co-authored-by: Fusion <noreply@runfusion.ai>
30 lines
643 B
CSS
30 lines
643 B
CSS
.planning-session-prompt {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.planning-session-prompt-label {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.planning-session-prompt-text {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: var(--space-md);
|
|
border: solid var(--btn-border-width) color-mix(in srgb, var(--border) 82%, transparent);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--card);
|
|
color: var(--text);
|
|
font: inherit;
|
|
line-height: 1.5;
|
|
white-space: pre-wrap;
|
|
overflow-y: auto;
|
|
resize: none;
|
|
cursor: default;
|
|
}
|