Resend confirmation/receipt button should be exposed as action link

Created on 30 November 2022, about 2 years ago
Updated 16 June 2023, over 1 year ago

Problem/Motivation

1. The only place where the resend confirmation link is now exposed is the operation links on the shipment list.
2. The concept of receipts is present both for orders and shipments
3. There's a discrepancy between UI features for Orders and Shipments - both have operation links but only the former has an action link

Steps to reproduce

- ensure order receipts are enabled and user has granted permission to resend them
- place an order and go to order view /admin/commerce/orders/{commerce_order}
- notice Resend Receipt link in the Action links region
- go to /admin/commerce/orders and expand operation links to see Resend Receipt link is also available there
- go to /admin/commerce/orders/{commerce_order}/shipments and expand operation links to see Resend Receipt link in also available there
- go to /admin/commerce/orders/{commerce_order}/shipments/{commerce_shipment} and see no link is available in the Action links region

Proposed resolution

For consistency, expose Resend Receipt link in the Actions region. Here is how it's done for order receipts in commerce_order.links.action.yml:

entity.commerce_order.resend_receipt_form:
  route_name: entity.commerce_order.resend_receipt_form
  title: 'Resend receipt'
  appears_on:
    - entity.commerce_order.canonical

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡΄Norway zaporylie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024