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 LiveViewsuse 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.lockalready 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 LiveViewsuse PhoenixKitComments.Embed, which first shipped in comments 0.2.6; auseis macro expansion at compile time and cannot be guarded.PhoenixKitWarehouse. Commentsadditionally callssubscribe/2,unsubscribe/2and the list form ofcount_comments/2, all three of which arrived in 0.2.8 — and itsavailable?/0guard only coversPhoenixKitCommentsbeing absent entirely, not an older release that is present but missing those functions. The ceiling stays< 1.0.0rather 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 renderedformat_input_decimal(value) || "—", butformat_input_decimal/1returns""— nevernil— for a missing value, and""is truthy, so the cell went blank instead. Now goes through an explicitblank_to_dash/1.
Changed
mix precommitpasses for the first time. It had been failing onmainfor a long time, on findings spread across the whole codebase rather than any recent change. Cleared all 291mix credo --strictissues (248Design.AliasUsage, 37Readability.AliasOrder, 2WithSingleClause, plusPreferImplicitTry,StringSigils,CyclomaticComplexityandNesting) and all four actionable dialyzer warnings.SupplierOrders.import_from_internal_orders/3is split intoload_posted_internal_orders/1,load_items_by_uuid/1,collect_import_lines/2,import_line/6,sole_supplier?/2andmerge_import_lines/2— behaviour preserved exactly, cyclomatic complexity 16 → under the limit and nesting depth 5 → 3.StorageFoldersdrops theparent_uuidparameter that both call sites always passed asnil; the folder lookup is now explicitly root-scoped. Deadpick_name/1fallback clauses removed fromInventoriesandWeb.Components.WarehouseBrowser—safe_get_translation/2already rescues to%{}, which is the real defensive layer.- New
.dialyzer_ignore.exsdocuments the sixEcto.Multiopaqueness warnings (one per context’slock_status_step/3), which are an artefact of Ecto’s@opaque t()and have no code-level fix. Wired up withlist_unused_filters: trueso 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.