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 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message #32614
We already pass a description to the ValuePicker with the item prop from the WorkspaceNewRoomPage.js we just need to use it as alternateText in the ValueSelectorModal, so that it can be passed into the SectionList properly here:
This can be done by adding a property to the object like this:
{alternateText: item.description}
We can also possibly rename the description to alternateText in WorkspaceNewRoomPage.js as well.
Result
Additional changes (Optional)
I also noticed some additional changes can be done to mimic the design provided here more closely
Use the furtherDetails prop to pass the description for the visibility which is already defined in MenuItem. So, in WorkspaceNewRoomPage.js we can pass furtherDetails={visibilityDescription} to the ValuePicker. We also need to modify the ValuePicker component to accept the prop and pass it to MenuItemWithTopDescription internally. Then in MenuItem we also need to make some changes because currently, if we want to pass furtherDetails we also need furtherDetailsIcon since in this case we don't need an icon (or maybe we could add a help icon), we can make the icon optional and remove the horizontal padding if icon is not passed. This would mean no addtional prop required for the MenuItem.
Make the title of every item bold like in the design
We can also possibly add some margin between the title and the alternateText if it exists to make it look better, since all titles are bold by adding this style:
item.alternateText ? styles.mb1 : null,
We can also possibly make the supporting text smaller.
Result
Screen.Recording.2023-12-13.at.9.51.23.PM.mov
The additional changes section provides some optional changes that we can make or not depending on the design requirements.
changed the title [-]HIGH: Improve formatting of People in this workspace can find your room message[/-][+][$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]on Dec 13, 2023
Contributor: @esh-g paid $500 via Upwork
Contributor+: @s77rt paid $500 via Upwork
@s77rt it looks like the bug zero checklist didn't auto-post, can you fill this out plz? For the TestRail GH, we'll have them file it with their monthly/design checklist, since they don't need to check every release for the text location.
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
The PR that introduced the bug has been identified. Link to the PR:
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:
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:
If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
A discussion in #expensify-bugs has been started: I don't think this is needed. The first PR did nothing wrong. The second PR the bug could have been prevented during testing phase
Determine if we should create a regression test for this bug: Yes
Regression Test Proposal
Test 1
Click on the '+' FAB.
Click on 'Start chat'
Select the '#Room' tab
Hover the Visibility menu item
Verify that the visibility description text e.g. 'People in your workspace can find this room' is part of the hovered item
Click on the Visibility menu item
Verify that all of the options's titles are in bold
Test 2
Go to Settings > Workspaces > any workspace > Members and click Invite
Verify that the font size of the second line (email line) of each option is smaller than that of the first line (full name line)
Go to Settings > Preferences > Priority mode
Verify that the font size of the second line of each option is smaller than that of the first line
changed the title [-][HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/-][+][HOLD for payment 2024-01-25] [HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]on Jan 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
changed the title [-][HOLD for payment 2024-01-25] [HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/-][+][HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]on Jan 19, 2024
Activity
quinthar commentedon Dec 11, 2023
@shawnborton coming through with a great mockup:
quinthar commentedon Dec 11, 2023
@mallenexpensify I see you assigned yourself; can you clean this up and get a contributor on it?
esh-g commentedon Dec 12, 2023
Proposal
Please re-state the problem we are trying to solve
The People in this workspace can find your room message here is visually disconnected from the visibility selector
What is the root cause of the problem?
The
ValueSelectorModaldoes not have a field foralternateTexthere:App/src/components/ValuePicker/ValueSelectorModal.js
Lines 43 to 45 in 4239252
What changes should be made to fix this?
We already pass a description to the
ValuePickerwith the item prop from theWorkspaceNewRoomPage.jswe just need to use it asalternateTextin theValueSelectorModal, so that it can be passed into theSectionListproperly here:App/src/components/ValuePicker/ValueSelectorModal.js
Lines 43 to 45 in 4239252
This can be done by adding a property to the object like this:
We can also possibly rename the description to
alternateTextinWorkspaceNewRoomPage.jsas well.Result
Additional changes (Optional)
I also noticed some additional changes can be done to mimic the design provided here more closely
furtherDetailsprop to pass the description for the visibility which is already defined inMenuItem. So, inWorkspaceNewRoomPage.jswe can passfurtherDetails={visibilityDescription}to theValuePicker. We also need to modify theValuePickercomponent to accept the prop and pass it toMenuItemWithTopDescriptioninternally. Then inMenuItemwe also need to make some changes because currently, if we want to passfurtherDetailswe also needfurtherDetailsIconsince in this case we don't need an icon (or maybe we could add a help icon), we can make the icon optional and remove the horizontal padding if icon is not passed. This would mean no addtional prop required for theMenuItem.App/src/components/SelectionList/BaseListItem.js
Line 92 in 4239252
We can modify this to be bold every time
alternateTextis provided like this:alternateTextif it exists to make it look better, since all titles are bold by adding this style:Result
Screen.Recording.2023-12-13.at.9.51.23.PM.mov
The additional changes section provides some optional changes that we can make or not depending on the design requirements.
[-]HIGH: Improve formatting of People in this workspace can find your room message[/-][+][$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]melvin-bot commentedon Dec 13, 2023
Job added to Upwork: https://www.upwork.com/jobs/~0123449fd9ddb566ea
74 remaining items
mallenexpensify commentedon Jan 17, 2024
Checked on iOS and everything looks good/correct.
I'm assuming this is not related to a deploy blocker and that payment is due now. Please comment if you disagree and I'll wait a day to issue payment.
s77rt commentedon Jan 17, 2024
#32614 (comment) is false positive
mallenexpensify commentedon Jan 17, 2024
Contributor: @esh-g paid $500 via Upwork
Contributor+: @s77rt paid $500 via Upwork
@s77rt it looks like the bug zero checklist didn't auto-post, can you fill this out plz? For the TestRail GH, we'll have them file it with their monthly/design checklist, since they don't need to check every release for the text location.
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
s77rt commentedon Jan 17, 2024
Regression Test Proposal
Test 1
Test 2
s77rt commentedon Jan 17, 2024
@mallenexpensify ^
[-][HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/-][+][HOLD for payment 2024-01-25] [HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]melvin-bot commentedon Jan 18, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jan 18, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.26-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-01-25. 🎊
For reference, here are some details about the assignees on this issue:
[-][HOLD for payment 2024-01-25] [HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/-][+][HOLD for payment 2024-01-17] [$500] HIGH: Improve formatting of People in this workspace can find your room message[/+]mallenexpensify commentedon Jan 19, 2024
Thanks @s77rt regression test update here