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 2024-06-20] [HOLD for payment 2024-06-18] [MEDIUM] Create new Trip Room #37825

Closed
stitesExpensify opened this issue Mar 6, 2024 · 47 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@stitesExpensify
Copy link
Contributor

stitesExpensify commented Mar 6, 2024

VIP-Travel Implementation Issue

Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: https://github.com/orgs/Expensify/projects/112/
Relevant Design Doc Section: https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit#bookmark=id.g77lx534xj1g

2024-03-06_07-50-59

A new component, TripDetailsView will be created in src/components/ReportActionItem:

  • It will display and behave mimicking MoneyReportView’s behavior.
  • A new chat type, ​​POLICY_TRIP_ROOM, will be added to CONST.ts.
  • A new helper function, isTripRoom(report) will be added to ReportUtils. It will return true if the provided report type is CONST.REPORT.TYPE.CHAT, and the chat type is the new CONST.REPORT.CHAT_TYPE.​​POLICY_TRIP_ROOM
  • It will be displayed from ReportActionItem if isTripRoom returns true.
  • It will take the associated expense report as parameter and:
  • Use the new getTripTransactions function to retrieve all transactions with trip data to display.
  • Display them as shown above using the existing MenuItemWithTopDescription like we do for money reports.
  • On click, it will open the trip details panel via a new route, ROUTES.TRAVEL_DETAILS

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

Issue OwnerCurrent Issue Owner: @twisterdotcom
@WojtekBoman
Copy link
Contributor

Hey! I’m Wojtek from Software Mansion, the expert agency, and I’d like to work on this issue.

@twisterdotcom
Copy link
Contributor

Adding a C+ here for Travel reviews: @shubham1206agra

@twisterdotcom
Copy link
Contributor

Only assigned on Friday. We can give them a day here Melvin.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 11, 2024
Copy link

melvin-bot bot commented Mar 14, 2024

@twisterdotcom, @WojtekBoman, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@twisterdotcom
Copy link
Contributor

Are we waiting on anything internal here?

@melvin-bot melvin-bot bot removed the Overdue label Mar 14, 2024
@smelaa
Copy link
Contributor

smelaa commented Mar 15, 2024

Hi! I'm Aleksandra from Software Mansion, the expert agency, and I would like to take it over from Wojtek and work on this issue.

@twisterdotcom
Copy link
Contributor

@smelaa only assigned on Friday.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 18, 2024
@WojtekBoman
Copy link
Contributor

WojtekBoman commented Mar 25, 2024

@twisterdotcom @shawnborton @dannymcclain @stitesExpensify
Hi! I have some questions regarding this issue :) I've marked on the screenshot elements related to the questions below.

  1. What should the rows with travel details look like when hovering over these elements? I'm specifically asking about the background color of the icon, I'm also attaching a screenshot showing the current hover style of this element.
  2. I need to know the logic for displaying date text. Could you please give me similar examples as here for different years, months etc?
  3. Which field from this data structure should be used to display this text (record locator)? If it's not known yet, can we adjust it once the backend is ready?
Screenshot 2024-03-25 at 16 28 43 Screenshot 2024-03-25 at 16 55 57

@melvin-bot melvin-bot bot removed the Overdue label Mar 25, 2024
@shawnborton
Copy link
Contributor

We have a value in our color system for rowHover, which is product300. If you use that, we shouldn't get any collisions with the icon BG color:
CleanShot 2024-03-25 at 12 27 21@2x

@WojtekBoman
Copy link
Contributor

@shawnborton @dannymcclain

I need to know the logic for displaying date text. Could you please give me similar examples as here for different years, months etc?

Could you take a look at it when you have time? :)

@dannymcclain
Copy link
Contributor

I would just use the same? Not sure why they would be different. Will definitely let Shawn weigh in too, but I can't think of a reason for them using different date formatting.

@shawnborton
Copy link
Contributor

Yeah that's my thinking too. I think if you are looking at a date that has a year other than the current year we are in, it should show the year. But if you are looking at a date within the current year, no need to show the year.

@WojtekBoman
Copy link
Contributor

Ok, I asked because I had noticed on the designs that the date text also includes the day name, flight time, etc. and I was wondering if I could apply the same rules for date text displaying which was used for TripRoomPreview.

@shawnborton
Copy link
Contributor

Oh, are you asking about the date here for instance?
CleanShot 2024-03-26 at 10 29 39@2x

@melvin-bot melvin-bot bot added the Weekly KSv2 label May 6, 2024
@rushatgabhane
Copy link
Member

rushatgabhane commented May 21, 2024

Updates here - https://expensify.slack.com/archives/C05S5EV2JTX/p1716196862504789?thread_ts=1715723531.626149&cid=C05S5EV2JTX

waiting for car pickup address from backend

@rushatgabhane
Copy link
Member

@shubham1206agra this is ready for your review. There are a few backend issues here and here but it shouldn't block anything.

Copy link

melvin-bot bot commented May 28, 2024

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

@twisterdotcom twisterdotcom moved this from Critical - V1 to High - V1.5 and V2.0 in [#whatsnext] #travel 2025-02-01 - External Commit May 29, 2024
@twisterdotcom twisterdotcom changed the title [CRITICAL] [VIP-Travel] Create new Trip Room [MEDIUM] Create new Trip Room May 29, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 11, 2024
@melvin-bot melvin-bot bot changed the title [MEDIUM] Create new Trip Room [HOLD for payment 2024-06-18] [MEDIUM] Create new Trip Room Jun 11, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 11, 2024
Copy link

melvin-bot bot commented Jun 11, 2024

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

Copy link

melvin-bot bot commented Jun 11, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.81-11 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 2024-06-18. 🎊

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jun 13, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-06-18] [MEDIUM] Create new Trip Room [HOLD for payment 2024-06-20] [HOLD for payment 2024-06-18] [MEDIUM] Create new Trip Room Jun 13, 2024
Copy link

melvin-bot bot commented Jun 13, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.82-4 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 2024-06-20. 🎊

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

@rushatgabhane
Copy link
Member

rushatgabhane commented Jun 16, 2024

PR hit production 5 days ago.

@rushatgabhane
Copy link
Member

rushatgabhane commented Jun 16, 2024

@shubham1206agra please complete checklist for this one to add regression steps for a new feature.

@shubham1206agra
Copy link
Contributor

@rushatgabhane New feature. No need for a checklist here. I believe tests are being handled separately in the doc.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 18, 2024
@rushatgabhane
Copy link
Member

@twisterdotcom could you please attach payment summary 🙇

@twisterdotcom
Copy link
Contributor

Payment Summary: ($500 as originally this was CRITICAL):

@shubham1206agra
Copy link
Contributor

@twisterdotcom Offer accepted

@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 Daily KSv2 Engineering
Development

No branches or pull requests

10 participants