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

Add hardware details filters #569

Merged
merged 6 commits into from
Nov 22, 2024
Merged

Conversation

Francisco2002
Copy link
Collaborator

@Francisco2002 Francisco2002 commented Nov 21, 2024

In this PR, I add the filters in hardware details in frontend and add counts in hardware tabs.

Close #572

@Francisco2002 Francisco2002 marked this pull request as ready for review November 22, 2024 18:40
return zFilterNumberKeys.safeParse(key).success;
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link
Collaborator

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

Copy link
Collaborator

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

Suggested change
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type requestFilters = {

Copy link
Collaborator Author

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

Copy link
Collaborator

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';
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove it

@lfjnascimento
Copy link
Collaborator

Create a TODO to remind us to review the need for those file duplications

Copy link
Collaborator

@WilsonNet WilsonNet left a 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

Copy link
Collaborator

@lfjnascimento lfjnascimento left a 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

- change the format to put header in Drawer, to allow reuse

Part of #447
- add filter modal, click filter in tables and filter list
- add count of items in each tab

Part of #447
- add build, boot and test status filter

Close #573, #574, #575
@Francisco2002 Francisco2002 merged commit 0a2cc22 into main Nov 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement frontend filters in hardware details
3 participants