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

[C2] Messages: Fix the profile image of users #5392

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

daniboygg
Copy link
Contributor

@daniboygg daniboygg commented Apr 18, 2024

  • Use the component BaseUserAvatar to show images of users
  • Use pinia store to get user instead of vuex (we are currently migrating to pinia)

The message screen now looks like

image

There is no design for this in figma file https://www.figma.com/file/xVjyMvmrZdlr8ZyKeoQ5n5/Dashboard?node-id=99-16149&t=kofcZkADJlifIV9C-0, at least I couldn't find it.

So I decide to use 40x40 pictures like figma design for course cards to show the avatar of the user. This will be the normal size. For large and xlarge I selected some arbitrary values. Xlarge is the size of your profile picture on the left.

#5389

The course component list use something similar. For consistency, change the course list layout to use the new avatar component. This view will change from this:

Screenshot from 2024-04-22 10-46-22

to this:

Screenshot from 2024-04-22 10-46-47

* Use the component BaseUserAvatar to show images of users
* Use pinia store to get user instead of vuex
(we are currently migrating to pinia)
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.22%. Comparing base (f9eb947) to head (50a8ea8).
Report is 195 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5392      +/-   ##
============================================
- Coverage     40.77%   40.22%   -0.56%     
- Complexity    10214    10328     +114     
============================================
  Files           807      817      +10     
  Lines         42433    43413     +980     
============================================
+ Hits          17304    17462     +158     
- Misses        25129    25951     +822     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

codeclimate bot commented Apr 22, 2024

An error occurred when fetching issues.

View more on Code Climate.

@ywarnier ywarnier merged commit f12a913 into chamilo:master Apr 23, 2024
4 of 9 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.

2 participants