[PR #365] [MERGED] feat: add avatar email fallback #913

Closed
opened 2026-02-26 19:31:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/documenso/documenso/pull/365
Author: @dguyen
Created: 9/11/2023
Status: Merged
Merged: 9/13/2023
Merged by: @Mythie

Base: feat/refreshHead: feat/avatar-fallback


📝 Commits (2)

  • fbf3240 feat: add avatar email fallback
  • e8796a7 refactor: organise recipient utils

📊 Changes

6 files changed (+26 additions, -22 deletions)

View changed files

📝 apps/web/src/components/(dashboard)/avatar/stack-avatar.tsx (+2 -2)
📝 apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx (+5 -5)
📝 apps/web/src/components/(dashboard)/avatar/stack-avatars.tsx (+2 -2)
📝 apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx (+5 -7)
packages/lib/client-only/recipient-initials.ts (+0 -6)
packages/lib/utils/recipient-formatter.ts (+12 -0)

📄 Description

Added a fallback to avatars so that when no name is provided, it will use the first letter of the email if possible.

Examples:

  • Recipient John Doe (foo@bar.com) will have the fallback text be 'JD'
  • Recipient with no name (foo@bar.com) will have the fallback text be 'F'

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/documenso/documenso/pull/365 **Author:** [@dguyen](https://github.com/dguyen) **Created:** 9/11/2023 **Status:** ✅ Merged **Merged:** 9/13/2023 **Merged by:** [@Mythie](https://github.com/Mythie) **Base:** `feat/refresh` ← **Head:** `feat/avatar-fallback` --- ### 📝 Commits (2) - [`fbf3240`](https://github.com/documenso/documenso/commit/fbf32404a6b859355e5a189d98756fc9da2a466f) feat: add avatar email fallback - [`e8796a7`](https://github.com/documenso/documenso/commit/e8796a7d86cdf9be56da6fc8b88cb12360b506ab) refactor: organise recipient utils ### 📊 Changes **6 files changed** (+26 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatar.tsx` (+2 -2) 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatars-with-tooltip.tsx` (+5 -5) 📝 `apps/web/src/components/(dashboard)/avatar/stack-avatars.tsx` (+2 -2) 📝 `apps/web/src/components/(dashboard)/layout/profile-dropdown.tsx` (+5 -7) ➖ `packages/lib/client-only/recipient-initials.ts` (+0 -6) ➕ `packages/lib/utils/recipient-formatter.ts` (+12 -0) </details> ### 📄 Description Added a fallback to avatars so that when no name is provided, it will use the first letter of the email if possible. Examples: - Recipient John Doe (foo@bar.com) will have the fallback text be 'JD' - Recipient with no name (foo@bar.com) will have the fallback text be 'F' --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 19:31:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#913
No description provided.