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

Pop-up menu item to duplicate a cell #151

Open
epatters opened this issue Sep 5, 2024 · 0 comments · May be fixed by #216
Open

Pop-up menu item to duplicate a cell #151

epatters opened this issue Sep 5, 2024 · 0 comments · May be fixed by #216
Labels
enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations good first issue Small, local changes, general knowledge ui/ux User interface and user experience

Comments

@epatters
Copy link
Member

epatters commented Sep 5, 2024

Sometimes, instead of creating a new cell from scratch, it can be more convenient to duplicate an existing cell and then modify it. That will likely become more true over time as the data specified within a single cell becomes more complicated. Notion has this feature throughout their UI.

This issue is more subtle than #150 because it is incorrect to a duplicate a cell merely by deep copying it. In addition, the cell needs a new cell ID (a UUID) and in the case of formal cells, the formal content typically has its own UUID that must regenerated as well. One possible strategy is to extend the CellConstructor type with a new field providing a duplicate function, so that each cell type knows how to safely duplicate itself.

@epatters epatters added enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations ui/ux User interface and user experience good first issue Small, local changes, general knowledge labels Sep 5, 2024
@epatters epatters changed the title Pop-menu item to duplicate a cell Pop-up menu item to duplicate a cell Sep 6, 2024
@hamidahoderinwale hamidahoderinwale linked a pull request Oct 7, 2024 that will close this issue
2 tasks
@hamidahoderinwale hamidahoderinwale linked a pull request Oct 7, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend TypeScript frontend and Rust-wasm integrations good first issue Small, local changes, general knowledge ui/ux User interface and user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant