Skip to content

feat: ArgoCD instances list and detail pages - #364

Open
dkarpele wants to merge 2 commits into
redhat-developer:mainfrom
dkarpele:dk-GITOPS-8043
Open

dkarpele wants to merge 2 commits into
redhat-developer:mainfrom
dkarpele:dk-GITOPS-8043

Conversation

@dkarpele

@dkarpele dkarpele commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

See prototypes: https://openshift-platform-prototype.vercel.app/gitops/argocd

  • App count on the list page, Applications on the details page will be added later together with Applications and ApplicationSets tabs.
  • CPU, Memory, Cluster connectivity on the details page will be added separatelly.
  • Status on the list page shows based on argocd.status.phase
  • src/gitops/components/shared/dateUtils.tsx copied from feat: align ImageUpdater pages with prototypes #349
image image image

Signed-off-by: dkarpele <karpelevich@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • Added an Argo CD Instances page with search, status and label filtering, sorting, pagination, and configurable columns.
    • Added instance details and YAML views, including status, version, SSO, notifications, RBAC, and managed-component health.
    • Added actions to edit labels and annotations, edit YAML, and delete instances.
    • Added a default Argo CD configuration template and navigation entry.
  • Documentation
    • Added a guide to browsing and managing Argo CD instances.
  • Localization
    • Added Argo CD-related labels and messages across supported languages.

The GitOps Console adds ArgoCD instance list and details pages, status filtering, resource actions, and YAML editing. The change also adds console registrations, a default YAML template, locale strings, and user documentation.

Changes: ArgoCD Instance Management

Layer / File(s) Summary
ArgoCD resource contract and YAML template
src/gitops/models/ArgoCDModel.ts, src/gitops/templates/argocd-yaml.ts, src/gitops/templates/index.ts
The model adds optional ArgoCD spec and status fields and exports a model reference. A default ArgoCD YAML template is added and exported.
Instance list, filtering, and columns
src/gitops/components/argocd/ArgoCDList.tsx, src/gitops/components/argocd/ArgoCDListTab.tsx, src/gitops/components/argocd/argoCDListFilters.ts, src/gitops/components/argocd/argoCDListFilters.test.ts, src/gitops/components/shared/argoCDListColumns.ts, src/gitops/components/shared/argoCDListColumns.test.ts, src/gitops/components/shared/dateUtils.tsx, src/gitops/components/argocd/argocd-list.scss, __mocks__/patternfly-react-core.tsx
The list watches ArgoCD instances and renders sortable, paginated results with status filters, configurable columns, age values, and per-instance actions. Tests cover status-filter helpers and column configuration.
Instance details and resource actions
src/gitops/components/argocd/ArgoCDDetailsPage.tsx, src/gitops/components/argocd/ArgoCDNavPage.tsx, src/gitops/components/argocd/ArgoCDDetailsTab.tsx, src/gitops/components/argocd/ArgoCDDetailsTab.test.tsx, src/gitops/components/argocd/hooks/useArgoCDActionsProvider.tsx
The details route loads an ArgoCD resource and provides Details and YAML tabs. The details view shows configuration and managed-component statuses. Resource actions support label, annotation, and YAML edits, and deletion.
Console registration, documentation, and locales
console-extensions.json, plugin-metadata.ts, docs/argocd-instances.md, docs/_sidebar.md, locales/*/plugin__gitops-plugin.json
Console extensions register the ArgoCD navigation entry, pages, and YAML template. Plugin metadata exposes the list and details modules. Documentation describes the pages, and locale catalogs add related strings and reorganize existing entries.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant ArgoCDDetailsPage
  participant ArgoCDNavPage
  participant ResourceWatch
  participant DetailsTab
  ArgoCDDetailsPage->>ArgoCDNavPage: Pass name, namespace, and kind
  ArgoCDNavPage->>ResourceWatch: Watch the specified ArgoCD resource
  ResourceWatch->>ArgoCDNavPage: Return resource and loading state
  ArgoCDNavPage->>DetailsTab: Render details tab with resource
Loading
Merge Risk: Minimal · up to b5c3e

This change adds ArgoCD instance list and details pages with status filtering, actions, and documentation. No concrete merge-blocking risk was identified in the supplied review context.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title 'feat: ArgoCD instances list and detail pages' matches the main change. The changeset adds ArgoCDList, ArgoCDListTab, ArgoCDDetailsPage, ArgoCDDetailsTab, ArgoCDNavPage, status filters, docs…
Description check Passed The description links the prototype and lists deferred items (App count, Applications tab, CPU/Memory/Cluster connectivity). It also notes that dateUtils.tsx was copied from PR #349 and includes scree…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title 'feat: ArgoCD instances list and detail pages' matches the main change. The changeset adds ArgoCDList, ArgoCDListTab, ArgoCDDetailsPage, ArgoCDDetailsTab, ArgoCDNavPage, status filters, docs, and locale strings for the ArgoCD list and details pages.

Full details: Description check

Explanation

The description links the prototype and lists deferred items (App count, Applications tab, CPU/Memory/Cluster connectivity). It also notes that dateUtils.tsx was copied from PR #349 and includes screenshots. These details relate directly to the changeset.

Warning

Some tools did not complete. Review the errors below.

ESLint

ESLint analysis is incomplete because its dependency install exceeded the time available for this review.

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: afcb8a3c-5726-4ed8-9611-0bfee23e4893
Commits

Reviewing files that changed from the base of the PR and between f4b3405 and b5c3e95.

Files selected for processing: 5

  • docs/argocd-instances.md
  • src/gitops/components/argocd/ArgoCDDetailsTab.test.tsx
  • src/gitops/components/argocd/ArgoCDDetailsTab.tsx
  • src/gitops/components/argocd/argoCDListFilters.test.ts
  • src/gitops/components/argocd/argoCDListFilters.ts
Files skipped from review as they are similar to previous changes: 1

  • docs/argocd-instances.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dkarpele
dkarpele requested a review from aali309 November 30, 2026 17:19
@codecov-commenter

codecov-commenter commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 19.66667% with 241 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.00%. Comparing base (3bd1dab) to head (b5c3e95).
⚠️ Report is 123 commits behind head on main.

Files with missing lines Patch % Lines
src/gitops/components/argocd/ArgoCDList.tsx 0.00% 149 Missing ⚠️
src/gitops/components/argocd/ArgoCDNavPage.tsx 0.00% 24 Missing ⚠️
...mponents/argocd/hooks/useArgoCDActionsProvider.tsx 0.00% 24 Missing ⚠️
src/gitops/components/shared/dateUtils.tsx 0.00% 16 Missing ⚠️
src/gitops/components/argocd/ArgoCDDetailsPage.tsx 0.00% 10 Missing ⚠️
src/gitops/components/argocd/ArgoCDDetailsTab.tsx 75.00% 10 Missing ⚠️
src/gitops/components/argocd/ArgoCDListTab.tsx 0.00% 5 Missing ⚠️
src/gitops/models/ArgoCDModel.ts 0.00% 2 Missing ⚠️
src/gitops/templates/argocd-yaml.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #364      +/-   ##
==========================================
+ Coverage   11.30%   16.00%   +4.69%     
==========================================
  Files         169      244      +75     
  Lines        6679     8818    +2139     
  Branches     2235     2902     +667     
==========================================
+ Hits          755     1411     +656     
- Misses       5923     7405    +1482     
- Partials        1        2       +1     
Flag Coverage Δ
unit-tests 16.00% <19.66%> (+4.69%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional comments: 1

locales/es/plugin__gitops-plugin.json-141-142: 1

141-142: Major · Functional Correctness · Heavy lift

Unverified finding
Verification ran but could not confirm this finding. It is shown for review, not as a verified issue.

Translate the new instance-page messages.

The Spanish, French, Japanese, Korean and Chinese catalogs use English for many new messages. These include actions, empty states and error recovery instructions. Users who cannot read English may not be able to navigate or recover from errors on these pages. Translate the new messages in all five catalogs.

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1b82ee15-35b1-4fda-b610-4f0cba5c2db8
Commits

Reviewing files that changed from the base of the PR and between 827e20e and f4b3405.

Files selected for processing: 27

  • __mocks__/patternfly-react-core.tsx
  • console-extensions.json
  • docs/_sidebar.md
  • docs/argocd-instances.md
  • locales/en/plugin__gitops-plugin.json
  • locales/es/plugin__gitops-plugin.json
  • locales/fr/plugin__gitops-plugin.json
  • locales/ja/plugin__gitops-plugin.json
  • locales/ko/plugin__gitops-plugin.json
  • locales/zh/plugin__gitops-plugin.json
  • plugin-metadata.ts
  • src/gitops/components/argocd/ArgoCDDetailsPage.tsx
  • src/gitops/components/argocd/ArgoCDDetailsTab.test.tsx
  • src/gitops/components/argocd/ArgoCDDetailsTab.tsx
  • src/gitops/components/argocd/ArgoCDList.tsx
  • src/gitops/components/argocd/ArgoCDListTab.tsx
  • src/gitops/components/argocd/ArgoCDNavPage.tsx
  • src/gitops/components/argocd/argoCDListFilters.test.ts
  • src/gitops/components/argocd/argoCDListFilters.ts
  • src/gitops/components/argocd/argocd-list.scss
  • src/gitops/components/argocd/hooks/useArgoCDActionsProvider.tsx
  • src/gitops/components/shared/argoCDListColumns.test.ts
  • src/gitops/components/shared/argoCDListColumns.ts
  • src/gitops/components/shared/dateUtils.tsx
  • src/gitops/models/ArgoCDModel.ts
  • src/gitops/templates/argocd-yaml.ts
  • src/gitops/templates/index.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@dkarpele
dkarpele marked this pull request as draft November 30, 2026 19:31
Signed-off-by: dkarpele <karpelevich@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: dkarpele <karpelevich@gmail.com>
@dkarpele
dkarpele marked this pull request as ready for review November 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants