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

Checkout Refactoring and Comprehensive Testing Setup #8

Closed cheesea3 closed 3 months ago

cheesea3 commented 3 months ago

:warning: Project Update :warning:

This pull request updates the project to use Remix version 2.9.1. If you're using an older version of Remix and are investigating, you may encounter compatibility issues. Please update your Remix version to ensure the smooth functioning of the project. If you encounter any issues after updating, please report them in the issue tracker.


Summary

This pull request introduces multiple key enhancements aimed at improving our codebase's readability, robustness, and testability. Detailed changes include refinements in event handling, introduction of utility functions for better state management, and a comprehensive overhaul of our testing environment.


Detailed Changes

1. Refactor TebexCheckout Usage and Event Handling

Commit: 132c4d992128ae557253115aecc8f84e0f2ef243

2. Introduced new utility function to handle chain operations sequentially, centralized store interaction, and added more optimistic UI

Commit: 7c3d24b89455103c0f83a63f9f8af665de3887be

3. Refactoring for Readability

Commit: c37b186d2a4dd18026dfc1196f387301545b3304

4. Implemented comprehensive testing setup and added unit tests for Login Form

Commit: 3c56ef211f423d77f1f572a802d29791a6ad500e

New Files

The following new files have been added in this pull request:

  1. ~/app/tests/units/component/molecules/LoginForm.test.tsx
  2. ~/app/tests/units/component/organisms/AuthForms.test.tsx
  3. ~/mocks/browser.ts
  4. ~/mocks/node.ts
  5. ~/mocks/handlers.js
  6. ~/test/setup-test-env.ts
  7. ~/env.d.ts
  8. ~/public/mockServiceWorker.js

Please review these new files in matrix with the updated ones to understand the changes and enhancements they bring to the project.

Closing Comments

These updates significantly boost the functionality and maintainability of our codebase. They not only refine the checkout process but also ensure thorough testing of components, thereby enhancing overall system reliability.