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

[HOLD for payment 2025-01-30] [$250] [New Feature] Add Guide booking link to #admins header #53764

Open
8 tasks
muttmuure opened this issue Dec 9, 2024 · 36 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Design External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2

Comments

@muttmuure
Copy link
Contributor

muttmuure commented Dec 9, 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: v9.0.73-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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: @muttmuure
Slack conversation (hyperlinked to channel name): https://expensify.slack.com/archives/C07HPDRELLD/p1732636200993259

Action Performed:

Open #admins room for Workspace

Expected Result:

See Guide/Account Manager booking link in header

Actual Result:

N/A (this is a new feature)

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

image

Just an idea

Add any screenshot/video evidence

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021869030905695211861
  • Upwork Job ID: 1869030905695211861
  • Last Price Increase: 2024-12-17
  • Automatic offers:
    • nkdengineer | Contributor | 105383951
Issue OwnerCurrent Issue Owner: @anmurali
@muttmuure muttmuure added Daily KSv2 NewFeature Something to build that is a new item. Bug Something is broken. Auto assigns a BugZero manager. labels Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

Triggered auto assignment to @anmurali (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 Dec 9, 2024

Triggered auto assignment to @joekaufmanexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Dec 9, 2024
Copy link

melvin-bot bot commented Dec 9, 2024

Triggered auto assignment to @dubielzyk-expensify (Design), see these Stack Overflow questions for more details.

@muttmuure
Copy link
Contributor Author

Adding the @Expensify/design label so we can discuss possible ways to improve the call booking link visibility

@ChavdaSachin
Copy link
Contributor

ChavdaSachin commented Dec 9, 2024

Edited by proposal-police: This proposal was edited at 2024-12-09 18:06:19 UTC.

Proposal

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

Add Guide booking link to #admins header

What is the root cause of that problem?

New Feature

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

Conditionally render Book A Demo button from HeaderView.tsx .

add following snippet here

    const shouldShowDemoButton = ReportUtils.isAdminRoom(report);
    const bookDemo = () => {
        Linking.openURL(CONST.BOOK_DEMO_URL);
    }

And conditionally render button here.

    {shouldShowDemoButton &&
        <Button
        success//Pass this prop based on design team's suggestion for theme
        onPress={bookDemo}
        icon={}//add  whatever icon design team suggests
        text={translate('common.bookDemo')}
        style={[shouldUseNarrowLayout && styles.flex1]}
        />
    }

</View>
{shouldDisplaySearchRouter && <SearchButton style={styles.ml2} />}

And add translations to en.ts and es.ts file and add url to consts.ts file(currently there is no direct url available for booking a general demo with team, url for travel demo is avilable).

And do some small UI adjustments as design team demands.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

NA

Result Option 1 (with success prop passed to the button)

Screenshot 2024-12-09 at 11 39 32 PM

Option 2 (without passing success prop to button)
Screenshot 2024-12-09 at 11 39 08 PM

### What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 9, 2024
@nkdengineer
Copy link
Contributor

nkdengineer commented Dec 9, 2024

Edited by proposal-police: This proposal was edited at 2024-12-10 05:18:29 UTC.

Proposal

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

Add Guide booking link to #admins header

What is the root cause of that problem?

New feature

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

After this PR, we can have a way to get the guide data. Here is an example guild data.

Screenshot 2024-12-05 at 15 44 30
  1. We should only show the Guide booking in the admin room that has the reportID as account.adminsRoomReportID and the link to open is the canlenderLink
const shouldShowGuideBooking = report?.reportID === account.adminRoomReportID && account.guildDetails.email;
const guideBookingButton = (
    <Button
        success
        text={translate('common.guideBooking')}
        onPress={() => {
            openExternalLink(account.canlenderLink)
        }}
        icon={Expensicons.CalendarSolid}
    />
);
  1. We need to add this button here for the large screen
{shouldShowGuideBooking && !shouldUseNarrowLayout && guideBookingButton}

<View style={[styles.reportOptions, styles.flexRow, styles.alignItemsCenter]}>

and here for the small screen

{!isLoading && shouldShowGuideBooking && shouldUseNarrowLayout && <View style={[styles.pb3, styles.ph5]}>{guideBookingButton}</View>}

{!isLoading && isChatUsedForOnboarding && shouldUseNarrowLayout && <View style={[styles.pb3, styles.ph5]}>{freeTrialButton}</View>}

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

It's a new UI, no need to add a test.

What alternative solutions did you explore? (Optional)

Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.

@shawnborton
Copy link
Contributor

We could just use a green button much like we do for the "Start a free trial" button on the Concierge view?
CleanShot 2024-12-09 at 15 16 16@2x

@dannymcclain
Copy link
Contributor

Will this live along side the early adoption discount?

@joekaufmanexpensify
Copy link
Contributor

Seems like I was assigned as a second BZ assignee on this issue. I don't think it needs two though, so going to unassign for now. LMK if there is anything I can help with though!

@joekaufmanexpensify joekaufmanexpensify removed their assignment Dec 9, 2024
@dubielzyk-expensify
Copy link
Contributor

Great Qs from the design team. Agree that the treatment Shawn is using is the right one and as long as early adoption discount isn't in the #admin room, then that could work.

image

@nkdengineer
Copy link
Contributor

@dubielzyk-expensify Is the icon is an existing icon in the App?

@dubielzyk-expensify
Copy link
Contributor

Yep. Here it is

@shawnborton
Copy link
Contributor

Mock looks great!

@shawnborton
Copy link
Contributor

@muttmuure at what point will we not show this button anymore? Once the user has taken a demo? Or once the user converts to a paid policy? Something else?

@muttmuure
Copy link
Contributor Author

I think once they convert to a paid policy makes the most sense.

@muttmuure
Copy link
Contributor Author

It's common for customers to take multiple demos

@dannymcclain
Copy link
Contributor

Mock looks good to me! Might want to show the mobile version too just for super ultra clarity.

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

melvin-bot bot commented Dec 17, 2024

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

@eh2077
Copy link
Contributor

eh2077 commented Dec 17, 2024

I think we can go with @nkdengineer 's proposal because their proposal is more thoughtful than the other one.

Note

#53764 (comment)

@muttmuure at what point will we not show this button anymore? Once the user has taken a demo? Or once the user converts to a paid policy? Something else?

I think once they convert to a paid policy makes the most sense.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Dec 17, 2024

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

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

melvin-bot bot commented Dec 18, 2024

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

@grgia
Copy link
Contributor

grgia commented Dec 18, 2024

Thanks for your proposal @nkdengineer, all yours!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Dec 20, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Jan 13, 2025
Copy link

melvin-bot bot commented Jan 13, 2025

This issue has not been updated in over 15 days. @anmurali, @grgia, @eh2077, @dubielzyk-expensify, @nkdengineer 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!

@grgia
Copy link
Contributor

grgia commented Jan 15, 2025

PR in final review

Copy link

melvin-bot bot commented Jan 21, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@Beamanator
Copy link
Contributor

@dubielzyk-expensify looks like the main PR has a small bug on very small screens - #55522 - can you let @nkdengineer know what the UI should look like on super small screens?

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Monthly KSv2 labels Jan 23, 2025
@melvin-bot melvin-bot bot changed the title [$250] [New Feature] Add Guide booking link to #admins header [HOLD for payment 2025-01-30] [$250] [New Feature] Add Guide booking link to #admins header Jan 23, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jan 23, 2025
Copy link

melvin-bot bot commented Jan 23, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jan 23, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.88-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2025-01-30. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jan 23, 2025

@eh2077 @anmurali @eh2077 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@dubielzyk-expensify
Copy link
Contributor

dubielzyk-expensify commented Jan 24, 2025

@dubielzyk-expensify looks like the main PR has a small bug on very small screens - #55522 - can you let @nkdengineer know what the UI should look like on super small screens?

Sorry for missing this one. Looks like Shawn and Danny already answered it though 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Design External Added to denote the issue can be worked on by a contributor NewFeature Something to build that is a new item. Weekly KSv2
Projects
Status: No status
Development

No branches or pull requests