Tähteet — leftovers. Not a dish: it exists so a day can be recorded as "we ate what was already there" without inventing a meal nobody cooked. A special-flagged row created by migration 0002; never in the catalog, never editable, and excluded from the stage-2 suggester outright. It gets its own mark, a grey lidded tub — which exposed a bug where no categories drew the same icon as several. The real dish list. The seed bundle is now your December 2024 list: 37 mains, 9 sides. Letut and Pannari dropped as not-dinners, Kanakintut folded into Broilerin koipireidet, has_sides assigned by rule. The day list stays put. Choosing a day used to swap a panel in above the list and drop that day out of it, so rows below jumped up under the tap. The list is now the page; the selected day expands where it sits, with anchors so the viewport lands on the day rather than the top. Release pipeline fixed. The last release silently pushed the previous image: release declared image and push as prerequisites and your make runs -j16, so they raced. Also, push re-derived the tag by date-sorting, which is ambiguous when two tags share a commit. It now reads what image recorded, and verifies afterwards that the registry serves what was built. Co-authored-by: Esa Kataja <[email protected]> Reviewed-on: #2
20 lines
904 B
SQL
20 lines
904 B
SQL
-- Tähteet: leftovers.
|
|
--
|
|
-- Not a dish. It exists so a day can be recorded as "we ate what was already
|
|
-- there" without inventing a meal that was never cooked. It has no category,
|
|
-- it is not something the household adds or edits, and the stage 2 suggester
|
|
-- must never propose it (PRD §8).
|
|
--
|
|
-- Modelled as a flagged row in main_dishes rather than a nullable
|
|
-- main_dish_id on meal_log: the log keeps one shape, and every foreign key
|
|
-- and join carries on working untouched.
|
|
|
|
ALTER TABLE main_dishes
|
|
ADD COLUMN special INTEGER NOT NULL DEFAULT 0 CHECK (special IN (0, 1));
|
|
|
|
-- OR IGNORE in case a household already typed a dish by this name: the unique
|
|
-- index on lower(name) would otherwise fail the migration. Their row stays as
|
|
-- an ordinary dish, which is wrong but harmless and fixable by hand.
|
|
INSERT OR IGNORE INTO main_dishes (name, has_sides, special)
|
|
VALUES ('Tähteet', 0, 1);
|