Closed ufumerfarooq67 closed 2 months ago
Name | Link |
---|---|
Latest commit | 5487883ee57ad0cffd484fd4e2a59f858ad9a1cb |
Latest deploy log | https://app.netlify.com/sites/polite-fairy-234917/deploys/66bd8dca36767c00083ba20c |
Deploy Preview | https://deploy-preview-645--polite-fairy-234917.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Name | Link |
---|---|
Latest commit | 5487883ee57ad0cffd484fd4e2a59f858ad9a1cb |
Latest deploy log | https://app.netlify.com/sites/cheery-zabaione-34f12e/deploys/66bd8dca46d80f0008cabe6f |
Walkthrough
The changes across the project focus on enhancing the integration and configuration of Amplitude analytics within the application. Key modifications include dynamically fetching the Amplitude API key, improving the analytics initialization process, and adding specific configuration retrieval capabilities via GraphQL. Additionally, logging enhancements were made to facilitate debugging during the checkout process, and a new constant for the server URL was introduced for consistent network requests.
Changes
public/index.html
Commented out Amplitude initialization script to disable analytics setup.
src/App.js
Introduced
fetchConfiguration
to dynamically retrieve Amplitude API key and addeduseEffect
for lifecycle management.src/apollo/server.js
Added
getConfigurationSpecific
query to fetchwebAmplitudeApiKey
, ensuring backward compatibility with existinggetConfiguration
query.src/screens/Checkout/Checkout.js
Added console logging to
calculateTax
andcalculatePrice
for improved debugging during checkout.src/utils/analytics.js
Modified initialization to fetch API key dynamically from configuration instead of using hardcoded values.
src/utils/global.js
Introduced
SERVER_URL
constant for consistent server URL usage across the application.src/utils/helper.js
Created
fetchConfiguration
function to retrieve configuration data via GraphQL with error handling.Sequence Diagram(s)
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?
Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)Tips
### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit