-
Notifications
You must be signed in to change notification settings - Fork 667
feat(dev-catalog): Rename & Reorder existing filters in Dev Catalog #3890
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
feat(dev-catalog): Rename & Reorder existing filters in Dev Catalog #3890
Conversation
|
/kind feature |
348b988 to
02e0bcf
Compare
|
@abhinandan13jan Your PR seems to have broken the logic for the badges in each card. It was working previously and is there in the design docs of your story as well. But you screencast doesn't have that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you changing kind -> type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a use case that fits this type of change? The current acceptance criteria for the story doesn't seem like it needs this change at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not get this change? Why was this necessary? The filters worked out previously as intended even without these changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes here also broke the badge feature. Now there are no badges being shown on the card.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filterGroup has now been changed to type instead of kind. The ability of a type is to hold more than one kind wherever required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The badges work perfectly with the latest changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any badges in the screencast that you've shared with the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plus, i don't see the point of grouping multiple kinds into a type for filters. In the end it just needs to filter the items in catalog with ability to have multiple filters selected at once. That was already working perfectly fine whichout these changes. Am not sure if am missing something else here. That's why i added comments to the story as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is true. But this adheres to the initial discussion regarding the implementation. The changes can be reverted, if UX confirms that there is no need for grouping of the kinds in the near future. Anyway I'll make the changes go away in that case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just want to understand from an implementation point of view what benefits we are getting by grouping kinds here. UX may be thinking it in a way that all unmanaged service are in one group and I agree that's logical but purely from implementation and code changes what will be the benefits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a flat data structure you're making it into a nested object struture. And then making the changes to the filtering logic to accomodate the change in data structure. Plus there is no actual grouping of kinds happening here. That doesn't seem right to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existing data structure used for the filters is neither a flat, nor a linear one. It comprises a single layer nesting of objects by filterGroups. For adding flexibility of having multiple kinds per key in a filterGroup, I simply added another layer of objects by nesting the same existing structure of data, which I referred to as grouping.
However, this has been reverted now to one kind per filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not add the helm filter here as there is no helm integration till now. My PR adds the filter for that - #3850
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could remove this. But the filters in the referenced PR wouldn't work with type integration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works perfectly with the existing item structure. Hence, if the items with kind HelmChart are added, it will fit in without the need to make any changes in the filters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a point adding a filter that doesn't have any item in it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just part of the UX for accommodating future needs, IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think those future needs should be handled by the future story that adds that feature in future. That is actually part of the acceptance criteria for the Helm stories and not part of this one. Even thought the mockups show that in this one as well. We can clarify this with UX.
cc: @serenamarie125
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put out Helm from the filters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is wrong because Helm charts are not based on ImageStreams
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to update the name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed all kind groupings
27a4c84 to
7bea248
Compare
|
@rohitkrai03 Please re-review, I have removed all grouping logics. The PR currently Renames & Reorders existing filters in Dev Catalog |
|
The patternfly catalog, along with operator hub use title case for the |
andrewballantyne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're also failing tests in frontend/__tests__/components/catalog.spec.tsx as they checked specific order of the type filters and what the count would be.
serenamarie125
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From a UX perspective, the TYPE filters and card badges look as designed. Nice work!
@christianvogt and @serenamarie125 I think you're in conflict with your statements. |
|
@christianvogt I didn't see that comment - the style of TYPE should definitely match what it is on OperatorHub, although I'm not sure you changed that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@serenamarie125 this change makes the two pages unbalanced is what @christianvogt is saying.
Today (before this change) this is the two views:
So changing it to all capitals makes it not match the Operator Hub (and the colour / spacing is different than the designs)
7bea248 to
12ccba3
Compare
|
@christianvogt changed TYPE -> Type, |
12ccba3 to
58eab1b
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abhinandan13jan, christianvogt, serenamarie125 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest Please review the full test history for this PR and help us cut down flakes. |


Addresses - https://issues.redhat.com/browse/ODC-2454
Renames & Reorders existing filters in Dev Catalog

P.S: Helm is not added as it will be added in a later PR #3850