sitmun / sitmun-admin-app

Administration application for the SITMUN system.
European Union Public License 1.2
0 stars 1 forks source link

Language Selection and Default Language Retrieval Issues in Login Dialog #78

Open codinachssm opened 3 years ago

codinachssm commented 3 years ago

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:

  1. Go to the login page of the SITMUN administration application.
  2. Observe the language selection dropdown.
  3. Notice that the languages displayed are not aligned with those registered in the backend (/api/languages).
  4. Check the default language – it is being loaded from a JSON configuration file, not from /api/configuration-parameters.

Expected behavior

Additional context
The system is not correctly synchronizing with the backend for language management, leading to inconsistent user experiences.

fjlopez commented 3 years ago

@codinachssm, I just detected a white empty screen for 20 secs while starting heroku. image

  • 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).

codinachssm commented 3 years ago

OK. It doesn't open the Langauge codlist now, when doing login: image

fjlopez commented 3 years ago

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