From f781930832fa5bf5573cde083a428297aedfcafe Mon Sep 17 00:00:00 2001 From: Shane Maynard Date: Sun, 9 Aug 2026 08:02:06 -0400 Subject: [PATCH] Add a Recipe/steps field to brew logging Free-text recipe (bloom, pours, timings) distinct from tasting notes and next-time notes: new brews.recipe column (migration 007), form textarea, shown under the recipe summary in brew history, carried by Brew again, included in backups and the OpenAPI spec. Co-Authored-By: Claude Fable 5 --- db/migrations/007_brew_recipe.sql | 3 +++ public/brews.html | 9 +++++++++ public/js/brews.js | 10 ++++++++++ server/app.js | 14 +++++++++----- server/openapi.js | 8 +++++--- test/brewing.test.js | 3 +++ test/helpers.js | 2 +- 7 files changed, 40 insertions(+), 9 deletions(-) create mode 100644 db/migrations/007_brew_recipe.sql diff --git a/db/migrations/007_brew_recipe.sql b/db/migrations/007_brew_recipe.sql new file mode 100644 index 0000000..d3d8119 --- /dev/null +++ b/db/migrations/007_brew_recipe.sql @@ -0,0 +1,3 @@ +-- Additive only. Free-text recipe/steps for a brew (bloom, pours, plunge timing...) — +-- distinct from tasting_notes (how it tasted) and notes (what to change next time). +ALTER TABLE brews ADD COLUMN recipe text NOT NULL DEFAULT ''; diff --git a/public/brews.html b/public/brews.html index ea5e9c9..319f829 100644 --- a/public/brews.html +++ b/public/brews.html @@ -122,6 +122,15 @@ > +