Skip to content

feat(web): polish relay-run graphics, high-dpi scaling, and monorepo fixes - #6

Open
KitsuneKode wants to merge 2 commits into
mainfrom
feat/relay-run-polish-and-monorepo-fixes
Open

KitsuneKode wants to merge 2 commits into
mainfrom
feat/relay-run-polish-and-monorepo-fixes

Conversation

@KitsuneKode

Copy link
Copy Markdown
Owner

Summary

This PR addresses rendering quality, scaling, and module resolution issues in the Relay Run mini-game and monorepo packages.

Key Changes

  1. High-DPI & Fullscreen Crispness:

    • 4x Vector Sprite Baking: Updated apps/web/lib/relay-run/sprites.ts to bake offscreen canvas vector sprites at 4x native resolution with SSR safety.
    • Destination Dimensions in Renderer: Passed explicit logical dimensions in apps/web/lib/relay-run/renderer.ts for clean downscaling without blurring or pixelation.
    • Native Device Pixel Buffer Synchronization: In apps/web/components/live/relay-run-game.tsx, sized the physical canvas buffer to the container's exact inner pixel bounds multiplied by the device DPR, scaling 2D context transforms with high-quality anti-aliasing.
  2. Monorepo & Turbopack Import Normalization:

    • Cleaned up relative import extensions across packages/auth and apps/server so Next.js Turbopack resolves TypeScript sources cleanly during build and static page generation.
    • Added build-time fallback guards in packages/auth and packages/backend-common for static evaluation.
  3. Testing & Invariants:

    • Added unit tests in apps/web/lib/relay-run/local-best.test.ts and apps/web/lib/relay-run/sprites.test.ts.
    • Expanded difficulty scaling, particle bounce, and screen shake tests in apps/web/lib/relay-run/engine.test.ts.
    • Extracted and synchronized CLI templates via template:extract.
    • Verified that all 543 unit tests pass, Turbopack builds 115/115 routes with 0 errors, and bun run repo:doctor reports 0 errors and 0 warnings.

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arche-landing Ready Ready Preview Aug 23, 2026 6:40pm
arche-template-server Ready Ready Preview Aug 23, 2026 6:40pm

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 879ffa5e-3786-434c-bb76-1ca5343efdd3


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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