anshuksi282-ksolves commented on code in PR #57053:
URL: https://github.com/apache/airflow/pull/57053#discussion_r2452468056
##########
airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx:
##########
@@ -82,18 +82,24 @@ const columns = (translate: (key: string) => string, open:
boolean): Array<Colum
taskId: original.task_id,
})}
>
- <TruncatedText text={original.task_id} />
+ <TruncatedText text={original.task_display_name || original.task_id}
/>
</RouterLink>
</Link>
),
enableSorting: false,
- header: translate("common:taskId"),
+ header: translate("common:task_one"),
},
{
accessorKey: "map_index",
enableSorting: false,
header: translate("common:mapIndex"),
},
+ {
+ accessorKey: "timestamp",
+ cell: ({ row: { original } }) => new
Date(original.timestamp).toLocaleString(),
Review Comment:
@bbovenzi Thanks for the quick review!
I've successfully updated the column to use the **`<Time />` component** and
the key **`dashboard:timestamp`**.
I've noticed that the header text is rendered as **`timestamp`**
(lowercase), which seems to be the defined value for this key.
Should I apply this
```
header: () => (
<Box textTransform="capitalize">
{translate("dashboard:timestamp")}
</Box>
)
```
or can you please suggest me how to do this .
--
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]