Skip to content

Add a rejected invoice banner on the seller dashboard explaining why the invoice was not approved #54

Description

@Chucks1093

Summary

When an invoice is rejected by an admin, sellers currently have no in-app explanation of why. A banner on the invoice detail page (visible only to the owning seller) should display the rejection reason so sellers can correct and resubmit.

Scope

  • Show a red banner below the invoice title when the invoice status is rejected
  • Banner text: 'This invoice was not approved: {rejection_reason}'
  • Banner only visible to the authenticated seller who owns the invoice
  • Include a 'Edit and Resubmit' button that navigates to the invoice edit form pre-populated with existing data
  • Hide the banner for all other statuses

Acceptance Criteria

  • Red banner visible to the owning seller when status is rejected
  • Rejection reason displayed in the banner
  • Banner hidden for all other statuses
  • Banner not visible to other wallets viewing the invoice
  • 'Edit and Resubmit' button navigates to pre-populated edit form

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions