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-28] [MEDIUM] Create Trip Room Preview #37826

Closed
stitesExpensify opened this issue Mar 6, 2024 · 58 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering 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.6c8m84z62q6z

This issue is for creating another new preview type, this time for trip rooms:
2024-03-06_08-39-00

  • A new component, TripRoomPreview will be created in src/components/ReportActionItem.
  • A new action type, ACTION_TRIPPREVIEW, will be added to CONST.ts.
  • If the report action is of the new type, which we will check in ReportActionItem.js, the new component will be displayed.
  • TripRoomPreview will mimic ReportPreview’s formatting and behavior with some notable changes:
    • We’ll display the room name under the total
  • Receipts will not be displayed.
  • Instead, a new helper function, getTripTransactions(expenseReportID) will be created in ReportUtils, and will return any transaction with travel details. We’ll display those details as shown in the mockup.
  • On click, it’ll take the user to the trip room via Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(reportID));
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 added Overdue and removed Overdue labels Mar 14, 2024
@twisterdotcom
Copy link
Contributor

Bump on that last Q today @WojtekBoman.

@melvin-bot melvin-bot bot removed the Overdue label Mar 18, 2024
@WojtekBoman
Copy link
Contributor

Sorry I was OOO, I'm currently waiting for a response from @stitesExpensify here

@WojtekBoman
Copy link
Contributor

@shawnborton How do we want to format the trip duration text when the start and end dates are in different months/years?
Screenshot 2024-03-19 at 14 41 54

@shawnborton
Copy link
Contributor

shawnborton commented Mar 19, 2024

Good question. Maybe we should standardize on something like:

  • Mar 17-20
  • Feb 28 to Mar 1
  • Dec 28, 2023 to Jan 5, 2024

When we do timestamps on messages in the product, we do the month abbreviation (Jan, Feb, Mar, etc) so I think we should stay consistent here too.

cc @Expensify/design @twisterdotcom @ryanschaffer @stitesExpensify for thoughts on that

@dannymcclain
Copy link
Contributor

I like the formats you've laid out.

@twisterdotcom
Copy link
Contributor

Agree with this. Why would we do:

Feb 28 to March 1

And not:

Feb 28 to Mar 1

@shawnborton
Copy link
Contributor

Totally agree, that was a typo on my part! Will update my comment.

@WojtekBoman
Copy link
Contributor

WojtekBoman commented Mar 21, 2024

@twisterdotcom I see in the Spotnana documentation that we can also book a rail travel or a limo. Spotnana also provides trip type: miscellaneous. Do we want to handle these types of trips as well?
Screenshot 2024-03-21 at 17 09 09

Spotnana docs: https://developer.spotnana.com/openapi/trip/#operation/getTripDetailsV3

@twisterdotcom
Copy link
Contributor

Rail definitely... limo or misc, man that's the first I see. Let me quickly on our call in a bit if they can provide some colour on what those would be. I'm guessing maybe we could bundle those in to the other categories, or perhaps we'll need our own.

From your perspective, would it be easier to just separate them just as Spotnana do, and we find some icons to match?

@WojtekBoman
Copy link
Contributor

Yes, I think the best solution for us would be to have separate types for them and display the appropriate icons based on that

@twisterdotcom
Copy link
Contributor

Okay, there won't be any limos, that's a specific paid VIP extra we're not handling yet.

Misc might happen, can be random things like ferries which sometimes are booked with rail travel tickets etc. So, we could just use the luggage icon for those, right @shawnborton / @dannymcclain?

@dannymcclain
Copy link
Contributor

@twisterdotcom Yeah that's probably what I'd do. I went ahead and mapped some icons from our system to these categories (potential alternates in the light gray)

image

🙏 please don't make me make a limo icon 🤣

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels May 20, 2024
@twisterdotcom
Copy link
Contributor

This is off hold now! You should be able to get moving on it now.

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

melvin-bot bot commented May 28, 2024

@twisterdotcom, @WojtekBoman, @shubham1206agra, @smelaa Huh... This is 4 days overdue. Who can take care of this?

@twisterdotcom
Copy link
Contributor

Do we have a PR ongoing now?

@melvin-bot melvin-bot bot removed the Overdue label May 28, 2024
@WojtekBoman
Copy link
Contributor

Do we have a PR ongoing now?

Yes #38808. I see that trip data is already available in NewDot, so I'll continue working on that today

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels May 29, 2024
@twisterdotcom twisterdotcom moved this from Critical - V1 to High - V1.5 and V2.0 in [#whatsnext] 2025-02-24 - External Commit - Travel May 29, 2024
@twisterdotcom twisterdotcom changed the title [CRITICAL] [VIP-Travel] Create Trip Room Preview [MEDIUM] Create Trip Room Preview May 29, 2024
Copy link

melvin-bot bot commented Jun 12, 2024

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

@stitesExpensify stitesExpensify self-assigned this Jun 14, 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 21, 2024
@melvin-bot melvin-bot bot changed the title [MEDIUM] Create Trip Room Preview [HOLD for payment 2024-06-28] [MEDIUM] Create Trip Room Preview Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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-28. 🎊

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

@twisterdotcom
Copy link
Contributor

twisterdotcom commented Jun 28, 2024

Payment Summary:

@shubham1206agra
Copy link
Contributor

@twisterdotcom This issue was created and assigned before April 6. I think bounty should be $500.

@twisterdotcom
Copy link
Contributor

Thanks! Just updated it.

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 Weekly KSv2
Development

No branches or pull requests

10 participants