Skip to content

feat: adopt Enbox record materialization - #186

Merged
LiranCohen merged 2 commits into
mainfrom
feat/adopt-enbox-materialization
Jul 24, 2026
Merged

feat: adopt Enbox record materialization#186
LiranCohen merged 2 commits into
mainfrom
feat/adopt-enbox-materialization

Conversation

@LiranCohen

Copy link
Copy Markdown
Contributor

Summary

  • update the exact @enbox/* release set and use the published typed protocol constants
  • replace manual profile/avatar/hero upserts with typed singleton records.set() while retaining explicit image deletion and wallet query-if-empty behavior
  • fetch profiles and singleton images in one materialized query, and let the wallet observed view publish decoded values directly
  • remove the compatibility-shaped wallet rendering and pin direct Record return/materialization behavior in tests

Test plan

  • bun install --frozen-lockfile
  • bun run lint (passes with pre-existing warnings only)
  • bun run build
  • bun run test (763 passed, 10 skipped)

@github-actions

github-actions Bot commented Jul 24, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 71.83% (🎯 25%) 3380 / 4705
🟢 Statements 69.84% (🎯 25%) 3577 / 5121
🟢 Functions 69.48% (🎯 30%) 1027 / 1478
🟢 Branches 64.51% (🎯 29%) 2238 / 3469
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/enbox/protocols.ts 100% 77.77% 100% 100%
src/enbox/effect/profile-image-cache.ts 62.71% 50% 72.72% 68.62% 80-97, 102-106, 137, 160
src/enbox/hooks/use-wallets.ts 93.33% 77.77% 100% 92.3% 38
src/enbox/mutations/identity-mutations.ts 76.56% 63.49% 73.25% 76.43% 59, 66, 88, 93, 98, 120, 145-146, 163-173, 334, 382-387, 429-438, 459-505, 579-584, 607-612, 622
src/enbox/queries/identity-queries.ts 39.28% 58.33% 21.87% 40.74% 38-62, 109, 138-251
src/features/identities/tabs/WalletsTab.tsx 0% 0% 0% 0% 12-61
Generated in workflow #437 for commit 1087ce0 by the Vitest Coverage Report Action

@LiranCohen
LiranCohen merged commit 1441947 into main Jul 24, 2026
4 checks passed
@LiranCohen
LiranCohen deleted the feat/adopt-enbox-materialization branch July 24, 2026 17:01
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