Add version checking helper and notices
What does this MR do and why?
This introduces a helper that will compare the latest pushed tag to the local version file.
If the version on the remote is greater than local it will return the remote version number, otherwise it will return false.
This allows us to accurately determine whether there is a new version available and display a notification to the user accordingly.
-
Create Helper -
Add Console
notification on startup -
Add notification on Frontend (I'll be copying how pihole do this but with our footer version (Blinking 'Update available!')
Screenshots or screen recordings
How to set up and validate locally
- Checkout branch
- Manually edit
version.json
to be lower than the latest tagged release - Spin up an instance of crafty,
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
Have you checked this doesn't interfere/conflict/duplicate someone else's work? -
Have you fully tested your changes? -
Have you resolved any lint issues? -
Have you assigned a reviewer? -
Have you applied correct labels?
Edited by Iain Powrie