tirkarthi commented on PR #47421: URL: https://github.com/apache/airflow/pull/47421#issuecomment-2704342984
I think this widget can be added to the assets list page similar to dags list page having trigger button. A rough patch of this that I can take up in another PR if okay or ok with this PR too.  ```patch diff --git a/airflow/ui/src/pages/AssetsList/AssetsList.tsx b/airflow/ui/src/pages/AssetsList/AssetsList.tsx index a8892bf250..84020b17aa 100644 --- a/airflow/ui/src/pages/AssetsList/AssetsList.tsx +++ b/airflow/ui/src/pages/AssetsList/AssetsList.tsx @@ -28,6 +28,7 @@ import { useTableURLState } from "src/components/DataTable/useTableUrlState"; import { ErrorAlert } from "src/components/ErrorAlert"; import { SearchBar } from "src/components/SearchBar"; import { SearchParamsKeys } from "src/constants/searchParams"; +import { CreateAssetEvent } from "src/pages/Asset/CreateAssetEvent"; import { pluralize } from "src/utils"; import { DependencyPopover } from "./DependencyPopover"; @@ -67,6 +68,12 @@ const columns: Array<ColumnDef<AssetResponse>> = [ enableSorting: false, header: () => "Producing Tasks", }, + { + id: "trigger", + cell: ({ row: { original } }: AssetRow) => <CreateAssetEvent asset={original} withText={false} />, + enableSorting: false, + header: "", + }, ]; const NAME_PATTERN_PARAM = SearchParamsKeys.NAME_PATTERN; ``` -- 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]
