feat: display user email below name in multi-member-select dropdown (#1355)

- Added email field to user items mapping
- Updated renderMultiSelectOption to show email in smaller, dimmed text
- Email only displays for user type options, not groups
This commit is contained in:
Philip Okugbe
2025-07-14 02:37:13 -07:00
committed by GitHub
parent 6792a191b1
commit f4082171ec
2 changed files with 5 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export class SearchService {
if (suggestion.includeUsers) {
users = await this.db
.selectFrom('users')
.select(['id', 'name', 'avatarUrl'])
.select(['id', 'name', 'email', 'avatarUrl'])
.where((eb) => eb(sql`LOWER(users.name)`, 'like', `%${query}%`))
.where('workspaceId', '=', workspaceId)
.where('deletedAt', 'is', null)