bbovenzi commented on code in PR #77414:
URL: https://github.com/apache/airflow/pull/77414#discussion_r4648792930


##########
airflow-core/src/airflow/ui/src/pages/XCom/XComEntry.tsx:
##########
@@ -107,6 +113,52 @@ const XComError = ({ error }: { readonly error: unknown }) 
=> {
   );
 };
 
+const XComFullValue = ({ value }: { readonly value: string }) => {
+  const { t: translate } = useTranslation("browse");
+  const [open, setOpen] = useState(false);

Review Comment:
   useDisclosure is better for boolean states



##########
airflow-core/src/airflow/ui/src/pages/XCom/XComEntry.tsx:
##########
@@ -107,6 +113,52 @@ const XComError = ({ error }: { readonly error: unknown }) 
=> {
   );
 };
 
+const XComFullValue = ({ value }: { readonly value: string }) => {
+  const { t: translate } = useTranslation("browse");
+  const [open, setOpen] = useState(false);
+
+  return (
+    <>
+      <Button
+        aria-haspopup="dialog"
+        data-testid="xcom-view-full"
+        fontSize="sm"
+        onClick={() => setOpen(true)}
+        px={0}
+        size="xs"
+        variant="plain"
+      >
+        {translate("xcom.viewFull")}
+      </Button>
+      <Modal

Review Comment:
   Let's add an `unmountOnExit` here. 



##########
airflow-core/src/airflow/ui/public/i18n/locales/en/browse.json:
##########
@@ -135,6 +93,7 @@
     "entry_other": "XCom Entries",
     "key": "Key",
     "title": "XCom",
-    "value": "Value"
+    "value": "Value",
+    "viewFull": "View full"

Review Comment:
   We don't need a new key here. Check the UX we do for showing the dag code in 
a full modal



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