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

fix: resizing column action causes order change in BAITable #2831

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Nov 7, 2024

Resolves #2830

Prevents column sorting when resizing columns in BAITable

This PR fixes an issue where users could accidentally trigger column sorting while resizing table columns. It adds a debounced resize state check that temporarily disables click events during and shortly after column resizing operations.

Implementation details:

  • Added isResizing state to track when a column is being resized
  • Implemented a 100ms debounced version of the resize state
  • Modified click handler to prevent column sorting when resize is in progress
  • Preserved original click behavior when not resizing

Copy link

graphite-app bot commented Nov 7, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

Copy link
Member Author

yomybaby commented Nov 7, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yomybaby and the rest of your teammates on Graphite Graphite

@yomybaby yomybaby marked this pull request as ready for review November 7, 2024 09:05
@yomybaby yomybaby linked an issue Nov 8, 2024 that may be closed by this pull request
Copy link
Contributor

@agatha197 agatha197 left a comment

Choose a reason for hiding this comment

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

LGTM

@agatha197 agatha197 force-pushed the feature/make-image-lists-resizable branch from 8fb21cb to 679c83c Compare November 11, 2024 00:55
@github-actions github-actions bot added the area:ux UI / UX issue. label Nov 11, 2024
Copy link
Member Author

@yomybaby yomybaby left a comment

Choose a reason for hiding this comment

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

I'll move this PR to the main branch and merge it first.

@yomybaby yomybaby changed the base branch from feature/make-image-lists-resizable to main November 11, 2024 04:22
Copy link

graphite-app bot commented Nov 11, 2024

Merge activity

Resolves #2830

Prevents column sorting when resizing columns in BAITable

This PR fixes an issue where users could accidentally trigger column sorting while resizing table columns. It adds a debounced resize state check that temporarily disables click events during and shortly after column resizing operations.

**Implementation details:**
- Added `isResizing` state to track when a column is being resized
- Implemented a 100ms debounced version of the resize state
- Modified click handler to prevent column sorting when resize is in progress
- Preserved original click behavior when not resizing
@graphite-app graphite-app bot merged commit a888e3e into main Nov 11, 2024
6 checks passed
@graphite-app graphite-app bot deleted the fix/resizing-causes-order branch November 11, 2024 04:24
Copy link

Coverage report for ./react

St.
Category Percentage Covered / Total
🔴 Statements 5.03% 367/7294
🔴 Branches 4.4% 221/5027
🔴 Functions 2.95% 71/2408
🔴 Lines 4.93% 352/7133

Test suite run success

100 tests passing in 13 suites.

Report generated by 🧪jest coverage report action from a888e3e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:ux UI / UX issue. size:S 10~30 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resizing column action causes order change in BAITable
2 participants