Skip to content

Commit 2d7630f

Browse files
committed
Sort by name by default; Remove ArgoCD from title (#9329)
Signed-off-by: Keith Chong <kykchong@redhat.com>
1 parent fc45e03 commit 2d7630f

6 files changed

Lines changed: 13 additions & 9 deletions

File tree

locales/en/plugin__gitops-plugin.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
"App Project": "AppProject",
147147
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
148148
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
149-
"Applications": "ArgoCD Applications",
149+
"Applications": "Applications",
150150
"Edit ApplicationSet": "Edit ApplicationSet",
151151
"Delete ApplicationSet": "Delete ApplicationSet",
152152
"AppSet ownerReference Tree View": "AppSet ownerReference Tree View",
@@ -213,7 +213,7 @@
213213
"No Argo CD App Projects": "No Argo CD App Projects",
214214
"Unable to load data": "Unable to load data",
215215
"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.",
216-
"AppProjects": "ArgoCD AppProjects",
216+
"AppProjects": "AppProjects",
217217
"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",
218218
"Create AppProject": "Create AppProject",
219219
"Search by name...": "Search by name...",
@@ -287,7 +287,7 @@
287287
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
288288
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
289289
"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.",
290-
"Argo Rollouts": "Argo Rollouts",
290+
"Rollouts": "Rollouts",
291291
"Create Rollout": "Create Rollout",
292292
"Pods": "Pods",
293293
"Selector": "Selector",
@@ -326,7 +326,7 @@
326326
"No matching Argo CD ApplicationSets": "No matching Argo CD ApplicationSets",
327327
"No Argo CD ApplicationSets": "No Argo CD ApplicationSets",
328328
"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.",
329-
"ApplicationSets": "ArgoCD ApplicationSets",
329+
"ApplicationSets": "ApplicationSets",
330330
"Create ApplicationSet": "Create ApplicationSet",
331331
"Name must be unique within a namespace.": "Name must be unique within a namespace.",
332332
"Namespace defines the space within which each name must be unique.": "Namespace defines the space within which each name must be unique.",

locales/ja/plugin__gitops-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
288288
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
289289
"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.",
290-
"Argo Rollouts": "Argo Rollouts",
290+
"Rollouts": "Rollouts",
291291
"Create Rollout": "Create Rollout",
292292
"Pods": "Pods",
293293
"Selector": "Selector",

locales/ko/plugin__gitops-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
288288
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
289289
"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.",
290-
"Argo Rollouts": "Argo Rollouts",
290+
"Rollouts": "Rollouts",
291291
"Create Rollout": "Create Rollout",
292292
"Pods": "Pods",
293293
"Selector": "Selector",

locales/zh/plugin__gitops-plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
288288
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
289289
"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.",
290-
"Argo Rollouts": "Argo Rollouts",
290+
"Rollouts": "Rollouts",
291291
"Create Rollout": "Create Rollout",
292292
"Pods": "Pods",
293293
"Selector": "Selector",

src/gitops/components/rollout/RolloutList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const RolloutList: React.FC<RolloutListTabProps> = ({
179179
<>
180180
{showTitle == undefined && (
181181
<ListPageHeader
182-
title={t('Argo Rollouts')}
182+
title={t('Rollouts')}
183183
badge={
184184
location.pathname?.includes('openshift-gitops-operator') ? null : (
185185
<TechPreviewBadge

src/gitops/components/shared/DataView/GitOpsDataViewTable.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,11 @@ export const useGitOpsDataViewSort = (
120120
columns: GitOpsDataViewSortConfig[],
121121
): UseGitOpsDataViewSortResult => {
122122
const [searchParams, setSearchParams] = useSearchParams();
123-
const { sortBy, direction, onSort } = useDataViewSort({ searchParams, setSearchParams });
123+
const { sortBy, direction, onSort } = useDataViewSort({
124+
initialSort: { sortBy: 'name', direction: 'asc' },
125+
searchParams,
126+
setSearchParams,
127+
});
124128

125129
const sortByIndex = React.useMemo(
126130
() => columns.findIndex((column) => column.key === sortBy),

0 commit comments

Comments
 (0)