Skip to content

feat: show recent people on contact icon#62401

Open
kristian-zendato wants to merge 1 commit into
masterfrom
feat/people-menu
Open

feat: show recent people on contact icon#62401
kristian-zendato wants to merge 1 commit into
masterfrom
feat/people-menu

Conversation

@kristian-zendato

Copy link
Copy Markdown

Summary

Makes the People (contacts) header menu more inviting by showing a stack of up to 3 overlapping avatars of recent contacts on the menu trigger, instead of only the contacts icon.

  • Adds GET /contactsmenu/preview-avatars which returns the first 3 entries from the same unfiltered contacts list as the menu (Manager::getEntries with an empty filter), with optional team filtering matching the existing index endpoint.
  • Frontend loads those contacts on mount and shows an NcAvatar stack when at least 2 are available; otherwise keeps the existing contacts icon.
  • Widens the header trigger (width: fit-content) so the stack does not overlap notifications/profile and remains fully clickable.
  • Adds PHP and Vue unit tests for the new endpoint and trigger behavior.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@kristian-zendato
kristian-zendato requested review from a team as code owners July 22, 2026 10:51
@kristian-zendato
kristian-zendato requested review from icewind1991, nfebe, salmart-dev, skjnldsv and sorbaugh and removed request for a team July 22, 2026 10:51
Signed-off-by: Kristian Zendato <kristian.zendato@nextcloud.com>
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.

Make People menu more inviting

1 participant