Skip to content

[codex] Refactor PhotosCrop feature tree ownership#312

Merged
muukii merged 1 commit into
v5from
codex/photoscrop-feature-tree-model
Jun 21, 2026
Merged

[codex] Refactor PhotosCrop feature tree ownership#312
muukii merged 1 commit into
v5from
codex/photoscrop-feature-tree-model

Conversation

@muukii

@muukii muukii commented Jun 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Introduce PhotosCropEditingModel as the PhotosCrop policy layer over the generic FeatureTree document.
  • Add CropViewDocument so CropView edits through a document boundary instead of depending on EditingStack directly.
  • Move undo/redo checkpoint storage behind EditingHistory and expose clearer stack APIs: commitCurrentEditIfNeeded, undo, redo, revertCurrentEdit, and removeAllHistory.
  • Remove legacy crop-specific stack helpers and update demos, docs, and render tests to use FeatureTree-oriented mutation paths.

Validation

  • BrightroomEngineTests: 152 passed on iPhone 17 simulator.
  • BrightroomUI simulator build: succeeded.
  • SwiftUIDemo simulator build: succeeded.
  • git diff --check: passed.

Note: SwiftUIDemo still reports existing iOS 17 onChange(of:perform:) deprecation warnings unrelated to this change.

@muukii muukii force-pushed the codex/photoscrop-feature-tree-model branch from c831902 to 6d4eb78 Compare June 21, 2026 10:47
@muukii muukii marked this pull request as ready for review June 21, 2026 11:59
@muukii muukii merged commit b9f3d13 into v5 Jun 21, 2026
2 checks passed
@muukii muukii deleted the codex/photoscrop-feature-tree-model branch June 21, 2026 11:59
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