• v0.5.0 41fd4ef940

    v0.5.0 Stable

    sgreenleaf released this 2026-08-22 08:44:28 +00:00 | 78 commits to main since this release

    Added

    • Stagings can be backdated; the date given is the effective date of the
      planting's stock movements.
    • Added PlantingDatesCorrected event; staged/planted dates editable on the
      planting page.
    • Places can be reordered by hand on /sites, ordering the staging screen, print
      sheet and pickers.
    • Deploying this release needs a rebuild (new Site.position projection
      column, no migration).

    Changed

    • Plantings cover a set of places, not one site: Planting.site_id replaced by
      name and staging_subsite membership rows.
    • Plantings can span unconnected sites; a site can host several plantings.
    • Members are leaf places; choosing a parent adds every leaf beneath it.
    • Create form takes a name and a multi-place picker; planting name editable in
      place.
    • Added POST /staging/{id}/place to add places to an existing planting.
    • Added POST /staging/{id}/place/remove; removing an area deletes its racks
      while draft, refused once staged or planted.
    • Staging grid column targets computed from site_tree::covered_roots.
    • Allocation grid column ordering keys on member places, not GROUP BY site_id.
    • Migration v9 drops site_id, stamps name from the old site, and backfills
      a membership row per leaf place under it.
    • Areas are grouped under their parent site on the staging grid, with a floating
      group header carrying per-species totals.
    • Areas show their own allocation beside what is staged into them
      (staged / allocated).
    • Staging and allocation grids scroll with the page rather than inside a
      fixed-height box.
    • Column badges are neutral until something is staged, then green within the
      allocation and red past it.
    • Per-rack totals are tinted against the planting's fill percentage: green to
      the target, amber to capacity, red over.
    • Rack numbers are render-time ordinals over the whole planting; deleting a rack
      leaves no hole.
    • Migration v10 drops the stored StagingRack.position.
    • Print sheet: dropped the allocation targets and instruction line, added a
      planting total row, striped the rack rows, coloured the area totals.
    • deploy.sh fetches Bootstrap 5.3.8 instead of 5.0.2.

    Fixed

    • Stagings' stock movements are dated the day they happened, not the day they
      were recorded, so intervening counts no longer double-subtract.
    • Traffic lights render their colours again (.text-bg-* needs Bootstrap 5.2+).
    • /static sends Cache-Control: no-cache, so deploys stop running stale
      assets.
    • The app warns at startup when static_dir is missing its own css/js.
    Downloads