Skip to content

Commit ff5e533

Browse files
authored
Merge pull request #146 from aali309/listAppProjects
feat: Show ArgoCD App Projects in Resource List page
2 parents a1ddade + bb1274d commit ff5e533

File tree

14 files changed

+976
-25
lines changed

14 files changed

+976
-25
lines changed

console-extensions.json

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,29 @@
351351
}
352352
}
353353
},
354+
{
355+
"type": "console.navigation/resource-ns",
356+
"properties": {
357+
"id": "appproject",
358+
"name": "AppProjects",
359+
"perspective": "admin",
360+
"section": "gitops-navigation-section",
361+
"model": {
362+
"group": "argoproj.io",
363+
"kind": "AppProject",
364+
"version": "v1alpha1"
365+
}
366+
}
367+
},
368+
{
369+
"type": "console.navigation/separator",
370+
"properties": {
371+
"perspective": "admin",
372+
"section": "gitops-navigation-section",
373+
"id": "argocd-separator",
374+
"insertAfter": "appproject"
375+
}
376+
},
354377
{
355378
"type": "console.navigation/resource-ns",
356379
"properties": {
@@ -401,6 +424,24 @@
401424
}
402425
}
403426
},
427+
{
428+
"type": "console.page/resource/list",
429+
"flags": {
430+
"required": [
431+
"APPLICATION"
432+
]
433+
},
434+
"properties": {
435+
"model": {
436+
"group": "argoproj.io",
437+
"kind": "AppProject",
438+
"version": "v1alpha1"
439+
},
440+
"component": {
441+
"$codeRef": "ProjectList"
442+
}
443+
}
444+
},
404445
{
405446
"type": "console.page/resource/details",
406447
"flags": {
@@ -512,7 +553,25 @@
512553
}
513554
}
514555
},
515-
556+
{
557+
"type": "console.yaml-template",
558+
"flags": {
559+
"required": [
560+
"APPLICATION"
561+
]
562+
},
563+
"properties": {
564+
"name": "default",
565+
"model": {
566+
"group": "argoproj.io",
567+
"kind": "AppProject",
568+
"version": "v1alpha1"
569+
},
570+
"template": {
571+
"$codeRef": "yamlTemplates.defaultAppProjectYamlTemplate"
572+
}
573+
}
574+
},
516575
{
517576
"type": "console.page/resource/details",
518577
"flags": {

locales/en/plugin__gitops-plugin.json

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,42 @@
127127
"App Project": "App Project",
128128
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
129129
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
130-
"Applications": "Argo CD Applications",
130+
"Applications": "ArgoCD Applications",
131+
"Edit labels": "Edit labels",
132+
"Edit annotations": "Edit annotations",
133+
"Edit App Project": "Edit App Project",
134+
"Delete": "Delete",
135+
"No Argo CD App Projects match the search filter": "No Argo CD App Projects match the search filter",
136+
"Try removing the filter or searching for a different term to see more App Projects.": "Try removing the filter or searching for a different term to see more App Projects.",
137+
"There are no Argo CD App Projects in this project.": "There are no Argo CD App Projects in this project.",
138+
"There are no Argo CD App Projects in all projects.": "There are no Argo CD App Projects in all projects.",
139+
"No matching Argo CD App Projects": "No matching Argo CD App Projects",
140+
"No Argo CD App Projects": "No Argo CD App Projects",
141+
"Unable to load data": "Unable to load data",
142+
"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.",
143+
"App Projects": "App Projects",
144+
"Create App Project": "Create App Project",
145+
"Search by name...": "Search by name...",
146+
"Description": "Description",
147+
"Last Updated": "Last Updated",
148+
"Has Description": "Has Description",
149+
"No Description": "No Description",
150+
"Has Applications": "Has Applications",
151+
"No Applications": "No Applications",
152+
"Project Type": "Project Type",
153+
"Default Project": "Default Project",
154+
"Custom Projects": "Custom Projects",
155+
"Source Repositories": "Source Repositories",
156+
"Has Source Repos": "Has Source Repos",
157+
"No Source Repos": "No Source Repos",
158+
"Destinations": "Destinations",
159+
"Has Destinations": "Has Destinations",
160+
"No Destinations": "No Destinations",
131161
"Promote": "Promote",
132162
"Full Promote": "Full Promote",
133163
"Abort": "Abort",
134164
"Retry": "Retry",
135165
"Restart": "Restart",
136-
"Edit labels": "Edit labels",
137-
"Edit annotations": "Edit annotations",
138166
"Edit Rollout": "Edit Rollout",
139167
"Delete": "Delete",
140168
"Rollout details": "Rollout details",
@@ -149,7 +177,6 @@
149177
"No Argo Rollouts": "No Argo Rollouts",
150178
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
151179
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
152-
"Unable to load data": "Unable to load data",
153180
"There was an error retrieving applications. Check your connection and reload the page.": "There was an error retrieving applications. Check your connection and reload the page.",
154181
"Argo Rollouts": "Argo Rollouts",
155182
"Rollouts": "Argo Rollouts",
@@ -158,7 +185,6 @@
158185
"Pods": "Pods",
159186
"Labels": "Labels",
160187
"Selector": "Selector",
161-
"Last Updated": "Last Updated",
162188
"No labels": "No labels",
163189
"Rollout Status": "Rollout Status",
164190
"Revisions": "Revisions",
@@ -180,7 +206,6 @@
180206
"Try removing the filter or selecting a different label to see more applications.": "Try removing the filter or selecting a different label to see more applications.",
181207
"There are no Argo CD Applications in this project.": "There are no Argo CD Applications in this project.",
182208
"There are no Argo CD Applications in all projects.": "There are no Argo CD Applications in all projects.",
183-
"Search by name...": "Search by name...",
184209
"No Argo CD ApplicationSets match the label filter": "No Argo CD ApplicationSets match the label filter",
185210
"Try removing the filter or selecting a different label to see more ApplicationSets.": "Try removing the filter or selecting a different label to see more ApplicationSets.",
186211
"There are no Argo CD ApplicationSets in this project.": "There are no Argo CD ApplicationSets in this project.",

locales/ja/plugin__gitops-plugin.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,41 @@
128128
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
129129
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
130130
"Applications": "Applications",
131+
"Edit labels": "Edit labels",
132+
"Edit annotations": "Edit annotations",
133+
"Edit App Project": "Edit App Project",
134+
"Delete": "Delete",
135+
"No Argo CD App Projects match the search filter": "No Argo CD App Projects match the search filter",
136+
"Try removing the filter or searching for a different term to see more App Projects.": "Try removing the filter or searching for a different term to see more App Projects.",
137+
"There are no Argo CD App Projects in this project.": "There are no Argo CD App Projects in this project.",
138+
"There are no Argo CD App Projects in all projects.": "There are no Argo CD App Projects in all projects.",
139+
"No matching Argo CD App Projects": "No matching Argo CD App Projects",
140+
"No Argo CD App Projects": "No Argo CD App Projects",
141+
"Unable to load data": "Unable to load data",
142+
"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.",
143+
"App Projects": "App Projects",
144+
"Create App Project": "Create App Project",
145+
"Search by name...": "Search by name...",
146+
"Description": "Description",
147+
"Last Updated": "Last Updated",
148+
"Has Description": "Has Description",
149+
"No Description": "No Description",
150+
"Has Applications": "Has Applications",
151+
"No Applications": "No Applications",
152+
"Project Type": "Project Type",
153+
"Default Project": "Default Project",
154+
"Custom Projects": "Custom Projects",
155+
"Source Repositories": "Source Repositories",
156+
"Has Source Repos": "Has Source Repos",
157+
"No Source Repos": "No Source Repos",
158+
"Destinations": "Destinations",
159+
"Has Destinations": "Has Destinations",
160+
"No Destinations": "No Destinations",
131161
"Promote": "Promote",
132162
"Full Promote": "Full Promote",
133163
"Abort": "Abort",
134164
"Retry": "Retry",
135165
"Restart": "Restart",
136-
"Edit labels": "Edit labels",
137-
"Edit annotations": "Edit annotations",
138166
"Edit Rollout": "Edit Rollout",
139167
"Delete": "Delete",
140168
"Rollout details": "Rollout details",
@@ -149,15 +177,13 @@
149177
"No Argo Rollouts": "No Argo Rollouts",
150178
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
151179
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
152-
"Unable to load data": "Unable to load data",
153180
"There was an error retrieving applications. Check your connection and reload the page.": "There was an error retrieving applications. Check your connection and reload the page.",
154181
"Argo Rollouts": "Argo Rollouts",
155182
"Create Rollout": "Create Rollout",
156183
"Graph view": "Graph view",
157184
"Pods": "Pods",
158185
"Labels": "Labels",
159186
"Selector": "Selector",
160-
"Last Updated": "Last Updated",
161187
"No labels": "No labels",
162188
"Rollout Status": "Rollout Status",
163189
"Revisions": "Revisions",
@@ -179,7 +205,6 @@
179205
"Try removing the filter or selecting a different label to see more applications.": "Try removing the filter or selecting a different label to see more applications.",
180206
"There are no Argo CD Applications in this project.": "There are no Argo CD Applications in this project.",
181207
"There are no Argo CD Applications in all projects.": "There are no Argo CD Applications in all projects.",
182-
"Search by name...": "Search by name...",
183208
"No Argo CD ApplicationSets match the label filter": "No Argo CD ApplicationSets match the label filter",
184209
"Try removing the filter or selecting a different label to see more ApplicationSets.": "Try removing the filter or selecting a different label to see more ApplicationSets.",
185210
"There are no Argo CD ApplicationSets in this project.": "There are no Argo CD ApplicationSets in this project.",

locales/ko/plugin__gitops-plugin.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,41 @@
128128
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
129129
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
130130
"Applications": "Applications",
131+
"Edit labels": "Edit labels",
132+
"Edit annotations": "Edit annotations",
133+
"Edit App Project": "Edit App Project",
134+
"Delete": "Delete",
135+
"No Argo CD App Projects match the search filter": "No Argo CD App Projects match the search filter",
136+
"Try removing the filter or searching for a different term to see more App Projects.": "Try removing the filter or searching for a different term to see more App Projects.",
137+
"There are no Argo CD App Projects in this project.": "There are no Argo CD App Projects in this project.",
138+
"There are no Argo CD App Projects in all projects.": "There are no Argo CD App Projects in all projects.",
139+
"No matching Argo CD App Projects": "No matching Argo CD App Projects",
140+
"No Argo CD App Projects": "No Argo CD App Projects",
141+
"Unable to load data": "Unable to load data",
142+
"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.",
143+
"App Projects": "App Projects",
144+
"Create App Project": "Create App Project",
145+
"Search by name...": "Search by name...",
146+
"Description": "Description",
147+
"Last Updated": "Last Updated",
148+
"Has Description": "Has Description",
149+
"No Description": "No Description",
150+
"Has Applications": "Has Applications",
151+
"No Applications": "No Applications",
152+
"Project Type": "Project Type",
153+
"Default Project": "Default Project",
154+
"Custom Projects": "Custom Projects",
155+
"Source Repositories": "Source Repositories",
156+
"Has Source Repos": "Has Source Repos",
157+
"No Source Repos": "No Source Repos",
158+
"Destinations": "Destinations",
159+
"Has Destinations": "Has Destinations",
160+
"No Destinations": "No Destinations",
131161
"Promote": "Promote",
132162
"Full Promote": "Full Promote",
133163
"Abort": "Abort",
134164
"Retry": "Retry",
135165
"Restart": "Restart",
136-
"Edit labels": "Edit labels",
137-
"Edit annotations": "Edit annotations",
138166
"Edit Rollout": "Edit Rollout",
139167
"Delete": "Delete",
140168
"Rollout details": "Rollout details",
@@ -149,15 +177,13 @@
149177
"No Argo Rollouts": "No Argo Rollouts",
150178
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
151179
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
152-
"Unable to load data": "Unable to load data",
153180
"There was an error retrieving applications. Check your connection and reload the page.": "There was an error retrieving applications. Check your connection and reload the page.",
154181
"Argo Rollouts": "Argo Rollouts",
155182
"Create Rollout": "Create Rollout",
156183
"Graph view": "Graph view",
157184
"Pods": "Pods",
158185
"Labels": "Labels",
159186
"Selector": "Selector",
160-
"Last Updated": "Last Updated",
161187
"No labels": "No labels",
162188
"Rollout Status": "Rollout Status",
163189
"Revisions": "Revisions",
@@ -179,7 +205,6 @@
179205
"Try removing the filter or selecting a different label to see more applications.": "Try removing the filter or selecting a different label to see more applications.",
180206
"There are no Argo CD Applications in this project.": "There are no Argo CD Applications in this project.",
181207
"There are no Argo CD Applications in all projects.": "There are no Argo CD Applications in all projects.",
182-
"Search by name...": "Search by name...",
183208
"No Argo CD ApplicationSets match the label filter": "No Argo CD ApplicationSets match the label filter",
184209
"Try removing the filter or selecting a different label to see more ApplicationSets.": "Try removing the filter or selecting a different label to see more ApplicationSets.",
185210
"There are no Argo CD ApplicationSets in this project.": "There are no Argo CD ApplicationSets in this project.",

locales/zh/plugin__gitops-plugin.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,41 @@
128128
"Argo CD project that this ApplicationSet belongs to.": "Argo CD project that this ApplicationSet belongs to.",
129129
"Git repository URL where the ApplicationSet configuration is stored.": "Git repository URL where the ApplicationSet configuration is stored.",
130130
"Applications": "Applications",
131+
"Edit labels": "Edit labels",
132+
"Edit annotations": "Edit annotations",
133+
"Edit App Project": "Edit App Project",
134+
"Delete": "Delete",
135+
"No Argo CD App Projects match the search filter": "No Argo CD App Projects match the search filter",
136+
"Try removing the filter or searching for a different term to see more App Projects.": "Try removing the filter or searching for a different term to see more App Projects.",
137+
"There are no Argo CD App Projects in this project.": "There are no Argo CD App Projects in this project.",
138+
"There are no Argo CD App Projects in all projects.": "There are no Argo CD App Projects in all projects.",
139+
"No matching Argo CD App Projects": "No matching Argo CD App Projects",
140+
"No Argo CD App Projects": "No Argo CD App Projects",
141+
"Unable to load data": "Unable to load data",
142+
"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.",
143+
"App Projects": "App Projects",
144+
"Create App Project": "Create App Project",
145+
"Search by name...": "Search by name...",
146+
"Description": "Description",
147+
"Last Updated": "Last Updated",
148+
"Has Description": "Has Description",
149+
"No Description": "No Description",
150+
"Has Applications": "Has Applications",
151+
"No Applications": "No Applications",
152+
"Project Type": "Project Type",
153+
"Default Project": "Default Project",
154+
"Custom Projects": "Custom Projects",
155+
"Source Repositories": "Source Repositories",
156+
"Has Source Repos": "Has Source Repos",
157+
"No Source Repos": "No Source Repos",
158+
"Destinations": "Destinations",
159+
"Has Destinations": "Has Destinations",
160+
"No Destinations": "No Destinations",
131161
"Promote": "Promote",
132162
"Full Promote": "Full Promote",
133163
"Abort": "Abort",
134164
"Retry": "Retry",
135165
"Restart": "Restart",
136-
"Edit labels": "Edit labels",
137-
"Edit annotations": "Edit annotations",
138166
"Edit Rollout": "Edit Rollout",
139167
"Delete": "Delete",
140168
"Rollout details": "Rollout details",
@@ -149,15 +177,13 @@
149177
"No Argo Rollouts": "No Argo Rollouts",
150178
"There are no Argo Rollouts in this project.": "There are no Argo Rollouts in this project.",
151179
"There are no Argo Rollouts in all projects.": "There are no Argo Rollouts in all projects.",
152-
"Unable to load data": "Unable to load data",
153180
"There was an error retrieving applications. Check your connection and reload the page.": "There was an error retrieving applications. Check your connection and reload the page.",
154181
"Argo Rollouts": "Argo Rollouts",
155182
"Create Rollout": "Create Rollout",
156183
"Graph view": "Graph view",
157184
"Pods": "Pods",
158185
"Labels": "Labels",
159186
"Selector": "Selector",
160-
"Last Updated": "Last Updated",
161187
"No labels": "No labels",
162188
"Rollout Status": "Rollout Status",
163189
"Revisions": "Revisions",
@@ -179,7 +205,6 @@
179205
"Try removing the filter or selecting a different label to see more applications.": "Try removing the filter or selecting a different label to see more applications.",
180206
"There are no Argo CD Applications in this project.": "There are no Argo CD Applications in this project.",
181207
"There are no Argo CD Applications in all projects.": "There are no Argo CD Applications in all projects.",
182-
"Search by name...": "Search by name...",
183208
"No Argo CD ApplicationSets match the label filter": "No Argo CD ApplicationSets match the label filter",
184209
"Try removing the filter or selecting a different label to see more ApplicationSets.": "Try removing the filter or selecting a different label to see more ApplicationSets.",
185210
"There are no Argo CD ApplicationSets in this project.": "There are no Argo CD ApplicationSets in this project.",

plugin-metadata.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const metadata: ConsolePluginBuildMetadata = {
1919
RolloutDetails: "./gitops/components/rollout/RolloutNavPage.tsx",
2020
ApplicationSetList: "./gitops/components/application/ApplicationSetListTab.tsx",
2121
ApplicationSetDetailsPage: "./gitops/components/appset/ApplicationSetDetailsPage.tsx",
22+
ProjectList: "./gitops/components/project/ProjectListTab.tsx",
2223
yamlTemplates: "./gitops/templates/index.ts"
2324
}
2425
};

0 commit comments

Comments
 (0)