Skip to content

[HOLD for payment 2024-06-28] [MEDIUM] Create Trip Room Preview #37826

@stitesExpensify

Description

@stitesExpensify

VIP-Travel Implementation Issue

Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: [#whatsnext] #Travel
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

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions