Skip to content

[HOLD for payment 2023-10-02] [$500] Web - Private Notes - Header is blur while the page is loading. #27685

Closed

Description

@kbecciv

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. Go to any report.
  2. Click on the Report Details => Private Notes.
  3. Verify that the Header is blur while the page is loading.

Expected Result:

The header should be clearly visible while the page is loading

Actual Result:

he header is blur while the page is loading.

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: 1.3.71.4
Reproducible in staging?: y
Reproducible in production?: new feature
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.2023-09-17.at.09.52.42.mov
Recording.4568.mp4

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fa74e845c90b0078
  • Upwork Job ID: 1703786341303091200
  • Last Price Increase: 2023-09-18
  • Automatic offers:
    • jjcoffee | Reviewer | 26790081
    • hungvu193 | Contributor | 26790083
    • hungvu193 | Reporter | 26790085

Activity

  1. added
    ExternalAdded to denote the issue can be worked on by a contributor
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 18, 2023
  2. changed the title [-]Web - Private Notes - Header is blur while the page is loading.[/-] [+][$500] Web - Private Notes - Header is blur while the page is loading.[/+] on Sep 18, 2023
  3. melvin-bot commented on Sep 18, 2023

    @melvin-bot

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

  4. melvin-bot commented on Sep 18, 2023

    @melvin-bot
  5. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Sep 18, 2023
  6. melvin-bot commented on Sep 18, 2023

    @melvin-bot

    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
  7. melvin-bot commented on Sep 18, 2023

    @melvin-bot

    Triggered auto assignment to @anmurali (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

  8. melvin-bot commented on Sep 18, 2023

    @melvin-bot

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

  9. kbecciv commented on Sep 18, 2023

    @kbecciv
    Author

    Issue reported by: @hungvu193
    Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694919130569099

    Proposal

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

    Private Notes - Header is blur while the page is loading which make it inconsistency with other pages that have loading.

    What is the root cause of that problem?

    We're using FullScreenLoadingIndicator while the page is loading here, since it use StyleSheet.absoluteFillObject which caused the issue.

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

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

    We should add style style={[styles.flex1, styles.pRelative]} for our FullScreenLoadingIndicator.

    What alternative solutions did you explore? (Optional)

    Incase we didn't want to show the header while loading, we can make FullScreenLoadingIndicator as a return early:

    if (report.isLoadingPrivateNotes && _.isEmpty(lodashGet(report, 'privateNotes', {}))) {
      return  <FullScreenLoadingIndicator />;
    }
    
    return (
    ....
    );
  10. PiyushChandra17 commented on Sep 18, 2023

    @PiyushChandra17
    Contributor

    Proposal

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

    Private Notes - Header is blur while the page is loading

    What is the root cause of that problem?

    We are using <FullScreenLoadingIndicator /> while the Private Notes page is loading, and it's styling is causing delays in rendering the header ie. StyleSheet.absoluteFillObject

    {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 to remove StyleSheet.absoluteFillObject and add styles.flex1 here:

    <View style={[StyleSheet.absoluteFillObject, styles.fullScreenLoading, ...additionalStyles]}>

    What alternative solutions did you explore? (Optional)

    NA

    Result:

    Screen.Recording.2023-09-18.at.10.27.28.PM.mov
  11. 26 remaining items

  12. anmurali commented on Oct 4, 2023

    @anmurali

    Everyone's been paid.

  13. removed their assignment
    on Oct 4, 2023
  14. melvin-bot commented on Oct 9, 2023

    @melvin-bot

    @Li357, @anmurali, @hungvu193, @jjcoffee Huh... This is 4 days overdue. Who can take care of this?

  15. jjcoffee commented on Oct 9, 2023

    @jjcoffee
    Contributor
    • The PR that introduced the bug has been identified. Link to the PR: N/A behaviour has always been there.
    • 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 should've been caught in QA
    • Determine if we should create a regression test for this bug. No - I don't think it's worthwhile (it could happen on any screen really)
    • 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. N/A
  16. jjcoffee commented on Oct 9, 2023

    @jjcoffee
    Contributor

    @anmurali Checklist complete, you're welcome to close!

  17. melvin-bot commented on Oct 13, 2023

    @melvin-bot

    @Li357, @anmurali, @hungvu193, @jjcoffee Whoops! This issue is 2 days overdue. Let's get this updated quick!

  18. melvin-bot commented on Oct 17, 2023

    @melvin-bot

    @Li357, @anmurali, @hungvu193, @jjcoffee 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  19. Li357 commented on Oct 17, 2023

    @Li357
    Contributor

    Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions