-
Notifications
You must be signed in to change notification settings - Fork 2
Add filter by substation or VL to contingency list #741
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?
Conversation
- Introduced support for sub-equipment management in filter-based contingency lists. - Added `FilterBasedContingencyListVisualizationPanel` for enhanced data visualization and management. - Extended data schemas, form handling, and UI interactions to accommodate new sub-equipment feature. Signed-off-by: Florent MILLOT <[email protected]>
/home/lesoteti/Projects/Gridsuite/gridexplore-app/src/components/dialogs/contingency-list/filter-based/FilterBasedContingencyListVisualizationPanel.tsx |
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.
minor things
…sh and French Signed-off-by: Florent MILLOT <[email protected]>
…elProps` as `Readonly` Signed-off-by: Florent MILLOT <[email protected]>
.../dialogs/contingency-list/filter-based/filter-based-contingency-list-visualization-panel.tsx
Show resolved
Hide resolved
…ters and type usage improvements Signed-off-by: Florent MILLOT <[email protected]>
unscrollableFullHeight | ||
disabledSave={Boolean(!!nameError || isValidating)} | ||
isDataFetching={isFetching} | ||
sx={{ |
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.
height are width are not correct. Height should be 90vh and width: 50vw.
if not possible keep unscrollableFullHeight and we'll try to fix it in another PR
src/components/dialogs/contingency-list/filter-based/contingency-list-filter-based-form.tsx
Outdated
Show resolved
Hide resolved
src/components/dialogs/contingency-list/filter-based/contingency-list-filter-based-form.tsx
Outdated
Show resolved
Hide resolved
</Grid> | ||
<Grid item xs={6}> | ||
<TableContainer component={Paper} sx={{ height: '100%', border: 0.5 }}> | ||
<Table> |
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 think you can reduce lineHeight by using size="small"
…e and fix casing for file import paths Signed-off-by: Florent MILLOT <[email protected]>
…fic types in contingency list filters Signed-off-by: Florent MILLOT <[email protected]>
… and consistency. Signed-off-by: Florent MILLOT <[email protected]>
…zationPanel` - Renamed `id` to `filterId` in `selectedEquipmentTypesByFilter` for better readability. - Adjusted grid layout properties and added padding for improved UI alignment. - Refactored variable names and method calls for enhanced code clarity. Signed-off-by: Florent MILLOT <[email protected]>
…sistency in `ContingencyListUtils`. Signed-off-by: Florent MILLOT <[email protected]>
- Added full-height styling to `Grid` in `ContingencyListFilterBasedForm`. - Set dialog height to 95% of viewport in `ContingencyListFilterBasedDialog`. Signed-off-by: Florent MILLOT <[email protected]>
- Adjusted `Grid` styling with a minimum width to address layout issues. Signed-off-by: Florent MILLOT <[email protected]>
.../dialogs/contingency-list/filter-based/filter-based-contingency-list-visualization-panel.tsx
Outdated
Show resolved
Hide resolved
.../dialogs/contingency-list/filter-based/filter-based-contingency-list-visualization-panel.tsx
Outdated
Show resolved
Hide resolved
.../dialogs/contingency-list/filter-based/filter-based-contingency-list-visualization-panel.tsx
Outdated
Show resolved
Hide resolved
.../dialogs/contingency-list/filter-based/filter-based-contingency-list-visualization-panel.tsx
Show resolved
Hide resolved
src/components/dialogs/contingency-list/filter-based/contingency-list-filter-based-dialog.tsx
Show resolved
Hide resolved
…ent layout Signed-off-by: Florent MILLOT <[email protected]>
…VisualizationPanel` - Updated condition to include `isFetching` check. Signed-off-by: Florent MILLOT <[email protected]>
- Removed redundant `xs` properties and adjusted `Grid` structure to simplify layout and maintain consistency. Signed-off-by: Florent MILLOT <[email protected]>
- Removed redundant `xs` properties and adjusted `Grid` structure to simplify layout and maintain consistency. Signed-off-by: Florent MILLOT <[email protected]>
- Consolidated `loadingOverlayComponent` and `loadingOverlayComponentParams` into a single `overlay` object. - Simplified and clarified conditional logic for `shouldDisplayRefreshButton`. Signed-off-by: Florent MILLOT <[email protected]>
…stVisualizationPanel` - Display a warning alert if study data has missing equipments. - Update translations to include `missingEquipmentsFromStudy` entries in English and French. Signed-off-by: Florent MILLOT <[email protected]>
…alignment Signed-off-by: Florent MILLOT <[email protected]>
… alignment. Signed-off-by: Florent MILLOT <[email protected]>
resizable: false, | ||
sortable: false, | ||
}; | ||
|
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.
export function RefreshOverlay({ loading, ...buttonProps }: Readonly<{ loading: boolean } & ButtonProps>) { | |
return loading ? <CircularProgress /> : <RefreshButton {...buttonProps} />; | |
} | |
|
||
const overlay = shouldDisplayRefreshButton | ||
? { | ||
loadingOverlayComponent: RefreshButton, |
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.
loadingOverlayComponent: RefreshButton, | |
loadingOverlayComponent: RefreshOverlay, |
loadingOverlayComponentParams: { disabled: true }, // disable the button when loading | ||
// rendering another loadingOverlayComponent or overlayLoadingTemplate does not work |
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.
loadingOverlayComponentParams: { disabled: true }, // disable the button when loading | |
// rendering another loadingOverlayComponent or overlayLoadingTemplate does not work | |
loadingOverlayComponentParams: { loading: true }, |
FilterBasedContingencyListVisualizationPanel
for enhanced data visualization and management.To fix :