added specctator feature where other can. view 2 people playing#7
Open
Sandijigs wants to merge 6 commits intoLearnWeb3DAO:mainfrom
Open
added specctator feature where other can. view 2 people playing#7Sandijigs wants to merge 6 commits intoLearnWeb3DAO:mainfrom
Sandijigs wants to merge 6 commits intoLearnWeb3DAO:mainfrom
Conversation
- Add WalletConnect SDK dependencies - Implement WalletConnectProvider context - Update navbar with dual wallet connection support (Stacks Connect + WalletConnect) - Add environment configuration for WalletConnect project ID - Update README with WalletConnect setup instructions
- Use dynamic imports with ssr: false for WalletConnect - Create client-side Providers component wrapper - Fix TypeScript type issues with SignClient - Add window check in WalletConnect initialization
- Add .env.local with WalletConnect project ID - Update WalletConnectContext with final fixes - Environment configured for WalletConnect integration
…ails - Add WalletConnect SDK v2 integration section - Document mobile wallet support and connection process - Include security features and session management details - Add step-by-step connection guide - Highlight dual wallet support (Stacks Connect + WalletConnect)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Spectator Mode Feature
Summary
This PR adds a new spectator mode feature that allows users to view and watch all tic-tac-toe games on the platform without needing to connect a wallet. This improves accessibility and enables users to browse ongoing and completed games before deciding to participate.
Motivation
Currently, users need to connect their Stacks wallet to view any games on the platform. This creates a barrier for new users who want to:
Changes Made
New Features
/spectate): A dedicated page to view all games without wallet connectionFiles Added
frontend/app/spectate/page.tsx- New spectate page component with server-side renderingFiles Modified
frontend/README.md- Updated documentation with:frontend/lib/contract.ts- Updated contract address to deployed testnet addressdeployments/default.testnet-plan.yaml- Updated with actual deployment addressConfiguration
settings/Testnet.toml- Configured for testnet deployment (not committed, in.gitignore)Technical Details
Implementation Highlights
export const dynamic = "force-dynamic"for real-time game dataGameBoard,getAllGames(), and utility functionsComponent Architecture