Open helloanil opened 1 week ago
The changes introduce a session-purging mechanism when a user's profile is rejected or deactivated, redirecting them to a new login error page. This is implemented in both apps/redi-connect
and apps/redi-talent-pool
. Additionally, a new LoginError
component and corresponding route have been added to handle these scenarios and inform the user about changes to their platform access.
File Path | Change Summary |
---|---|
.../src/pages/app/me/Me.tsx |
Added imports for purgeAllSessionData and history object. Updated useLoadMyProfileQuery for session purge and redirect on profile rejection/deactivation. |
.../src/pages/front/login/LoginError.tsx |
Introduced new LoginError component rendering a message with a navigation button to the home page. |
.../src/routes/routes__logged-out.tsx |
Added LoginError component as a lazy-loaded route for /front/login-result . |
.../redi-talent-pool/src/pages/app/me/Me.tsx |
Updated to call purgeAllSessionData on profile rejection or deactivation. |
In the land of code where changes bloom,
A session purge to clear the gloom.
With profiles checked and users rerouted,
To home they go, never doubted. 🌟
Oh,LoginError
, here to say,
"Access changed, but it's okay!" 🐇
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are always opted into early access features.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
What Github issue does this PR relate to? Insert link.
889
What should the reviewer know?
This PR is doing the same as #918 but in a different way, so we don't have the issue with Connect sign-ups.
Summary by CodeRabbit
New Features
LoginError
component to inform users about changes to platform access and provide navigation back to the home page.Bug Fixes
Navigation
/front/login-result
for theLoginError
component.