Skip to content

docs: show how to undo an annotation class change - #3612

Merged
Mavrick-F merged 1 commit into
opengeos:mainfrom
robmarkcole:docs/annotation-class-undo
Dec 2, 2026
Merged

Mavrick-F merged 1 commit into
opengeos:mainfrom
robmarkcole:docs/annotation-class-undo

Conversation

@robmarkcole

@robmarkcole robmarkcole commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 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).

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

  • Documentation
    • Clarified that changing an annotation’s class preserves its ID, geometry, and constrained handles.
    • Updated the guide to explain how to undo the change.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Possibly related PRs

  • 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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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.

Share

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.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Code 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).

Measure Value
Files changed 1 (added 0, modified 1, removed 0, renamed 0)
Size before 57.5 KB
Size after 57.6 KB
Total size change +108 B
Path Before After Change
docs/user-guide/editing.md 57.5 KB 57.6 KB +108 B

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

📖 Docs preview

Commit 945eaf3 from a fork built, but isn't published until a maintainer adds the preview label (once per commit).

@Mavrick-F
Mavrick-F added this pull request to the merge queue Dec 2, 2026
Merged via the queue into opengeos:main with commit a9f2714 Dec 2, 2026
19 checks passed
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.

2 participants