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

Resolve Unauthorized Errors and Enhance Basket Creation Flow #72

Closed cheesea3 closed 1 month ago

cheesea3 commented 1 month ago

Users are experiencing an interruption in the checkout process, particularly stuck at "loading or creating your basket..." with unauthorized errors when the system is attempting to create a basket or add packages to the basket. The system sometimes incorrectly indicates that a package has already been added, leading to a failure in advancing the checkout process.

Symptoms:

Suspected Issues:

Relevant Code Insights:

Steps to Reproduce:

  1. Log in to the platform.
  2. Run through username and steam account onboarding if necessary.
  3. Observe the system attempt to automatically add a package to the basket or initiate the checkout process.
  4. Observe that the process does not advance past the basket creation stage, with unauthorized errors logged.

Proposed Actions:

  1. Review and Test Session and Cookie Management: Ensure that sessions and cookies are correctly established, transmitted, and validated throughout the checkout process.
  2. Audit Basket and Package Management Logic: Verify the logic that checks for existing baskets and packages to ensure it accurately reflects the user's current state and interactions.
  3. Enhanced Error Handling and Messaging: Implement clearer error handling and user feedback for issues encountered during the checkout process to aid in troubleshooting and user guidance.
  4. Security and Authorization Review: Conduct a thorough review of security practices related to user authorization and resource access within the checkout flow.

Expected Outcome:

Implementing these changes should result in a smooth, uninterrupted checkout process where users can reliably add packages to their baskets and proceed to checkout without erroneous unauthorized errors or incorrect basket contents messages.

Additional Notes:

This issue is critical as it directly impacts the revenue stream and user experience, making it a high priority for immediate investigation and resolution. Especially since the community is highly anticipating the advent of the store so they can leverage our premium offerings.