Skip to content

fix(sync): scope wallet identity replication#112

Merged
LiranCohen merged 4 commits into
mainfrom
chore/update-enbox-sync-admission
Jun 11, 2026
Merged

fix(sync): scope wallet identity replication#112
LiranCohen merged 4 commits into
mainfrom
chore/update-enbox-sync-admission

Conversation

@LiranCohen

@LiranCohen LiranCohen commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Register wallet identities for sync with the wallet protocol set instead of protocols: all.
  • Configure AuthManager with the same wallet identity protocol set so local-session and seed-phrase recovery recover wallet identity records without broad DWN sync.
  • Update the wallet to the newly published Enbox packages: @enbox/api@0.6.37, @enbox/auth@0.6.45, @enbox/browser@0.3.23, and @enbox/protocols@0.2.64.
  • Invalidate profile queries for protocol-set sync events that report protocols: [...] instead of a single protocol.

Test plan

  • bun run lint -- --fix
  • bun run lint (passes with existing warnings)
  • bun run test -- src/enbox/tests/provider.test.tsx src/enbox/mutations/tests/identity-mutations.test.ts
  • bun run build
  • bun run test

Deployment check

  • https://enbox-dwn.fly.dev/info reports @enbox/dwn-server 0.1.9 and SDK 0.4.0.
  • https://dev.aws.dwn.enbox.id/info reports @enbox/dwn-server 0.1.9 and SDK 0.4.0.
  • No Fly/AWS redeploy was needed.

…nc-admission

# Conflicts:
#	src/enbox/hooks/__tests__/use-sync-query-invalidation.test.tsx
#	src/enbox/mutations/__tests__/identity-mutations.test.ts
#	src/enbox/protocols.ts
@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 41.88% (🎯 25%) 860 / 2053
🔵 Statements 40.38% (🎯 25%) 926 / 2293
🔵 Functions 42.49% (🎯 30%) 252 / 593
🔵 Branches 37.4% (🎯 29%) 561 / 1500
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/enbox/protocols.ts 100% 77.77% 100% 100%
src/enbox/provider.tsx 60.13% 39.21% 62.5% 63.43% 38, 65, 88, 97, 105-111, 129-131, 139-149, 156, 160, 166, 171, 181, 201-203, 212-230, 242, 258-260, 269-276, 285, 290-291
src/enbox/hooks/use-sync-query-invalidation.ts 89.18% 87.5% 100% 88.88% 48, 55, 72-73
src/enbox/mutations/identity-mutations.ts 55.43% 28.84% 55.55% 57.3% 40, 159-162, 167-170, 183, 205-275, 287, 299-300, 317, 334-337
Generated in workflow #292 for commit da10ddd by the Vitest Coverage Report Action

@LiranCohen LiranCohen merged commit 603c4b6 into main Jun 11, 2026
4 checks passed
@LiranCohen LiranCohen deleted the chore/update-enbox-sync-admission branch June 11, 2026 00:11
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