Closed okhaimie-dev closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
mancala | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 21, 2024 9:06pm |
mancala-pkco | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 21, 2024 9:06pm |
The recent updates involve a transition to version 3 of the API across various components, enhancing the overall functionality and user experience. Key changes include updated URLs in configuration files, improved component structures for better modularity, and the introduction of new components for player interaction and game management. Additionally, audio controls and wallet connectivity have been integrated, reflecting a focus on improving usability and maintainability within the application.
Files | Change Summary |
---|---|
client/dojoConfig.ts , client/graphql.config.yml , client/constants/config.ts |
Updated API endpoint URLs from version 2 to version 3, indicating a transition to a newer API version across configurations. |
client/package.json |
Modified the create-components script to reference the new API version and updated several dependencies to their latest versions, enhancing library functionality. |
client/src/App.tsx |
Integrated CartridgeConnector with a new policies array, updated the RPC URL, and added a SmallScreenWarning component for improved user experience. |
client/src/components/gameplay/game-board.tsx , client/src/components/gameplay/player-profile.tsx |
Introduced new components GameBoard and PlayerProfile to encapsulate game and player data, enhancing UI and functionality with TypeScript support for props. |
client/src/components/header.tsx |
Reformatted import statements, added a "Connect Wallet" link in the dropdown menu, and improved code readability with consistent semicolon usage. |
client/src/hooks/useAudioControl.ts |
Created a custom hook for managing audio playback and volume control, enhancing audio functionality across the application. |
client/src/pages/Home.tsx , client/src/pages/Leaderboard.tsx , client/src/pages/Lobby.tsx , client/src/pages/games/Gameplay.tsx |
Enhanced UI structure and functionality, including improved player profile displays, wallet connection functionality, and refined data fetching within components for better maintainability. |
sequenceDiagram
participant User
participant Lobby
participant Wallet
participant GameBoard
participant AudioControl
User->>Lobby: Connect Wallet
Lobby->>Wallet: Initiate connection
Wallet->>Lobby: Connection established
Lobby->>User: Wallet connected
User->>GameBoard: Start Game
GameBoard->>AudioControl: Initialize audio
AudioControl->>GameBoard: Audio ready
GameBoard->>User: Game is now active
sequenceDiagram
participant User
participant Gameplay
participant PlayerProfile
participant GameBoard
User->>Gameplay: Join Game
Gameplay->>PlayerProfile: Load player data
PlayerProfile->>Gameplay: Display player profile
Gameplay->>GameBoard: Initialize game state
GameBoard->>Gameplay: Game board ready
Gameplay->>User: Game setup complete
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
GameBoard
andPlayerProfile
components for enhanced gameplay experience.useAudioControl
hook for audio management within the application.Lobby
component.Bug Fixes
Leaderboard
component.Documentation