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

[CRITICAL] [VIP-Travel] [HOLD for payment 2024-05-16] Add Terms and Conditions Modal (NewDot) #37102

Closed
stitesExpensify opened this issue Feb 22, 2024 · 16 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2

Comments

@stitesExpensify
Copy link
Contributor

stitesExpensify commented Feb 22, 2024

VIP-Travel Implementation Issue

Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: https://github.com/orgs/Expensify/projects/112/views/1?layout=board
Relevant Design Doc Section:

Feature Description

  1. Create a new Right Hand Modal (screen) for our travel Terms and Conditions
  2. Create a new action for AcceptTravelTerms
2024-02-22_12-58-51 2024-02-22_12-59-00
Detailed Instructions A new page, TravelTerms.ts will be created in src/pages/Travel: If the user is not on the travel beta, we’ll display a [blocking View ](https://github.com/Expensify/App/blob/main/src/components/BlockingViews/FullPageNotFoundView.tsx)instead It will include a [HeaderWithBackButton](https://github.com/Expensify/App/blob/main/src/components/HeaderWithBackButton/index.tsx) component with “Before we continue…” as the title. It will include the text displayed above (hyperlinks TBD) and a [checkboxWithLabel](https://github.com/Expensify/App/blob/main/src/components/CheckboxWithLabel.tsx) component for the user to agree with the terms. Lastly, it will include a (disabled until the checkbox is checked) as shown above: On click, it will call a new command, [AcceptTravelTerms](https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit?pli=1#bookmark=id.1b1k3v847xja), to update NVP.travelSettings.hasAcceptedTerms or provision the workspace, and redirect the user to travel.expensify.com. If network.isOffline is true, it will be disabled, and the usual “You appear to be offline” message will display below.

Manual Test Steps

  1. Log in on a new account
  2. Create a workspace
  3. Go to travel
  4. Click the book travel button
  5. Make sure the T&C appears
  6. Make sure that if you don't check the box you cannot accept t&c
  7. Accept the T&C
  8. Look at the network request and ensure that we returned new policy and user data for the newly provisioned accounts

Automated Tests

Test for AcceptTravelTerms action

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013a02f3de0cecfaf7
  • Upwork Job ID: 1760758341962240000
  • Last Price Increase: 2024-02-22

Routes table:
https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit#bookmark=id.gn6jbl2udlnx

@stitesExpensify stitesExpensify added Engineering Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. labels Feb 22, 2024
Copy link

melvin-bot bot commented Feb 22, 2024

Job added to Upwork: https://www.upwork.com/jobs/~013a02f3de0cecfaf7

Copy link

melvin-bot bot commented Feb 22, 2024

Triggered auto assignment to Contributor Plus for review of internal employee PR - @mananjadhav (Internal)

Copy link

melvin-bot bot commented Feb 22, 2024

@stitesExpensify
Copy link
Contributor Author

Re-assigning this to Ted since he is curating this implementation. Also temporarily removing c+ since this project has not started yet

@flaviadefaria flaviadefaria moved this to Critical in [#whatsnext] #travel Feb 27, 2024
@flaviadefaria flaviadefaria changed the title [VIP-Travel] Add Terms and Conditions Modal (NewDot) [CRITICAL] [VIP-Travel] Add Terms and Conditions Modal (NewDot) Feb 28, 2024
@melvin-bot melvin-bot bot added the Overdue label Mar 4, 2024
@cdOut
Copy link
Contributor

cdOut commented Mar 4, 2024

Hello, I'm Tymoteusz Kałuzieński from Software Mansion, the expert agency, and I'd like to work on this task.

@twisterdotcom
Copy link
Contributor

Great! Assigned you @cdOut

@shubham1206agra
Copy link
Contributor

@twisterdotcom Please assign me here too.

@cdOut
Copy link
Contributor

cdOut commented Mar 18, 2024

As an update, I’ll be creating a draft PR for this feature and also the main travel page today.

@twisterdotcom
Copy link
Contributor

Possible we'll hold this and not requie a ToS interstitial: https://expensify.slack.com/archives/C05S5EV2JTX/p1711726076366499

@melvin-bot melvin-bot bot removed the Overdue label Apr 3, 2024
@twisterdotcom
Copy link
Contributor

See PR comment here: #38469 (comment)

@melvin-bot melvin-bot bot added the Overdue label Apr 19, 2024
@twisterdotcom
Copy link
Contributor

Can we make this ready for review yet @cdOut? The URL for the travel terms will be use.expensify.com/travelterms

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2024
@cdOut
Copy link
Contributor

cdOut commented Apr 23, 2024

@twisterdotcom We'll prioritize on pushing this through review.

@rushatgabhane
Copy link
Member

all set. PR merged

@twisterdotcom
Copy link
Contributor

This is on Prod right? We just need to pay out @rushatgabhane and @shubham1206agra now I think?

@twisterdotcom twisterdotcom changed the title [CRITICAL] [VIP-Travel] Add Terms and Conditions Modal (NewDot) [CRITICAL] [VIP-Travel] [HOLD for payment 2024-05-16] Add Terms and Conditions Modal (NewDot) May 14, 2024
@twisterdotcom twisterdotcom added the Awaiting Payment Auto-added when associated PR is deployed to production label May 14, 2024
@twisterdotcom
Copy link
Contributor

Payment Summary:

@github-project-automation github-project-automation bot moved this from Critical - V1 to Done in [#whatsnext] #travel May 17, 2024
@JmillsExpensify
Copy link

$500 approved for @rushatgabhane

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 Engineering Internal Requires API changes or must be handled by Expensify staff NewFeature Something to build that is a new item. Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

9 participants