Skip to content

Catalogue 0.35.0: Prices accept a comma or a dot, unit labels in the selector

Catalogue 0.35.0 makes number fields in the catalogue forms accept a decimal comma as well as a dot, and makes the item selector keep your pick order and show real unit names.

A comma or a dot

The base price, markup, discount, smart default value, supplier minimum order quantity and smart rule value fields now use PhoenixKit core’s decimal input instead of the browser’s number field. “2,5” saves as 2.5 whatever the page’s language, and nothing is rounded or blocked by a step size. The limits checked on the server stay the same. A smart rule value with junk after the number, such as “5abc”, now goes back to inherit instead of saving the leading number.

Item selector: pick order and unit labels

The selector’s tray and the confirmed selection now list items in the order they were picked, also after a live refresh, instead of alphabetically.

Rows, cards, the tray and the quantity field now show the unit’s translated label, such as “шт” or “pc”, in the selector’s language, instead of the raw unit code. The picks handed to the host page still carry the raw unit. When the host shows a unit column, the price cell shows only the number and the unit gets its own column, which can be hidden.

Unit labels for a regional language variant, such as “ru-RU”, fell back to English; they now use the base language’s translation.

Upgrading

Catalogue 0.35 needs PhoenixKit 2.26.0 or later, for the decimal input. The declared requirement did not change, so a site on an older core must update core first or the module will not compile. No migration.

Full release notes: Catalogue 0.35.0

0.35.0 · 16 September 2026

Requires phoenix_kit 2.26.0+ (<.decimal_input> and PhoenixKit.Utils.Number.parse_decimal/2). The :phoenix_kit requirement in mix.exs is unchanged, so hosts on an older core must upgrade core first or this release will not compile.

Reviews: dev_docs/pull_requests/2026/122-decimal-input/, 123-picker-order-unit/.

Changed

  • Free-decimal form fields accept a comma or a dot (#122). Base price, markup, discount, smart default value, supplier min. order qty and the smart-rule value use core’s <.decimal_input> instead of a browser number input, so “2,5” saves as 2.5 whatever the page locale is, and nothing is rounded or blocked by step. The server-side bounds are unchanged. A smart-rule value with trailing garbage (“5abc”) now clears to “inherit” instead of saving the numeric prefix.
  • The item selector keeps the pick order (#123). The tray and the confirmed selection list items in the order they were picked, including across a live refresh, instead of alphabetically.
  • Unit labels in the item selector and browse views (#123). Rows, cards, the tray and the quantity suffix show the translated unit label (“шт”, “pc”) in the popup’s locale instead of the raw unit code. The pick payload still carries the raw unit. When a host grants the :unit column, the price cell shows only the number and the unit sits in its own hideable column.
  • Dependencies: phoenix_kit 2.26.0, swoosh 1.28.1 (lock only).

Fixed

  • Unit labels for a dialect locale (“ru-RU”) fell back to English. They now use the base language’s translation.

Catalogue 0.35.0. Install or update: {:phoenix_kit_catalogue, "~> 0.35"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.