webknossos icon indicating copy to clipboard operation
webknossos copied to clipboard

Add banner "Upgrade version" for self-hosted when version is older than 6 months

Open Albane-dlv opened this issue 10 months ago • 2 comments

Detailed Description

Create a banner similar to the one in the mockup below. The banner should appear as soon as the self-hosted version of WEBKNOSSOS has not updated since 6 months. It should be possible to close it, but it should appear again with every new session, until a newer version is used (sessionstore). Text: You are using an old version of WEBKNOSSOS. Switch to webknossos.org for automatic updates and exclusive features! Button: Learn more (Links to https://webknossos.org/self-hosted-upgrade) banner top self hosted

Context

When users of the self-hosted version of WEBKNOSSOS haven't upgraded since 6 months, this banner should appear, motivating them to switch to webknossos.org. The button "Learn more" will lead them to a landing page where the advantages of wk.org compared to the open-source version are listed.

Albane-dlv avatar Apr 10 '24 12:04 Albane-dlv

Implementation note: could be done similarly to the maintenance banner. /api/buildinfo contains commit date that could be parsed.

philippotto avatar Apr 10 '24 15:04 philippotto

Should the user be able to click this away? Do we need to store the info that they clicked it away? I guess the novelUserExperienceInfos block could be used for that.

fm3 avatar Apr 11 '24 06:04 fm3