Open codinachssm opened 3 years ago
@codinachssm, I just detected a white empty screen for 20 secs while starting heroku.
- If the backend is down or cannot connect it reports the situation and you can only login when it is back to normal (previous requests work).
If the server is busy or it answers slowly to the first requests, an alternative to the white empty screen should be provided. IMHO a sitmun splash banner is an easy and nice alternative, i.e. an orange background with the white sitmun logo in the middle, with an appropriate message ("loading", "connecting", etc).
OK. It doesn't open the Langauge codlist now, when doing login:
I can confirm that this behaviour only happens just after the white screen described at https://github.com/sitmun/sitmun-admin-app/issues/78#issuecomment-877334099
Describe the bug
The login dialog in the SITMUN administration application displays a fixed set of languages, independent of the languages registered in the backend. Additionally, the default language is being retrieved from a JSON configuration file instead of the "language.default" parameter from the backend.
To Reproduce
Steps to reproduce the behavior:
/api/languages
)./api/configuration-parameters
.Expected behavior
/api/configuration-parameters
's "language.default" field). Only in case of a failure should it fall back to the JSON configuration file./api/languages
).Additional context
The system is not correctly synchronizing with the backend for language management, leading to inconsistent user experiences.