pierrejeambrun commented on code in PR #46661:
URL: https://github.com/apache/airflow/pull/46661#discussion_r1952382481
##########
airflow/ui/src/pages/TaskInstances.tsx:
##########
@@ -37,17 +37,57 @@ import { taskInstanceStateOptions as stateOptions } from
"src/constants/stateOpt
import { capitalize, getDuration, useAutoRefresh, isStatePending } from
"src/utils";
import { getTaskInstanceLink } from "src/utils/links";
-const columns: Array<ColumnDef<TaskInstanceResponse>> = [
- {
- accessorKey: "task_display_name",
- cell: ({ row: { original } }) => (
- <Link asChild color="fg.info" fontWeight="bold">
- <RouterLink
to={getTaskInstanceLink(original)}>{original.task_display_name}</RouterLink>
- </Link>
- ),
- enableSorting: false,
- header: "Task ID",
- },
+type InstanceRow = { row: { original: TaskInstanceResponse } };
+
+const instanceColumns = (
Review Comment:
Nit
```suggestion
const taskInstanceColumns = (
```
--
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]