[Excel] (Run options) Add undo grouping sample#1061
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds a new Excel sample demonstrating the undo grouping feature introduced in ExcelApi 1.20. The sample shows developers how to use the mergeUndoGroup run option to combine multiple API operations into a single undoable action, improving the user experience by allowing all changes to be undone with a single Ctrl+Z command.
Changes:
- Added new sample demonstrating undo grouping with two comparison functions (with and without grouping)
- Updated view and playlist configuration files to register the new sample
- Sample includes setup function, interactive UI with keyboard shortcuts styling, and clear documentation
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| samples/excel/50-workbook/workbook-undo-grouping.yaml | New sample file demonstrating mergeUndoGroup functionality with comparison examples |
| view/excel.json | Added entry for the new undo grouping sample pointing to main branch |
| view-prod/excel.json | Added entry for the new undo grouping sample pointing to prod branch |
| playlists/excel.yaml | Added playlist entry with metadata for the new sample (main branch) |
| playlists-prod/excel.yaml | Added playlist entry with metadata for the new sample (prod branch) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }); | ||
| } | ||
|
|
||
| /** Helper function to invoke an action and handle errors. */ |
There was a problem hiding this comment.
The comment for the tryCatch function should be "Default helper for invoking an action and handling errors." to match the convention used in all other samples in the 50-workbook folder.
| /** Helper function to invoke an action and handle errors. */ | |
| /** Default helper for invoking an action and handling errors. */ |
This PR adds an undo grouping sample as part of high-value sample coverage.