Skip to content

Refactor Help state and improve map/server performance - #403

Merged
Mikey-222 merged 1 commit into
Hel-Phone:mainfrom
0xsamuel1:perf-hooks-map-cluster-65-68
Aug 27, 2026
Merged

Refactor Help state and improve map/server performance#403
Mikey-222 merged 1 commit into
Hel-Phone:mainfrom
0xsamuel1:perf-hooks-map-cluster-65-68

Conversation

@0xsamuel1

Copy link
Copy Markdown
Contributor

Summary

  • Extract Help page state into reusable hooks for UI/profile state, location search, request/map state, and wallet state.
  • Sync Mapbox viewport state only on camera rest while keeping navigation on imperative Mapbox camera APIs.
  • Move shimmer/drift animations to compositor-friendly transform/opacity keyframes with will-change hints.
  • Start the prover server with Node cluster workers sized from available CPU cores, while keeping test imports single-process.

Testing

  • node --check src/hooks/useHelpUiState.js src/hooks/useLocationSearch.js src/hooks/useRequestMapState.js src/hooks/useWalletState.js server/index.js
  • git diff --check

Not run: npm run build / npm test because npm install failed in this environment with npm registry ETIMEDOUT while fetching transitive wallet/proof packages.

Closes #68
Closes #67
Closes #66
Closes #65

@drips-wave

drips-wave Bot commented Aug 27, 2026

Copy link
Copy Markdown

@0xsamuel1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mikey-222
Mikey-222 merged commit ce5ef97 into Hel-Phone:main Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants