Skip to content

Frontend v2 cleanup - lint rules, provider extraction, and auth fixes#62

Open
heyradcode wants to merge 12 commits into
mainfrom
refactor/cleanup-frontend-v2
Open

Frontend v2 cleanup - lint rules, provider extraction, and auth fixes#62
heyradcode wants to merge 12 commits into
mainfrom
refactor/cleanup-frontend-v2

Conversation

@heyradcode

@heyradcode heyradcode commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Extract AppProviders from App.tsx into its own component, flattening the provider pyramid and making the app entry point easier to read
  • Drop sign-in gate from train, level-up, and rename interactions — these no longer require authentication up front
  • Enable jsx-a11y ESLint rules across frontend and fix all violations; also enforce semicolons and arrow spacing via shared ESLint config
  • Dedupe auth token storage in config.ts and fix await on async getToken in AuthContext restore (was silently dropping the resolved value)
  • Unify Solana adapter VRF lifecycle handling and use null for randomness provider when wallet is disconnected
  • Batch token balance reads with useReadContracts instead of individual calls
  • Drop dead dna/rarity params from createPet and dedupe reset bookkeeping in useCreatePet

Test plan

  • Train, level-up, and rename panels work without requiring sign-in first
  • Wallet connect/disconnect cycle doesn't leave stale VRF state on Solana
  • Token balances load correctly on EVM (Sepolia)
  • No new a11y violations (pnpm lint passes)
  • Existing unit tests pass (pnpm test)

@vercel

vercel Bot commented Jun 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
do-not-stop-frontend Ready Ready Preview, Comment Jun 28, 2026 2:21am
do-not-stop-website Ready Ready Preview, Comment Jun 28, 2026 2:21am

@heyradcode heyradcode marked this pull request as draft June 28, 2026 02:21
@github-actions

Copy link
Copy Markdown

🧪 Coverage

Package Statements Branches Functions Lines Overall
backend 78.92% (573/726) 73.84% (288/390) 82.27% (130/158) 79.84% (531/665) 78.49% (1522/1939)
frontend 65.37% (1065/1629) 60.98% (858/1407) 64.79% (265/409) 65.69% (971/1478) 64.17% (3159/4923)
shared 54.42% (1137/2089) 55.48% (718/1294) 57.50% (230/400) 56.94% (1053/1849) 55.72% (3138/5632)

@heyradcode heyradcode changed the title Refactor/Cleanup frontend v2 Frontend v2 cleanup - lint rules, provider extraction, and auth fixes Jun 28, 2026
@heyradcode heyradcode marked this pull request as ready for review June 28, 2026 17:45
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