Closed supreme2580 closed 1 month 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 | Oct 2, 2024 10:12pm |
mancala-pkco | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 2, 2024 10:12pm |
This pull request includes modifications to several files in the client application. Key changes involve updating the rpcUrl
and toriiUrl
in dojoConfig.ts
to point to a new environment, mancala-alpha-v13
. Additionally, new dependencies axios
and moment
are added to package.json
. Various components have undergone formatting improvements for better readability, while some components introduced new functionalities, such as the TimeoutButton
for managing game timeouts.
File Path | Change Summary |
---|---|
client/dojoConfig.ts | Updated rpcUrl and toriiUrl to point to "mancala-alpha-v13" environment. |
client/package.json | Added dependencies: axios (^1.7.7 ) and moment (^2.30.1 ). |
client/src/App.tsx | Replaced hardcoded RPC URL with SLOT_RPC_URL from ./lib/constants . Added POLICIES to connectorOptions . |
client/src/AppWrapper.tsx | Formatting adjustments, including consistent use of double quotes and improved promise handling in useEffect . |
client/src/components/boundaries/error-boundary.tsx | Reformatted import statements and function parameter destructuring in ErrorFallback . |
client/src/components/gameplay/Icon.tsx | Reformatted indentation from four spaces to two. |
client/src/components/gameplay/audio-section.tsx | Added a dropdown menu for audio controls, including volume control and track navigation. |
client/src/components/gameplay/end-game-button.tsx | Added closing brace at the end of the component's return statement. |
client/src/components/gameplay/game-board.tsx | Restructured queries and calculations for improved readability; renamed time_between_move to max_block_between_move . |
client/src/components/gameplay/game-message.tsx | Updated initial timer source to game_node?.max_block_between_move and restructured rendering logic for clarity. |
client/src/components/gameplay/game-navigation.tsx | Added setProfiles prop to GameMessage component. |
client/src/components/gameplay/leaderboard-button.tsx | Added a newline character at the end of the file. |
client/src/components/gameplay/restart-button.tsx | Added closing brace for the component function. |
client/src/components/gameplay/timeout-button.tsx | Introduced new TimeoutButton component for managing game timeouts with props gameId and opposition_address . |
client/src/components/lobby/duels-skeleton.tsx | Reformatted JSX for improved readability without changing logic. |
client/src/components/lobby/duels.tsx | Reformatted function parameters for readability; retained existing commented-out sections. |
client/dojoConfig.ts
directly relate to the main PR's updates to the rpcUrl
and toriiUrl
properties, as both PRs modify these URLs to point to the "mancala-alpha-v13" environment.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
TimeoutButton
component for initiating game timeouts.AudioSection
component.GameBoard
,GameMessage
, andDuels
.