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

[lexical-table][lexical-playground] Fix: Insertion of multiple rows #6963

Merged
merged 4 commits into from
Dec 14, 2024

Conversation

iamvinayvk
Copy link
Contributor

Description

Describe the changes in this pull request
When inserting multiple rows only one row was being added and also the position of the newly added row was sometimes in the middle of the rows.
Fixed the insertTableRow_Experimental function to handle the insertAfter and insertBefore row based on the maximum and minimum value of anchor and focus row.

Closes #6933

Test plan

Before

Insert relevant screenshots/recordings/automated-tests

multiple_rows_before.1.mp4

After

multiple_rows.1.mp4

Copy link

vercel bot commented Dec 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2024 7:27am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 14, 2024 7:27am

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 13, 2024
Copy link

github-actions bot commented Dec 13, 2024

size-limit report 📦

Path Size
lexical - cjs 31.2 KB (0%)
lexical - esm 31.04 KB (0%)
@lexical/rich-text - cjs 40.16 KB (0%)
@lexical/rich-text - esm 32.95 KB (0%)
@lexical/plain-text - cjs 38.77 KB (0%)
@lexical/plain-text - esm 30.16 KB (0%)
@lexical/react - cjs 42.05 KB (0%)
@lexical/react - esm 34.24 KB (0%)

etrepum
etrepum previously approved these changes Dec 13, 2024
Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

This looks good to me, nice job! Will merge assuming the extended test suite still looks good.

Copy link
Collaborator

@etrepum etrepum left a comment

Choose a reason for hiding this comment

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

This new test either needs to be skipped with isCollab, or it needs to be fixed for isCollab. The selection classes won't appear on the right frame because that's not the editor they are selected in, so a separate HTML document needs to be specified for the right frame.

@etrepum etrepum dismissed their stale review December 14, 2024 05:51

e2e collab test failures

@etrepum etrepum added this pull request to the merge queue Dec 14, 2024
Merged via the queue into facebook:main with commit db1464c Dec 14, 2024
40 checks passed
@ritikaGupta4
Copy link

When is the release planned that includes above change?

@etrepum
Copy link
Collaborator

etrepum commented Dec 20, 2024

Releases happen about once a month. If you need it sooner, you can use a nightly release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Insert Multiple Rows not working properly
4 participants