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

Search - "Invite a friend, get [amount]$" banner is not displayed on Search page #51004

Closed
2 of 8 tasks
IuliiaHerets opened this issue Oct 17, 2024 · 8 comments
Closed
2 of 8 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Hourly KSv2

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.0.50-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/5091856
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Log in to new dot with any account
  2. Press ctrl + k to open the search page
  3. Check the bottom of the user list

Expected Result:

There's a banner in the user list that says "Invite a friend, get [amount]$"

Actual Result:

There's no banner in the user list that says "Invite a friend, get [amount]$"

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6637357_1729151116845.2024-10-17_10_44_36.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Oct 17, 2024
Copy link

melvin-bot bot commented Oct 17, 2024

Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Oct 17, 2024

Triggered auto assignment to @dylanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Oct 17, 2024

💬 A slack conversation has been started in #expensify-open-source

@melvin-bot melvin-bot bot added the Daily KSv2 label Oct 17, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 17, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@abzokhattab
Copy link
Contributor

abzokhattab commented Oct 17, 2024

Proposal

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

Referral banner is not added to the new search modal

What is the root cause of that problem?

there is no footerContent added at the search router list that displays the the referral cta

return (
<SelectionList<OptionData | SearchQueryItem>
sections={sections}
onSelectRow={onSelectRow}
ListItem={SearchRouterItem}
containerStyle={[styles.mh100]}
sectionListStyle={[isSmallScreenWidth ? styles.ph5 : styles.ph2, styles.pb2]}
ref={ref}
showScrollIndicator={!isSmallScreenWidth}
/>

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

  • first of all we need to extend the ReferralProgramCTA props to have a new prop onPress this will be called when the user clicks on the referral here --> onPress?.();
  • then in the SearchRouterList, we should add:
const {isDismissed} = useDismissedReferralBanners({referralContentType: CONST.REFERRAL_PROGRAM.CONTENT_TYPES.REFER_FRIEND});
  • finally we need to add the footerContent to the SelectionList inside the SearchRouterList as following:
            footerContent={
                !isDismissed && (
                    <ReferralProgramCTA
                        referralContentType={CONST.REFERRAL_PROGRAM.CONTENT_TYPES.REFER_FRIEND}
                        onPress={() => {closeAndClearRouter()}}
                    />
                )
            }

POC:

Screen.Recording.2024-10-17.at.13.45.18.mov

What alternative solutions did you explore? (Optional)

@Nodebrute
Copy link
Contributor

This was intentionally removed in PR #49984 due to limited space. See the discussion here: https://github.com/Expensify/App/pull/49984/files#r1797615648.

@rayane-djouah
Copy link
Contributor

Yeah, this was intentionally removed
cc @luacmartins

@dylanexpensify
Copy link
Contributor

TY! Closing

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Oct 17, 2024
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. Engineering Hourly KSv2
Projects
None yet
Development

No branches or pull requests

7 participants