Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jul 9, 2025

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:

  • Show Maintenance Ribbon Message 4 days in advance

NewVersion

Related issue/s

How to test

Dev-ops

@odeimaiz odeimaiz self-assigned this Jul 9, 2025
@odeimaiz odeimaiz added this to the Engage milestone Jul 9, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jul 9, 2025
@odeimaiz odeimaiz requested a review from Copilot July 9, 2025 12:46
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Detect new version after maintenance 🎨 [Frontend] Detect new version after logging in Jul 9, 2025
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Detect new version after logging in 🎨 [Frontend] Check new UI version after logging in Jul 9, 2025
Copy link
Contributor

Copilot AI left a 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 NewUITracker in MainPage.js
  • Adjusts NewUITracker to use a simpler flash message (removing the explicit reload button)
  • Updates MaintenanceTracker to 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 NewUITracker behaviour when a new release is available and when the check fails.
    startTracker: function() {

@odeimaiz odeimaiz marked this pull request as ready for review July 9, 2025 12:50
@odeimaiz odeimaiz added the 🤖-automerge marks PR as ready to be merged for Mergify label Jul 9, 2025
@odeimaiz
Copy link
Member Author

odeimaiz commented Jul 9, 2025

@mergify queue

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 9, 2025

@mergify
Copy link
Contributor

mergify bot commented Jul 9, 2025

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 1f2125c

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx

@mergify mergify bot merged commit 1f2125c into ITISFoundation:master Jul 9, 2025
60 checks passed
@odeimaiz odeimaiz deleted the enh/detect-new-version branch July 9, 2025 13:38
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Aug 5, 2025
88 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖-automerge marks PR as ready to be merged for Mergify a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants