musiqpad/mqp-server

[Suggestion] Show pad social media/website links + error message if pad doesn't load.

Uricorn opened this issue · 5 comments

If you misconfigured your pad or are having server issues, visitors to your pad are currently met with an infinite loading screen.

I suggest that you ask pads what their social media accounts and website are, and then if the pad takes too long to load, you display an error message and state that you can contact the owners via the links.

Great idea. Instead of asking owners for this info though, it should be stored in the config file (or the Admin Panel #39 once it exists).

Wouldn't the frontend have to access the config file though to pull the links?

The main point of this would be to help users know what to do in the event that it cannot reach the server.

Sort of? If it were in a config file, the pad could report it to the lobby for use when loading. Then when the pad is not available, the last reported info could be shown. Like an extension of the data that's transmitted currently during lobby updates.

We could just add it to the config that only contains the socket host + port atm, that gets loaded even if the websocket connection fails.

@HENR-Y We would have to add it to the database in order to show it even when pad is offline. That could be changed using the Management Console