From 2d7630fa613bf049169b04e16b392b912f4fd614 Mon Sep 17 00:00:00 2001 From: Keith Chong Date: Wed, 15 Apr 2026 17:32:33 -0400 Subject: [PATCH] Sort by name by default; Remove ArgoCD from title (#9329) Signed-off-by: Keith Chong --- locales/en/plugin__gitops-plugin.json | 8 ++++---- locales/ja/plugin__gitops-plugin.json | 2 +- locales/ko/plugin__gitops-plugin.json | 2 +- locales/zh/plugin__gitops-plugin.json | 2 +- src/gitops/components/rollout/RolloutList.tsx | 2 +- .../components/shared/DataView/GitOpsDataViewTable.tsx | 6 +++++- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/locales/en/plugin__gitops-plugin.json b/locales/en/plugin__gitops-plugin.json index 2e1090283..097c83ae6 100644 --- a/locales/en/plugin__gitops-plugin.json +++ b/locales/en/plugin__gitops-plugin.json @@ -146,7 +146,7 @@ "App Project": "AppProject", "Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.", "Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.", - "Applications": "ArgoCD Applications", + "Applications": "Applications", "Edit ApplicationSet": "Edit ApplicationSet", "Delete ApplicationSet": "Delete ApplicationSet", "AppSet ownerReference Tree View": "AppSet ownerReference Tree View", @@ -213,7 +213,7 @@ "No Argo CD App Projects": "No Argo CD App Projects", "Unable to load data": "Unable to load data", "There was an error retrieving App Projects. Check your connection and reload the page.": "There was an error retrieving App Projects. Check your connection and reload the page.", - "AppProjects": "ArgoCD AppProjects", + "AppProjects": "AppProjects", "This list page is under tech preview, but not necessarily the resources it represents": "This list page is under tech preview, but not necessarily the resources it represents", "Create AppProject": "Create AppProject", "Search by name...": "Search by name...", @@ -287,7 +287,7 @@ "There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.", "There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.", "There was an error retrieving rollouts. Check your connection and reload the page.": "There was an error retrieving rollouts. Check your connection and reload the page.", - "Argo Rollouts": "Argo Rollouts", + "Rollouts": "Rollouts", "Create Rollout": "Create Rollout", "Pods": "Pods", "Selector": "Selector", @@ -326,7 +326,7 @@ "No matching Argo CD ApplicationSets": "No matching Argo CD ApplicationSets", "No Argo CD ApplicationSets": "No Argo CD ApplicationSets", "There was an error retrieving applicationsets. Check your connection and reload the page.": "There was an error retrieving applicationsets. Check your connection and reload the page.", - "ApplicationSets": "ArgoCD ApplicationSets", + "ApplicationSets": "ApplicationSets", "Create ApplicationSet": "Create ApplicationSet", "Name must be unique within a namespace.": "Name must be unique within a namespace.", "Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.", diff --git a/locales/ja/plugin__gitops-plugin.json b/locales/ja/plugin__gitops-plugin.json index ba4a09539..105105d89 100644 --- a/locales/ja/plugin__gitops-plugin.json +++ b/locales/ja/plugin__gitops-plugin.json @@ -287,7 +287,7 @@ "There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.", "There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.", "There was an error retrieving rollouts. Check your connection and reload the page.": "There was an error retrieving rollouts. Check your connection and reload the page.", - "Argo Rollouts": "Argo Rollouts", + "Rollouts": "Rollouts", "Create Rollout": "Create Rollout", "Pods": "Pods", "Selector": "Selector", diff --git a/locales/ko/plugin__gitops-plugin.json b/locales/ko/plugin__gitops-plugin.json index b9a275972..bf19b8b87 100644 --- a/locales/ko/plugin__gitops-plugin.json +++ b/locales/ko/plugin__gitops-plugin.json @@ -287,7 +287,7 @@ "There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.", "There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.", "There was an error retrieving rollouts. Check your connection and reload the page.": "There was an error retrieving rollouts. Check your connection and reload the page.", - "Argo Rollouts": "Argo Rollouts", + "Rollouts": "Rollouts", "Create Rollout": "Create Rollout", "Pods": "Pods", "Selector": "Selector", diff --git a/locales/zh/plugin__gitops-plugin.json b/locales/zh/plugin__gitops-plugin.json index 1d8b344a1..27ce9884b 100644 --- a/locales/zh/plugin__gitops-plugin.json +++ b/locales/zh/plugin__gitops-plugin.json @@ -287,7 +287,7 @@ "There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.", "There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.", "There was an error retrieving rollouts. Check your connection and reload the page.": "There was an error retrieving rollouts. Check your connection and reload the page.", - "Argo Rollouts": "Argo Rollouts", + "Rollouts": "Rollouts", "Create Rollout": "Create Rollout", "Pods": "Pods", "Selector": "Selector", diff --git a/src/gitops/components/rollout/RolloutList.tsx b/src/gitops/components/rollout/RolloutList.tsx index e6a4f7227..538af5018 100644 --- a/src/gitops/components/rollout/RolloutList.tsx +++ b/src/gitops/components/rollout/RolloutList.tsx @@ -179,7 +179,7 @@ const RolloutList: React.FC = ({ <> {showTitle == undefined && ( { const [searchParams, setSearchParams] = useSearchParams(); - const { sortBy, direction, onSort } = useDataViewSort({ searchParams, setSearchParams }); + const { sortBy, direction, onSort } = useDataViewSort({ + initialSort: { sortBy: 'name', direction: 'asc' }, + searchParams, + setSearchParams, + }); const sortByIndex = React.useMemo( () => columns.findIndex((column) => column.key === sortBy),