Skip to content

Conversation

@flomillot
Copy link
Contributor

@flomillot flomillot commented Nov 21, 2025

PR Summary

  • Extract the equipment table into a new component EquipmentTypesByFilters
  • Refactored ContingencyListFilterBasedForm to use PanelGroup for resizable panels.
  • Updated default sizes based on filter inclusion.
  • Enhanced layout and responsiveness.

TODO :

  • wait for useEffectEvent ?

…ency list form

- Introduced `EquipmentTypesByFilters` for enhanced substation and VL filter handling.
- Refactored `ContingencyListFilterBasedForm` to use `PanelGroup` for resizable panels.
- Updated default sizes based on filter inclusion.
- Enhanced layout and responsiveness.
- Extended dependency list with `react-resizable-panels`.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
The custom AG Grid cell renderers have been moved from the application-specific folder to the shared @gridsuite/commons-ui library. Updated all references across the codebase to use the shared cell renderers, simplifying code reuse and improving modularity.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…ponents

- Replaced `Grid item` titles with heading elements (`h3`, `h4`) for better semantic structure.
- Adjusted typography properties to enhance visual clarity and consistency.
- Refactored padding and margins in visualization panel for improved responsiveness.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
setIsDataOutdated: (value: boolean) => void;
}

export function EquipmentTypesByFilters({
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export function EquipmentTypesByFilters({
function EquipmentTypesByFilters({

use export default at the bottom

import { ContingencyFieldConstants, FilterElement, FilterSubEquipments } from '../../../../utils/contingency-list.type';
import { FilterBasedContingencyListVisualizationPanel } from './filter-based-contingency-list-visualization-panel';
import { isSubstationOrVoltageLevelFilter } from '../contingency-list-utils';
import { EquipmentTypesByFilters } from './equipment-types-by-filters';
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import { EquipmentTypesByFilters } from './equipment-types-by-filters';
import EquipmentTypesByFilters from './equipment-types-by-filters';

use import default

Copy link
Contributor Author

@flomillot flomillot Nov 26, 2025

Choose a reason for hiding this comment

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

no I cant there is an eslint error

Ok works with the code above

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
},
[setValue, getValues]
);
// TODO : uncomment when useEffectEvent will be available
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// TODO : uncomment when useEffectEvent will be available
// TODO : uncomment when useEffectEvent will be available and remove above useEffect

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.

3 participants