Skip to content

feat: align ImageUpdater pages with prototypes - #349

Open
dkarpele wants to merge 4 commits into
redhat-developer:mainfrom
dkarpele:dk-GITOPS-12105
Open

dkarpele wants to merge 4 commits into
redhat-developer:mainfrom
dkarpele:dk-GITOPS-12105

Conversation

@dkarpele

@dkarpele dkarpele commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

If you hover a cursor over the Age it will show the Created at date.

image image image

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

This review ran on the open-source allowance, not this organization's plan, because the pull request author doesn't have an assigned seat. Waiting won't change this — ask an organization admin to assign them a seat, or add seats in Billing if every seat is already assigned, then retry.

Next included review available in 32 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

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: 5b2fd85a-5050-442a-9bde-bf08a8530995
Commits

Reviewing files that changed from the base of the PR and between 441708f and e61576d.

Files selected for processing: 14

  • docs/image-updaters.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
  • src/gitops/components/imageupdater/ImageUpdaterDetailsTab.tsx
  • src/gitops/components/imageupdater/ImageUpdaterList.tsx
  • src/gitops/components/imageupdater/ImageUpdaterRecentUpdatesTab.tsx
  • src/gitops/components/shared/dateUtils.tsx
  • src/gitops/components/shared/imageUpdaterListColumns.test.ts
  • src/gitops/components/shared/imageUpdaterListColumns.ts
  • src/gitops/components/shared/imageUpdaterRecentUpdatesColumns.ts

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • New Features
    • ImageUpdater details show controller status, application and image counts, readiness, registry-check and update times, and resource age. Creation time is available on hover.
    • ImageUpdater lists include a sortable Age column. Recent updates use a single “When” timestamp column.
  • Updates
    • ImageUpdater labels, column names, and filters have been refined across supported languages. “Last checked” is visible by default, while Labels is no longer shown in the list. The details view no longer displays observed generation or conditions.

The ImageUpdater details and list views now show age and revised status fields. The Recent Updates view uses a When column for timestamps. Six locale files update related labels and relocate shared entries.

Changes: ImageUpdater UI

Layer / File(s) Summary
ImageUpdater labels and locale updates
locales/*/plugin__gitops-plugin.json, src/gitops/components/shared/imageUpdaterListColumns.ts, src/gitops/components/shared/imageUpdaterListColumns.test.ts
The locale files revise ImageUpdater labels and relocate or add shared strings. The list column definitions and tests replace Labels with Age and show Last checked by default.
Age display and ImageUpdater list
src/gitops/components/shared/dateUtils.tsx, src/gitops/components/imageupdater/ImageUpdaterList.tsx
getAge and AgeCell display elapsed age and a creation-time tooltip. The list replaces label display and sorting with age, and updates column labels and filters.
ImageUpdater details and controller status
src/gitops/components/imageupdater/ImageUpdaterDetailsTab.tsx
The details view renders Name, Namespace, and Age fields, followed by controller counts, timestamps, readiness, and creation time. Missing counts and timestamps display -. Observed Generation and the conditional Conditions section are removed.
Recent Updates columns and sorting
src/gitops/components/shared/imageUpdaterRecentUpdatesColumns.ts, src/gitops/components/imageupdater/ImageUpdaterRecentUpdatesTab.tsx
The timestamp column is identified as When and sorts by updatedAt. The Updated At column and section heading are removed; the remaining columns and labels are revised.

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

Change: Feature

Suggested reviewers: aali309

Merge Risk: Minimal · previous review 44170

This change updates the ImageUpdater list, details and Recent Updates views to match the prototypes. No concrete merge-blocking problem was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "feat: align ImageUpdater pages with prototypes" matches the main change. The changeset updates the ImageUpdater list, details, and Recent Updates pages to match prototype screenshots, and i…
Description check Passed The description states that hovering over Age shows the Created at date. The changeset adds an AgeCell component with a tooltip that shows the creation timestamp, so the description relates directly t…
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: align ImageUpdater pages with prototypes" matches the main change. The changeset updates the ImageUpdater list, details, and Recent Updates pages to match prototype screenshots, and it adds Age columns and a controller status section. The title is specific and concise.

Full details: Description check

Explanation

The description states that hovering over Age shows the Created at date. The changeset adds an AgeCell component with a tooltip that shows the creation timestamp, so the description relates directly to the change. It includes screenshots of the updated pages.

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: 818d6b3f-4043-4022-b2d8-070bd4c235bb
Commits

Reviewing files that changed from the base of the PR and between 4e1fc63 and 441708f.

Files selected for processing: 1

  • src/gitops/components/shared/dateUtils.tsx

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

@codecov-commenter

codecov-commenter commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Files with missing lines Patch % Lines
src/gitops/components/shared/dateUtils.tsx 0.00% 16 Missing ⚠️
...components/imageupdater/ImageUpdaterDetailsTab.tsx 0.00% 6 Missing ⚠️
...ents/imageupdater/ImageUpdaterRecentUpdatesTab.tsx 0.00% 5 Missing ⚠️
...itops/components/imageupdater/ImageUpdaterList.tsx 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
+ Coverage   11.30%   15.67%   +4.36%     
==========================================
  Files         169      235      +66     
  Lines        6679     8530    +1851     
  Branches     2235     2816     +581     
==========================================
+ Hits          755     1337     +582     
- Misses       5923     7191    +1268     
- Partials        1        2       +1     
Flag Coverage Δ
unit-tests 15.67% <0.00%> (+4.36%) ⬆️

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-128-129: 1

128-129: 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 ImageUpdater labels.

These labels and several list and update labels remain in English in all five non-English locale files. Users who rely on those locales cannot read key status, readiness, and update information in their selected language. Add translations for the new keys in Spanish, French, Japanese, Korean, and Chinese.

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: 2465abaf-ef18-4223-9a9e-156541bdaf2f
Commits

Reviewing files that changed from the base of the PR and between d159d05 and 4e1fc63.

Files selected for processing: 13

  • 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
  • src/gitops/components/imageupdater/ImageUpdaterDetailsTab.tsx
  • src/gitops/components/imageupdater/ImageUpdaterList.tsx
  • src/gitops/components/imageupdater/ImageUpdaterRecentUpdatesTab.tsx
  • src/gitops/components/shared/dateUtils.tsx
  • src/gitops/components/shared/imageUpdaterListColumns.test.ts
  • src/gitops/components/shared/imageUpdaterListColumns.ts
  • src/gitops/components/shared/imageUpdaterRecentUpdatesColumns.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 changed the title fix: align ImageUpdater pages with prototypes feat: align ImageUpdater pages with prototypes Nov 25, 2026

@aali309 aali309 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM me, left a few NIT comments. Thanks @dkarpele

};

const formatCreationDate = (creationTimestamp: string): string =>
new Date(creationTimestamp).toLocaleString('en-US', {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we utilize the Timestamp/date helpers used in the codebase so the Age tooltip follows the console locale?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks!
I aligned this method with the codebase.

<Conditions conditions={status.conditions} />
</PageSection>
)}
<PageSection>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Conditions (and Observed generation) were removed here. Was that intentional? Conditions could be useful when debugging.

@dkarpele dkarpele Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it follows prototypes https://openshift-platform-prototype.vercel.app/gitops/ns/argocd/imageupdaters/payment-api-updater

Conditions (and Observed generation) are still available under YAML tab in status.

if (!creationTimestamp) return <>{age}</>;

return (
<Tooltip content={formatCreationDate(creationTimestamp)}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Can we use the console Timestamp helper so the Age tooltip follows locale?

Suggested change
<Tooltip content={formatCreationDate(creationTimestamp)}>
<Tooltip content={<Timestamp timestamp={creationTimestamp} />}>

aali309
aali309 previously approved these changes Nov 27, 2026

@aali309 aali309 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @dkarpele

dkarpele and others added 4 commits November 30, 2026 18:37
Signed-off-by: dkarpele <karpelevich@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: dkarpele <karpelevich@gmail.com>
Signed-off-by: dkarpele <karpelevich@gmail.com>
…tead of formatCreationDate

Signed-off-by: dkarpele <karpelevich@gmail.com>
…ypes

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

Copy link
Copy Markdown
Collaborator Author

I only updated image-updaters.md doc

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.

3 participants