Skip to content

Commit 739681b

Browse files
Feat: Add XCom 'Timestamp' and unify task columns (apache#57053)
* feat: Add XCom 'Timestamp' and unify task columns * fix: show task_display_name in XCom table with fallback dash
1 parent fb8b590 commit 739681b

File tree

1 file changed

+10
-3
lines changed
  • airflow-core/src/airflow/ui/src/pages/XCom

1 file changed

+10
-3
lines changed

airflow-core/src/airflow/ui/src/pages/XCom/XCom.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { DataTable } from "src/components/DataTable";
2727
import { useTableURLState } from "src/components/DataTable/useTableUrlState";
2828
import { ErrorAlert } from "src/components/ErrorAlert";
2929
import { ExpandCollapseButtons } from "src/components/ExpandCollapseButtons";
30+
import Time from "src/components/Time";
3031
import { TruncatedText } from "src/components/TruncatedText";
3132
import { SearchParamsKeys, type SearchParamsKeysType } from "src/constants/searchParams";
3233
import { getTaskInstanceLink } from "src/utils/links";
@@ -71,7 +72,7 @@ const columns = (translate: (key: string) => string, open: boolean): Array<Colum
7172
header: translate("common:runId"),
7273
},
7374
{
74-
accessorKey: "task_id",
75+
accessorKey: "task_display_name",
7576
cell: ({ row: { original } }: { row: { original: XComResponse } }) => (
7677
<Link asChild color="fg.info" fontWeight="bold">
7778
<RouterLink
@@ -82,18 +83,24 @@ const columns = (translate: (key: string) => string, open: boolean): Array<Colum
8283
taskId: original.task_id,
8384
})}
8485
>
85-
<TruncatedText text={original.task_id} />
86+
<TruncatedText text={original.task_display_name} />
8687
</RouterLink>
8788
</Link>
8889
),
8990
enableSorting: false,
90-
header: translate("common:taskId"),
91+
header: translate("common:task_one"),
9192
},
9293
{
9394
accessorKey: "map_index",
9495
enableSorting: false,
9596
header: translate("common:mapIndex"),
9697
},
98+
{
99+
accessorKey: "timestamp",
100+
cell: ({ row: { original } }) => <Time datetime={original.timestamp} />,
101+
enableSorting: false,
102+
header: translate("dashboard:timestamp"),
103+
},
97104
{
98105
cell: ({ row: { original } }) => (
99106
<XComEntry

0 commit comments

Comments
 (0)