Skip to content

add and order product images in the back office #75

Description

@haribo

Part of #73. Lands after the storage.

Build

  • The product form gains images: choose files, see them, order them, remove one. The first is the default (docs/design/catalog.md § 5).
  • The browser resizes above 2400 px on the long side and converts to JPEG, flattening transparency onto white. Below 2400 px the file goes as it is.
  • Alternative text is prompted at upload, per image. A product image without it is flagged, since the design asks for that and a storefront without alt text is a storefront nobody blind can shop.
  • The catalogue listing shows the thumbnail, which is what the design has said since it was written.

Design first

What the merchant sees while a file uploads, what a refusal says, and how ordering works are not in the design. They go in before the code, and the screens are drawn before that.

Validation

  • Unit tests: the resize keeps the ratio, leaves a small image alone, and produces a JPEG.
  • A journey adding an image to a product and finding it in the listing, in the three variants.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurenew feature or improvement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions