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 C+ payment via Newdot] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes #27590

Closed
1 of 6 tasks
kbecciv opened this issue Sep 16, 2023 · 30 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production External Added to denote the issue can be worked on by a contributor Monthly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Sep 16, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Create a workspace if not created
  2. Go to #admins
  3. Click on header
  4. Go to Private notes
  5. Go offline

Expected Result:

Offline message should be positioned at bottom

Actual Result:

Offline message not positioned at bottom

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: Dev 1.3.70.5
Reproducible in staging?: no
Reproducible in production?: no
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
Notes/Photos/Videos: Any additional supporting documentation

Screen_Recording_20230915_185114_Chrome.mp4

Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694784028569909

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018108637756bc0d66
  • Upwork Job ID: 1703113660113563648
  • Last Price Increase: 2023-09-23
  • Automatic offers:
    • dhairyasenjaliya | Contributor | 26884984
    • gadhiyamanan | Reporter | 26884986
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 16, 2023
@ahmedGaber93
Copy link
Contributor

Proposal

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

offline message not positioned at bottom in private notes

What is the root cause of that problem?

The page content not wrapped with <View style={[styles.flexGrow1]}> so not fit the available screen height

{report.isLoadingPrivateNotes && _.isEmpty(lodashGet(report, 'privateNotes', {})) ? (
<FullScreenLoadingIndicator />
) : (
_.map(privateNotes, (item, index) => getMenuItem(item, index))
)}

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

we need this wrap this content with <View style={[styles.flexGrow1]}> or at leatest _.map

{report.isLoadingPrivateNotes && _.isEmpty(lodashGet(report, 'privateNotes', {})) ? (
<FullScreenLoadingIndicator />
) : (
_.map(privateNotes, (item, index) => getMenuItem(item, index))
)}

What alternative solutions did you explore? (Optional)

N/A

@namhihi237
Copy link
Contributor

Proposal

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

Offline messages should be positioned at the bottom when the network offline

What is the root cause of that problem?

We have wrapped the ScreenWrapper content of PrivateNotesListPage here

<ScreenWrapper includeSafeAreaPaddingBottom={false}>
<FullPageNotFoundView
shouldShow={_.isEmpty(report.reportID) || (!report.isLoadingPrivateNotes && network.isOffline && _.isEmpty(lodashGet(report, 'privateNotes', {})))}
onBackButtonPress={() => Navigation.goBack()}
>
<HeaderWithBackButton
title={translate('privateNotes.title')}
shouldShowBackButton
onCloseButtonPress={() => Navigation.dismissModal()}
onBackButtonPress={() => Navigation.goBack()}
/>
{report.isLoadingPrivateNotes && _.isEmpty(lodashGet(report, 'privateNotes', {})) ? (
<FullScreenLoadingIndicator />
) : (
_.map(privateNotes, (item, index) => getMenuItem(item, index))
)}

When offline OfflineIndicator will show below the content. So here the content does not take up the entire screen, leading to the offline message not being at the bottom.

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

We should let the content take up the entire screen.

<View style={[styles.flex1]}>
	{_.map(privateNotes, (item, index) => getMenuItem(item, index))}
</View>

What alternative solutions did you explore? (Optional)

N/A

@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

Triggered auto assignment to @kadiealexander (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor and removed Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 16, 2023
@melvin-bot melvin-bot bot changed the title Dev: mWeb - Offline message not positioned at bottom in private notes [$500] Dev: mWeb - Offline message not positioned at bottom in private notes Sep 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

Job added to Upwork: https://www.upwork.com/jobs/~018108637756bc0d66

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

Current assignee @kadiealexander is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Sep 16, 2023

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

@dhairyasenjaliya
Copy link
Contributor

dhairyasenjaliya commented Sep 16, 2023

Proposal

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

  • Offline message not positioned at bottom in private notes

What is the root cause of that problem?

  • The root cause is we have not applied any flex property to content and also not wrapping content to any or that makes bottom indicator to visible without any height

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

Solution - 1

  • On the PrivateNotesListPage.js page we should wrap the content with <Scrollview> as it will be consistent across the app
  • This solution is preferable as we have checklist that every new page should content should be scrollable
  • At this time non other proposal suggest this 

  • 
checklist 

 If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
Screenshot 2023-09-18 at 10 49 17 AM

Solution -2

  • On the PrivateNotesListPage.js page we should wrap the content with <View> and provide flex:1 property

What alternative solutions did you explore? (Optional)

  • N/A
    ———————

@melvin-bot melvin-bot bot added the Overdue label Sep 19, 2023
@kadiealexander
Copy link
Contributor

@eVoloshchak any thoughts on the proposal above?

@melvin-bot melvin-bot bot removed the Overdue label Sep 20, 2023
@eVoloshchak
Copy link
Contributor

I think we should proceed with @dhairyasenjaliya's proposal

The point about the page needing ScrollView is absolutely correct, currently if there are more notes that can fit into a screen, there is no way to scroll them
Good job spotting that @dhairyasenjaliya!

🎀👀🎀 C+ reviewed!

@melvin-bot
Copy link

melvin-bot bot commented Sep 21, 2023

Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Sep 23, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Sep 23, 2023
@eVoloshchak
Copy link
Contributor

Not overdue, waiting on @marcochavezf's review of this

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 23, 2023
@marcochavezf
Copy link
Contributor

marcochavezf commented Sep 26, 2023

Assigning @dhairyasenjaliya 🚀

@melvin-bot
Copy link

melvin-bot bot commented Sep 28, 2023

🎯 ⚡️ Woah @eVoloshchak / @dhairyasenjaliya, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @dhairyasenjaliya got assigned: 2023-09-26 14:17:17 Z
  • when the PR got merged: 2023-09-28 03:26:07 UTC

On to the next one 🚀

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 2, 2023
@melvin-bot melvin-bot bot changed the title [$500] Dev: mWeb - Offline message not positioned at bottom in private notes [HOLD for payment 2023-10-09] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes Oct 2, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Oct 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Oct 2, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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 2023-10-09. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 Daily KSv2 labels Oct 9, 2023
@kadiealexander
Copy link
Contributor

kadiealexander commented Oct 10, 2023

Payouts due:

Eligible for 50% #urgency bonus? Yes

Upwork job is here.

@kadiealexander
Copy link
Contributor

kadiealexander commented Oct 10, 2023

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:

@kadiealexander kadiealexander changed the title [HOLD for payment 2023-10-09] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes [HOLD for BugZero checklist and C+ payment via Newdot] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes Oct 10, 2023
@eVoloshchak
Copy link
Contributor

  • The PR that introduced the bug has been identified. Link to the PR: Add private notes feature to newDot #25761
  • 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: https://github.com/Expensify/App/pull/25761/files#r1355474009
  • 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: there's already a reviewer checklist item to catch exactly these types of bugs, I don't think an additional discussion is needed

@eVoloshchak
Copy link
Contributor

Regression Test Proposal

  1. Create a workspace if not created
  2. Go to #admins
  3. Click on header
  4. Go to Private notes
  5. Turn off internet connection
  6. Verify that offline indicator is be displayed at the bottom of the page

Do we agree 👍 or 👎

@eVoloshchak
Copy link
Contributor

Contributor: $500 @dhairyasenjaliya
Contributor+: $500 @eVoloshchak

@kadiealexander, shouldn't it be $750 if the bonus is applied?

@kadiealexander
Copy link
Contributor

Updated.

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2023
@kadiealexander kadiealexander changed the title [HOLD for BugZero checklist and C+ payment via Newdot] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes [HOLD for C+ payment via Newdot] [$500] Dev: mWeb - Offline message not positioned at bottom in private notes Oct 17, 2023
@kadiealexander kadiealexander added Monthly KSv2 and removed Daily KSv2 labels Oct 17, 2023
@eVoloshchak
Copy link
Contributor

Thanks!
Requested the payment

@JmillsExpensify
Copy link

$750 payment approved for @eVoloshchak based on correct BZ summary.

@eVoloshchak
Copy link
Contributor

@kadiealexander, this one can be closed I think

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 External Added to denote the issue can be worked on by a contributor Monthly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants