@@ -77,12 +77,10 @@ const GOOD_NEWS_KINDS = new Set([
7777 "run_finished" ,
7878] ) ;
7979
80- function outcomeLine ( kind : string ) : { text : string ; color : string } {
81- if ( GOOD_NEWS_KINDS . has ( kind ) ) return { text : "Watch update — all clear" , color : "#A8FF53" } ;
82- if ( kind === "error_recurrence" ) {
83- return { text : "Watch update — needs your attention" , color : "#F87171" } ;
84- }
85- return { text : "Watch update — condition met" , color : "#D7D9DD" } ;
80+ function outcomeLine ( kind : string ) : { accent : string ; color : string } {
81+ if ( GOOD_NEWS_KINDS . has ( kind ) ) return { accent : "all clear" , color : "#A8FF53" } ;
82+ if ( kind === "error_recurrence" ) return { accent : "needs your attention" , color : "#F87171" } ;
83+ return { accent : "condition met" , color : "#D7D9DD" } ;
8684}
8785
8886export default function Email ( props : AlertDashboardAgentWatchEmailProps ) {
@@ -119,14 +117,10 @@ export default function Email(props: AlertDashboardAgentWatchEmailProps) {
119117 />
120118 </ Section >
121119 < Section >
122- < Text
123- className = "text-[13px] font-semibold uppercase tracking-wide mb-0 mt-[30px]"
124- style = { { color : outcome . color } }
125- >
126- { outcome . text }
127- </ Text >
128- < Heading className = "text-[#D7D9DD] text-[30px] font-normal leading-[35px] p-0 mt-[8px] mb-[30px] mx-0" >
129- Your watch fired: < strong className = "text-[#A8FF53]" > { kind } </ strong >
120+ { /* The chat's wake banner IS the headline: the outcome first,
121+ toned — the details line below carries the watch identity. */ }
122+ < Heading className = "text-[#D7D9DD] text-[30px] font-normal leading-[35px] p-0 my-[30px] mx-0" >
123+ Watch update — < strong style = { { color : outcome . color } } > { outcome . accent } </ strong >
130124 </ Heading >
131125 < Text className = "text-[#D7D9DD] text-[16px] leading-[24px]" >
132126 I was keeping an eye on { project } ({ environment } ) for you, and this just fired at{ " " }
0 commit comments