Compatibility with Gin content form

Created on 19 March 2025, 19 days ago

Describe your bug or feature request.

The Gin Admin Theme introduces a Sidebar Layout for entity edit forms, improving usability by keeping content editors within the same form layout across different entity types. However, Drupal Commerce Core does not currently register its entity forms for the Gin layout, leading to an inconsistent admin experience when managing commerce-related entities such as products, variations, orders, and promotions.

Without support for Gin's Sidebar, Commerce entity forms default to a traditional full-page layout, making workflows less efficient.

hook_gin_content_form_routes is the hook that will allow all commerce forms to enable Gin's content form experience.

Feature request
Status

Active

Version

3.0

Component

User experience

Created by

🇳🇴Norway zaporylie

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

Merge Requests

Comments & Activities

  • Issue created by @zaporylie
  • 🇳🇴Norway zaporylie

    I don't feel comfortable about this behavior in the context of a promotion form, otherwise all should be good.

    As part of my MR I only added support to selected entities:
    - order
    - product
    - product_variation
    - promotion
    - coupon
    - store

    Some notes:
    - Not all content entities support sidebars (ie. coupon), which makes the form look a bit weird (very subjective opinion)
    - For config entities we are better off without gin content form support as these forms are rather simple, featuring only handful of fields
    - Some content entities are not to be edited in the context of admin UI (ie. payment_method) hence no need to support it either

  • Pipeline finished with Success
    3 days ago
    Total: 733s
    #465322
  • Pipeline finished with Success
    3 days ago
    Total: 958s
    #465350
  • Pipeline finished with Skipped
    3 days ago
    #465521
  • First commit to issue fork.
  • 🇮🇱Israel jsacksick

    Merged, thank you!

Production build 0.71.5 2024