This is an automated email from the ASF dual-hosted git repository.
pierrejeambrun pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 813963a0e69 Rename DAG to Dag in new UI (#43325)
813963a0e69 is described below
commit 813963a0e6966ca7f8adb017135620e47481905e
Author: Brent Bovenzi <[email protected]>
AuthorDate: Wed Oct 23 15:32:59 2024 -0400
Rename DAG to Dag in new UI (#43325)
---
airflow/ui/src/components/SearchBar.tsx | 2 +-
airflow/ui/src/layouts/Nav/Nav.tsx | 4 ++--
airflow/ui/src/pages/DagsList/DagsList.tsx | 12 ++++++------
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/airflow/ui/src/components/SearchBar.tsx
b/airflow/ui/src/components/SearchBar.tsx
index ad50a65b431..c0d8d6f32d5 100644
--- a/airflow/ui/src/components/SearchBar.tsx
+++ b/airflow/ui/src/components/SearchBar.tsx
@@ -52,7 +52,7 @@ export const SearchBar = ({
<FiSearch />
</InputLeftElement>
<Input
- placeholder="Search DAGs"
+ placeholder="Search Dags"
pr={150}
{...inputProps}
onChange={handleSearchChange}
diff --git a/airflow/ui/src/layouts/Nav/Nav.tsx
b/airflow/ui/src/layouts/Nav/Nav.tsx
index 71b0843831a..edf544f8992 100644
--- a/airflow/ui/src/layouts/Nav/Nav.tsx
+++ b/airflow/ui/src/layouts/Nav/Nav.tsx
@@ -64,7 +64,7 @@ export const Nav = () => {
<NavButton icon={<FiHome size="1.75rem" />} title="Home" to="/" />
<NavButton
icon={<DagIcon height={7} width={7} />}
- title="DAGs"
+ title="Dags"
to="dags"
/>
<NavButton
@@ -76,7 +76,7 @@ export const Nav = () => {
<NavButton
icon={<FiBarChart2 size="1.75rem" />}
isDisabled
- title="DAG Runs"
+ title="Dag Runs"
to="dag_runs"
/>
<NavButton
diff --git a/airflow/ui/src/pages/DagsList/DagsList.tsx
b/airflow/ui/src/pages/DagsList/DagsList.tsx
index ad1b08fe875..84e0cc6da41 100644
--- a/airflow/ui/src/pages/DagsList/DagsList.tsx
+++ b/airflow/ui/src/pages/DagsList/DagsList.tsx
@@ -70,7 +70,7 @@ const columns: Array<ColumnDef<DAGResponse>> = [
{
accessorKey: "dag_id",
cell: ({ row }) => row.original.dag_display_name,
- header: "DAG",
+ header: "Dag",
},
{
accessorKey: "timetable_description",
@@ -88,7 +88,7 @@ const columns: Array<ColumnDef<DAGResponse>> = [
<Time datetime={original.next_dagrun} />
) : undefined,
enableSorting: false,
- header: "Next DAG Run",
+ header: "Next Dag Run",
},
{
accessorKey: "tags",
@@ -198,7 +198,7 @@ export const DagsList = () => {
<DagsFilters />
<HStack justifyContent="space-between">
<Heading py={3} size="md">
- {pluralize("DAG", data?.total_entries)}
+ {pluralize("Dag", data?.total_entries)}
</Heading>
{display === "card" ? (
<Select
@@ -209,8 +209,8 @@ export const DagsList = () => {
variant="flushed"
width="200px"
>
- <option value="dag_id">Sort by DAG ID (A-Z)</option>
- <option value="-dag_id">Sort by DAG ID (Z-A)</option>
+ <option value="dag_id">Sort by Dag ID (A-Z)</option>
+ <option value="-dag_id">Sort by Dag ID (Z-A)</option>
</Select>
) : (
false
@@ -227,7 +227,7 @@ export const DagsList = () => {
initialState={tableURLState}
isFetching={isFetching}
isLoading={isLoading}
- modelName="DAG"
+ modelName="Dag"
onStateChange={setTableURLState}
skeletonCount={display === "card" ? 5 : undefined}
total={data?.total_entries}