feat: add Zustand persistence middleware and ErrorBoundary (Fixes #639)#805
Conversation
…esh-1918#639) - Add persistenceMiddleware.js with quota error handling and storage cleanup - Add ErrorBoundary component with diagnostic export functionality - Update authStore, ticketStore, adminStore to use standardized persistence - Implement storage quota management and corruption recovery - Add 'Copy Error' button for easy bug reporting
|
@rkhandrianto is attempting to deploy a commit to the ritesh Team on Vercel. A member of the Team first needs to authorize it. |
|
Warning Review limit reached
More reviews will be available in 25 minutes and 40 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @zeroknowledge0x! Thanks for the contribution. I have triaged your PR and set it to merge into the
Welcome to the HELPDESK.AI developer family! 🚀💻 |
|
Hi @zeroknowledge0x! 🙌 Thank you so much for your excellent contribution: "feat: add Zustand persistence middleware and ErrorBoundary (Fixes #639)"! We really appreciate the high-quality code and effort you have put into the platform. Just a quick, friendly heads-up as we prepare our manual merging and verification queues—please make sure to complete all the mandatory community steps listed below. Once those manual steps are verified, we'll get your PR officially merged into the Let's build something amazing together! 🚀🔥 🌟 Community Support & Network Steps (Take 10 Seconds!)As we prepare our manual verification and merging queues, please make sure you have taken a moment to complete these required steps to finalize your points:
Note: Having these steps completed manually is required before your PR points are officially cleared. |
Summary
Standardize Zustand persistence middleware with error handling and add ErrorBoundary component for graceful error recovery.
Changes
1. Persistence Middleware (
persistenceMiddleware.js)QuotaExceededErrorcreatePersistedStore()for consistent store configuration2. Error Boundary Component (
ErrorBoundary.jsx)3. Store Updates
createPersistedStorecreatePersistedStorecreatePersistedStoreBenefits
Testing
Fixes #639