-
Notifications
You must be signed in to change notification settings - Fork 195
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
frontend: Add crd's categories #1940
frontend: Add crd's categories #1940
Conversation
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
4d21afc
to
89f142e
Compare
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.
Hi @Guilamb . Thanks for the PR. I think adding the category filter and column makes a lot of sense for the CRDs. I think the approach and the code needs a few tweaks, though. So please check out my comments.
Please note that our search filters will change very soon and I think the category filter will be given for free after we have this PR merged. So after this new table PR, maybe all you need to do is add the new table column to that list.
frontend/src/redux/filterSlice.ts
Outdated
/** The categories to filter on. */ | ||
categories: string[]; |
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.
Categories is something that belongs only to the CRDs, so I don't think we should make it global like this.
@joaquimrocha Why was this turned to draft??? Is it still worked on?? @Guilamb |
Yes, I was out of the office the last 2 weeks. So I just saw the required changes. |
Thank you for your feedback. Since the new search function resolves the issue of filtering CRDs by category (and possibly by namespace as well), should I remove the feature from the PR ? |
…ue undefined in Details.tsx Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
07fbca8
to
6ea9925
Compare
Since #1921 was merged, I removed the category filter and resolved this : #1940 (comment) |
Thanks @Guilamb It's saying there's some conflicts now... |
frontend/src/redux/filterSlice.ts
Outdated
} | ||
}, | ||
removeCategoryFilter(state, action: PayloadAction<string>) { | ||
console.log('removing : ', action.payload, 'from: ', state.categories.toString()); |
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.
Please remove this console.log.
frontend/src/redux/filterSlice.ts
Outdated
removeCategoryFilter(state, action: PayloadAction<string>) { | ||
console.log('removing : ', action.payload, 'from: ', state.categories.toString()); | ||
state.categories = state.categories.filter(category => category !== action.payload); | ||
console.log('after removing : ', state.categories.toString()); |
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.
Please remove this console.log.
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 went through the existing comments and closed the conversation that looked like they had been addressed. Added a couple of notes about some console.log that were left in the code.
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
e28d115
to
f407dfe
Compare
Signed-off-by: guilhane <guilhane.bourgoin@orange.com>
I've resolved merge conflicts and removed the remnant console.logs |
Closing in favor of #1991 |
Description:
As mentioned in #955, this pull request addresses the need to filter CRDs by categories.
Here the features implemented:
Implementation Details:
CRDCategoriesList
, to facilitate category selection and filtering.filterSlice
, to store and update the selected categories.Changes Made:
CRDCategoriesList
component to handle category selection and filtering.Feedback Request:
CRDCategoriesList
component.Known Issues:
CRDCategoriesList
component. Gather categories when initially loading the CRD may resolve the issue.