GEWIS / sudosos-frontend

This monorepo contains all frontend projects and shared code for the SudoSOS platform, built with Vue 3 and TypeScript. Contributions are welcome!
https://sudosos.gewis.nl
5 stars 4 forks source link

feat(dashboard): Add maintenance screen #422

Closed RubenLWF closed 1 month ago

RubenLWF commented 1 month ago

Description

This PR adds a maintenance screen that will be displayed when SudoSOS is under maintenance. This information is fetched from the rootApi.ping() endpoint.

The maintenance screen will look like this: image

Related issues/external references

Types of changes

JustSamuel commented 1 month ago

Do we also want to include the logic for admin bypass here? Or just keep that at the API for now

RubenLWF commented 1 month ago

Does something similar also need to be made for the POS?

I heard @SuperVK mention something about that a websocket first needs to be implemented in the backend

JustSamuel commented 1 month ago

Kinda, the POS is not very often refreshed, so my idea was to have a websocket which indicates if the backend is up. If you feel like taking a deeper dive in the backend, I have a branch which has an almost working version 👀