Bookings 0.1.2: Services with Cyrillic or Greek names and duplicate names
Bookings 0.1.2 fixes two problems with creating services from the admin.
A service with a Cyrillic or Greek name could not be saved. Its web address (slug) was built from Latin letters and digits only, so such a name produced an empty slug that failed validation. Slugs now come from core, which turns other alphabets into Latin letters.
Two services with the same name ran into a raw database error. The second one now gets -2, the next -3, and so on, kept within the slug’s 160-character limit. The admin forms also move to daisyUI 5’s fieldset layout.
Upgrading
Bookings 0.1.2 needs phoenix_kit 2.4 or later. Update the dependency.
Full release notes: Bookings 0.1.2
0.1.2 · 14 August 2026
Changed
-
⚠️ Requires
phoenix_kit ~> 2.4.Service.changeset/2now callsPhoenixKit.Utils.Slug.put_slug/3, which core did not ship until 2.4.0. The pin was raised from~> 2.0because that range admits cores where the function does not exist — and the failure would land in the consumer’s app as anUndefinedFunctionErroron every save touching:name, never in this repo’s own run, since the workspace always resolves the newest core. Still two-segment, so every later 2.x satisfies it.core_pin_conformance_test.exsmoved with it, and now guards both directions: too narrow (a three-segment pin collapsing to one minor) and too wide (a core lacking the function this module calls).
Fixed
-
A Cyrillic or Greek service name could not be created. The local slugifier was ASCII-only (
[^a-z0-9]after downcase), so those names produced""and then failed this schema’s own slug format validation. Core romanizes instead (#2). -
Two services named alike hit a raw unique-constraint error. Nothing probed
phoenix_kit_bookings_services_slug_index. Slugs are now suffixed-2,-3… until free, andmax_length: 160keeps the suffix inside the column — the oldString.slice(0, 160)could overflow once a suffix was added (#2).
Bookings 0.1.2. Install or update: {:phoenix_kit_bookings, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.