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

[$500] Tag - "Show more" button does not expand the list when clicked on #34761

Closed
4 of 6 tasks
kbecciv opened this issue Jan 18, 2024 · 17 comments
Closed
4 of 6 tasks

[$500] Tag - "Show more" button does not expand the list when clicked on #34761

kbecciv opened this issue Jan 18, 2024 · 17 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@kbecciv
Copy link

kbecciv commented Jan 18, 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.27-1
Reproducible in staging?: y
Reproducible in production?: y
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal team
Slack conversation:

Action Performed:

Precondition: User is an employee of a Collect workspace that has 700 tags.

  1. Navigate to workspace chat as employee.
  2. Open manual request page.
  3. Enter amount > Next > Show more.
  4. Click Tag.
  5. Scroll down to the bottom.
  6. Click Show more.

Expected Result:

The list will expand.

Actual Result:

Nothing happens when clicking on Show more. This issue also happens in contact selection list when the list is long enough.

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

Bug6346915_1705605433972.20240119_012658.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014922c638cdf27d55
  • Upwork Job ID: 1748068834384871424
  • Last Price Increase: 2024-01-18
  • Automatic offers:
    • Ollyws | Reviewer | 28117886
    • abzokhattab | Contributor | 28117888
@kbecciv kbecciv added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 18, 2024
@melvin-bot melvin-bot bot changed the title Tag - "Show more" button does not expand the list when clicked on [$500] Tag - "Show more" button does not expand the list when clicked on Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

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

Copy link

melvin-bot bot commented Jan 18, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014922c638cdf27d55

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 18, 2024
Copy link

melvin-bot bot commented Jan 18, 2024

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

@kbecciv
Copy link
Author

kbecciv commented Jan 18, 2024

@greg-schroeder - #wave6-collect-submitters

@gijoe0295
Copy link
Contributor

gijoe0295 commented Jan 18, 2024

Proposal

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

"Show more" button does not trigger on press.

What is the root cause of that problem?

SectionList's ListFooterComponent receives a component while renderFooterContent is a function.

ListFooterComponent={renderFooterContent}

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

We need to manually call renderFooterContent() before passing to ListFooterComponent here.

ListFooterComponent={renderFooterContent()}

What alternative solutions did you explore? (Optional)

NA

Result

Screen.Recording.2024-01-19.at.03.39.56-compressed.mov

@abzokhattab
Copy link
Contributor

abzokhattab commented Jan 18, 2024

Proposal

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

"Show more" button does not trigger on press.

What is the root cause of that problem?

we wrongly pass the footer content as a function, not components values here:

That is why the OptionsList parses it as a function not react components:

renderFooterContent={() =>
shouldShowShowMoreButton && (
<ShowMoreButton
containerStyle={{...this.props.themeStyles.mt2, ...this.props.themeStyles.mb5}}
currentCount={CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * this.state.paginationPage}
totalCount={this.state.allOptions.length}
onPress={this.incrementPage}
/>
)
}
/>
);

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

we need to change it to:

       renderFooterContent={
                    shouldShowShowMoreButton && (
                        <ShowMoreButton
                            containerStyle={{...this.props.themeStyles.mt2, ...this.props.themeStyles.mb5}}
                            currentCount={CONST.MAX_OPTIONS_SELECTOR_PAGE_LENGTH * this.state.paginationPage}
                            totalCount={this.state.allOptions.length}
                            onPress={this.incrementPage}
                        />
                    )
                }

@Pujan92
Copy link
Contributor

Pujan92 commented Jan 18, 2024

SectionList's ListFooterComponent receives a component while renderFooterContent is a function.

Not sure then how #31447 was working.

@bernhardoj
Copy link
Contributor

This is a regression from #32464. They add a focusin and out listener which will update disableEnterShortCut state. Every time we press down the button, the focusin is triggered and causes the show more button to remount and mount again because we pass it as an inline component, so the click is never registered.

@melvin-bot melvin-bot bot added the Overdue label Jan 22, 2024
@Ollyws
Copy link
Contributor

Ollyws commented Jan 22, 2024

@abzokhattab's proposal LGTM.
🎀👀🎀 C+ reviewed

@puneetlath
Copy link
Contributor

Sounds good to me.

@melvin-bot melvin-bot bot removed the Overdue label Jan 23, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 23, 2024
Copy link

melvin-bot bot commented Jan 23, 2024

📣 @Ollyws 🎉 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

Copy link

melvin-bot bot commented Jan 23, 2024

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

@abzokhattab abzokhattab mentioned this issue Jan 27, 2024
58 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jan 27, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Feb 20, 2024
Copy link

melvin-bot bot commented Feb 20, 2024

This issue has not been updated in over 15 days. @puneetlath, @Ollyws, @abzokhattab eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@puneetlath
Copy link
Contributor

Whoops, looks like the automation failed on this one and @abzokhattab and @Ollyws need to be paid.

@puneetlath
Copy link
Contributor

@abzokhattab was paid.

@Ollyws you need to accept the offer: https://www.upwork.com/nx/wm/offer/28117886

@Ollyws
Copy link
Contributor

Ollyws commented Feb 20, 2024

Accepted, thanks!

@puneetlath
Copy link
Contributor

All paid. Thanks y'all!

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

No branches or pull requests

7 participants