Skip to content

Feature/dynamic width test#551

Merged
brauliodiez merged 8 commits into
vnextfrom
feature/dynamic-width-test
Oct 5, 2025
Merged

Feature/dynamic width test#551
brauliodiez merged 8 commits into
vnextfrom
feature/dynamic-width-test

Conversation

@brauliodiez

Copy link
Copy Markdown
Member

No description provided.

@brauliodiez brauliodiez requested a review from Copilot October 5, 2025 15:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements dynamic table width functionality, allowing tables to be resized horizontally while maintaining proper layout and positioning. The feature adds interactive resize handles to tables and updates all related calculations to use dynamic widths instead of fixed values.

  • Replaced fixed TABLE_WIDTH constant with DEFAULT_TABLE_WIDTH as a fallback value
  • Added table resize functionality with left and right resize handles
  • Updated all width calculations throughout the codebase to support dynamic table widths

Reviewed Changes

Copilot reviewed 31 out of 31 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/pods/toolbar/components/export-button/export-coordinate.helpers.ts Updated table width calculation to use dynamic width with fallback
src/pods/toolbar/components/export-button/export-button.component.tsx Refactored export logic to support dynamic table widths and canvas sizing
src/pods/toolbar/components/export-button/export-button.business.ts Added new functions for dynamic width calculations and table normalization
src/pods/toolbar/components/export-button/export-button.business.spec.ts Updated test constants to use DEFAULT_TABLE_WIDTH
src/pods/export/components/table/database-table.component.tsx Modified table rendering to support dynamic widths
src/pods/export/components/table/database-table-row.component.tsx Updated row rendering with dynamic width calculations
src/pods/export/components/relation/components/database-relation-self-export.component.tsx Updated self-relation path calculations
src/pods/edit-table/edit-table.vm.ts Added width property to TableVm interface
src/pods/canvas/components/table/table-resize.hook.ts New hook implementing table resize functionality
src/pods/canvas/components/table/database-table.module.css Added CSS styles for resize handles
src/pods/canvas/components/table/database-table.component.tsx Integrated resize functionality into table component
src/pods/canvas/components/table/database-table-render-rows.helper.tsx Updated row rendering helper to pass table width
src/pods/canvas/components/table/components/table-resize-handles.component.tsx New component for resize handles
src/pods/canvas/components/table/components/database-table-row.component.tsx Updated row component with dynamic width calculations and debug logging
src/pods/canvas/components/table/components/database-table-header.component.tsx Updated header component to use dynamic width
src/pods/canvas/components/table/components/database-table-border.component.tsx Updated border component to use dynamic width
Multiple relation components Updated relation path calculations to support dynamic table widths
src/core/providers/canvas-schema/canvas.const.ts Removed TABLE_WIDTH constant, keeping only DEFAULT_TABLE_WIDTH
src/core/providers/canvas-schema/canvas.business.ts Updated coordinate calculations to use dynamic widths
src/core/providers/canvas-schema/canvas-schema.provider.tsx Added updateTableWidth function to context
src/core/providers/canvas-schema/canvas-schema-vlatest.model.ts Added width property to TableVm and context interfaces

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/pods/canvas/components/table/components/database-table-row.component.tsx Outdated
Comment thread src/pods/toolbar/components/export-button/export-button.component.tsx Outdated
brauliodiez and others added 2 commits October 5, 2025 17:54
….component.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ent.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@brauliodiez brauliodiez merged commit e5d831d into vnext Oct 5, 2025
0 of 2 checks passed
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