-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement copy-paste for rows in TableBlock
#2887
base: feature/table-block
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this really be done via the clipboard? Wouldn't in memory be sufficient?
I think it makes sense to handle this the same as copy/pasting blocks.
What do you mean with "in memory"? |
Exactly.
Good point, then let's keep it like this. |
64a5dff
to
b5846d0
Compare
b5846d0
to
c4d6cc6
Compare
const clipboardRowSchema = z.object({ | ||
highlighted: z.boolean(), | ||
cellValues: z.array(z.string()), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you decide to add zod?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seemed like the easies way to validate if the structure of the pasted JSON is correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know of a better alternative/method?
Related tasks and documents
https://vivid-planet.atlassian.net/browse/COM-1315