Skip to content

Warehouse 0.2.7: Correct dependency floors and a dash for empty prices

Warehouse 0.2.7 corrects the versions of PhoenixKit and Comments the module declares it needs, so an app can no longer resolve to versions it fails to compile against.

The warehouse lists use a URL helper that first shipped in PhoenixKit 1.7.231, and the document forms embed comment threads that need Comments 0.2.8. The module now requires phoenix_kit ~> 1.7.231 and phoenix_kit_comments >= 0.2.8. Apps whose lock file already had these versions see no change.

On the stocktake count sheet, the read-only price and sum cells now show a dash when there is no value, instead of staying blank.

The rest is a code clean-up with no change in behaviour.

Full release notes: Warehouse 0.2.7

0.2.7 · 6 August 2026

Fixed

  • Dependency floor raised to phoenix_kit ~> 1.7.231 (PR #12, from ~> 1.7.214) — seven index LiveViews use PhoenixKitWeb.Live.UrlState, which first shipped in core 1.7.231. The old requirement declared a contract that permitted a core without that module, so a consumer whose resolution landed below 1.7.231 would fail to compile this package. mix.lock already carried 1.7.231, so this corrects the published contract, not the current build.
  • Dependency floor raised to phoenix_kit_comments ~> 0.2 and >= 0.2.8 (post-merge review of PR #12, from ~> 0.2) — the same class of defect PR #12 fixed for core, left in place three lines below it. Six form LiveViews use PhoenixKitComments.Embed, which first shipped in comments 0.2.6; a use is macro expansion at compile time and cannot be guarded. PhoenixKitWarehouse. Comments additionally calls subscribe/2, unsubscribe/2 and the list form of count_comments/2, all three of which arrived in 0.2.8 — and its available?/0 guard only covers PhoenixKitComments being absent entirely, not an older release that is present but missing those functions. The ceiling stays < 1.0.0 rather than becoming ~> 0.2.8’s < 0.3.0, so a future comments 0.3.0 still resolves.
  • The — placeholder never appeared in the read-only price and sum cells of the inventory count sheet. They rendered format_input_decimal(value) || "—", but format_input_decimal/1 returns "" — never nil — for a missing value, and "" is truthy, so the cell went blank instead. Now goes through an explicit blank_to_dash/1.

Changed

  • mix precommit passes for the first time. It had been failing on main for a long time, on findings spread across the whole codebase rather than any recent change. Cleared all 291 mix credo --strict issues (248 Design.AliasUsage, 37 Readability.AliasOrder, 2 WithSingleClause, plus PreferImplicitTry, StringSigils, CyclomaticComplexity and Nesting) and all four actionable dialyzer warnings.
  • SupplierOrders.import_from_internal_orders/3 is split into load_posted_internal_orders/1, load_items_by_uuid/1, collect_import_lines/2, import_line/6, sole_supplier?/2 and merge_import_lines/2 — behaviour preserved exactly, cyclomatic complexity 16 → under the limit and nesting depth 5 → 3.
  • StorageFolders drops the parent_uuid parameter that both call sites always passed as nil; the folder lookup is now explicitly root-scoped. Dead pick_name/1 fallback clauses removed from Inventories and Web.Components.WarehouseBrowser — safe_get_translation/2 already rescues to %{}, which is the real defensive layer.
  • New .dialyzer_ignore.exs documents the six Ecto.Multi opaqueness warnings (one per context’s lock_status_step/3), which are an artefact of Ecto’s @opaque t() and have no code-level fix. Wired up with list_unused_filters: true so a stale filter is reported.

Warehouse 0.2.7. Install or update: {:phoenix_kit_warehouse, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.