Skip to content

Refactor(ios): consume the shared editor through public packages - #23

Merged
adibhanna merged 2 commits into
fix/cloud-live-regressionsfrom
refactor/ecosystem-boundaries-pr
Sep 16, 2026
Merged

adibhanna merged 2 commits into
fix/cloud-live-regressionsfrom
refactor/ecosystem-boundaries-pr

Conversation

@adibhanna

@adibhanna adibhanna commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Replace the cloned desktop source and private renderer/store imports with immutable core, bridge-contract, and shared-domain packages. iOS retains ownership of native files, Cloud/iCloud behavior, keyboard handling, and gestures while public core APIs coordinate editor and workspace actions.

  • Reserve native vault moves across save, move, reopen, and rollback; invalidate stale attachment/gesture contexts.
  • Initialize native typing and editor geometry through public host APIs.
  • Add package-boundary checks and a disposable native runtime fixture.
  • Align pod deployment targets with the app's existing iOS 15 minimum for the current Xcode toolchain.

This PR is stacked on #22, fix/cloud-live-regressions. Its Cloud fixes are prerequisites, not duplicated changes. The unrelated local 1.9.10/build 21 Xcode version bump is excluded.

Validation

  • Clean package installation without a desktop source checkout; boundary check, typecheck, 102 tests, and production/fixture builds.
  • Native simulator build succeeds.
  • Disposable simulator: 20 runtime checks and three cold-start checks, including exact note bytes, native typing, Find, attachments, task scanning, comments, Trash/Restore, and whole-vault relocation.

Draft dependencies

The vendored package set includes the v2.50.4 fixes and depends on the main ZenNotes public-package migration. Replace the validated dirty-source archives with reviewed clean artifacts before release. Real iCloud entitlements and account-backed Cloud acceptance remain staging gates. No application release is included.

Related boundary PRs

Replace the cloned desktop source and private renderer/store imports with immutable core, bridge-contract, and shared-domain packages. iOS retains ownership of native files, Cloud/iCloud behavior, keyboard handling, and gestures while public core APIs coordinate editor and workspace actions.

- Reserve native vault moves across save, move, reopen, and rollback; invalidate stale attachment/gesture contexts.
- Initialize native typing and editor geometry through public host APIs.
- Add package-boundary checks and a disposable native runtime fixture.
- Align pod deployment targets with the app's existing iOS 15 minimum for the current Xcode toolchain.

This PR is stacked on [#22](#22), `fix/cloud-live-regressions`. Its Cloud fixes are prerequisites, not duplicated changes. The unrelated local 1.9.10/build 21 Xcode version bump is excluded.
The production audit used to run inside the desktop source checkout, whose
root manifest overrides the nested nanoid and mermaid parser versions that
Excalidraw pulls in. Installing the core as a package moved the audit into
this repository, where no overrides existed, so the same dependency tree
failed on high advisories against nanoid 3.3.3, nanoid 4.0.2, and
lodash-es 4.17.21.

Add the same overrides. npm keeps already-nested lockfile entries even when
overrides change, so the stale nested entries were removed and the tree
re-resolved: 21 packages drop out, the resolution matches the desktop, and
the audit reports nothing. The lockfile is stable on a second resolve. The
same change on the local tree with the newer core candidate passes the
boundary check, typecheck, unit tests, and the production build.
@adibhanna
adibhanna marked this pull request as ready for review September 16, 2026 20:07
@adibhanna
adibhanna merged commit 2785140 into fix/cloud-live-regressions Sep 16, 2026
1 check 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.

1 participant