undef-dice 2026-02-28
Core logic extracted to dice-core package with E2E test hardening, camera wiring, and messaging bridge fixes
88 files · 1,799+ · 16,286-

Package extraction

9 files changed
  • Chamber.tsx Moved to dice-core package; legacy copy reduced
  • DiceScene.tsx Moved to dice-core package
  • DiceRoller.tsx Moved to dice-core package
  • pre-simulate.ts Core simulation moved to dice-core
  • playback.ts Playback moved to dice-core
  • geometry-data.ts Geometry data moved to dice-core
  • index.ts Barrel re-exports after package split
  • main-lib.tsx Library entry point after restructure
  • package.json Updated workspace dependencies for dice-core
  • Dice physics and logic extracted into a standalone dice-core package. Legacy src/ copies reduced; packages/ monorepo structure established. Net -14K lines from removing duplicated code paths. decouple architectural
    3 files
    • pre-simulate.ts
    • index.ts
    • package.json

E2E test hardening

6 files changed
  • determinism-rapier.spec.ts waitForSettle race fixed; rapier-ready sentinel added; phase numbering corrected
  • dice-arena.spec.ts clearAndSecureThrow hardened against silent submit failures
  • full-session.spec.ts Updated grab-btn selector to getByTestId
  • face-up-proof.spec.ts New face-up proof E2E tests
  • _helpers.ts Shared E2E helper utilities
  • dice-roller.spec.ts E2E dice roller tests
  • waitForSettle race condition fixed; rapier-ready sentinel used instead of arbitrary waits; retry loop corrected with proper phase numbering. clearAndSecureThrow hardened against silent submit failures. All pre-existing E2E failures resolved. remediate internal
    2 files
    • determinism-rapier.spec.ts
    • dice-arena.spec.ts
  • Face-up proof E2E tests added to verify dice land face-up correctly after throws. qualify internal
    1 file
    • face-up-proof.spec.ts

Camera controls

1 file changed
  • UndefDiceApp.tsx Camera pan target wired to orbit controls; popup toggle fixed
  • Camera pan target wired to orbit controls. Camera buttons, popup toggle, and face-up proof test fixed. remediate behavioral
    1 file
    • UndefDiceApp.tsx

Messaging bridge

2 files changed
  • messaging.ts Origin validation extended; die type normalization improved
  • messaging.test.ts Tests for updated messaging bridge
  • Origin validation extended and die type normalization improved in the postMessage messaging bridge. remediate internal
    1 file
    • messaging.ts

Code review cleanup

1 file changed
  • face-reader.ts Removed unimplemented 'outline' from HighlightStyle type
  • Post-review issues addressed. Unimplemented ‘outline’ variant removed from HighlightStyle type. remediate internal
    1 file
    • face-reader.ts