[comp] Production Deploy
Merged
GI
5mo ago+136+136+012345678901234567890123456789-6-6-0123456789
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Summary by cubic
Fixes the policy editor showing published content when opening a draft via Versions > Edit. The editor now loads the selected draft’s content on mount, so saved edits appear and aren’t accidentally overwritten.
- Bug Fixes
- Seed initial editor content from the version matching
initialVersionIdusingresolveInitialPolicyContent. - Fall back to published content only when no version is selected; handle single-node vs array content and respect empty drafts.
- Added unit tests for resolve behavior and edge cases.
- Seed initial editor content from the version matching