You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: show how to undo an annotation class change - #3612
Document how to undo a class reassignment where the annotation guide explains Assign to selected annotation. The guide now gives the ribbon path and the default macOS and Windows shortcuts.
Testing
Checked the ribbon path against the Edit tab and the shortcuts against the platform keymap.
Built the site with Zensical and checked the rendered annotation section for the Undo path and both shortcuts. Zensical reported one unrelated link warning for the release fixtures README.
Passed git diff --check and cargo xtask ci (macOS, bundled fonts for renderer extent tests and serial UI smoke tests).
No actionable comments were generated in the recent review.
Walkthrough
The annotation guide now explains how to undo a class assignment through the Manage Edits menu or a platform-specific shortcut. It retains the statement that the assignment preserves the annotation’s ID, geometry, and constrained handles.
Changes: Annotation class undo guidance
Layer / File(s)
Summary
Undo instructions docs/user-guide/editing.md
The guide replaces the statement that class assignment is undoable with the Manage Edits → Undo menu path and platform-specific shortcuts. It retains the statement that IDs, geometry, and constrained handles are preserved.
opengeos/RustGIS#3597: This PR documents undo for class reassignment behavior introduced in the Annotate workflow.
opengeos/RustGIS#2664: This PR documents how to undo class assignments implemented by the reclassification workflow.
Suggested reviewers:pick2510, giswqs
Merge Risk: Minimal · up to 945ea
This change only adds documentation on undoing an annotation class assignment. The documented menu path matches the application's ribbon, so there is no known merge risk.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "docs: show how to undo an annotation class change" matches the main change: the annotation guide now documents how to undo a class reassignment via Edit → Manage Edits → Undo or the platfor…
Description check
The description follows the template's Summary, Testing, UI evidence, and Related issue sections. The Summary explains what changed and why. Testing lists the ribbon path check, the shortcut check, th…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "docs: show how to undo an annotation class change" matches the main change: the annotation guide now documents how to undo a class reassignment via Edit → Manage Edits → Undo or the platform shortcut. It is specific, concise, and follows a conventional prefix.
Full details: Description check
Explanation
The description follows the template's Summary, Testing, UI evidence, and Related issue sections. The Summary explains what changed and why. Testing lists the ribbon path check, the shortcut check, the Zensical site build, git diff --check, and cargo xtask ci. UI evidence states no visible UI change, as the template allows. Related issue cites #3597 and #1717 as a follow-up. The description is complete and specific.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit reads the undo guide, Then hops to Manage Edits with pride. A class may change; the shape stays true, The ID remains, the handles too. One shortcut brings the change undone.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: ASSERTIVE
Plan: Advanced
Run ID: 2edc7231-cd32-41d3-86d2-657af21c681a
Commits
Reviewing files that changed from the base of the PR and between 1ff3b2c and 945eaf3.
Files selected for processing: 1
docs/user-guide/editing.md
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
Reviewed the one-file docs change to docs/user-guide/editing.md. I found no bugs, security issues, performance issues or AGENTS.md violations. No inline comments were posted because there is nothing to flag.
Bugs: none found. Security: none found. Performance: none found. Quality: none found. The new sentence uses the same → menu separator as the rest of editing.md. AGENTS.md: none found. The change is docs-only, so the code rules don't apply.
What I checked (confidence high):
Ribbon path:crates/ui-egui/src/ribbon.rs:2855-2859 puts an "Undo" button under the Edit tab's "Manage Edits" group, running edit.undo. This matches "Edit → Manage Edits → Undo".
Shortcuts:crates/ui-egui/src/fieldmenu.rs:130 binds Undo to Modifiers::COMMAND, which is ⌘ on macOS and Ctrl elsewhere. This matches "⌘Z on macOS or Ctrl+Z on Windows". In chrome.rs, a focused text field takes Ctrl/⌘+Z for its own typing, so the project-level Undo the doc describes applies only when no text field is focused. The doc doesn't need to say this.
Undo covers class changes:crates/ui-egui/src/annotation_classes.rs:527-534 asserts an undo step is added and that edit.undo restores the renderer and dataset, so the sentence the doc keeps ("is undoable") is backed by a test.
Earlier concerns: there were no prior review threads on this PR, so none were left alone.
Change size
Compared: the whole PR against main (merge base b89fd11 to PR head 945eaf3).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Document how to undo a class reassignment where the annotation guide explains Assign to selected annotation. The guide now gives the ribbon path and the default macOS and Windows shortcuts.
Testing
git diff --checkandcargo xtask ci(macOS, bundled fonts for renderer extent tests and serial UI smoke tests).UI evidence
No visible UI change.
Related issue
Follow-up to #3597 and #1717.
OpenAI Codex wrote the documentation change and PR description and ran the checks.
Summary by CodeRabbit