Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions airflow-core/src/airflow/ui/src/pages/Dag/Header.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,8 +16,9 @@
* specific language governing permissions and limitations
* under the License.
*/
import { Link } from "@chakra-ui/react";
import { FiBookOpen } from "react-icons/fi";
import { useParams } from "react-router-dom";
import { Link as RouterLink, useParams } from "react-router-dom";

import type { DAGDetailsResponse, DAGWithLatestDagRunsResponse } from "openapi/requests/types.gen";
import { DagIcon } from "src/assets/DagIcon";
Expand DownExpand Up@@ -54,13 +55,17 @@ export const Header = ({
label: "Latest Run",
value:
Boolean(latestRun) && latestRun !== undefined ? (
<DagRunInfo
endDate={latestRun.end_date}
logicalDate={latestRun.logical_date}
runAfter={latestRun.run_after}
startDate={latestRun.start_date}
state={latestRun.state}
/>
<Link asChild color="fg.info">
<RouterLink to={`/dags/${latestRun.dag_id}/runs/${latestRun.dag_run_id}`}>
<DagRunInfo
endDate={latestRun.end_date}
logicalDate={latestRun.logical_date}
runAfter={latestRun.run_after}
startDate={latestRun.start_date}
state={latestRun.state}
/>
</RouterLink>
</Link>
) : undefined,
},
{
Expand Down