Skip to content

Entities 0.4.5: A decimal field type for money and other exact numbers

Entities 0.4.5 adds a Decimal field type for numbers that must not be rounded, such as prices and rates. The number field stores a float and can round; a decimal field keeps the exact value.

A decimal field accepts a comma or a dot as the decimal point and stores the value as an exact decimal string, so saving and loading never pass through a float. Its minimum and maximum are enforced on the server, unlike on the number field, including for values sent as raw numbers. The input’s step follows the field’s number of places, four by default, so the browser accepts every value the field can hold. The two new “must be at least” and “must be at most” messages come translated in Estonian and Russian.

The icon picker’s category tabs in the entity editor now use PhoenixKit’s own tab component.

Full release notes: Entities 0.4.5

0.4.5 · 21 August 2026

Changed

  • The icon-picker category strip uses core’s <.nav_tabs> instead of hand-rolled tabs-boxed markup. The filter event payload key is now tab rather than category (#33).

Entities 0.4.5. Install or update: {:phoenix_kit_entities, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.