Skip to content

[Due for payment 2026-05-22] [$250] Always show green Submit GBR/button when report is ready to submit, regardless of violations #89444

Description

@MelvinBot

Updated 2026-05-13: Revised per aimane-chnaif's direction — clarified button behavior by role.

Product Change: Always show green "Submit" when report is ready to submit

Slack thread: https://expensify.slack.com/archives/C07HPDRELLD/p1777764861688339

Requirements

  1. LHN: Remove red Fix RBR entirely. When a report is ready to submit, always show a green Submit GBR/badge — whether or not there are violations.
  2. Report preview button by role:
    • Submitter always sees a green Submit button
    • Everyone else (approver, admin, etc.) sees a gray View button

Relevant Code

  • OptionRowLHN.tsx:105 — Badge text gated behind !isProduction; needs to always show "Submit" GBR when ready
  • reportAttributes.ts:283-303 — Brick road status and action badge assignment; violation-based RBR should not produce red "Fix"
  • ReportUtils.ts:9140-9215getViolatingReportIDForRBRInLHN — drives the violation-based red indicator
  • SubmitActionButton.tsx:60-73 — Submit button success prop controlled by isWaitingForSubmissionFromCurrentUser; should always be true (green) when the report is submittable, regardless of violations
  • ReportPreviewActionUtils.ts:65canSubmit check; should only return true for the submitter (not manager or admin)

Report: https://new.expensify.com/e/4127904458237660

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022054659423900286541
  • Upwork Job ID: 2054659423900286541
  • Last Price Increase: 2026-05-13
Issue OwnerCurrent Issue Owner: @mallenexpensify

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions