Skip to content

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

Merged
etrepum merged 4 commits intofacebook:mainfrom
iamvinayvk:fix/multiple_rows_insertion
Dec 14, 2024
Merged

[lexical-table][lexical-playground] Fix: Insertion of multiple rows#6963
etrepum merged 4 commits intofacebook:mainfrom
iamvinayvk:fix/multiple_rows_insertion

Conversation

@iamvinayvk
Copy link
Copy Markdown
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

@vercel
Copy link
Copy Markdown

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
@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
@ritikaGupta4
Copy link
Copy Markdown

When is the release planned that includes above change?

@etrepum
Copy link
Copy Markdown
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