OpenConceptLab/ocl_issues

Indicate the env in Sign In, Register, Forgot Password, Reset Password forms

Closed this issue ยท 14 comments

If not in production, all of these KeyCloak forms need to indicate the environment: Sign In, Register, Forgot Password, Reset Password

@paynejd I have tried few examples, let me know which one is better (1st one is deployed on QA)

Screenshot 2024-06-25 at 16 20 15 Screenshot 2024-06-25 at 16 20 25 Screenshot 2024-06-25 at 16 21 49 Screenshot 2024-06-25 at 16 22 11

This value is based on KeyCloak Realm Display Name.

@paynejd Moving it to last option, thats what I like best. Do let me know here what you think

@paulsonder Can you take a 30sec look at this? When in a non-production environment, we just want to display which environment a user is signing into.

@snyaggarwal -- What's the business logic for determining if non-production? This should be a configuration, I assume -- the approach needs to work with many deployments (e.g OCL Online, WHO, Kenya, Brazil, etc.)

@paynejd Each OCL environment is a separate KeyCloak Realm. A Realm has a name and a display name. Right now what you see "OCL QA" is the display name of OCL-QA Realm. Similarly "OCL Online" is the name for OCL-Prod Realm.
We don't have a configuration to tag a Realm as Prod or Non-Prod as such.

@snyaggarwal @paynejd

How about something like this?

This uses an Alert inline, Sunny.

@paulsonder I like the styles but I am not sure if we want to say "Server".
@paynejd Should it rather say "Environment"?

I'll leave the label to you @snyaggarwal but updated to reflect your suggestion.

This is deployed on QA

@snyaggarwal The addition looks good to me.

There are a few things in the design we didn't manage to achieve in the build. I'm not sure what the limitations are, but just for clarity I've noted them below...

  1. The language switcher is missing the icon and chevron. The design uses locale code rather than full label, but i'm comfortable with either.
  2. The weight on the 'Sign into' is too light... it should use 'Title - Large' from Material.
  3. The button height is smaller in code than the design
  4. The call out for unregistered users sits in its own card in the design and includes an illustration.

Thanks!

@paulsonder I was able to do few:

  1. Done to very close icon.
  2. Done
  3. Done
  4. Its difficult to break out the card the way the current theme is setup. Will have to move a lot of things around for this. Also I couldn't find the icon in the allowed icon list.

@paulsonder @jamlung-ri Can this be closed?

@paulsonder I will defer to you on this one. I took a look last week and liked what I saw.

@snyaggarwal Yes, let's close it. I can create another ticket for point 4 when we've more time.