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

migrate aggrid into v33 #667

Merged
merged 5 commits into from
Jan 22, 2025
Merged

migrate aggrid into v33 #667

merged 5 commits into from
Jan 22, 2025

Conversation

achour94
Copy link
Contributor

No description provided.

Signed-off-by: achour94 <berrahmaachour@gmail.com>
@achour94 achour94 self-assigned this Jan 13, 2025
Copy link
Contributor

@Tristan-WorkGH Tristan-WorkGH left a comment

Choose a reason for hiding this comment

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

1 question and 1 minor change, else good to me.

@@ -66,7 +66,6 @@ export const CustomAGGrid = React.forwardRef<AgGridReact, CustomAGGridProps>((pr
<AgGridReact
ref={ref}
getLocaleText={getLocaleText}
suppressPropertyNamesCheck
onColumnResized={onColumnResized}
enableCellTextSelection
{...agGridReactProps}
Copy link
Contributor

Choose a reason for hiding this comment

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

We still use the old styling system.

Suggested change
{...agGridReactProps}
theme="legacy"
{...agGridReactProps}

@@ -92,7 +83,7 @@ export interface CustomAgGridTableProps {
defaultColDef: unknown;
pagination: boolean;
paginationPageSize: number;
suppressRowClickSelection: boolean;
rowSelection?: RowSelectionOptions | 'single' | 'multiple';
Copy link
Contributor

Choose a reason for hiding this comment

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

would prefer

Suggested change
rowSelection?: RowSelectionOptions | 'single' | 'multiple';
rowSelection?: AgGridReactProps['rowSelection'];

Copy link
Contributor

Choose a reason for hiding this comment

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

dunno if the provideGlobalGridOptions({ theme: 'legacy' }); in fronts also affect the ones in this library 🤔

@@ -243,11 +234,10 @@ export function CustomAgGridTable({
onGridReady={onGridReady}
getLocaleText={getLocaleText}
cacheOverflowSize={10}
rowSelection="multiple"
rowSelection={rowSelection || 'multiple'}
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
rowSelection={rowSelection || 'multiple'}
rowSelection={rowSelection ?? 'multiple'}

@@ -259,7 +249,6 @@ export function CustomAgGridTable({
getRowId={(row) => row.data[FieldConstants.AG_GRID_ROW_UUID]}
pagination={pagination}
paginationPageSize={paginationPageSize}
suppressRowClickSelection={suppressRowClickSelection}
alwaysShowVerticalScroll={alwaysShowVerticalScroll}
stopEditingWhenCellsLoseFocus={stopEditingWhenCellsLoseFocus}
{...props}
Copy link
Contributor

Choose a reason for hiding this comment

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

We still use the old styling system.

Suggested change
{...props}
theme="legacy"
{...props}

@achour94 achour94 merged commit 9578077 into main Jan 22, 2025
5 checks passed
@achour94 achour94 deleted the upgrade-aggrid-to-v33 branch January 22, 2025 15:42
achour94 added a commit that referenced this pull request Jan 22, 2025
Signed-off-by: achour94 <berrahmaachour@gmail.com>
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