Skip to content

[$500] iOS - Chat - 'Hmm its not here' page glitches on opening without access conversation #36411

Closed

Description

@izarutskaya

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.40-0
Reproducible in staging?: Y
Reproducible in production?: Y
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation:

Action Performed:

  1. Open the app
  2. Open any chat
  3. Send link of chat you don't have access to eg: https://staging.new.expensify.com/r/1234
  4. Observe that 'Hmm its not here' page glitches i.e. 'Hmm its not here' text stays in place but image and 'You don't have access to this chat' text slides down

Expected Result:

'Hmm its not here' page should not glitch on opening non authorized chat

Actual Result:

'Hmm its not here' page glitches on opening non authorized chat

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

Bug6377991_1707825684811.RPReplay_Final1707804499.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a21cace63ee69074
  • Upwork Job ID: 1757389808519114752
  • Last Price Increase: 2024-02-20
  • Automatic offers:
    • situchan | Reviewer | 0
    • bernhardoj | Contributor | 0

Activity

  1. added
    External
    Daily
    Bug
    on Feb 13, 2024
  2. changed the title [-]iOS - Chat - 'Hmm its not here' page glitches on opening without access conversation[/-] [+][$500] iOS - Chat - 'Hmm its not here' page glitches on opening without access conversation[/+] on Feb 13, 2024
  3. melvin-bot commented on Feb 13, 2024

    @melvin-bot
  4. added
    Help Wanted
    on Feb 13, 2024
  5. melvin-bot commented on Feb 13, 2024

    @melvin-bot

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

  6. melvin-bot commented on Feb 13, 2024

    @melvin-bot

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

  7. izarutskaya commented on Feb 13, 2024

    @izarutskaya
    Author

    We think that this bug might be related to #vip-vsb
    CC @quinthar

  8. eucool commented on Feb 13, 2024

    @eucool
    Contributor

    Proposal

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

    Chat - 'Hmm its not here' page glitches on opening without access conversation

    What is the root cause of that problem?

    In blockingView component, we have defined the style of title:

    <Text style={[styles.notFoundTextHeader]}>{title}</Text>

    In here, we have defined default marginTop and marginBottom so the text sticks to the allocated position:

    App/src/styles/index.ts

    Lines 2355 to 2363 in a3943ac

    notFoundTextHeader: {
    ...headlineFont,
    color: theme.heading,
    fontSize: variables.fontSizeXLarge,
    lineHeight: variables.lineHeightXXLarge,
    marginTop: 20,
    marginBottom: 8,
    textAlign: 'center',
    },

    Whereas for the no access text, we don't have any margin associated with it:
    <View style={[styles.alignItemsCenter, styles.justifyContentCenter]}>{renderContent()}</View>

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

    Remove the margin and pass justifyContentCenter to the style, the new style would be:

     notFoundTextHeader: { 
         ...headlineFont, 
         color: theme.heading, 
         fontSize: variables.fontSizeXLarge, 
         lineHeight: variables.lineHeightXXLarge, 
         textAlign: 'center', 
         ...flex.alignItemsCenter,
         ...flex.justifyContentCenter,
     },

    What alternative solutions did you explore? (Optional)

    N/A

    Note: Design team can provide more inputs on the exact style of the title

  9. bernhardoj commented on Feb 13, 2024

    @bernhardoj
    Contributor

    Proposal

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

    The not found page looks glitchy when the not found page shows and the keyboard hides.

    What is the root cause of that problem?

    The reason it looks glitchy is that the it's not here title doesn't animate when the keyboard hides while the others (image and subtitle) animates. This can be noticed when we slow down the video. If we compare the title and subtitle component, we can notice that the subtitle is wrapped with a view.

    <Text style={[styles.notFoundTextHeader]}>{title}</Text>
    {shouldEmbedLinkWithSubtitle ? (
    <Text style={[styles.textAlignCenter]}>{renderContent()}</Text>
    ) : (
    <View style={[styles.alignItemsCenter, styles.justifyContentCenter]}>{renderContent()}</View>
    )}

    While testing, I found out that the text will animates the position when the keyboard shows if it's wrapped with a view. You can test this on a react native sandbox with a KeyboardAvoidingView component.

    But BlockingView already have a view wrapper here

    <View style={[styles.flex1, styles.alignItemsCenter, styles.justifyContentCenter, styles.ph10]}>
    <Icon
    src={icon}
    fill={iconColor}
    width={iconWidth}
    height={iconHeight}
    />
    <Text style={[styles.notFoundTextHeader]}>{title}</Text>

    so, I try to find more information and found this comment from reddit that we need to make sure the view doesn't resize when the keyboard shows, which happens in our case.

    We can conclude that the text won't animate if the view wrapper resizes when keyboard shows.

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

    We can wrap this with another view

    <Text style={[styles.notFoundTextHeader]}>{title}</Text>
    {shouldEmbedLinkWithSubtitle ? (
    <Text style={[styles.textAlignCenter]}>{renderContent()}</Text>
    ) : (
    <View style={[styles.alignItemsCenter, styles.justifyContentCenter]}>{renderContent()}</View>
    )}

    (or only wrap the text title)

    Screen.Recording.2024-02-14.at.00.45.52.mov

    (the red box is a dummy input, the blue box is the root view that resizes when keyboard shows)

  10. situchan commented on Feb 15, 2024

    @situchan
    Contributor

    Proposals are in review.
    Also open for more proposals.

  11. 13 remaining items

  12. melvin-bot commented on Feb 20, 2024

    @melvin-bot

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

  13. removed
    Help Wanted
    on Feb 20, 2024
  14. melvin-bot commented on Feb 20, 2024

    @melvin-bot

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

    Offer link
    Upwork job

  15. melvin-bot commented on Feb 20, 2024

    @melvin-bot

    📣 @bernhardoj 🎉 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 📖

  16. added
    Reviewing
    Weekly
    and removed
    Daily
    on Feb 21, 2024
  17. bernhardoj commented on Feb 21, 2024

    @bernhardoj
    Contributor

    PR is ready

    cc: @situchan

  18. situchan commented on Mar 6, 2024

    @situchan
    Contributor

    PR was deployed to production on Feb 28

  19. JmillsExpensify commented on Mar 22, 2024

    @JmillsExpensify
    Contributor

    Circling back on payments. Summary:

  20. JmillsExpensify commented on Mar 22, 2024

    @JmillsExpensify
    Contributor

    In the meantime, @situchan what about the BZ checklist?

  21. situchan commented on Mar 22, 2024

    @situchan
    Contributor

    No regression. This existed for long time.
    This is not worth adding regression test as minor UI glitch only on iOS, not affecting users.

  22. JmillsExpensify commented on Mar 22, 2024

    @JmillsExpensify
    Contributor

    All contributors paid out and no regression test. I'm closing this issue!

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

Metadata

Metadata

Labels

BugExternalReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions