Skip to content

[Excel] (Run options) Add undo grouping sample#1061

Open
alison-mk wants to merge 4 commits intomainfrom
alison-mk-run-options
Open

[Excel] (Run options) Add undo grouping sample#1061
alison-mk wants to merge 4 commits intomainfrom
alison-mk-run-options

Conversation

@alison-mk
Copy link
Contributor

@alison-mk alison-mk commented Feb 13, 2026

This PR adds an undo grouping sample as part of high-value sample coverage.

Copy link
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 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. */
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

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.

Suggested change
/** Helper function to invoke an action and handle errors. */
/** Default helper for invoking an action and handling errors. */

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant