Graphite/editor
Aniket giri f801ed72bb
Clean up DocumentMessageHandler by breaking out several lengthy handlers into helper functions (#3568)
refactor(document): extract large match arms into helper methods

Part of #2740 - Code quality refactors.

This commit addresses the 'Match statements' section of the tracking
issue by extracting three large match arms from process_message() into
dedicated helper methods:

- handle_group_selected_layers: Handles layer grouping in both artboard
  and non-artboard workflows (~50 lines extracted)
- handle_move_selected_layers_to: Handles layer movement with proper
  transform preservation (~85 lines extracted)
- handle_nudge_selected_layers: Handles keyboard nudging with optional
  resize mode (~75 lines extracted)

The main match statement in DocumentMessageHandler is now ~210 lines
shorter and more readable. Logic and behavior remain unchanged.
2026-02-17 22:01:32 +00:00
..
src Clean up DocumentMessageHandler by breaking out several lengthy handlers into helper functions (#3568) 2026-02-17 22:01:32 +00:00
Cargo.toml Update links from graphite.rs to graphite.art 2025-12-06 18:10:27 -08:00
build.rs Desktop: Add commit info to binaries build with Nix (#3635) 2026-01-15 10:34:01 +00:00