• v0.8.0 171d5b6f0a

    v0.8.0
    All checks were successful
    ci / check (push) Successful in 1m8s
    release / release (push) Successful in 2m55s
    Stable

    sgreenleaf released this 2026-10-22 15:42:27 +00:00 | 25 commits to main since this release

    Added

    • Plantings report at /reports/plantings (navbar "Reports"): what was
      planted where and when, in three views of the same rows — by planting
      (each planting heads its own section — name and day in a spanned header
      row with the planting's total, then a row per species, split further by
      container where a species went out in more than one, places and
      quantities on each row), by species (a group per species with its total
      over all plantings, then aggregated rows per container — no planting
      dates in that view), and by site (a group per top-level site, subsites
      folded in and named on each row). The season is named only in the title
      of a season-scoped report, and everything in a report is assumed planted.
      Any mix of filters: a date range (the planting day, or the staging day
      when no planting day was recorded), a season, species, and places (a
      site stands for all its areas). Every filter is a URL parameter, so a
      one-click report is just a link — the seasons page gains a "Plantings"
      button on every row, the natural companion to an archived season. Staged
      and planted sessions only; drafts are still negotiable and never
      reported.

    • Each report exports as PDF, XLSX or ODS, carrying the filters with it —
      and all three views at once: sections of one PDF, sheets of one
      workbook. Generated files are stored on the server (config
      reports_dir) and the stored file is what gets served, so a report is
      byte-identical for every user; it regenerates only when the event log
      has moved on, and a change to the rendering itself ages the old files
      out. PDFs are typeset by Typst with the font family embedded in the
      binary — real margins, page numbers, and table headers that repeat
      across page breaks — and need nothing from the server's environment.

    • Seasons can be archived: a read-only freeze that keeps the season
      viewable — the allocation grid, the seasons page, and the season switcher
      (marked "(archived)") still show it — while every write into it is
      refused: grid cells, plans, site membership, and the season's own
      metadata. The current season cannot be archived (point the default
      elsewhere first), and the freeze is reversible: "Unarchive" reopens the
      season to correct mistakes (schema version 18).

    • Needed activities on the propagation session page: a suggestion list of
      what to do next toward the current season's plans — sowing when a species'
      whole pipeline (including freshly sown, not-yet-germinated stock) is short
      of its plan, pricking out once tray stock has passed its germination time,
      up-potting stock that sits in a container other than an unmet plan
      container, and discarding failed stock. Sorted by germination time.
      Each row pre-fills the add-activity form; discard rows link to a
      pre-filled disposal. Work already recorded in the open session is counted,
      so suggestions disappear as they are done (schema version 16).

    • New setting, "default prick-out destination" (admin settings): the
      container pricked-out seedlings land in by default — the forestry tubes.
      The needed-activities list pre-fills prick-outs with it; unset, it falls
      back to the plan container with the largest unmet demand.

    • Password reset by email. When base_url and an [smtp] section are set
      in the config, the login page gains a "Forgot password?" link: enter the
      address on your account and a single-use link, valid for an hour, is
      mailed out. Completing a reset signs the account out everywhere and is
      recorded in the activity log. Without that config nothing changes and the
      reset pages do not exist. Databases upgraded from earlier versions gain
      the email column and reset tables via migrate (schema version 17).

    • Accounts can carry an email address, set from your own settings page or
      by an admin on the user page. It is only used for reset links.

    Security

    • Fixed two stored cross-site scripting bugs on the staging page: a
      flagging-tape label or a site name containing HTML or quote characters
      could run script in the browser of anyone viewing the page, including
      admins. Both values are now escaped like the rest of the page.
    • Changing or resetting a password now signs out that account's other
      sessions, so a stolen cookie stops working when the password is rotated.
      The session that made the change stays signed in.
    • The login page's next parameter only accepts a local path, so it can no
      longer redirect to another site after signing in. It is also now carried
      through the form, so signing in returns you to the page you asked for.
    • Unknown usernames take as long to reject as wrong passwords, removing a
      timing hint about which accounts exist.
    • Responses now carry X-Frame-Options, Content-Security-Policy: frame-ancestors 'none', X-Content-Type-Options and Referrer-Policy
      headers, so the app cannot be framed by another site.

    Changed

    • Sites are now seasonal. A season's grid shows only the sites the season is
      "doing", starting from none: add sites with the new "+ Add site" control on
      the allocation grid, and remove them with the ✕ on a site's column header
      (refused while the site still has plans or allocations that season — clear
      the cells first). Plan and allocation writes are refused for sites that
      aren't in the season. Copying plans into a new season copies its site list
      too. Sites themselves remain permanent, and their history across seasons is
      untouched. Databases upgraded from earlier versions gain membership for
      every site that has live plans or allocations; run migrate after
      upgrading (schema version 15).
    • The current season is now an explicit choice, stored in app settings, and is
      no longer inferred from today's date when nobody has set one. Creating a
      season never moves anyone; switching is a deliberate act — the "Switch
      everyone to it" box on the new-season form, or "Set current" on any row.
      The first season created on a fresh database becomes the default. Databases
      upgraded from earlier versions keep the season they had; run migrate
      after upgrading (schema version 14).
    • event-sourcing now resolves from the Forgejo crate registry at
      git.casemoth.computer instead of crates.bpginc.info. The registry is
      public, so building from source no longer requires a bpg token; CI no
      longer passes registry credentials.
    Downloads