feat(design): sweep off-system styles and add the check:design gate
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -136,7 +136,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
type="button"
|
||||
onClick={getAiDraft}
|
||||
disabled={aiDraftLoading}
|
||||
className="bg-purple-50 text-purple-700 border border-purple-300 px-3 py-1.5 text-xs font-semibold disabled:opacity-50 hover:bg-purple-100"
|
||||
className="bg-accent-100 text-accent-700 border border-accent-300 px-3 py-1.5 text-xs font-semibold disabled:opacity-50 hover:bg-accent-200"
|
||||
>
|
||||
{aiDraftLoading ? 'Drafting…' : 'Get AI Draft'}
|
||||
</button>
|
||||
@@ -149,10 +149,10 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
key={m} type="button"
|
||||
onClick={() => setMethod(m)}
|
||||
className={`px-3 py-1.5 text-sm font-medium border ${
|
||||
method === m
|
||||
? 'bg-blue-600 text-white border-blue-600'
|
||||
: 'bg-surface text-gray-700 border-divider hover:border-blue-400'
|
||||
}`}
|
||||
method === m
|
||||
? 'bg-accent text-white border-accent'
|
||||
: 'bg-surface text-gray-700 border-divider hover:border-accent'
|
||||
}`}
|
||||
>
|
||||
{m === 'five_why' ? '5-Why' : m === 'fishbone' ? 'Fishbone' : 'Other'}
|
||||
</button>
|
||||
@@ -182,7 +182,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
))}
|
||||
{fiveWhy.length < 5 && (
|
||||
<button type="button" onClick={addWhyStep}
|
||||
className="text-sm text-blue-600 hover:underline">
|
||||
className="text-sm text-accent-700 hover:underline">
|
||||
+ Add another Why
|
||||
</button>
|
||||
)}
|
||||
@@ -205,7 +205,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
/>
|
||||
))}
|
||||
<button type="button" onClick={() => addFishboneCause(catIdx)}
|
||||
className="text-xs text-blue-600 hover:underline">
|
||||
className="text-xs text-accent-700 hover:underline">
|
||||
+ Add cause
|
||||
</button>
|
||||
</div>
|
||||
@@ -262,7 +262,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setWitnessRefs([...witnessRefs, ''])}
|
||||
className="text-xs text-blue-600 hover:underline"
|
||||
className="text-xs text-accent-700 hover:underline"
|
||||
>
|
||||
+ Add witness statement
|
||||
</button>
|
||||
@@ -293,7 +293,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
{!existingInvestigationId && (
|
||||
<label className="flex items-center gap-2 text-sm text-gray-700">
|
||||
<input type="checkbox" checked={complete} onChange={e => setComplete(e.target.checked)}
|
||||
className="border-divider text-blue-600" />
|
||||
className="border-divider text-accent-700" />
|
||||
Mark investigation complete (transitions incident to CAPA Pending)
|
||||
</label>
|
||||
)}
|
||||
@@ -301,7 +301,7 @@ export function InvestigationForm({ incidentId, existingInvestigationId }: Props
|
||||
{error && <p className="text-sm text-red-600">{error}</p>}
|
||||
|
||||
<button type="submit" disabled={saving}
|
||||
className="w-full bg-indigo-600 text-white py-2 text-sm font-semibold disabled:opacity-50">
|
||||
className="w-full bg-accent text-white py-2 text-sm font-semibold disabled:opacity-50">
|
||||
{saving ? 'Saving…' : existingInvestigationId ? 'Update Investigation' : 'Start Investigation'}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user