[Avatars] Split out Agent Avatars from User Avatars#92002
Conversation
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
|
@cretadn22 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c3ec1a9968
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
This comment has been minimized.
This comment has been minimized.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
dannymcclain
left a comment
There was a problem hiding this comment.
Looks good to me from a design perspective. No bots for users!
|
🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
|
Tests well to me 👍 |
|
@codex review |
createAvatarCatalog now takes an optional display-order hint and builds the ordered list from entries itself, so each catalog is a pure data table. Removes buildOrderedAvatars and the inline ordering map.
# Conflicts: # src/pages/settings/Agents/AddAgentPage.tsx
|
@grgia tests are failing |
NicolasBonet
left a comment
There was a problem hiding this comment.
Tests still failing
|
I believe the lastest warnings about ESLint and TypeScript are not related to this PR. |
|
@NicolasBonet back from OOO, should be okay to go |
|
@NicolasBonet looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
🚧 @NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/NicolasBonet in version: 9.4.5-0 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Help site review: no documentation changes required. I reviewed the changes in this PR against the help articles under Why no docs update is needed:
No draft help site PR was created, since no article changes are warranted. @grgia, this is a behavior-aligning bug fix with no user-facing docs impact — please confirm you agree no help site update is needed. If you'd like a clarifying note added anywhere (e.g., in the Agents documentation), let me know and I'll open a draft PR. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.4.5-6 🚀
|

Explanation of Change
Agent (bot) avatars were mixed in with user preset avatars, so they wrongly showed up as options in the profile picture picker.
What changed:
Should Appear Here:
Not Here:
Fixed Issues
$ #91980
PROPOSAL:
Tests
I tested by
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Verify that no errors appear in the JS console
Go to
/settings/profile/avatarand click to edit avatarVerify no Bot Avatars
Go to
/settings/agents/newclick to edit avatarVerify bot avatars appear
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari