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

Feature/responsive single card chart component #27

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

reedoooo
Copy link
Owner

No description provided.

- Introduced `CardLinearChart` component using the `nivo` library to render card data as a linear chart.
- Added `ResponsiveSquare` component to maintain aspect ratio and responsiveness of the chart across various device sizes.
- Integrated `usePageContext` for managing loading states during data fetch and rendering.
- Enhanced `CardChart` container to dynamically calculate and update chart dimensions on window resize for improved UX.
- Applied aspect ratio control in `CardChart` to ensure the chart stays within container boundaries without distortion.
- Styled the components using MUI `styled` API with theme considerations for consistent UX.
- Ensured error handling with `ErrorBoundary` for a safer, more reliable application experience.

The above enhancements aim to provide a seamless and visually consistent charting experience across the app while ensuring data is represented accurately and responsively.
- Streamlined state management in AuthProvider by consolidating the use of `useState` and `useCookies` for a single source of truth.
- Simplified state updates in `executeAuthAction` to reduce unnecessary re-renders. Considered the use of a reducer for grouped state management.
- Enhanced Axios interceptor setup in `useEffect` for better handling of authorization headers, including cleanup logic to prevent memory leaks.
- Optimized `resetLogoutTimer` and `logout` functions to reduce complexity and dependency recalculations.
- Eliminated redundant `loginStatus` state, relying on individual states like `isLoggedIn`, `authUser`, etc.
- Adjusted `useEffect` hooks to respond only to relevant changes in cookies, preventing unnecessary updates.
- Updated `useEffect` dependency arrays to include only necessary dependencies and improve performance.
- Removed the debugging `useEffect` in preparation for production deployment.

These changes aim to enhance the performance, readability, and maintainability of the frontend authentication logic, ensuring a more efficient and reliable user authentication experience.
Copy link

netlify bot commented Jan 13, 2024

Deploy Preview for tcg-store ready!

Name Link
🔨 Latest commit 877660a
🔍 Latest deploy log https://app.netlify.com/sites/tcg-store/deploys/65a1d693d3b3d9000836f4d3
😎 Deploy Preview https://deploy-preview-27--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.

@reedoooo reedoooo merged commit a03c4ed into main Jan 13, 2024
2 of 4 checks passed
Copy link

netlify bot commented Jan 13, 2024

Deploy Preview for enhanced-cardstore ready!

Name Link
🔨 Latest commit 877660a
🔍 Latest deploy log https://app.netlify.com/sites/enhanced-cardstore/deploys/65a1d69329b899000898d44b
😎 Deploy Preview https://deploy-preview-27--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.

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