-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add hardware details filters #569
Conversation
2748285
to
accb03a
Compare
return zFilterNumberKeys.safeParse(key).success; | ||
}; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
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.
add TODO to remove this
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 change the declartion to a type
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |
type requestFilters = { |
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 use const targetFilter: readonly string[] = requestFilters[target];
in a function below. Change for type give a error in typescript
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.
If you are using it you don't need the eslint-disable
|
||
import FilterLink from '../../HardwareDetailsFilterLink'; | ||
|
||
//import { useDiffFilterParams } from '../../hardwareDetailsUtils'; |
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.
remove it
Create a TODO to remind us to review the need for those file duplications |
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.
very nice job, please add some TODOs in the files that you copied so when you continue the filters you make components of those
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.
It's working, good job
accb03a
to
18424d1
Compare
In this PR, I add the filters in hardware details in frontend and add counts in hardware tabs.
Close #572