-
Notifications
You must be signed in to change notification settings - Fork 760
feat: add expand and collapse all columns to notebook actions menu #4550
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
feat: add expand and collapse all columns to notebook actions menu #4550
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
All contributors have signed the CLA ✍️ ✅ |
for more information, see https://pre-commit.ci
|
I have read the CLA Document and I hereby sign the CLA |
for more information, see https://pre-commit.ci
…into new-keyboard-shortcuts
for more information, see https://pre-commit.ci
…ollapse or expand and changes behavior based on that
for more information, see https://pre-commit.ci
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.
great work!
|
🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.12.10-dev21 |
…4550) ## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes #123). --> Partially resolves #4163 <img width="323" alt="Screenshot 2025-04-15 at 6 56 22 PM" src="https://github.com/user-attachments/assets/45a2ef2a-2351-4cff-a420-6d77b50901e3" /> Next PR will add this functionality to hotkeys.tsx ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> Created collapseAllColumns and expandAllColumns hooks then added them to the notebook actions menu. ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [x] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [ ] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. ## 📜 Reviewers <!-- Tag potential reviewers from the community or maintainers who might be interested in reviewing this pull request. Your PR will be reviewed more quickly if you can figure out the right person to tag with @ --> @mscolnick --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes #123). --> Updated useSectionCollapse to use collapseAllCells and expandAllCells. Partially resolves #4163 by fixing useSectionCollapse bugs. ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> - Updates #4550 implementation by using expandAllCells and collapseAllCells rather than running expandCell and collapseCell in a loop - Fixes consecutive react renders issue - Fixes Node not in tree errors ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [x] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [x] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected. ## 📜 Reviewers <!-- Tag potential reviewers from the community or maintainers who might be interested in reviewing this pull request. Your PR will be reviewed more quickly if you can figure out the right person to tag with @ --> @mscolnick
📝 Summary
Partially resolves #4163

Next PR will add this functionality to hotkeys.tsx
🔍 Description of Changes
Created collapseAllColumns and expandAllColumns hooks then added them to the notebook actions menu.
📋 Checklist
📜 Reviewers
@mscolnick