Skip to content

Conversation

@hodanoori
Copy link
Contributor

@hodanoori hodanoori commented Dec 2, 2025

Summary

This PR refactors the Heureka application to use the new GetImages GraphQL query instead of GetServiceImageVersions, transitioning from a imageVersion centric to an image centric views and data model. The changes include renaming types and functions, updating UI components, and display the image related info in the relevant views.

Note: The “occurrences” column and details info have been removed from the service-overview panel, the service details page, and the image-overview panel because this information relates to each image version, not to the entire image — which can have many versions. A new UX solution will be developed later to display image-versions and occurrences info correctly in the appropriate views.
The ImageVersionOccurrences component has been preserved in the codebase because it can be re-integrated in a future update.

Changes Made

  • Renamed types and functions
  • Updated property names
  • Added new GetImages GraphQL query (getImages.graphql)
  • Created fetchImages API function to replace fetchImageVersions
  • Updated all components to use the new query structure
  • Query now returns images directly (not flattened versions)
  • Changed URL parameter from imageVersion to image for better semantic clarity
  • Updated route schema and all navigation calls
  • Fixed deep linking to use repository name instead of version

Related Issues

Screenshots (if applicable)

C8B62D24-D9D4-4A39-A2C6-93BDE27FEBF5 D8C84118-E164-430B-AC0B-E9A8D11566B0 0644C61D-77C9-4DED-8D68-18F190AE13A2

Testing Instructions

  1. pnpm i
  2. pnpm TASK

Checklist

  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.
  • I have made corresponding changes to the documentation (if applicable).
  • My changes generate no new warnings or errors.
  • I have created a changeset for my changes.

PR Manifesto

Review the PR Manifesto for best practises.

@hodanoori hodanoori requested a review from a team as a code owner December 2, 2025 15:35
@changeset-bot
Copy link

changeset-bot bot commented Dec 2, 2025

🦋 Changeset detected

Latest commit: 0e0bbb9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@cloudoperators/juno-app-heureka Patch
@cloudoperators/juno-app-greenhouse Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

PR Preview Action v1.6.2

🚀 View preview at
https://cloudoperators.github.io/juno/pr-preview/pr-1350/

Built to branch gh-pages at 2025-12-02 16:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@hodanoori hodanoori self-assigned this Dec 2, 2025
@hodanoori hodanoori added the heureka Heureka related issues label Dec 2, 2025
@hodanoori hodanoori marked this pull request as draft December 2, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

heureka Heureka related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task](heureka): Change existing image version queries to image based queries

2 participants