Render AI-authored planning and interview questions with readable, sanitized Markdown. - Reuse MailboxMessageContent for active and historical planning questions. - Preserve question typography while spacing Markdown blocks and lists consistently. - Cover Markdown formatting across planning, mission, milestone, and slice interviews. Files changed: .changeset/fn-8057-planning-question-markdown.md | 7 ++++ .../app/components/ConversationHistory.css | 18 ++++++++++ .../app/components/ConversationHistory.tsx | 6 +++- .../components/MilestoneSliceInterviewModal.tsx | 12 +++++-- .../app/components/MissionInterviewModal.tsx | 12 +++++-- .../dashboard/app/components/PlanningModeModal.css | 27 +++++++++++-- .../dashboard/app/components/PlanningModeModal.tsx | 18 +++++++-- .../__tests__/ConversationHistory.test.tsx | 20 +++++++++++ .../MilestoneSliceInterviewModal.test.tsx | 39 ++++++++++++++++++++ .../MissionInterviewModal.test.tsx | 31 ++++++++++++++++ .../PlanningModeModal.ui-interactions.test.tsx | 41 +++++++++++++++++++++- 11 files changed, 221 insertions(+), 10 deletions(-) Fusion-Task-Id: FN-8057 Fusion-Task-Lineage: cf04fc77-c15c-4ca5-a99a-80a9631a1c8c Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
152 lines
3.1 KiB
CSS
152 lines
3.1 KiB
CSS
/* === Conversation History Timeline === */
|
|
.conversation-history {
|
|
border-left: 2px solid var(--border);
|
|
padding: 0 0 0 12px;
|
|
margin: 0 0 16px;
|
|
max-height: 280px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.conversation-entry {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.conversation-entry-question {
|
|
color: var(--text-muted);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.conversation-entry-question-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
width: fit-content;
|
|
padding: 2px 8px;
|
|
border-radius: 999px;
|
|
background: color-mix(in srgb, var(--bg-secondary) 80%, transparent);
|
|
border: 1px solid var(--border);
|
|
color: var(--text);
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/*
|
|
FNXC:PlanningInterview 2026-07-16-00:00:
|
|
History uses the same sanitized markdown renderer as live interview questions.
|
|
Keep generated blocks compact within the existing timeline row.
|
|
*/
|
|
.conversation-entry-question-text > * {
|
|
margin: 0;
|
|
}
|
|
|
|
.conversation-entry-question-text > * + * {
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.conversation-entry-question-text ul,
|
|
.conversation-entry-question-text ol {
|
|
padding-left: var(--space-lg);
|
|
}
|
|
|
|
.conversation-entry-response {
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary);
|
|
padding: 8px 10px;
|
|
color: var(--text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
font-size: 13px;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.conversation-comment {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.conversation-entry-thinking {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.conversation-entry-thinking pre {
|
|
margin: 0;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
|
|
padding: 10px;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
line-height: 1.45;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.conversation-thinking-toggle {
|
|
min-height: 44px;
|
|
width: fit-content;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
|
|
}
|
|
|
|
.conversation-thinking-toggle:hover {
|
|
background: var(--bg-secondary);
|
|
color: var(--text);
|
|
}
|
|
|
|
.conversation-thinking-toggle:focus-visible {
|
|
outline: 2px solid var(--todo);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.conversation-separator {
|
|
border-top: 1px solid var(--border);
|
|
margin: 4px 0 16px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.conversation-history {
|
|
max-height: 220px;
|
|
margin-bottom: 12px;
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.conversation-entry-question,
|
|
.conversation-entry-response {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.conversation-thinking-toggle {
|
|
width: 100%;
|
|
justify-content: center;
|
|
min-height: 36px;
|
|
}
|
|
}
|
|
|