-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [$250] Workspace switcher search bar is in the wrong place #40826
Comments
Triggered auto assignment to @JmillsExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher search bar is in the wrong place What is the root cause of that problem?We have included the everything section as a section of selection list. App/src/pages/WorkspaceSwitcherPage/index.tsx Lines 140 to 154 in 109d0f0
What changes do you think we should make in order to solve the problem?We first need to remove the section from pseudo-code: <View style={[styles.mh4, styles.flexRow, styles.justifyContentBetween, styles.alignItemsCenter, styles.mb1]}>
<Text
style={styles.label}
color={theme.textSupporting}
>
{translate('workspace.switcher.everythingSection')}
</Text>
</View>
<View>
<UserListItem
item={{
text: CONST.WORKSPACE_SWITCHER.NAME,
policyID: '',
icons: [{source: Expensicons.ExpensifyAppIcon, name: CONST.WORKSPACE_SWITCHER.NAME, type: CONST.ICON_TYPE_AVATAR}],
brickRoadIndicator: getIndicatorTypeForPolicy(undefined),
isSelected: activeWorkspaceID === undefined,
keyForList: CONST.WORKSPACE_SWITCHER.NAME,
}}
isFocused={false}
isDisabled={false}
showTooltip={false}
canSelectMultiple={false}
onSelectRow={() =>
selectPolicy({
text: CONST.WORKSPACE_SWITCHER.NAME,
policyID: '',
icons: [{source: Expensicons.ExpensifyAppIcon, name: CONST.WORKSPACE_SWITCHER.NAME, type: CONST.ICON_TYPE_AVATAR}],
brickRoadIndicator: getIndicatorTypeForPolicy(undefined),
isSelected: activeWorkspaceID === undefined,
keyForList: CONST.WORKSPACE_SWITCHER.NAME,
})
}
/>
</View> This will be placed before the selection list. This is just pseudo-code, props are filled randomly. Minor styling changes can be discussed during PR phase. What alternative solutions did you explore? (Optional)remove_everything_Section.mp4 |
Job added to Upwork: https://www.upwork.com/jobs/~01f05cea763c8e597d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Search bar is below Choose workspace What is the root cause of that problem?This is a feature request What changes do you think we should make in order to solve the problem?
App/src/components/SelectionList/BaseSelectionList.tsx Lines 318 to 320 in 6b18ee9
<section.CustomSectionHeader
section={section}
>
{textInput}
</section.CustomSectionHeader>
What alternative solutions did you explore? (Optional)NA |
Proposal Updated
|
Proposal updated to include detailed implementation. |
@gijoe0295 i don't like the idea of modifying BaseSelectionList just for this since it's used multiple places. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace switcher search bar is in the wrong place What is the root cause of that problem?Everything section is part of same What changes do you think we should make in order to solve the problem?We just need to create one more <SelectionList<WorkspaceListItem>
containerStyle={{
flexBasis: 'auto',
flexGrow: 0,
}}
ListItem={UserListItem}
sections={everythingSection}
onSelectRow={selectPolicy}
initiallyFocusedOptionKey={activeWorkspaceID ?? CONST.WORKSPACE_SWITCHER.NAME}
/>
<SelectionList<WorkspaceListItem>
ListItem={UserListItem}
sections={sections}
onSelectRow={selectPolicy}
textInputLabel={usersWorkspaces.length >= CONST.WORKSPACE_SWITCHER.MINIMUM_WORKSPACES_TO_SHOW_SEARCH ? translate('common.search') : undefined}
textInputValue={searchTerm}
onChangeText={setSearchTerm}
headerMessage={headerMessage}
listFooterContent={shouldShowCreateWorkspace ? WorkspaceCardCreateAWorkspaceInstance : null}
initiallyFocusedOptionKey={activeWorkspaceID ?? CONST.WORKSPACE_SWITCHER.NAME}
showLoadingPlaceholder
/> What alternative solutions did you explore? (Optional)We can separate everything section from Screen.Recording.2024-04-25.at.01.06.40.mov |
📣 @Delgee! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
The branch @Krishna2323 provided looks good, we can proceed with that. This is not highlighted when selected, but we can address this on the PR as it is a minor issue. |
Triggered auto assignment to @blimpich, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @getusha 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
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 solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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-06-20. 🎊 For reference, here are some details about the assignees on this issue:
|
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:
|
Payment summary:
|
I've paid out @Krishna2323. @getusha Mind filling out the BZ checklist above, and additionally, can you confirm if you'll be paid via Upwork or NewDot? |
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: [@getusha] The PR that introduced the bug has been identified. Link to the PR: N/a this is a feature request |
newDot, i just requested. thanks! |
@getusha , the job was created as a milestone in Upwork so it's been auto-paid. The hire date was before your cutoff date too, can you please rescind your offer request for payment via NewDot? Contributor: @Krishna2323 paid $250 via Upwork |
$250 approved for @getusha |
@mallenexpensify apologies for the delay, just refunded the amount on UW |
I think we're good here now. |
@getusha we need to pay via Upwork here because you were assigned here before 5/9, your eligible date. Can you please rescind your NewDot payment request and accept this new job I created? Thx |
@mallenexpensify is there a way to refund the ND payment? |
If you've already been paid via NewDot for this, let's not complicate things with a refund. Both you and I are assigned to this issue, I'll comment there that payment is already made and link to here (assuming it's $250). Also.. let's consider this an edge case, it should not be used as a reference in the future :) |
d'oh, looks like you haven't accepted the job in Upwork, can you plz @getusha ? |
Accepted. thank you! |
Paid, thanks @getusha |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
**Version Number:**v1.4.64-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:
Action Performed:
Break down in numbered steps
Expected Result:
Describe what you think should've happened
The search bar should be below the workspaces title
Actual Result:
Describe what actually happened
Search bar is below
Choose workspace
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?
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @JmillsExpensifyThe text was updated successfully, but these errors were encountered: