New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(portal): Add provider icon to identity/group badges #4947
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Terraform Cloud Plan Output
|
@@ -113,7 +113,6 @@ defmodule Web.Live.Groups.EditActorsTest do | |||
end) | |||
|> with_table_row("actor", "#{admin_actor.name} (admin)", fn row -> | |||
for(identity <- admin_actor.identities) do | |||
assert row["identities"] =~ identity.provider.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The icon is not pulled by the with_table_row
helper. The provider_icon matcher is tested elsewhere so I thought this was ok to remove.
Performance Test ResultsTCP
UDP
|
We were discussing this and we can't use icons because an account can have multiple providers of the same type active so you won't be able to tell the difference between them. We also can't just remove the prefix because then in case of name collision you won't be able to tell where that group is coming from. |
I understand where you're coming from, but as I think about it there are two things that make me think this would be ok:
|
Yeah that was my thinking too. No one has more than one provider of the same type configured, and if they do, hovering over the icon will display the provider name anyhow. Seems like adding a little bit of ambiguity in the rare case is worth fixing the design issue for everyone. |
@jamilbk @bmanifold I agree that there is an issue but I think we can fix it in other ways that don't sacrifice usability. For example, we don't allow duplicate provider names, so we can shorten the name to the initials (eg. only keep capital letters) on smaller screens (using media queries). And this will work even if an account has multiple providers because hovering is not a solution - the human brain can't keep more than a few things in short memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #4905