Skip to content

fix(NcAvatar): redirect to guest avatar if avatar doesnt exist#8440

Merged
skjnldsv merged 1 commit intomainfrom
fix/avatar-guestFallback
Apr 19, 2026
Merged

fix(NcAvatar): redirect to guest avatar if avatar doesnt exist#8440
skjnldsv merged 1 commit intomainfrom
fix/avatar-guestFallback

Conversation

@skjnldsv
Copy link
Copy Markdown
Contributor

@skjnldsv skjnldsv commented Apr 17, 2026

β˜‘οΈ Resolves

Avoid this kind of stuff if an avatar is not generated/accessible

Before After
image image

🏁 Checklist

  • ⛑️ Tests are included or are not applicable
  • πŸ“˜ Component documentation has been extended, updated or is not applicable
  • 2️⃣ Backport to stable8 for maintained Vue 2 version or not applicable

@skjnldsv skjnldsv requested review from ShGKme and susnux April 17, 2026 13:02
@skjnldsv skjnldsv self-assigned this Apr 17, 2026
@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews feature: avatar Related to the avatar component labels Apr 17, 2026
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the fix/avatar-guestFallback branch from 64ba23d to 0352328 Compare April 17, 2026 13:11
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 54.58%. Comparing base (633b1f8) to head (0352328).
⚠️ Report is 39 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8440   +/-   ##
=======================================
  Coverage   54.58%   54.58%           
=======================================
  Files         104      104           
  Lines        3400     3400           
  Branches      992      993    +1     
=======================================
  Hits         1856     1856           
  Misses       1305     1305           
  Partials      239      239           

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

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

Nice.

We should also add this option to the library, probably, and use the library here: https://github.com/nextcloud-libraries/nextcloud-router/blob/main/lib/avatar.ts

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 17, 2026

/backport to stable8

@ShGKme
Copy link
Copy Markdown
Contributor

ShGKme commented Apr 17, 2026

Maybe we should also handle the error to render a local avatar, when it is not available at all?

@skjnldsv skjnldsv enabled auto-merge April 17, 2026 14:01
@skjnldsv skjnldsv merged commit e00f649 into main Apr 19, 2026
27 checks passed
@skjnldsv skjnldsv deleted the fix/avatar-guestFallback branch April 19, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: avatar Related to the avatar component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants