You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constants headerSettings, cellSettings, and wrapTextSettings are referenced before they are defined, causing a runtime ReferenceError.
constcolumns=data.columns.map((col)=>({field: col.name,headerName: col.name,sortable: false,renderHeader: ()=>(<divstyle={{// Apply style if the column is selectedbackgroundColor: headerSettings.selectedColumn.includes(
Move the declarations of headerSettings, cellSettings, titleSettings, and wrapTextSettings above the columns mapping so they are defined before use and avoid runtime reference errors.
Why: Moves the headerSettings, cellSettings, titleSettings, and wrapTextSettings declarations before the columns mapping to avoid undefined references and runtime errors.
High
Fix selectedColumn state typo
Correct the property name from selectedColumns to selectedColumn so the state matches the CellBackgroundSettings interface and updates correctly.
Why: Corrects the property name from selectedColumns to selectedColumn to match the CellBackgroundSettings interface and ensure column selection works.
Medium
Add timeout cleanup on unmount
Clear any pending timeouts when the component unmounts to avoid memory leaks and unintended state updates. Use a cleanup effect to clear both timeoutRef and optiontimeoutRef.
Why: Clearing timeoutRef and optiontimeoutRef in a cleanup effect prevents potential memory leaks and stray state updates.
Medium
General
Initialize value with computed data
Initialize the local value state using the current computedValue to avoid showing "null" in the input and prevent controlled/uncontrolled warnings. This ensures the input reflects the actual data immediately.
-console.log(data, "DATA");-console.log(frame, "Frame");+(Remove these two lines)
Suggestion importance[1-10]: 5
__
Why: Removing stray console.log statements cleans up the console output and prevents exposing internal data in production.
Low
Remove unused color state
The color state is never used to render UI; remove this redundant state and its setters to simplify the component and avoid confusing duplication of color value.
Why: The handler mistakenly uses selectedColumns instead of the defined selectedColumn field, causing the UI state to never update correctly; renaming it is essential for functionality.
High
Fix state property name
Correct the property name from selectedColumns to selectedColumn to match the state shape.
Why: The property selectedColumns is incorrect according to the CellBackgroundSettings interface and should be selectedColumn to properly update state.
Medium
Correct wrapTextSettings key
Replace selectedColumns with selectedColumn in the state update to align with the initial state definition.
Why: The code updates a non‑existent selectedColumns property on the wrapTextSettings state, breaking the selection logic; correcting it to selectedColumn aligns with the initial state definition.
Medium
General
Remove debug logging
Remove or guard debug console.log calls to prevent leaking runtime data in production.
Added styling controls (title, header, cell), color-by-value, text wrapping, row spanning, resizing, pagination, click events and color picker.
to commit the new content to the CHANGELOG.md file, please type:
'/update_changelog --pr_update_changelog.push_changelog_changes=true'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Replaced normal table with Data Grid Block (MUI)
Added features: