imperfectandcompany / Imperfect-Gamers-Site-Store

Our robust community site integrating Steam for enhanced user interactions and data management, powered by Remix with Tailwind CSS for optimistic, responsive UI. Features CI/CD with GitHub Actions and Docker for seamless deployment and maintenance.
https://store.imperfectgamers.org/
Other
0 stars 0 forks source link

Tebex Checkout Flow and Basket Management Integration #1

Closed cheesea3 closed 4 months ago

cheesea3 commented 4 months ago

This pull request integrates the Tebex checkout process and basket management.

Changes Include: Session and Cookie Management:

Overhauled session handling for security and consistency. Optimized cookie management for basket ID storage and size limitations. Basket and Checkout Process:

Created routes for basket creation and item addition, preventing duplicates. Automated the Tebex checkout modal initiation with dynamic basket IDs.

UI and Modal Improvements:

Improved modal components for authentication and store interactions. Conditioned modal-triggered store requests on user authentication and basket presence.

Error Handling:

Resolved basket addition errors related to data size constraints. Enhanced logout procedure error handling.

Tebex Script Hosting:

Hosted the Tebex checkout script locally to address CORS issues. Used Remix's ExternalScriptsHandle for script preloading on the store route.

Code Refactoring and Quality:

Clarified basket creation logic. Applied ESLint and Prettier for code quality assurance.

Documentation:

Documented implementation details and logic. Added explanatory comments to components.

Testing:

Tested the Tebex checkout process and basket functions. Confirmed cookie operations and basket handling.

Commit Summary: