Skip to content

fix: resolve issues #66 #80 #86 #92 assigned to solomon35-stack - #166

Merged
dzekojohn4 merged 2 commits into
UnityChainxx:mainfrom
solomon35-stack:fix/solomon35-stack-issues-66-80-86-92
Jul 27, 2026
Merged

fix: resolve issues #66 #80 #86 #92 assigned to solomon35-stack#166
dzekojohn4 merged 2 commits into
UnityChainxx:mainfrom
solomon35-stack:fix/solomon35-stack-issues-66-80-86-92

Conversation

@solomon35-stack

Copy link
Copy Markdown
Contributor

fix(#92): guard mock data in puzzleReviewService behind USE_MOCKS flag

  • Removed sensitive fields (ipAddress, deviceInfo) from mock data
  • Mocks only load when NEXT_PUBLIC_USE_MOCKS=true
  • Production bundle ships with empty defaults

fix(#86): wrap createMatch writes in TypeORM transaction

  • Inject DataSource and use manager.transaction() for atomicity
  • Prevents partial state when the process crashes between saving the match and updating queue entries

fix(#80): ShareButton shares canonical URL instead of current page

  • Replaced window.location.href with configurable NEXT_PUBLIC_SHARE_URL
  • Falls back to NEXT_PUBLIC_APP_URL or https://stellarhunts.com
  • Prevents leaking puzzle/game IDs via shared URLs

feat(#66): add Vitest + Testing Library test suite to frontend

  • Added test and test:watch scripts to frontend/package.json
  • Created vitest.config.mjs with jsdom environment
  • Added 17 unit tests for useReferral hook
  • Updated CONTRIBUTING.md with frontend test instructions

Summary

Changes

Testing

Related Issues

closes #66
closes #80
closes #86
closes #92

…nityChainxx#92 assigned to solomon35-stack

fix(UnityChainxx#92): guard mock data in puzzleReviewService behind USE_MOCKS flag
  - Removed sensitive fields (ipAddress, deviceInfo) from mock data
  - Mocks only load when NEXT_PUBLIC_USE_MOCKS=true
  - Production bundle ships with empty defaults

fix(UnityChainxx#86): wrap createMatch writes in TypeORM transaction
  - Inject DataSource and use manager.transaction() for atomicity
  - Prevents partial state when the process crashes between
    saving the match and updating queue entries

fix(UnityChainxx#80): ShareButton shares canonical URL instead of current page
  - Replaced window.location.href with configurable NEXT_PUBLIC_SHARE_URL
  - Falls back to NEXT_PUBLIC_APP_URL or https://stellarhunts.com
  - Prevents leaking puzzle/game IDs via shared URLs

feat(UnityChainxx#66): add Vitest + Testing Library test suite to frontend
  - Added test and test:watch scripts to frontend/package.json
  - Created vitest.config.mjs with jsdom environment
  - Added 17 unit tests for useReferral hook
  - Updated CONTRIBUTING.md with frontend test instructions
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@solomon35-stack 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

@dzekojohn4
dzekojohn4 merged commit dc017ae into UnityChainxx:main Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment