mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-10 07:43:10 -05:00
[PR #1386] [MERGED] feat: default profile image with user initials #7451
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1386
Author: @dannyl1u
Created: 4/1/2024
Status: ✅ Merged
Merged: 4/7/2024
Merged by: @tjbck
Base:
dev← Head:feat/profile-image-initials📝 Commits (10+)
40e1e21feat: default profile image with user initialsa0a064fupdate initals avatar if user changes name6bb299arun npm run format8d1db9afeat: api endpoint to receive profile_image_uirl on signup3b06096run npm run lint:backend4195af4pass generated profile image in signup api call0c43897refac: move generateInitialsImage function to utilsa2bd9b8style: npm run formatc52cc46feat: initial avatar set to first letter of firstname, first letter of lastnameac470e6npm run format📊 Changes
8 files changed (+248 additions, -27 deletions)
View changed files
📝
backend/apps/web/models/auths.py(+8 -2)📝
backend/apps/web/models/users.py(+8 -3)📝
backend/apps/web/routers/auths.py(+5 -1)📝
src/lib/apis/auths/index.ts(+8 -2)📝
src/lib/components/chat/Settings/Account.svelte(+134 -15)📝
src/lib/i18n/locales/en-US/translation.json(+2 -0)📝
src/lib/utils/index.ts(+76 -0)📝
src/routes/auth/+page.svelte(+7 -4)📄 Description
Pull Request Checklist
Description
Change the default user profile image to an icon showing their initials, similar to ChatGPT's UI. I believe this looks much better than the current default gravatar image.
Changelog Entry
Added
Changed
Removed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.