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

This commit encompasses a series of significant updates and optimizat… #28

Merged
merged 10 commits into from
Mar 11, 2024

Conversation

reedoooo
Copy link
Owner

…ions across the application. Key changes include:

  1. React Component Refactoring:

    • Updated the Main component for improved rendering efficiency.
    • Enhanced error handling and state management in various components, including SelectCollectionList and CollectionPage.
    • Implemented custom hooks like useVisible and useList for better state management.
  2. Authentication Workflow Improvements:

    • Integrated a custom hook useInterval for managing token validity checks.
    • Optimized the AuthProvider component to periodically verify token authenticity every 2 minutes, enhancing security.
  3. Code Optimization and Cleanup:

    • Eliminated redundancy in calculateCollectionValue function using DRY principles.
    • Refined SelectCollectionList by integrating useList and useMap hooks for efficient list and map operations.
    • Fixed issues related to token saving and returning in the signup process.
    • Addressed various bugs and potential inefficiencies throughout the application.
  4. UI and UX Enhancements:

    • Revised several components for better responsiveness and user interaction.
    • Improved skeleton loaders and visual feedback for asynchronous operations.
  5. General Maintenance:

    • Corrected console errors and warnings.
    • Updated documentation and comments for better clarity and maintainability.

Each modification aims to enhance the applications performance, security, and user experience.

…ions across the application. Key changes include:

1. React Component Refactoring:
   - Updated the `Main` component for improved rendering efficiency.
   - Enhanced error handling and state management in various components, including `SelectCollectionList` and `CollectionPage`.
   - Implemented custom hooks like `useVisible` and `useList` for better state management.

2. Authentication Workflow Improvements:
   - Integrated a custom hook `useInterval` for managing token validity checks.
   - Optimized the `AuthProvider` component to periodically verify token authenticity every 2 minutes, enhancing security.

3. Code Optimization and Cleanup:
   - Eliminated redundancy in `calculateCollectionValue` function using DRY principles.
   - Refined `SelectCollectionList` by integrating `useList` and `useMap` hooks for efficient list and map operations.
   - Fixed issues related to token saving and returning in the signup process.
   - Addressed various bugs and potential inefficiencies throughout the application.

4. UI and UX Enhancements:
   - Revised several components for better responsiveness and user interaction.
   - Improved skeleton loaders and visual feedback for asynchronous operations.

5. General Maintenance:
   - Corrected console errors and warnings.
   - Updated documentation and comments for better clarity and maintainability.

Each modification aims to enhance the applications performance, security, and user experience.
- Removed unnecessary default values from createContext
- Eliminated redundant state variables totalPrice and totalQuantity
- Created a reusable updateCartData function
- Simplified the fetchUserCart function
- Improved code readability by removing commented-out code
…e --> cleaned up a lot of commented code --> working on trimming rest of context
- Implement NaN/undefined handling in chart data to ensure robustness.
- Refactor date parsing in line charts for consistent x-axis formatting.
- Update tooltip logic for improved user interaction and data display.
- Adjust axis formatting and parsing to align with updated data structures.
…nd transitions, extensive additions to themeSettings for consistency
Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for enhanced-cardstore ready!

Name Link
🔨 Latest commit daf92b3
🔍 Latest deploy log https://app.netlify.com/sites/enhanced-cardstore/deploys/65ef69d8cc4ef70008e7fe0c
😎 Deploy Preview https://deploy-preview-28--enhanced-cardstore.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@reedoooo reedoooo merged commit 42d82a1 into main Mar 11, 2024
3 of 5 checks passed
Copy link

netlify bot commented Mar 11, 2024

Deploy Preview for tcg-store ready!

Name Link
🔨 Latest commit daf92b3
🔍 Latest deploy log https://app.netlify.com/sites/tcg-store/deploys/65ef69d8bab6c70008d31f26
😎 Deploy Preview https://deploy-preview-28--tcg-store.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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.

1 participant