-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Check new UI version after logging in #8084
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
🎨 [Frontend] Check new UI version after logging in #8084
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR re-enables the new-version tracker after login and refines the frontend notification logic, while also extending the maintenance warning lead time.
- Uncomments and activates
NewUITrackerinMainPage.js - Adjusts
NewUITrackerto use a simpler flash message (removing the explicit reload button) - Updates
MaintenanceTrackerto warn users 4 days before maintenance instead of 48 hours
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/desktop/MainPage.js | Restores startup of the new-version UI tracker |
| services/static-webserver/client/source/class/osparc/NewUITracker.js | Simplifies flash message, removes widget-based button, and refactors interval callback |
| services/static-webserver/client/source/class/osparc/MaintenanceTracker.js | Changes advance warning interval from 48h to 4 days |
Comments suppressed due to low confidence (1)
services/static-webserver/client/source/class/osparc/NewUITracker.js:29
- New version detection logic has been updated but there are no tests covering the success or failure paths. Consider adding unit or integration tests for
NewUITrackerbehaviour when a new release is available and when the check fails.
startTracker: function() {
services/static-webserver/client/source/class/osparc/NewUITracker.js
Outdated
Show resolved
Hide resolved
…ker.js Co-authored-by: Copilot <[email protected]>
|
@mergify queue |
|
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 1f2125c |
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx



What do these changes do?
Now that we are confident that the hard reload is not needed - the frontend makes sure to fetch the new version available, if any - there was another corner case: users get automictically logged out because of maintenance, but if they wouldn't reload the page after maintenance, they would stay with the old frontend.
This PR checks if a new frontend is available after logging in and if it's the case, it shows a Flash Message suggesting the user to reload the page.
Bonus:
Related issue/s
How to test
Dev-ops