-
Notifications
You must be signed in to change notification settings - Fork 4
Move GlobalFilter files #3330
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
base: main
Are you sure you want to change the base?
Move GlobalFilter files #3330
Conversation
|
| // complete individual global filter | ||
| import type { UUID } from 'crypto'; | ||
|
|
||
| // complete individual global filter | ||
| export interface GlobalFilter { |
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.
Duplicate comment.
| import { AppState } from '../../redux/reducer'; | ||
|
|
||
| export const useGlobalFilterOptions = () => { | ||
| export function useGlobalFilterOptions() { |
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 prefer this syntax so I am fine with it but is it the "official" syntax of gridsuite ? @etiennehomer ?
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.
Both are used. It's ok with "function"
| label: countryCode, | ||
| filterType: FilterType.COUNTRY, | ||
| })) | ||
| countryCodes.map((countryCode) => ({ label: countryCode, filterType: FilterType.COUNTRY })) |
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 do you put all this on a single line ? I think it reduces the readability.
| .then((nominalVoltages) => { | ||
| setVoltageLevelsFilter( | ||
| nominalVoltages.map((nominalV: number) => ({ | ||
| nominalVoltages.map((nominalV) => ({ |
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 do you reduce the typing ? Is it wrong ?
| /** | ||
| * globals filters are the filters applied to computation results | ||
| * they may contain generic 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.
Not very useful anymore. At least not here.
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 change of folder is fine for me. Let's just wait that the recette is tagged.



As
<GlobalFilter/>is now not use only by results tables, moving it under components.Also removing some redundant declaration of variable types.