Skip to content
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

Refactor some logic into common AvatarSetting component #12544

Merged
merged 15 commits into from
May 21, 2024

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented May 17, 2024

We duplicated some of the logic of setting avatars between profiles & rooms. This pulls some of that logic into the AvatarSetting component and hopefully make things a little simpler. This component now includes the file control, the chrome workaround and the logic of displaying the pending file from a data URL.

Work on this the ProfileSettings component is coming up next.

RoomProfileSettings wins some tests because sonarcloud, and its the one I'm not about to start changing.

Checklist

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • Sign-off given on the changes (see CONTRIBUTING.md).

We duplicated some of the logic of setting avatars between profiles &
rooms. This pulls some of that logic into the AvatarSetting component
and hopefully make things a little simpler.
@dbkr dbkr added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 17, 2024
dbkr and others added 2 commits May 20, 2024 14:40
Co-authored-by: Florian Duros <florianduros@element.io>
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few nits

dbkr and others added 2 commits May 21, 2024 10:38
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Upload input doesn't have that class anymore
@dbkr dbkr added this pull request to the merge queue May 21, 2024
Merged via the queue into develop with commit 3342aa5 May 21, 2024
30 checks passed
@dbkr dbkr deleted the dbkr/mexpand_avatarsetting branch May 21, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants