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

[MEDIUM] Create new Trip Room #37825

Open
stitesExpensify opened this issue Mar 6, 2024 · 37 comments
Open

[MEDIUM] Create new Trip Room #37825

stitesExpensify opened this issue Mar 6, 2024 · 37 comments
Assignees
Labels
Engineering Reviewing Has a PR in review Weekly KSv2

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

@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

@WojtekBoman
Copy link
Contributor

Exactly :)

@shawnborton
Copy link
Contributor

Okay I also think I was showing a bad mock - this is from the design doc where the date is on the top:
CleanShot 2024-03-26 at 10 34 06@2x

And I do think the day name is a nice touch there.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 15, 2024
@twisterdotcom
Copy link
Contributor

Spotnana thread for backend updates here: https://expensify.slack.com/archives/C066REXJ9D3/p1713220956933639

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 18, 2024
@twisterdotcom
Copy link
Contributor

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 22, 2024
Copy link

melvin-bot bot commented Apr 25, 2024

@twisterdotcom, @WojtekBoman, @shubham1206agra, @smelaa Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@twisterdotcom
Copy link
Contributor

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 25, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

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

@twisterdotcom
Copy link
Contributor

Update here: https://expensify.slack.com/archives/C05S5EV2JTX/p1714431147318139. Waiting on Spotnana.

@twisterdotcom
Copy link
Contributor

@rushatgabhane has a PR above.

@melvin-bot melvin-bot bot removed the Overdue label May 3, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels 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 changed the title [CRITICAL] [VIP-Travel] Create new Trip Room [MEDIUM] Create new Trip Room May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Reviewing Has a PR in review Weekly KSv2
Projects
Status: Medium - V1.5
Development

No branches or pull requests

9 participants