Skip to content

CRITICAL: [Actionable Whispers] [$1250] Launch basic actionable whisper foundation #38533

@thienlnam

Description

@thienlnam

We're adding the 'Track Expense' action in this PR. After tracking an expense to your selfDM, there will be a whisper action that provides different options you can take

image

Currently after each tracked transaction, there is another reportAction added which is called ACTIONABLETRACKEXPENSEWHISPER. This will be the actionable whisper.

We already have a similar actionable whisper for inviting people here
Screenshot 2024-03-18 at 3 05 11 PM

There are 4 actions that can be taken

Request someone to pay it (Doc)

This will open up straight to the participant selector for the existing transaction. However, in this case it will move the transaction once the request is created as opposed to creating a new one.

image

API command: 'ConvertTrackedExpenseToRequest'
Parameters:

  • authToken
  • payerAccountID
  • iouReportID
  • chatReportID
  • transactionID
  • reportActionID
  • createdChatReportActionID
  • createdIOUReportActionID
  • reportPreviewReportActionID

Categorize it (Doc)
This creates a workspace (if necessary), then moves it to the open expense report on the workspace chat, and opens the category editor.

image

API command: CategorizeTrackedExpense

  • authToken
  • policyID
  • transactionID
  • reportID
  • reportActionID
  • modifiedExpenseReportActionID
  • announceChatReportID
  • announceCreatedReportActionID
  • adminsChatReportID
  • adminsCreatedReportActionID
  • expenseChatReportID
  • expenseCreatedReportActionID

Share it with my accountant (Doc)
This creates a workspace (if necessary), moves it to a report on the workspace chat, and opens the invite flow.

image

API command: ShareTrackedExpense

  • authToken
  • policyID
  • transactionID
  • reportID
  • reportActionID
  • modifiedExpenseReportActionID
  • announceChatReportID
  • announceCreatedReportActionID
  • adminsChatReportID
  • adminsCreatedReportActionID
  • expenseChatReportID
  • expenseCreatedReportActionID

Nothing for now

Hides the actionable whisper

API command: DismissActionableWhisper

  • authToken
  • reportActionID

Note: To get started, you will need to branch off this existing PR. We haven't done full flow testing of the API commands, so there may be some additional BE changes that are required that you might find through working on this PR that we can work on in parallel.

We're also trying to launch this ASAP. Please do NOT pick this up unless you can spend your full attention on this

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~015906865d86966bf9
  • Upwork Job ID: 1770146045833195520
  • Last Price Increase: 2024-05-07

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.ReviewingHas a PR in review

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions