Files
vitareba/components/AskAssistant.module.css
GandClaude Fable 5 83b87fd7aa feat(messages): consent-at-click for the assistant, one shared AskAssistant component (#66)
The 451 gate now says whose consent is missing (consentIsYours, decided
server-side — only the server knows whose consent it checked). The patient
gets an 'I consent — ask anyway' button; a clinician gets honest copy
(no_patient_consent) instead of a button that would record the wrong
person's consent and look broken.

Third call site of the ask-AI-handle-451 pattern → one shared component,
rendered outside the compose form so Enter never summons the assistant.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 12:30:16 +00:00

25 lines
647 B
CSS

/* Secondary on purpose: asking the assistant is never the primary action in a
clinical thread — replying to the human is. */
.btn {
composes: btnSecondary from "../app/shared.module.css";
composes: btnSm from "../app/shared.module.css";
}
.wrap {
margin-top: 0.75rem;
}
/* Carries an outcome, not a failure ("nothing to add", "provider unreachable"),
so it must read as information rather than an error. */
.note {
margin-top: 0.5rem;
color: var(--muted);
font-size: 0.85rem;
}
.consentBtn {
composes: btnPrimary from "../app/shared.module.css";
composes: btnSm from "../app/shared.module.css";
margin-top: 0.5rem;
}