Skip to content

[Pay on 6/16] [$250] Inconsistent position of the maximum number of participants reached message on different screens - reported by @adeel0202 #8847

Closed

Description

@mvtglobally

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. Press + icon
  2. Select New group
  3. Choose 8 participants
  4. Observe that the maximum number of participants reached message is on top
  5. Press + icon
  6. Select Split bill
  7. Enter any amount and press Next
  8. Choose 8 participants
  9. Observe that the maximum number of participants reached message is on bottom

Expected Result:

The position of maximum number of participants reached message should be consistent

Actual Result:

The position of maximum number of participants reached message is not consistent

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.1.57-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Split bill message
New group message

Expensify/Expensify Issue URL:
Issue reported by: @adeel0202
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1649272255080289

View all open jobs on GitHub

Activity

  1. melvin-bot commented on May 2, 2022

    @melvin-bot
  2. melvin-bot commented on May 2, 2022

    @melvin-bot
  3. melvin-bot commented on May 2, 2022

    @melvin-bot

    Triggered auto assignment to @johncschuster (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  4. removed
    AutoAssignerTriageAuto assign issues for triage to an available triage team member
    on May 2, 2022
  5. adeel0202 commented on May 2, 2022

    @adeel0202
    Contributor

    Proposal (If External)
    (Early as I reported the issue)

    On NewChatPage, we can remove maxParticipantsReached from line 221

    const headerMessage = OptionsListUtils.getHeaderMessage(
    (this.state.personalDetails.length + this.state.recentReports.length) !== 0,
    Boolean(this.state.userToInvite),
    this.state.searchValue,
    maxParticipantsReached,
    );

    And add the message text inside the FixedFooter component on line 271 like this

    {maxParticipantsReached && (
        <Text style={[styles.textLabelSupporting, styles.textAlignCenter, styles.mt1, styles.mb3]}>
            {this.props.translate('iou.maxParticipantsReached', {count: CONST.REPORT.MAXIMUM_PARTICIPANTS})}
        </Text>
    )}
    

    We can also move the iou.maxParticipantsReached to common.maxParticipantsReached, so that the same error message is used on New group chat screen and Split bill screen. This will require replacing iou.maxParticipantsReached to common.maxParticipantsReached on IOUParticipantsSplit's line 239 as well.

  6. Tushu17 commented on May 2, 2022

    @Tushu17
    Contributor

    Proposal

    We have different message for maximum group participants. so instead of using iou.maxParticipantsReached we should use messages.maxParticipantsReached.

    To solve the issue:-

    We can remove message from the header by removing line 221

    Boolean(this.state.userToInvite),
    this.state.searchValue,
    maxParticipantsReached,
    );

    then we just need to add

    {maxParticipantsReached && (
    <Text style={[styles.textLabelSupporting, styles.textAlignLeft, styles.mt1, styles.mb3]}> 
    {this.props.translate('messages.maxParticipantsReached')}
    </Text>
     )}
    

    below line 270

    {this.props.isGroupChat && lodashGet(this.state, 'selectedOptions', []).length > 0 && (
    <FixedFooter>
    <Button

  7. removed their assignment
    on May 2, 2022
  8. melvin-bot commented on May 2, 2022

    @melvin-bot

    Triggered auto assignment to @Beamanator (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  9. Beamanator commented on May 2, 2022

    @Beamanator
    Contributor

    Confirmed this bug currently exists 👍 Marking External

  10. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on May 2, 2022
  11. 25 remaining items

  12. mananjadhav commented on May 18, 2022

    @mananjadhav
    Collaborator

    Apologies for the delay @Beamanator

    @adeel0202's updated proposal #8847 (comment) is good to go

    🎀 👀 🎀
    C+ reviewed

  13. Beamanator commented on May 18, 2022

    @Beamanator
    Contributor

    Thanks @mananjadhav - I agree it looks great 👍

  14. removed
    Help WantedApply this label when an issue is open to proposals by contributors
    on May 18, 2022
  15. melvin-bot commented on May 18, 2022

    @melvin-bot

    📣 @adeel0202 You have been assigned to this job by @Beamanator!
    Please apply to this job in Upwork 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. adeel0202 commented on May 23, 2022

    @adeel0202
    Contributor

    @Beamanator, I'm getting errors on API calls in android and web (please refer to this thread). I can raise the PR but I will only be able to attach screenshots for iOS and desktop app. Will that work?
    cc: @mananjadhav

  17. adeel0202 commented on May 23, 2022

    @adeel0202
    Contributor

    Note: Since I'm already signed into the web app so I think I will be able to provide web screenshots too, however, I'm not signed into the android app and I get error while trying to sign in, so I won't be able to provide android screenshots.

  18. Beamanator commented on May 23, 2022

    @Beamanator
    Contributor

    @adeel0202 since this is a pretty small PR, I'm ok with that - @mananjadhav or I can test your PR on android 👍

  19. adeel0202 commented on May 24, 2022

    @adeel0202
    Contributor

    Thank you @Beamanator. I have raised the PR.

  20. mananjadhav commented on Jun 15, 2022

    @mananjadhav
    Collaborator

    @bfitzexpensify This deployed to production 6 days ago but its title for the payment hasn't changed.

    Also for me it seems the Upwork job is expired. Can you help with that please?

  21. changed the title [-][$250] Inconsistent position of the maximum number of participants reached message on different screens - reported by @adeel0202[/-] [+][Pay on 6/16] [$250] Inconsistent position of the maximum number of participants reached message on different screens - reported by @adeel0202[/+] on Jun 15, 2022
  22. bfitzexpensify commented on Jun 15, 2022

    @bfitzexpensify
    Contributor

    Thanks for letting me know! Updated the title to remind myself to process payment tomorrow.

  23. bfitzexpensify commented on Jun 16, 2022

    @bfitzexpensify
    Contributor

    Alright, contracts all paid out. Thanks for the work here!

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

Metadata

Metadata

Labels

EngineeringExternalAdded to denote the issue can be worked on by a contributorReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions