polish: reformat AutomationActivityLog JSX; InlineNotice alert role for actionable warns (P1-20, P3-63)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 23:12:57 -04:00
1 parent a7ad4e5a8b
commit 6809fa13af
2 files changed
+34 -6

No files matched your search

+2 -1
View File
@@ -61,8 +61,9 @@ export function InlineNotice({
: tone === "warn"
? "border-warning bg-warning-muted text-warning"
: "border-destructive bg-destructive-muted text-destructive";
const role = tone === "danger" || (tone === "warn" && action) ? "alert" : "status";
return (
<div className={`rounded-lg border px-4 py-3 text-[13px] ${toneClass}`} role={tone === "danger" ? "alert" : "status"}>
<div className={`rounded-lg border px-4 py-3 text-[13px] ${toneClass}`} role={role}>
{action ? (
<div className="flex items-start justify-between gap-3">
<span>{message}</span>