Repository navigation
Conversation
…mplement absorbed column resizing logic
…zable-table-columns-automatic-widths-on-right # Conflicts: # src/components/Table/columnResize/columnResizeGestures.ts # src/components/Table/columnResize/getResizableColumnLayout.ts # src/components/Table/columnResize/useColumnResize/index.ts
…ns` with `resizableColumnKeys` and `getResizedColumnWidths`; clean up related tests and types
…ble-columns-automatic-widths-on-right # Conflicts: # src/components/Table/columnResize/useColumnResize/index.ts
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ReviewI found one bug. When an earlier column has a stored width, starting a drag on a later column makes columns to its left jump. Cause: Example: You have four 200px columns,
Suggested fix: Drop Also checked, no issues
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0017576207
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Looks like every CI check is failing haha @war-in |
…tomatic-widths-on-right # Conflicts: # src/components/Table/columnResize/useColumnResize/types.ts # tests/unit/components/Table/useColumnResizeTest.ts
|
@Krishna2323 behaviour we agreed on here has been implemented Could you re-review? 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariweb_chrome.mp4 |
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.5.15-1 🚀
|
|
No help site update is needed: column resizing is still behind the |
|
Deploy Blocker #104506 was identified to be related to this PR. |
|
Deploy Blocker #104508 was identified to be related to this PR. |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.5.15-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Resizing a column now takes the width out of the resizable columns to its right instead of growing the row, so the table keeps its width. Absorbing columns shrink equally, never below their content width. Past that, the table scrolls. The drag and the stored widths go through the same resolver (
resolveOverriddenColumnWidths), so columns don't jump on release.Fixed Issues
$ #101331
PROPOSAL:
Tests
Important
Please clear onyx cache if you tested
resizableTableColumnsbefore, because the data structure changedPreconditions: web, wide layout,
resizableTableColumnsbeta enabled.Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari