Skip to content

Commit d1818ef

Browse files
committed
feat: Show ArgoCD App Projects in Resource List page
Signed-off-by: Atif Ali <atali@redhat.com>
1 parent 26fff11 commit d1818ef

File tree

13 files changed

+888
-23
lines changed

13 files changed

+888
-23
lines changed

console-extensions.json

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,20 @@
365365
}
366366
}
367367
},
368+
{
369+
"type": "console.navigation/resource-ns",
370+
"properties": {
371+
"id": "appproject",
372+
"name": "App Projects",
373+
"perspective": "admin",
374+
"section": "gitops-navigation-section",
375+
"model": {
376+
"group": "argoproj.io",
377+
"kind": "AppProject",
378+
"version": "v1alpha1"
379+
}
380+
}
381+
},
368382
{
369383
"type": "console.page/resource/list",
370384
"flags": {
@@ -401,6 +415,24 @@
401415
}
402416
}
403417
},
418+
{
419+
"type": "console.page/resource/list",
420+
"flags": {
421+
"required": [
422+
"APPLICATION"
423+
]
424+
},
425+
"properties": {
426+
"model": {
427+
"group": "argoproj.io",
428+
"kind": "AppProject",
429+
"version": "v1alpha1"
430+
},
431+
"component": {
432+
"$codeRef": "ProjectList"
433+
}
434+
}
435+
},
404436
{
405437
"type": "console.page/resource/details",
406438
"flags": {
@@ -512,7 +544,25 @@
512544
}
513545
}
514546
},
515-
547+
{
548+
"type": "console.yaml-template",
549+
"flags": {
550+
"required": [
551+
"APPLICATION"
552+
]
553+
},
554+
"properties": {
555+
"name": "default",
556+
"model": {
557+
"group": "argoproj.io",
558+
"kind": "AppProject",
559+
"version": "v1alpha1"
560+
},
561+
"template": {
562+
"$codeRef": "yamlTemplates.defaultAppProjectYamlTemplate"
563+
}
564+
}
565+
},
516566
{
517567
"type": "console.page/resource/details",
518568
"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)