amoghrajesh commented on code in PR #73030:
URL: https://github.com/apache/airflow/pull/73030#discussion_r4102482378


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Details.tsx:
##########
@@ -131,6 +173,16 @@ export const Details = () => {
 
   return (
     <Box p={2}>
+      {stateReasonSummary === undefined ? undefined : (
+        <Alert
+          data-testid="state-reason-alert"
+          mb={2}
+          status={stateReasonSummary.status}
+          title={stateReasonSummary.title}
+        >
+          {stateReasonSummary.reason}
+        </Alert>
+      )}

Review Comment:
   Thanks, it makes sense to do that. 
   
   Once done this is how it looks now:
   
   Task that fails:
   
   <img width="2479" height="1185" alt="image" 
src="https://github.com/user-attachments/assets/edd8006e-03c7-4306-ba62-98840d871c38";
 />
   
   <img width="2479" height="1185" alt="image" 
src="https://github.com/user-attachments/assets/b8c78f64-5521-4764-ac84-b4f2d0c17d79";
 />
   
   
   Task in retry state:
   <img width="2479" height="1185" alt="image" 
src="https://github.com/user-attachments/assets/ffb2285b-4221-480e-8746-d37d1138a6b4";
 />
   
   
   And when it moves to failed:
   
   <img width="2479" height="1185" alt="image" 
src="https://github.com/user-attachments/assets/2473e4a6-8caf-488a-9a62-f886578c57bc";
 />



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to