Skip to content
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-05-09] [$250] iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list #40597

Closed
1 of 6 tasks
lanitochka17 opened this issue Apr 19, 2024 · 28 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Apr 19, 2024

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: 1.4.63-7
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Launch New Expensify app
  2. Go to FAB > Start chat
  3. Go offline

Expected Result:

Offline indicator will not overlap with navigation bar

Actual Result:

Offline indicator overlaps with navigation bar

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6455127_1713545718946!IMG_3213

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011f820b0b52933326
  • Upwork Job ID: 1781781063752663040
  • Last Price Increase: 2024-04-20
  • Automatic offers:
    • Krishna2323 | Contributor | 0
@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Apr 19, 2024
Copy link

melvin-bot bot commented Apr 19, 2024

Triggered auto assignment to @srikarparsi (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@lanitochka17
Copy link
Author

@srikarparsi FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp

@lanitochka17
Copy link
Author

Production:

img_2993_720

@Krishna2323
Copy link
Contributor

Krishna2323 commented Apr 19, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list

What is the root cause of that problem?

We haven't wrapped NewChatPage with ScreenWrapper component. We have ScreenWrapper in WorkspaceNewRoomPage.

return (
<View
style={styles.flex1}
testID={NewChatPage.displayName}
>
<KeyboardAvoidingView
style={styles.flex1}
behavior="padding"
// Offset is needed as KeyboardAvoidingView in nested inside of TabNavigator instead of wrapping whole screen.
// This is because when wrapping whole screen the screen was freezing when changing Tabs.
keyboardVerticalOffset={variables.contentHeaderHeight + (insets?.top ?? 0) + variables.tabSelectorButtonHeight + variables.tabSelectorButtonPadding}
>
<SelectionList<OptionsListUtils.Option & ListItem>
ListItem={UserListItem}
sections={areOptionsInitialized ? sections : CONST.EMPTY_ARRAY}
textInputValue={searchTerm}
textInputHint={isOffline ? `${translate('common.youAppearToBeOffline')} ${translate('search.resultsAreLimited')}` : ''}
onChangeText={setSearchTerm}
textInputLabel={translate('optionsSelector.nameEmailOrPhoneNumber')}
headerMessage={headerMessage}
onSelectRow={createChat}
onConfirm={(e, option) => (selectedOptions.length > 0 ? createGroup() : createChat(option))}
rightHandSideComponent={itemRightSideComponent}
footerContent={footerContent}
showLoadingPlaceholder={!areOptionsInitialized}
shouldPreventDefaultFocusOnSelectRow={!DeviceCapabilities.canUseTouchScreen()}
isLoadingNewOptions={!!isSearchingForReports}
initiallyFocusedOptionKey={firstKeyForList}
/>
{isSmallScreenWidth && <OfflineIndicator />}
</KeyboardAvoidingView>
</View>
);
}

What changes do you think we should make in order to solve the problem?

Instead of View, we should wrap the component with ScreenWrapper like we do in WorkspaceNewRoomPage.

What alternative solutions did you explore? (Optional)

Result

bottom_padding_offline_indidcator

@srikarparsi
Copy link
Contributor

I believe this has to do with this PR. cc @Luke9389 @rushatgabhane. Is there a reason we don't use the shouldShowOfflineIndicator property in the outer NewChatSelectorPage.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Apr 20, 2024
Copy link

melvin-bot bot commented Apr 20, 2024

Job added to Upwork: https://www.upwork.com/jobs/~011f820b0b52933326

@melvin-bot melvin-bot bot changed the title iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list [$250] iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list Apr 20, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 20, 2024
@mountiny
Copy link
Contributor

We have to move ahead with this PR to get it CPed soon, I will assign @Krishna2323

Copy link

melvin-bot bot commented Apr 20, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

@mountiny mountiny assigned Krishna2323 and unassigned getusha Apr 20, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 20, 2024
Copy link

melvin-bot bot commented Apr 20, 2024

📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@mountiny
Copy link
Contributor

Adding Rushat from the offending PR

@Krishna2323
Copy link
Contributor

@mountiny, there are 2 more issues.

  1. We have medium sized button on start chat page.
  2. The create room button has no padding bottom, it overflows from the container.

Found the solution for the first one but still looking for the second one.
medium_sized_btn

create_room_btn_no_padding_btm

@mountiny
Copy link
Contributor

@Krishna2323 thanks for raising. I doubt there should be any styling differences between these buttons, why would one of them was smaller than another, could we make sure we use same styles?

Keep us posted on the progress

@Krishna2323
Copy link
Contributor

The button size issue is also caused by this PR, they forgot to pass large prop to the button, that's why the button uses the default(medium) size.

<Button
success
text={translate('common.next')}
onPress={createGroup}
pressOnEnter
/>
)}

@Krishna2323
Copy link
Contributor

Krishna2323 commented Apr 20, 2024

@rushatgabhane @mountiny, PR ready for review.

@srikarparsi
Copy link
Contributor

Just left a comment @Krishna2323 but code changes look good to me.

@mountiny
Copy link
Contributor

Adding @allroundexperts for a quick pr review

@srikarparsi can you please merge and request CP once they are done and no problems found? thanks!

@srikarparsi
Copy link
Contributor

Yes will do :)

@srikarparsi
Copy link
Contributor

Merged and requested CP @mountiny

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Apr 22, 2024
@Krishna2323
Copy link
Contributor

@srikarparsi @mountiny, PR was deployed to production on 22nd April, this is ready for the payments process. I guess no one is assigned yet to handle the payment.

@Krishna2323
Copy link
Contributor

@srikarparsi @mountiny, friendly bump for payments.

@mountiny mountiny added Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. labels May 9, 2024
Copy link

melvin-bot bot commented May 9, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 9, 2024
@mountiny mountiny changed the title [$250] iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list [HOLD for payment 2024-05-09] [$250] iOS - Start Chat - Offline indicator overlaps with navigation bar in Start chat list May 9, 2024
@mountiny
Copy link
Contributor

mountiny commented May 9, 2024

$250 to @Krishna2323 and to @allroundexperts

@sakluger
Copy link
Contributor

sakluger commented May 9, 2024

Summarizing payment on this issue:

Contributor: @Krishna2323 $250, paid via Upwork
Contributor+: @allroundexperts $250, please complete BZ checklist and request payment via Newdot

@allroundexperts
Copy link
Contributor

Checklist

  1. As mentioned by @srikarparsi, this is caused by New chat page list refactor 2 #38610
  2. N/A
  3. N/A
  4. A regression test would be helpful. The steps given in the OP look clear enough to me.

@sakluger
Copy link
Contributor

Thanks! Closing.

@JmillsExpensify
Copy link

$250 approved for @allroundexperts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants