Skip to content

Feature: list command upgrades, toggle list fix, prep for run node#826

Merged
edoversb merged 4 commits intodevelopfrom
feat/list-cmds-upgrades-tests
Aug 30, 2025
Merged

Feature: list command upgrades, toggle list fix, prep for run node#826
edoversb merged 4 commits intodevelopfrom
feat/list-cmds-upgrades-tests

Conversation

@harbournick
Copy link
Copy Markdown
Collaborator

  • Fixes for list commands
  • Fixes for toggle list with single and multiple nodes back-and-forth
  • Adds tests to list commands
  • Adds types to list commands
  • Prepares lists to work with run node

@harbournick harbournick self-assigned this Aug 30, 2025
@harbournick harbournick force-pushed the feat/list-cmds-upgrades-tests branch from 40fae73 to 12a51e6 Compare August 30, 2025 20:44
@harbournick harbournick force-pushed the feat/list-cmds-upgrades-tests branch from 12a51e6 to 0613ea6 Compare August 30, 2025 20:48
@harbournick harbournick requested a review from Copilot August 30, 2025 20:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements significant improvements to list command functionality, toggle list fixes, and enhanced testing. The changes focus on making list toggling more robust, handling single and multiple node selections, and laying groundwork for run node compatibility.

  • Upgraded toggleList command with proper type conversion, selection preservation, and multi-paragraph handling
  • Fixed toggle list functionality for converting between list types and unwrapping lists
  • Added comprehensive test coverage for list commands with proper mocking infrastructure

Reviewed Changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
toggleList.js Complete rewrite with improved logic for list toggling, type conversion, and selection handling
toggleList.test.js Comprehensive test suite covering various toggle scenarios
splitListItem.js Simplified logic for splitting list items with better handling of multi-paragraph cases
deleteSelection.js Extracted helper functions into separate modules for better organization
findParentNode.js Added TypeScript annotations and improved documentation
Various helper files New utility functions for list operations with comprehensive test coverage

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/super-editor/src/core/commands/toggleList.test.js
Comment thread packages/super-editor/src/core/commands/splitListItem.test.js Outdated
Comment thread packages/super-editor/src/core/commands/deleteSelection.js Outdated
@harbournick harbournick marked this pull request as ready for review August 30, 2025 21:50
@edoversb edoversb merged commit 9b69e80 into develop Aug 30, 2025
7 checks passed
@edoversb edoversb deleted the feat/list-cmds-upgrades-tests branch August 30, 2025 23:37
@harbournick
Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 0.16.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants