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

Profile pictures for users #379

Merged
merged 8 commits into from
Jun 1, 2024
Merged

Profile pictures for users #379

merged 8 commits into from
Jun 1, 2024

Conversation

SekoiaTree
Copy link
Contributor

Closes #262. This PR adds the ability to add and load profile pictures. If the image cannot be fetched, the default icon is displayed and an error is shown, but the page still loads, because it is not a core functionality.

Still needs to be done: refresh the profile picture on reload.

@SekoiaTree SekoiaTree marked this pull request as ready for review May 26, 2024 13:36
Copy link
Contributor

@ortolino ortolino left a comment

Choose a reason for hiding this comment

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

The PR looks good. I tested it on the emulator and it looks like it works well. Good job!

{
CoroutineScope(Dispatchers.Main).launch {
_uiState.value.snackbarHostState.showSnackbar(
message = "Error loading profile picture", duration = SnackbarDuration.Short)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add specific error for when the image cannot be found?

Copy link

sonarqubecloud bot commented Jun 1, 2024

@SidonieBouthors SidonieBouthors merged commit f4437c0 into main Jun 1, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Profile pictures
3 participants