Skip to content
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

Fix Viewer tags issue #103

Merged
merged 4 commits into from
Oct 23, 2023

Conversation

thepetk
Copy link
Contributor

@thepetk thepetk commented Oct 20, 2023

What does this PR do / why we need it

This PR fixes the issue of tags not getting updated when a user chooses another version of the stack. So it updates the detailed view of the stack to show every time the tags of the selected version.

On the other hand it adds a check to the grid and the detailed view. If a tag is named Deprecated it updates the color of the tag from blue to red.

Other than that unit tests have been added for all new functions.

Example Screenshots

  • Grid View with a default version Deprecated tag:
    Screenshot from 2023-10-20 20-37-40

  • Detailed view with deprecated:
    Screenshot from 2023-10-20 20-36-52

  • Detailed view of another version not having Deprecated tag:
    Screenshot from 2023-10-20 20-37-14

Which issue(s) does this PR fix

Fixes devfile/api#1289

PR acceptance criteria

  • Unit Tests
  • E2E Tests
  • Documentation

How to test changes / Special notes to the reviewer

  • follow the instructions mentioned inside the issue
  • after you have build the registry which contains a stack with a Deprecated tag inside, run locally the registry-viewer app:
    yarn nx serve registry-viewer --configuration=development

@openshift-ci
Copy link

openshift-ci bot commented Oct 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kim-tsao, thepetk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thepetk thepetk merged commit 37ebc28 into devfile:bugfix/incorrect_tags Oct 23, 2023
3 checks passed
@thepetk thepetk mentioned this pull request Oct 23, 2023
3 tasks
thepetk added a commit that referenced this pull request Oct 23, 2023
* Add functions for devfile tags

Signed-off-by: thepetk <[email protected]>

* Update detailed view and grid

Signed-off-by: thepetk <[email protected]>

* Create new color in tailwind

Signed-off-by: thepetk <[email protected]>

* Apply format

Signed-off-by: thepetk <[email protected]>

---------

Signed-off-by: thepetk <[email protected]>
thepetk added a commit that referenced this pull request Oct 24, 2023
* Add functions for devfile tags



* Update detailed view and grid



* Create new color in tailwind



* Apply format



---------

Signed-off-by: thepetk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants