[PR #408] [MERGED] Add user PFP support and context to logo #3340

Closed
opened 2026-02-22 18:33:35 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/408
Author: @shatfield4
Created: 12/4/2023
Status: Merged
Merged: 12/7/2023
Merged by: @timothycarambat

Base: masterHead: user-pfp-and-logo-context


📝 Commits (10+)

  • 6ca2f09 fix sizing of onboarding modals & lint
  • 26458e7 fix extra scrolling on mobile onboarding flow
  • 1ebd3ae added message to use desktop for onboarding
  • 67fc8d5 linting
  • 24dde67 add arrow to scroll to bottom (debounced) and fix chat scrolling to always scroll to very bottom on message history change
  • 67f97e1 fix for empty chat
  • 0587454 change mobile alert copy
  • 6f4f25d Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 396-modal-sizes-too-big-in-onboarding-flow
  • d8a0d1d WIP adding PFP upload support
  • 9e14ba6 WIP pfp for users

📊 Changes

16 files changed (+656 additions, -101 deletions)

View changed files

📝 frontend/src/App.jsx (+68 -62)
frontend/src/LogoContext.jsx (+28 -0)
frontend/src/PfpContext.jsx (+30 -0)
📝 frontend/src/components/UserIcon/index.jsx (+16 -13)
📝 frontend/src/components/UserMenu/index.jsx (+206 -1)
📝 frontend/src/hooks/useLogo.js (+4 -19)
frontend/src/hooks/usePfp.js (+7 -0)
📝 frontend/src/models/system.js (+58 -1)
📝 frontend/src/pages/GeneralSettings/Appearance/index.jsx (+7 -1)
📝 frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/AppearanceSetup/index.jsx (+7 -1)
📝 server/endpoints/system.js (+151 -2)
server/prisma/migrations/20231129012019_add/migration.sql (+2 -0)
📝 server/prisma/schema.prisma (+1 -0)
📝 server/utils/files/logo.js (+1 -0)
📝 server/utils/files/multer.js (+26 -1)
server/utils/files/pfp.js (+44 -0)

📄 Description

• Create PFP user menu and hooks to render the PFP everywhere
• Update backend to handle PFP uploads
• Update Prisma schema to support PFPs
• Create context and wrappers for PFP and logo since they function very similarly


🔄 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/Mintplex-Labs/anything-llm/pull/408 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 12/4/2023 **Status:** ✅ Merged **Merged:** 12/7/2023 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `user-pfp-and-logo-context` --- ### 📝 Commits (10+) - [`6ca2f09`](https://github.com/Mintplex-Labs/anything-llm/commit/6ca2f09079856176e5929c45539a178dc4892a13) fix sizing of onboarding modals & lint - [`26458e7`](https://github.com/Mintplex-Labs/anything-llm/commit/26458e753d56692f7b4aaa9af358b3c547ede7a4) fix extra scrolling on mobile onboarding flow - [`1ebd3ae`](https://github.com/Mintplex-Labs/anything-llm/commit/1ebd3ae5849e83f29401d853b84df2d278ea2970) added message to use desktop for onboarding - [`67fc8d5`](https://github.com/Mintplex-Labs/anything-llm/commit/67fc8d5a160510826a154a0875d6fbcb3d9cc9f5) linting - [`24dde67`](https://github.com/Mintplex-Labs/anything-llm/commit/24dde673d12c8f29301e0a38458a002ebb080380) add arrow to scroll to bottom (debounced) and fix chat scrolling to always scroll to very bottom on message history change - [`67f97e1`](https://github.com/Mintplex-Labs/anything-llm/commit/67f97e15336e30e8a9d8c66c8dbfbc888d2e4dd1) fix for empty chat - [`0587454`](https://github.com/Mintplex-Labs/anything-llm/commit/058745464b9eaed3d49cd2af683d9a5406dfd03f) change mobile alert copy - [`6f4f25d`](https://github.com/Mintplex-Labs/anything-llm/commit/6f4f25d4a79780dc0d1de99b20a3630479ab258e) Merge branch 'master' of github.com:Mintplex-Labs/anything-llm into 396-modal-sizes-too-big-in-onboarding-flow - [`d8a0d1d`](https://github.com/Mintplex-Labs/anything-llm/commit/d8a0d1ddcd861c680813713e86c2e363ac94a7e5) WIP adding PFP upload support - [`9e14ba6`](https://github.com/Mintplex-Labs/anything-llm/commit/9e14ba6bfe4544f535e6d432a369fd4cdf4f8710) WIP pfp for users ### 📊 Changes **16 files changed** (+656 additions, -101 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/App.jsx` (+68 -62) ➕ `frontend/src/LogoContext.jsx` (+28 -0) ➕ `frontend/src/PfpContext.jsx` (+30 -0) 📝 `frontend/src/components/UserIcon/index.jsx` (+16 -13) 📝 `frontend/src/components/UserMenu/index.jsx` (+206 -1) 📝 `frontend/src/hooks/useLogo.js` (+4 -19) ➕ `frontend/src/hooks/usePfp.js` (+7 -0) 📝 `frontend/src/models/system.js` (+58 -1) 📝 `frontend/src/pages/GeneralSettings/Appearance/index.jsx` (+7 -1) 📝 `frontend/src/pages/OnboardingFlow/OnboardingModal/Steps/AppearanceSetup/index.jsx` (+7 -1) 📝 `server/endpoints/system.js` (+151 -2) ➕ `server/prisma/migrations/20231129012019_add/migration.sql` (+2 -0) 📝 `server/prisma/schema.prisma` (+1 -0) 📝 `server/utils/files/logo.js` (+1 -0) 📝 `server/utils/files/multer.js` (+26 -1) ➕ `server/utils/files/pfp.js` (+44 -0) </details> ### 📄 Description • Create PFP user menu and hooks to render the PFP everywhere • Update backend to handle PFP uploads • Update Prisma schema to support PFPs • Create context and wrappers for PFP and logo since they function very similarly --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:33:35 -05:00
yindo closed this issue 2026-02-22 18:33:35 -05:00
yindo changed title from [PR #408] Add user PFP support and context to logo to [PR #408] [MERGED] Add user PFP support and context to logo 2026-06-05 15:12:54 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3340