Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Gift Card Provider API with Tremendous #127

Merged
merged 25 commits into from
Dec 12, 2024

Conversation

scottchen98
Copy link
Contributor

@scottchen98 scottchen98 commented Dec 12, 2024

This pull request includes significant changes to the rewards system, including renaming variables, adding new components, and enhancing the functionality for redeeming rewards. The most important changes are detailed below:

Rewards System Enhancements:

New Components:

  • components/ui/dialog.tsx: Added a new Dialog component along with its subcomponents to handle modal dialogs in the application.
  • lib/icons/Circle.tsx and lib/icons/CircleCheckBig.tsx: Added new icon components for use in the dialog and redemption process. [1] [2]

API and Utility Updates:

  • convex/tremendous.ts: Updated the API actions to list products and handle product redemption, added a new OrdersApi client, and implemented the redeemRewardAction function. [1] [2]
  • lib/tremendous.ts: Added utility functions to convert tokens to dollars, dollars to tokens, and to get product SKUs.
  • convex/users.ts: Added a new mutation to update user tokens after redemption.

Dependency Additions:

  • package.json: Added new dependencies for @rn-primitives/dialog and big.js to support the new dialog component and token conversion functionality. [1] [2]- Rename rewards to products for clarity and update related actions

@scottchen98 scottchen98 linked an issue Dec 12, 2024 that may be closed by this pull request
@scottchen98 scottchen98 merged commit 13b8f48 into main Dec 12, 2024
3 checks passed
@scottchen98 scottchen98 deleted the 69-integrate-with-gift-card-provider-api branch December 12, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate with Gift Card Provider API
2 participants