Skip to content

Fix/notification overdue reminders - #24

Merged
lorentsob merged 1 commit into
developfrom
fix/notification-overdue-reminders
Apr 16, 2026
Merged

lorentsob merged 1 commit into
developfrom
fix/notification-overdue-reminders

Conversation

@lorentsob

Copy link
Copy Markdown
Owner

Branch base

  • Contributori esterni: imposta il branch base su develop (non main). Vedi CONTRIBUTING.md alla root del repo.
  • Maintainer: PR verso main solo per integrazione/release quando appropriato.

Descrizione

Copilot AI review requested due to automatic review settings April 16, 2026 09:52
@lorentsob
lorentsob changed the base branch from main to develop April 16, 2026 09:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the notification scheduling system to support rolling “overdue” reminder series (and a global planning/merge step) while also tightening contribution/branching guidance and polishing several user-facing Italian strings.

Changes:

  • Add rolling overdue reminder generation + identifier cleanup for bakes, starters, and kefir batches; introduce a global notification plan merge with dedupe + max pending budget.
  • Update multiple UI strings to improve terminology consistency (e.g., “fase”, “rinnovi”, punctuation) and remove internal product naming from an empty state.
  • Formalize contribution branch policy in docs and automation (PRs to main from non-maintainers are auto-closed).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
copy-review.md Adds an aggregated copy audit document for UI/notifications terminology and consistency.
README.md Adds contribution/positioning notes and explicitly documents PR base-branch policy.
LevainTests/StarterReminderPlannerTests.swift Updates tests for deterministic now and validates new overdue reminder series + plan merging.
LevainTests/KefirReminderPlannerTests.swift Updates expectations for kefir overdue series and revised notification copy.
LevainTests/BakeReminderPlannerTests.swift Updates notification copy expectations and adds tests for bake overdue series + identifier coverage.
Levain/Services/StarterReminderPlanner.swift Adds now injection, excludes archived starters, replaces follow-up with rolling overdue reminders, adds identifier window cleanup.
Levain/Services/NotificationService.swift Introduces planning defaults + rolling overdue planner + plan builder/merge; switches to global plan application.
Levain/Services/KefirReminderPlanner.swift Adds overdue reminders + overdue identifiers; tweaks warning copy punctuation/wording.
Levain/Services/BakeReminderPlanner.swift Unifies notification terminology to “fase” and adds overdue reminder series + overdue identifiers.
Levain/Models/DomainEnums.swift Adjusts kefir state label for .dueSoon.
Levain/Features/Today/TodayView.swift Removes internal product name from the “all features disabled” empty state.
Levain/Features/Starter/StarterView.swift Refines Starter subtitle copy.
Levain/Features/Starter/StarterDetailView.swift Renames refresh log header label.
Levain/Features/Starter/SettingsView.swift Replaces “Knowledge/flag tecnici” wording with more user-facing copy.
Levain/Features/Starter/RefreshLogView.swift Improves temperature label, fridge section title, and navigation title.
Levain/Features/Shared/RootTabView.swift Adds foreground lifecycle trigger to sync notifications and refactors bootstrap sync flow.
Levain/Features/Kefir/KefirHubView.swift Fixes subtitle capitalization/punctuation and “rinfreschi” → “rinnovi”.
Levain/Features/Kefir/KefirBatchManageSheet.swift Improves renewal toast copy.
Levain/Features/Fermentations/FermentationsView.swift Removes trailing period from subtitle for consistency.
Levain/Features/Bakes/BakeStepCardView.swift Fixes Italian accent in archived/cancelled status line.
Levain/Features/Bakes/BakeDetailView.swift Replaces mixed-language header with Italian label (“Fasi della ricetta”).
CONTRIBUTING.md Expands and clarifies branch policy + CI notes.
.github/workflows/pr-base-main-guard.yml Adds automation to comment + close PRs targeting main from non-maintainers.
.github/pull_request_template.md Adds PR template section reminding contributors to target develop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 181 to 199
@@ -176,11 +191,11 @@ struct RootTabView: View {
try? modelContext.save()
}
if authorizationState == .denied {
if appSettings.lastNotificationSync == nil {
appSettings.lastNotificationSync = .now
try? modelContext.save()
appSettings.lastNotificationSync = .now
try? modelContext.save()
if showDisabledBanner {
router.showNotificationsDisabledBanner()
}
router.showNotificationsDisabledBanner()
}

Copilot AI Apr 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

syncNotificationsForLifecycle ora esegue sempre requestAuthorizationIfNeeded e, se autorizzato, un resyncAll (fetch di tutti i modelli + remove/schedule) ogni volta che viene chiamata (bootstrap + ogni ritorno in foreground via scenePhase). Questo può introdurre overhead/battery churn e un numero elevato di operazioni su UNUserNotificationCenter anche quando non è cambiato nulla. Suggerimento: reintrodurre un guard basato su appSettings.lastNotificationSync (es. throttle temporale) e/o chiamare resyncAll solo quando needsLaunchSync/needsAuthorizationPrompt o dopo mutazioni di dati rilevanti.

Copilot uses AI. Check for mistakes.
Comment on lines +278 to +287
func syncNotifications(forBake _: UUID, in context: ModelContext) async {
await resyncAll(using: context)
}

func syncNotifications(forStarter starterID: UUID, in context: ModelContext) async {
let descriptor = FetchDescriptor<Starter>(predicate: #Predicate { $0.id == starterID })
guard let starter = (try? context.fetch(descriptor))?.first else { return }
await NotificationScheduler.apply([makeSyncPlan(for: starter)])
func syncNotifications(forStarter _: UUID, in context: ModelContext) async {
await resyncAll(using: context)
}

func syncNotifications(forKefirBatch batchID: UUID, in context: ModelContext) async {
let descriptor = FetchDescriptor<KefirBatch>(predicate: #Predicate { $0.id == batchID })
guard let batch = (try? context.fetch(descriptor))?.first else { return }
await NotificationScheduler.apply([makeSyncPlan(for: batch)])
func syncNotifications(forKefirBatch _: UUID, in context: ModelContext) async {
await resyncAll(using: context)

Copilot AI Apr 16, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I metodi syncNotifications(forBake:/forStarter:/forKefirBatch:) ora ignorano l'ID (parametro _) e chiamano sempre resyncAll, che fa fetch di tutte le entità e rischedula l'intero set. Visto che questi metodi sono invocati frequentemente da molte schermate (es. completamento fase, shift, archiviazione), questo può diventare costoso e rende l'API fuorviante (sembra un sync mirato ma non lo è). Opzioni: (1) rinominare questi metodi a qualcosa tipo resyncNotifications e aggiornare le call site, oppure (2) ripristinare un piano mirato per l'entità modificata e usare NotificationPlanBuilder.merge con un piano globale/cached per rispettare il budget.

Copilot uses AI. Check for mistakes.
@lorentsob
lorentsob merged commit ecb4d79 into develop Apr 16, 2026
7 checks passed
@lorentsob lorentsob mentioned this pull request Nov 24, 2026
lorentsob added a commit that referenced this pull request Nov 24, 2026
* chore(ci): add develop branch to CI triggers (#4)

* chore(ci): add develop branch to CI triggers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore(ci): add DerivedData + Homebrew cache, update CLAUDE.md workflow rules

- Cache DerivedData keyed on Swift sources + project.yml (incremental builds)
- Cache Homebrew to skip xcodegen reinstall on unchanged deps
- Remove redundant `clean` from cached build step
- Add periodic clean build guidance to CLAUDE.md
- Update branch discipline rules to reflect develop/main split

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(ci): remove manual simulator boot step that caused hang (#5)

* fix(ci): remove manual simulator boot step that caused hang

xcrun simctl bootstatus -b blocks indefinitely on GitHub Actions runners.
xcodebuild boots the simulator automatically when given a named destination.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tests): fix all failing unit and UI tests

- Populate knowledge.json with 8 items covering starter, fermentation,
  bakerMath and troubleshooting categories (was empty, breaking all
  KnowledgeLoader/KnowledgeLibrary tests)
- BakeReminderPlanner: "La finestra sta terminando." → "La finestra si
  sta chiudendo." (string mismatch with test expectation)
- StateBadge: StarterDueState.ok now returns .done tone instead of
  .count (matches spec-driven test expectation)
- TodayView: "Aggiungi uno starter" → "Aggiungi starter" (label
  mismatch with UI test)
- BakesView: "Nessun bake attivo" → "Nessun bake ancora" (label
  mismatch with UI test)
- BakesFlowUITests: update testNewBakeUsesBundledTemplates to reflect
  current picker UI ("Template di sistema") — "Template rapidi" section
  was intentionally removed in a prior refactor

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tests): fix remaining UI test failures

- TodayView/FeaturePillCard: add .accessibilityLabel(title) so XCUITest
  finds the button by exact title ("Aggiungi starter") instead of the
  auto-derived label that includes the subtitle text
- TodayFlowUITests: "Dettaglio" → "Procedimento" (correct button label
  in ActiveStepHeroCard)
- BakesFlowUITests: verify picker element exists instead of tapping
  into it (Picker interaction unreliable on CI)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(tests): use correct element type for Form Picker in UI test

* chore(ci): switch to self-hosted runner, run CI only on push to develop/main

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore(ci): use self-hosted runner, remove brew steps, fix picker test

* Feature/phase 16 step ingredients (#6)

* feat(16-01): add step-level ingredients to FormulaStepTemplate and BakeStep

- Add ingredients: [String] field to FormulaStepTemplate (Codable)
- Add ingredientsPayload: String? + stepIngredients computed var to BakeStep (@model)
- Update BakeScheduler to pass template ingredients to BakeStep on creation
- Preserve existing ingredients in FormulaStepEditorView save path
- Update RecipeFormula.duplicate() to carry through step ingredients

* feat(16-01): parse step-specific ingredients in content formatter

- Add match_step_ingredients() to ContentFormatter matching ingredient
  subsection titles to step names (case-insensitive, substring match)
- Pass ingredient_sections to parse_steps() so each step can be
  annotated with its matched ingredient list
- Each step in defaultSteps JSON now carries an "ingredients" array
- Regenerate system_formulas.json: focaccia Impasto step gets 6
  ingredients; bagel and potato-buns Impasto steps matched via
  "impasto" substring; other formulas/steps correctly return []

* feat(16-01): display step-specific ingredients in BakeStepDetailView modal

- Add "Ingredienti" section above "Procedimento" in the phase modal
- Renders ingredient lines using the same bullet bar style as BakeIngredientsView
- Section is hidden entirely when the step has no associated ingredients
- Ingredients sourced from BakeStep.stepIngredients (decoded from ingredientsPayload)

* docs(16-01): complete step-level ingredients baking phase modal plan

Tasks completed: 3/3
- Task 1: Model Schema Updates (FormulaStepTemplate, BakeStep)
- Task 2: Content Formatter Enhancement (format_content.py, system_formulas.json)
- Task 3: Phase Modal UI Update (BakeStepDetailView)

SUMMARY: .planning/phases/16-baking-phase-ingredients-ux/16-01-SUMMARY.md

* docs(phase-16): complete baking phase ingredients UX phase

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Enhance formula documentation and step parsing

- Added tests to ensure bundled formulas preserve explicit labels for custom steps in SystemFormulaLoaderTests.
- Updated bagel-levain.md to reflect explicit labels for levain and boiling steps.
- Changed section titles in focaccia-tiktok.md for clarity.
- Revised ingredient sections and step titles in pan-brioche-lievito-madre.md for better organization.
- Modified pizza-in-giornata.md to clarify ingredient sections and improve step descriptions.
- Updated potato-buns.md to include explicit labels for custom steps.
- Removed outdated compiled Python file from scripts/__pycache__.
- Enhanced step parsing logic in format_content.py to support custom labels in step definitions.

* fix(scripts): improve Xcode and XcodeGen version retrieval in ci_bootstrap.sh

* Initial plan (#8)


---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* chore(ci): clean stale xcresult before test run on self-hosted runner

* fix(bakes): prevent crash on bake close by passing ID to notification sync (#9)

* fix(notifications): update remaining callers to new syncNotifications API (#10)

* fix(concurrency): add @mainactor to views using ModelContext in Task (#11)

* fix(notifications): update remaining callers to new syncNotifications API

* fix(concurrency): add @mainactor to views using ModelContext in Task

* fix(concurrency): add @mainactor to views using ModelContext in Task

* fix(notifications): use distinct method labels to resolve redeclaration, update all callers (#12)

* fix(notifications): use distinct method labels to resolve redeclaration, update all callers (#13)

* fix(notifications): update BakesView to use forBake label (#14)

* fix(tests): use type-agnostic query for BakesScrollView (#15)

* fix(notifications): update BakesView to use forBake label

* fix(tests): use type-agnostic query for BakesScrollView (List not ScrollView)

* feat(bakes): enhance bake completion handling and UI updates (#16)

* feat(bakes): enhance bake completion handling and UI updates

- Added asynchronous handling for bake completion notifications to prevent UI crashes.
- Updated BakeDetailView and TodayView to delay saving and notification sync for completed bakes.
- Introduced a new BakesArchiveView for managing archived bakes with filtering options.
- Adjusted animations and UI text for better user experience.
- Refactored various views to ensure proper use of @mainactor for UI updates.

* pipeline build&test

* fix(concurrency): add @mainactor to Task in BakeCreationView for notification sync

* ci più fast

* Enhance iOS CI workflow to run tests on direct pushes to develop branch

- Added steps to clean previous test results and run tests only on pushes to the develop branch.
- Implemented artifact upload for test results with a retention policy.
- Updated comments to clarify the testing strategy for pull requests and direct pushes.

* pipeline build&test (#17)

* refactor(FormulaDetailView): comment out duplicate button functionality for future implementation

* elimina tasto modifica da ricetta (#18)

* elimina tasto modifica da ricetta

* Potential fix for pull request finding


---------

* feat(FormulaDetailView): add formula editor and improve data safety

- Introduced a new button to open the formula editor.
- Implemented defensive checks for potentially corrupted legacy data in hydration, inoculation, salt, and weight calculations.
- Updated UI elements to use safe values, ensuring no NaN or non-finite values are displayed.
- Renamed sections for consistency, changing "Fasi di default" to "Preparazione".
- Enhanced the FormulaStepEditorView with new duration and reminder pickers for better user interaction.

* feat(v2-shell): Phase 17 — V2 shell & Preparazioni hubs (#19)

* feat(v2-shell): Phase 17 — shell & Preparazioni hubs

Migrate root shell from v1 four-tab layout to v2 three-tab shell
(Oggi / Preparazioni / Knowledge). Introduce Preparazioni hub with
Pane e lievito madre and Milk kefir domain cards, and prepare the
additive SwiftData v2 schema boundary before kefir models land.

Key changes:
- RootTab enum: .oggi / .preparazioni / .knowledge
- PreparationsRoute replaces BakesRoute + StarterRoute for unified
  navigation; direct-object routing bypasses hub traversal from
  notifications and Oggi operational taps
- New views: PreparationsView, PreparationHubCardView, BreadHubView,
  KefirHubView (placeholder)
- LevainSchemaV2 additive boundary + 9 PersistenceMigrationTests
- All existing bread/starter deep links and notification routing
  preserved through the migrated shell
- 23/23 unit tests passing; UI test coverage updated + new
  PreparationsFlowUITests suite

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* v2 docs

* ci: trigger build after runner restart

* ci: retry build

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(oggi): Phase 18 — cross-domain agenda feed, TodayOperationalCardView, kefir-ready router (#20)

* feat(oggi): Phase 18 — cross-domain agenda feed, TodayOperationalCardView, kefir-ready router

- TodayAgendaBuilder: unified ranked feed with domain/urgency metadata, kefir-ready Kind.kefir
- TodayOperationalCardView: shared domain-cued card wrapper (Pane/Starter/Kefir grammar)
- TodayView: feed-based rendering replaces section buckets, tomorrow taps use router.openBake
- TodayStepCardView/TodayStarterReminderRow: urgency-based labels replace section-based
- AppRouter: PreparationsRoute.kefirBatch(UUID), openKefirBatch, DeepLink.kefirBatch
- Tests: TodayAgendaBuilderTests v2 ordering contract, AppRouterTests kefir+direct-route, NotificationRouteUITests v2 shell identifiers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(review): address PR #20 review comments

- "Nuovo kefir" → "Nuovo batch" for copy consistency with Kefir hub and addendum A4
- Fix nested buttons in PreparationHubCardView and BreadHubEntryRow: replace outer Button with contentShape+onTapGesture so inner empty-state CTA receives taps correctly
- Remove stale Phase 18-02 forward references from TodayAgendaBuilder comments
- Fix English accessibility label "… domain" → Italian "Dominio: …" in TodayOperationalCardView

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

* v2

* docs: capture todo - selettore fonte lievito con ricalcolo automatico

Area: ui
Conversione sourdough → lievito commerciale con ricalcolo farina/acqua/tempi

Made-with: Cursor

* feat: selettore fonte lievito con ricalcolo automatico quantità e tempi

- Aggiunge YeastProfile enum (slow/medium/fast) e YeastType.instantYeast
- Introduce YeastConversionService con logica di conversione sourdough→commerciale
  (scomposizione starter, calcolo lievito per 500g farina, conversioni tra tipi)
- BakeScheduler accetta YeastConversionResult: sostituisce farina/acqua/durate
  di bulk e proof in base al profilo tempi scelto
- BakeCreationView: sezione "Fonte lievito" con segmented picker
  Lievito madre / Commerciale + picker tipo lievito + picker profilo +
  preview ricalcolo in tempo reale (farina, acqua, grammi lievito, durate)

Made-with: Cursor

* docs: capture todo - formula edit button + unified list + restore-to-default

Area: ui
Made-with: Cursor

* feat: lista ricette unificata, modifica e ripristino default

- RecipeFormula: aggiunto isSystemFormula e isModifiedFromDefault
- AppSettings: aggiunto didSeedSystemFormulas per idempotenza seeding
- SeedDataLoader: ensureSystemFormulas() persiste system_formulas.json in
  SwiftData al primo avvio (indipendente dal seed di esempio)
- SystemFormulaLoader: loadSystemFormulas() + formula(id:) per lookup da JSON
- FormulaListView: mostra tutte le ricette (sistema + utente); badge
  "Mia ricetta" per le personali, "Modificata" per quelle di sistema editate
- FormulaDetailView: bottone matita in toolbar (in alto a destra), bottone
  "Ripristina default" con confirmation dialog per ricette di sistema editate
- FormulaEditorView: imposta isModifiedFromDefault=true al salvataggio di
  una ricetta di sistema

Fixes: .planning/todos/pending/2026-04-04-formula-edit-and-unified-list.md
Made-with: Cursor

* docs: close todo - formula edit and unified list

Made-with: Cursor

* fix: aggiungi default value inline a isSystemFormula/isModifiedFromDefault per migrazione SwiftData

Made-with: Cursor

* feat: ingredienti nel dettaglio ricetta + archivio ricette con swipe

- RecipeFormula: aggiunto isArchived: Bool = false per supportare l'archivio
- FormulaDetailView: renderizza ora le sezioni Ingredienti e Dettagli
  (procedimento) dal JSON, precedentemente parsate ma non mostrate
- FormulaListView: convertito in List per supportare swipeActions;
  swipe a sinistra → archivia la ricetta; bottone "Archivio ricette" visibile
  quando ci sono ricette archiviate; FormulaArchiveView integrata con
  swipe destra ripristina, swipe sinistra elimina, selezione multipla

Made-with: Cursor

* fix: TextEditor piena larghezza per Dettagli e Note nel FormulaStepEditorView

I campi multiriga usavano LabeledContent con testo allineato a destra,
schiacciandoli in pochi pixel. Sostituiti con VStack label+TextEditor
a piena larghezza per una lettura e modifica comoda.

Made-with: Cursor

* fix: @bindable su FormulaDetailView per osservare le modifiche SwiftData

Con 'let formula: RecipeFormula', SwiftUI non registrava correttamente la
subscription sulle proprietà interne del @model (es. defaultStepsPayload),
perciò FormulaDetailView non si aggiornava dopo il salvataggio.
Cambiato in '@bindable var formula' per garantire la piena osservabilità.

Made-with: Cursor

* fix: aggiornamento dettaglio ricetta dopo modifica (Query + defaultStepsPayload)

- RecipeFormula: defaultStepsPayload non più private così SwiftData può
  propagare correttamente le notifiche di modifica sul payload degli step
- FormulaLookupView: sostituito fetch one-shot in @State con @query filtrata
  per id, così FormulaDetailView riceve sempre l'istanza osservata dal
  contesto e si ridisegna dopo save dal foglio modifica

Made-with: Cursor

* fix: simbolo SF valido, refresh dettaglio ricetta, TextEditor senza visual-style spam

- Sostituito loaf.fill (non presente nel set di simboli) con fork.knife
- FormulaDetailView: token di hash sui campi persistiti + .id() sul contenuto
  per forzare il ridisegno dopo modifica (workaround ForEach/step UUID)
- FormulaStepEditorView: rimosso scrollContentBackground(.hidden) sui
  TextEditor; sfondo card con corner radius per ridurre warning UIKit

Made-with: Cursor

* fix: rimuovi .id basato su hash (freeze UI) + refresh solo a chiusura foglio

Il token derivato da Hasher su Double/Data poteva cambiare tra un frame e
l'altro, ricreando il VStack all'infinito e bloccando l'app.

Sostituito con @State detailRefreshToken incrementato solo quando il foglio
modifica ricetta si chiude (wasShowing && !isShowing) o dopo ripristino.

TextEditor: tolto sfondo annidato nel Form; solo scrollContentBackground hidden.
Made-with: Cursor

* feat: starter UX, bake scheduler, step cards, system formulas

Updates AppRouter, BreadHub, Today; expands Starter model/views;
BakeScheduler + tests; system_formulas content; Xcode project/scheme.

Made-with: Cursor

* refactor: update EmptyStateView to support optional action and improve BakesView structure

- Modified EmptyStateView to accept optional actionTitle and action parameters, allowing for more flexible usage.
- Refactored BakesView to utilize the new EmptyStateView structure, enhancing readability and maintainability.
- Introduced a new ClassifiedBakes struct to better categorize active and archived bakes.
- Updated various views to remove unnecessary presentation backgrounds and improve layout consistency.

Made-with: Cursor

* feat: complete Phase 23 with glossary linking and knowledge enhancements

- Finalized Phase 23, introducing canonical glossary routing, read-only linking, and alias-aware search for improved knowledge access.
- Updated project documentation to reflect the completion of Phase 23 and the transition to Phase 22 for optional culture and grain tracking.
- Enhanced the app's navigation and user experience by integrating contextual knowledge presentation and refining the UI for better accessibility.

Made-with: Cursor

* chore: remove Batch subproject reference

- Deleted the Batch subproject as it is no longer needed in the current project structure.

* chore: align repo for public release

* fix: replace Theme.Layout with Theme.Spacing in KnowledgeDetailView

Theme.Layout does not exist — use Theme.Spacing.md for horizontal
padding and Theme.Spacing.xl for bottom padding.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: resolve post-merge build errors

- Add AppSettings.didSeedSystemFormulas field missing from model
- Fix SectionCardEmphasis type reference in KefirBatchPresentation
- Remove non-existent yeastConversion: param from generateBake call;
  apply conversion to transient formula weights instead
- Add missing onSaved: param to FormulaEditorView call sites
- Regenerate xcodeproj to include KnowledgeGlossaryIndex and
  GlossaryLinkedText files missing from sources

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix: restore all source files to correct develop version

The merge conflict resolution incorrectly used --theirs (origin/main)
instead of --ours (develop) for all Swift source files, reverting them
to an older version. Restore all affected files from 2230b15.

Build verified passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* refactor: update SVG logo and improve BakeCreationView layout

- Enhanced the SVG logo by restructuring styles and adding a clipPath for better rendering.
- Renamed the "Avanzate" section to "Note" in BakeCreationView for clarity.
- Improved layout and spacing in BakeCreationView, including adjustments to data rows and dividers for better visual hierarchy.
- Updated YeastType short titles for consistency in terminology.
- Refined text styles in TodayStarterReminderRow and TodayView for improved readability.

* chore: default PR flow to develop, guard PRs to main

Set documentation and automation for contributors to target develop.
Add pull_request_target workflow that comments and closes PRs to main
opened by users other than lorentsob. Default branch on GitHub is main.

Made-with: Cursor

* docs: keep CONTRIBUTING.md in English

Made-with: Cursor

* fix: update Italian text for clarity and consistency across various views

- Changed "Fasi della ricetta" in BakeDetailView for better context.
- Corrected "fase non piu attiva" to "fase non più attiva" in BakeStepCardView for grammatical accuracy.
- Removed period from "I tuoi batch attivi." in FermentationsView subtitle for consistency.
- Updated notification message in KefirBatchManageSheet to "Rinnovo registrato" for clarity.
- Adjusted subtitles in KefirHubView and StarterView for improved readability.
- Simplified message in TodayView for a more concise user experience.
- Enhanced KefirBatchState titles for better understanding of batch statuses.
- Refined reminder messages in BakeReminderPlanner and KefirReminderPlanner for clarity and consistency.

* fix(notifications): add rolling overdue reminders (#24)

* ci: make xcpretty optional in iOS CI build step

The self-hosted runner moved to a new Mac without xcpretty; with
pipefail the build step failed on 'command not found'. Fall back to
plain output when xcpretty is missing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(splash): animated Batch logo, refreshed app icon and brand assets

- Splash plays the BatchLogoLoading video (static logo with Reduce Motion)
- New app icon set; fix 1024 marketing icon filename case
- Add AppLogoPrimary and updated logo SVGs
- Add Remotion source used to render the loading animation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat(bakes): adapt recipes to commercial yeast, bullet descriptions

- RecipeYeastAdaptationService adapts doses and procedure text when
  switching to commercial yeast; scheduler uses converted dough weight
- DescriptionBulletList renders step descriptions as bullet lists
- UI refinements in bakes, formulas, fermentations, kefir and starter
- Tests for commercial yeast adaptation

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs: add product design case history and knowledge export

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(content): restore knowledge guides and brioche formula lost in merge

The 2026-04-09 merge ce73c95 (resolving PR #22 conflicts) reverted
knowledge.json to a pre-Phase 23 version, dropping five guides and all
glossary aliases, and removed the 'Pan Brioche (lievito di birra)'
system formula. Glossary linking and alias search were silently empty.

Restore both from 0d51d09, keeping later edits to the pizza formula.
Unit tests: 57 XCTest + 80 Swift Testing now pass (18+1 failed before).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants