-
Notifications
You must be signed in to change notification settings - Fork 976
refactor: replace and remove deprecated Avatar component #15930
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
dbf1eb9
Add avatarLetters utility
BrunoQuaresma 8f24c9e
Fix avatar for non squared icon
BrunoQuaresma e689d42
Replace avatar o template menu
BrunoQuaresma 6f8c280
Move UserAvatar to modules/users
BrunoQuaresma e72cecb
Only use one letter on fallback to simplify changes
BrunoQuaresma 758f240
Refactor UserAvatar to user the new Avatar component
BrunoQuaresma 22c241c
Move GroupAvatar to modules/groups
BrunoQuaresma 8ecbfc5
Update GroupAvatar to use latest Avatar component
BrunoQuaresma 081bb47
Move BuildAvatar to modules/builds
BrunoQuaresma 83ca623
Update BuildAvatar to use latest Avatar component
BrunoQuaresma dff92f7
Move AvatarCard to components/Avatar
BrunoQuaresma 52ea623
Update AccountUserGroups to use the new Avatar component
BrunoQuaresma 16c194d
Move AvatarData to components/Avatar
BrunoQuaresma 1caeffd
Update AvatarData to use new Avatar component
BrunoQuaresma 4f12e95
Update remaining components
BrunoQuaresma 76c211d
Fix lint issues
BrunoQuaresma 08fee38
Remove deprecated Avatar
BrunoQuaresma bfd9244
Merge branch 'main' of https://github.com/coder/coder into bq/use-new…
BrunoQuaresma d6fc56b
Merge branch 'main' of https://github.com/coder/coder into bq/use-new…
BrunoQuaresma f47ed9d
Align avatar with the timeline vertical line
BrunoQuaresma 7304999
Fix selected template avatar
BrunoQuaresma 9fdb4fd
Adjust components for the new Avatar
BrunoQuaresma 0a0b1cf
Fix a few style inconsistencies
BrunoQuaresma f079dcd
Merge branch 'main' of https://github.com/coder/coder into bq/use-new…
BrunoQuaresma dc410a7
Simplify Avatar usage
BrunoQuaresma 37a678d
Fix missed src
BrunoQuaresma 9e03115
Fix remaining issues
BrunoQuaresma 6453ce3
E2E fix + review requests
BrunoQuaresma bb8e9af
Fix fmt
BrunoQuaresma 417cab7
Fix assertions
BrunoQuaresma ad61871
Fix locators
BrunoQuaresma d57833b
Change locator to use .summary
BrunoQuaresma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix missed src
- Loading branch information
commit 37a678ddb84c4384d0bcfd98c3822f95d48af5e8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This could be a separate PR but it would be nice if we started using 2 letters for the fallback case. For example, the first letter of the first 2 words in display name. For example, if you look at the users page on dev.coder.com there are many duplicated avatars for the letters A and B that it doesn't serve much purpose as a identifier.
Uh oh!
There was an error while loading. Please reload this page.
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.
Yes, I was planning to address this in another PR if necessary. Since we don’t control the name or display name, we can’t enforce them to have at least two words to display two letters. In such cases, we would display only one letter, correct? Since this involves some logic and could slightly impact the design, I left it out of the scope for this PR.