Skip to content

chore(heureka): proposes ideal UI queries for existing features #910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

hodanoori
Copy link
Contributor

@hodanoori hodanoori commented Apr 17, 2025

Summary

This PR introduces ideal GraphQL queries for existing UI features. Each query is designed to include only the data needed for the relevant views, which improves readability and reduces complexity in the UI code. As a result, we can eliminate the need for data normalization (currently handled in utils) and avoid defining custom types. These are simplified versions of the existing, more complex queries found in the same folder (graphql/Services) and can serve as a foundation for review and optimization.

Note: getServicesIssuesCounts and getServiceFilters are already aligned with the UI, so no changes are needed for them.

Changes Made

  • A list of ideal queries for UI is added

Related Issues

Screenshots (if applicable)

Testing Instructions

  1. npm i
  2. npm run 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 April 17, 2025 08:00
Copy link

changeset-bot bot commented Apr 17, 2025

🦋 Changeset detected

Latest commit: dbc119a

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

@hodanoori hodanoori force-pushed the hoda-heureka-ui-queries branch from ad23b0c to 354b5d0 Compare April 17, 2025 08:02
Copy link
Contributor

github-actions bot commented Apr 17, 2025

PR Preview Action v1.6.1

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

Built to branch gh-pages at 2025-04-24 06:49 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@hodanoori hodanoori self-assigned this Apr 17, 2025
@hodanoori hodanoori added the heureka Heureka related issues label Apr 17, 2025
@barsukov barsukov changed the title chore(heureka): proposes ideal UI queries for existing features chore(heurea): proposes ideal UI queries for existing features Apr 17, 2025
@barsukov barsukov changed the title chore(heurea): proposes ideal UI queries for existing features chore(heureka): proposes ideal UI queries for existing features Apr 17, 2025
Copy link
Collaborator

@ArtieReus ArtieReus left a comment

Choose a reason for hiding this comment

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

thx @hodanoori for the documentation!. I suggest moving the "ideal queries" to a documentation folder within Heureka, as they are not currently being used and might cause confusion.
Since this is purely documentation, there's no need for a changeset.

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.

2 participants