You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2023-12-29] [$500] Expense avatar and Report avatar in LHN look incorrect #32413
In the LHN (not in #focus mode), the avatar for an expense should have the user's avatar at 40x40 with the small workspace avatar to the bottom right.
For the report, we should have the diagonal avatar pattern where both the workspace avatar and user avatar are the same height/width, but are diagonal from each other
Actual Result:
The avatars are incorrect
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
changed the title [-]Expense avatar and Report avatar in LHN look incorrect[/-][+][$500] Expense avatar and Report avatar in LHN look incorrect[/+]on Dec 3, 2023
Please re-state the problem that we are trying to solve in this issue
Expense avatar and Report avatar in LHN look incorrect
What is the root cause of that problem?
The diagonal avatar pattern was missing from the Expense report and IOU report because there is a bug in isWorkspaceThread function which also gives true for the thread which is not a chat (i.e., IOU or expense).
For Avatar size, as referenced below, it was decided to keep the avatar size irrespective of isExpenseRequest. And here are the finalized avatar designs
Subscript
a. Normal Size
The main avatar is of size 40x40, with the subscript avatar being of size 20x20, with a border width of 2, and an offset of -4 to the bottom and right
b. Compact Size
The main avatar is 24x24, with the subscript avatar being 12x12, with a border width of 2 and an offset of -2 to the bottom and right.
Multiple Avatar
a. Normal Size
Both avatars have size 24x24, and the second avatar has a border width of 2, and an offset of -18 to the bottom and right.
b. Compact Size
Both avatars are 16x16, and the second avatar has a border width of 2 and an offset of -14 to the bottom and right.
What changes do you think we should make in order to solve the problem?
Use the following implementation instead cause the workspace thread will always be of type chat
@shawnborton Can you see the video uploaded here about the diagonal avatar, and see if the cases are correct? I have not adjusted size yet, but will do it later.
The PR that introduced the bug has been identified. Link to the PR:
This was just a design update so no PR responsible.
The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
N/A
A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
N/A
Determine if we should create a regression test for this bug.
It might be worth adding to the monthly tests as it only requires a quick look.
I am not familiar with how we add/remove things from the regression test, do you think it is worth adding this one @peterdbarkerUK ? Thinking that we will need to remove/change this test when we change how we represent each kind of chat.
Activity
[-]Expense avatar and Report avatar in LHN look incorrect[/-][+][$500] Expense avatar and Report avatar in LHN look incorrect[/+]melvin-bot commentedon Dec 3, 2023
Triggered auto assignment to @peterdbarkerUK (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Dec 3, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0197708be36886dd46
melvin-bot commentedon Dec 3, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)melvin-bot commentedon Dec 3, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (
External)chiItepin commentedon Dec 3, 2023
This appears to be by design since the request would be a thread from a report.
And whenever there's an expense report thread, the avatar size is smaller
yh-0218 commentedon Dec 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense avatar and Report avatar in LHN look incorrect
What is the root cause of that problem?
Because we use
CONST.AVATAR_SIZE.SMALL_NORMALwhenisExpenseRequest = trueWhat changes do you think we should make in order to solve the problem?
We need to use only
props.sizeorCONST.AVATAR_SIZE.DEFAULThere, here and hereWhat alternative solutions did you explore? (Optional)
shubham1206agra commentedon Dec 3, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue
Expense avatar and Report avatar in LHN look incorrect
What is the root cause of that problem?
The diagonal avatar pattern was missing from the Expense report and IOU report because there is a bug in
isWorkspaceThreadfunction which also gives true for the thread which is not a chat (i.e., IOU or expense).For design pattern reference
#20512 (comment)
For Avatar size, as referenced below, it was decided to keep the avatar size irrespective of
isExpenseRequest. And here are the finalized avatar designsSubscript
a. Normal Size
The main avatar is of size 40x40, with the subscript avatar being of size 20x20, with a border width of 2, and an offset of -4 to the bottom and right
b. Compact Size
The main avatar is 24x24, with the subscript avatar being 12x12, with a border width of 2 and an offset of -2 to the bottom and right.
Multiple Avatar
a. Normal Size
Both avatars have size 24x24, and the second avatar has a border width of 2, and an offset of -18 to the bottom and right.
b. Compact Size
Both avatars are 16x16, and the second avatar has a border width of 2 and an offset of -14 to the bottom and right.
What changes do you think we should make in order to solve the problem?
Use the following implementation instead cause the workspace thread will always be of type
chatOR
There are too many changes regarding design, so please take a look at test branch https://github.com/shubham1206agra/App/tree/test-avatar
Screen.Recording.2023-12-03.at.11.42.34.PM.mov
What alternative solutions did you explore? (Optional)
NA
shubham1206agra commentedon Dec 3, 2023
@shawnborton Can you see the video uploaded here about the diagonal avatar, and see if the cases are correct? I have not adjusted size yet, but will do it later.
46 remaining items
Ollyws commentedon Jan 3, 2024
BugZero Checklist:
This was just a design update so no PR responsible.
N/A
N/A
It might be worth adding to the monthly tests as it only requires a quick look.
Ollyws commentedon Jan 3, 2024
Regression Test Proposal
Do we agree 👍 or 👎
rlinoz commentedon Jan 8, 2024
I am not familiar with how we add/remove things from the regression test, do you think it is worth adding this one @peterdbarkerUK ? Thinking that we will need to remove/change this test when we change how we represent each kind of chat.
melvin-bot commentedon Jan 11, 2024
@rlinoz, @Ollyws, @peterdbarkerUK, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
Ollyws commentedon Jan 15, 2024
Good point, maybe I was being a little overzealous proposing a regression test here. Feel free to leave it off.
rlinoz commentedon Jan 17, 2024
So I guess we can close this one?
peterdbarkerUK commentedon Jan 22, 2024
I agree that we don't need to add regression tests, Olly is right this doesn't need much of a check closing!