pierrejeambrun commented on code in PR #48450:
URL: https://github.com/apache/airflow/pull/48450#discussion_r2021084730


##########
airflow-core/src/airflow/api_fastapi/common/types.py:
##########
@@ -96,3 +96,10 @@ class MenuItem(Enum):
     PROVIDERS = "Providers"
     VARIABLES = "Variables"
     XCOMS = "XComs"
+
+
+class UIAlert(BaseModel):
+    """Optional alert to be shown at the top of the page."""
+
+    text: str
+    category: Literal["info", "warning", "error"] | None = None

Review Comment:
   ```suggestion
       category: Literal["info", "warning", "error"] = "info"
   ```
   
   So we don't have to handle the `None` case on the front-end.



-- 
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