Skip to content

[Due for payment 2026-03-24] [$250] Workspace address: send discrete SetPolicyAddress params and keep legacy display compatibility #84378

Closed

Description

@c3024

Problem

App still sends legacy nested params (data[addressStreet], etc.) for SetPolicyAddress, and still concatenates line 1 + line 2 into addressStreet with \n.

Parent issue: https://github.com/Expensify/Expensify/issues/394853

Solution

  • Update SetPolicyAddress params to flat fields in:
    • src/libs/API/parameters/UpdatePolicyAddressParams.ts
    • src/libs/actions/Policy/Policy.ts
  • Add addressStreet2?: string to CompanyAddress in:
    • src/types/onyx/Policy.ts
  • Stop newline concatenation when submitting workspace address in:
    • src/pages/workspace/WorkspaceOverviewAddressPage.tsx
    • src/pages/Travel/WorkspaceAddressForTravelPage.tsx
  • Update display/read compatibility to support both:
    • New format: addressStreet + addressStreet2
    • Legacy format: addressStreet containing \n
  • Compatibility updates in:
    • src/pages/workspace/WorkspaceOverviewPage.tsx
    • src/pages/workspace/duplicate/WorkspaceDuplicateSelectFeaturesForm.tsx
    • src/libs/ReportActionsUtils.ts
    • src/pages/workspace/WorkspaceOverviewAddressPage.tsx (form prefill path)
Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. self-assigned this
    on Mar 6, 2026
  2. c3024 commented on Mar 6, 2026

    @c3024
    ContributorAuthor

    This is not open for proposals. I am working on this.

  3. eh2077 commented on Mar 18, 2026

    @eh2077
    Contributor

    @c3024 can I get assigned to track payment for reviewing the PR? thx 🙇

  4. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    on Mar 18, 2026
  5. melvin-bot commented on Mar 18, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  6. changed the title [-]Workspace address: send discrete SetPolicyAddress params and keep legacy display compatibility[/-] [+][Due for payment 2026-03-24] [$250] Workspace address: send discrete SetPolicyAddress params and keep legacy display compatibility[/+] on Mar 18, 2026
  7. melvin-bot commented on Mar 18, 2026

    @melvin-bot

    ⚠️ Could not update price automatically because there is no linked Upwork Job ID. The BZ team member will need to update the price manually in Upwork.

  8. c3024 commented on Mar 18, 2026

    @c3024
    ContributorAuthor

    @mallenexpensify

    @eh2077 reviewed the PR. I think the standard payout for him is applicable here. Thanks!

  9. melvin-bot commented on Mar 24, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    • Contributor: @c3024 does not require payment (Contractor)
    • Reviewer: @eh2077 owed $250 via NewDot

    BugZero Checklist (@mallenexpensify)

    • (if NewFeature) I have created a PR for any necessary HelpDot updates, or I confirmed no updates are necessary.
    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  10. mallenexpensify commented on Mar 24, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @eh2077 due $250 via NewDot

    Thx

  11. laurenreidexpensify commented on Apr 27, 2026

    @laurenreidexpensify
    Contributor

    $250 approved for @eh2077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ReviewingHas a PR in review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions