Skip to content
Merged
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 number Diff line number Diff 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 { useParams, Link as RouterLink } from "react-router-dom";

import type { DAGDetailsResponse, DAGWithLatestDagRunsResponse } from "openapi/requests/types.gen";
import { DagIcon } from "src/assets/DagIcon";
Expand Down Expand Up @@ -53,13 +54,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