Skip to content

chore: Fixed table not being defined in getBoundingClientRect() and better TS support for tables - #3309

Merged
sriramveeraghanta merged 2 commits into
developfrom
fix/table-rect-error
Jan 4, 2024
Merged

sriramveeraghanta merged 2 commits into
developfrom
fix/table-rect-error

Conversation

@Palanikannan1437

@Palanikannan1437 Palanikannan1437 commented Jan 3, 2024 •

Copy link
Copy Markdown
Contributor

Description

Fixed error of table not being defined while getting getBoundingClientRect() and solved the following TS issues as well.

  • Added ResolvedPos import from @tiptap/pm/model
  • Updated setCellsBackgroundColor function parameter type to string
  • Declared ToolboxItem type for toolbox items
  • Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
  • Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
  • Added ts-expect-error comment above the toolbox variable declaration
  • Updated update method parameter type to readonly Decoration[]
  • Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
  • Added null check for this.table in updateControls method
  • Wrapped the code that updates columnsControl and rowsControl with null checks for each control
  • Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods

sriramveeraghanta and others added 2 commits December 30, 2023 21:33
fix: project settings form not loading new data while switching between projects
error of table not being defined while getting getBoundingClientRect()
and solve other TS issues

- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods
@sriramveeraghanta
sriramveeraghanta changed the base branch from preview to develop January 3, 2024 12:57
@sriramveeraghanta sriramveeraghanta added this to the v0.14.3-dev milestone Jan 3, 2024
@sriramveeraghanta
sriramveeraghanta merged commit 0927fa1 into develop Jan 4, 2024
@sriramveeraghanta
sriramveeraghanta deleted the fix/table-rect-error branch January 4, 2024 11:00
sriramveeraghanta added a commit that referenced this pull request Jan 22, 2024
…ry (#3309)

error of table not being defined while getting getBoundingClientRect()
and solve other TS issues

- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods

Co-authored-by: sriram veeraghanta <[email protected]>
sriramveeraghanta added a commit that referenced this pull request Jan 22, 2024
…ry (#3309)

error of table not being defined while getting getBoundingClientRect()
and solve other TS issues

- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods

Co-authored-by: sriram veeraghanta <[email protected]>
@Palanikannan1437 Palanikannan1437 changed the title [chore]: Fixed table not being defined in getBoundingClientRect() and better TS support for tables chore: Fixed table not being defined in getBoundingClientRect() and better TS support for tables Jan 31, 2024
vamsikrishnamathala pushed a commit that referenced this pull request Aug 7, 2025
TheJohnFogarty pushed a commit to TheJohnFogarty/plane that referenced this pull request Aug 7, 2026
…ry (makeplane#3309)

error of table not being defined while getting getBoundingClientRect()
and solve other TS issues

- Added ResolvedPos import from @tiptap/pm/model
- Updated setCellsBackgroundColor function parameter type to string
- Declared ToolboxItem type for toolbox items
- Modified columnsToolboxItems and rowsToolboxItems to use the ToolboxItem type
- Updated createToolbox function parameters to specify Element or null for triggerButton and ToolboxItem[] for items
- Added ts-expect-error comment above the toolbox variable declaration
- Updated update method parameter type to readonly Decoration[]
- Changed destructuring assignment of hoveredTable and hoveredCell in updateControls method to use Object.values and reduce method
- Added null check for this.table in updateControls method
- Wrapped the code that updates columnsControl and rowsControl with null checks for each control
- Replaced ts-ignore comments with proper dispatch calls in selectColumn and selectRow methods

Co-authored-by: sriram veeraghanta <[email protected]>
stardothosting pushed a commit to stardothosting/plane-shift8 that referenced this pull request Oct 28, 2026
stardothosting pushed a commit to stardothosting/plane-shift8 that referenced this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants