feat(design): colour banners and badges by meaning, document slice 1 and update design notes
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,8 +42,8 @@ export function InvestigationPanel({ investigation: inv }: Props) {
|
||||
<span className="text-xs text-gray-500">{METHOD_LABELS[inv.method] ?? inv.method}</span>
|
||||
<span className={`text-xs font-medium px-2 py-0.5 ${
|
||||
inv.completed_at
|
||||
? 'bg-neutral-100 text-ink'
|
||||
: 'bg-accent-100 text-accent-700'
|
||||
? 'bg-st-green-bg text-st-green-fg'
|
||||
: 'bg-st-blue-bg text-st-blue-fg'
|
||||
}`}>
|
||||
{inv.completed_at ? 'Completed' : 'In Progress'}
|
||||
</span>
|
||||
|
||||
@@ -56,8 +56,8 @@ export function OfflineSync() {
|
||||
if (pendingCount === 0) return null
|
||||
|
||||
return (
|
||||
<div className="fixed bottom-4 left-4 right-4 bg-accent-100 border border-accent-300 p-3 flex items-center justify-between shadow-md z-50">
|
||||
<span className="text-sm text-accent-700 font-medium">
|
||||
<div className="fixed bottom-4 left-4 right-4 bg-st-amber-bg rounded-xl p-3 flex items-center justify-between shadow-float z-50">
|
||||
<span className="text-sm text-st-amber-fg font-medium">
|
||||
{pendingCount} report{pendingCount > 1 ? 's' : ''} saved offline
|
||||
</span>
|
||||
<button
|
||||
|
||||
@@ -214,7 +214,7 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) {
|
||||
return (
|
||||
<form onSubmit={handleSubmit} className="space-y-5 bg-surface shadow-sm p-5">
|
||||
{!isOnline && (
|
||||
<div className="bg-accent-100 border border-accent-300 p-3 text-sm text-accent-700">
|
||||
<div className="bg-st-amber-bg rounded-md p-3 text-sm text-st-amber-fg">
|
||||
{t.offlineBanner}
|
||||
</div>
|
||||
)}
|
||||
@@ -308,15 +308,15 @@ export function ReportForm({ zoneToken, trucks, initialTruckId }: Props) {
|
||||
</div>
|
||||
|
||||
{qualityCheck && !qualityCheck.passes && (
|
||||
<div className="bg-accent-100 border border-accent-300 p-3 space-y-2">
|
||||
<p className="text-xs font-semibold text-accent-700 uppercase tracking-wide">
|
||||
<div className="bg-st-amber-bg rounded-md p-3 space-y-2">
|
||||
<p className="text-xs font-semibold text-st-amber-fg uppercase tracking-wide">
|
||||
{t.qualityScoreLabel.replace('{score}', String(qualityCheck.score))}
|
||||
</p>
|
||||
<p className="text-sm text-accent-700">{qualityCheck.feedback}</p>
|
||||
<p className="text-sm text-st-amber-fg">{qualityCheck.feedback}</p>
|
||||
{qualityCheck.suggestions.length > 0 && (
|
||||
<ul className="list-disc list-inside space-y-1">
|
||||
{qualityCheck.suggestions.map((s, i) => (
|
||||
<li key={i} className="text-xs text-accent-700">{s}</li>
|
||||
<li key={i} className="text-xs text-st-amber-fg">{s}</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
@@ -157,7 +157,7 @@ export function TriageForm({ incidentId, currentSeverity }: Props) {
|
||||
</div>
|
||||
|
||||
{aiRationale && (
|
||||
<div className="bg-accent-100 border border-accent-300 p-3">
|
||||
<div className="bg-accent-tint rounded-md p-3">
|
||||
<p className="text-xs font-semibold text-accent-700 mb-1">AI Suggestion Rationale</p>
|
||||
<p className="text-xs text-accent-700">{aiRationale}</p>
|
||||
<p className="text-xs text-accent-400 mt-1">Fields pre-filled — review before submitting.</p>
|
||||
|
||||
Reference in New Issue
Block a user