🧹 Architectural Overhaul: Refresh Tokens, NgRx, and UI Standardization#4
Conversation
- Implement backend `/auth/refresh` endpoint with logic in `AuthService`. - Implement robust frontend 401 interceptor logic to handle token refresh and retry API requests. - Add NgRx state management (reducers, actions) for User, Cart, and Catalog. - Standardize catalog components (`treatments-catalog` and `veils-catalog`) to uniformly use `EntityListComponent` and `EntityCardComponent`. - Clean up tests and ensure `test-results` are git-ignored. Co-authored-by: beginwebdev2002 <102213457+beginwebdev2002@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Changed `import * as compression from 'compression'` to `import compression from 'compression'` in `backend/src/main.ts` to fix CI build failure. Co-authored-by: beginwebdev2002 <102213457+beginwebdev2002@users.noreply.github.com>
🎯 What
/auth/refreshfunctionality in NestJS backend.error.interceptor.tsto pause, refresh, and retry API requests dynamically upon receiving401 Unauthorized.app.config.ts,shared/store) to support global state forUser,Cart, andCatalog.EntityListComponentandEntityCardComponent.💡 Why
✅ Verification
✨ Result
A more stable, testable, and standardized full-stack application following the requested architectural overhaul constraints.
PR created automatically by Jules for task 4713025220278674029 started by @beginwebdev2002