Skip to content

Conversation

Tristan-WorkGH
Copy link
Contributor

Following #855

Content:

  • module-mui.d.ts → rework MUI theme augmentation to work inside commons-ui and in app including it
    • adapt Vite config to include dts in build
    • cleaning theme variable names across gridsuite code
    • include by default mui libs already in commons-ui dependencies
  • Migrate some files of dome to typescript
  • AgGrid theme option is optional because griddyna don't use aggrid
  • AgGrid theme override endpoint are set to optional because each fronts don't set all and not the same
    • add condition to not inject incomplete style rules
    • remove redundant Box enclosure in CustomAgGridTable, already done by CustomAGGrid
  • Follow MUI Guide to correctly set CancelButton custom color

@Tristan-WorkGH Tristan-WorkGH self-assigned this Sep 19, 2025
Copy link

setResizedTreePercentage(newPercentage);
}
};
// eslint-disable-next-line @typescript-eslint/no-unused-vars
Copy link
Contributor

Choose a reason for hiding this comment

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

MAybe you could remove this line ? because you change to _event ?

onSortChanged={onSortChanged}
getRowId={(row) => row.data[FieldConstants.AG_GRID_ROW_UUID]}
theme="legacy"
sx={useMemo(() => style(cssProps).grid, [cssProps])}
Copy link
Contributor

Choose a reason for hiding this comment

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

hum Rules of Hooks : Only call Hooks at the top level, I don't like this useMemo called in the JSX...

fontSize: 'calc(var(--ag-font-size) + 1px)',
paddingLeft: 'calc(var(--ag-cell-horizontal-padding) - 1px)',
width: '100%',
const style = (customProps: CSSObject) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this customProps as parameter of the style object ?

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.

2 participants