Repository navigation
Conversation
* 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
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>
* 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: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
…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
…on, update all callers (#12)
…on, update all callers (#13)
* 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 - 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.
…ty for future implementation
* elimina tasto modifica da ricetta * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
- 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 — 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>
…View, 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>
Area: ui Conversione sourdough → lievito commerciale con ricalcolo farina/acqua/tempi Made-with: Cursor
- 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
…default Area: ui Made-with: Cursor
- 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
Made-with: Cursor
…fault per migrazione SwiftData Made-with: Cursor
- 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
…itorView 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
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
…epsPayload) - 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
…isual-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
… 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
Updates AppRouter, BreadHub, Today; expands Starter model/views; BakeScheduler + tests; system_formulas content; Xcode project/scheme. Made-with: Cursor
…e 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
- 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
- Deleted the Batch subproject as it is no longer needed in the current project structure.
- Resolve content conflicts across Swift source files (take develop version) - Resolve CI workflow conflicts (keep both main+develop branch triggers) - Remove .planning/ files deleted in develop's public release alignment - Add README portfolio upgrade Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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>
- 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>
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>
- 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.
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
Resolve README/CONTRIBUTING merge; keep Italian CONTRIBUTING and full Contributing section in README. Made-with: Cursor
Made-with: Cursor
…iews - 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.
There was a problem hiding this comment.
Pull request overview
This PR refines user-facing Italian copy across the app (notifications, headings, labels) and formalizes the repository contribution flow by steering external PRs to develop while protecting main.
Changes:
- Updated multiple UI and notification strings for consistency/clarity (e.g., “fase” wording, punctuation, kefir terminology, shorter empty-state messaging).
- Documented and enforced branch policy:
mainas release snapshot, contributions viadevelop(README + CONTRIBUTING + PR template + auto-close workflow). - Added a comprehensive “copy review” document to track current copy and proposed improvements.
Reviewed changes
Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds contribution/branch guidance and clarifies repo intent. |
| CONTRIBUTING.md | Expands branching + CI notes; emphasizes PR base develop. |
| .github/workflows/pr-base-main-guard.yml | Auto-comments + closes non-maintainer PRs targeting main. |
| .github/pull_request_template.md | Introduces PR checklist text for correct base branch selection. |
| copy-review.md | Adds a generated, structured inventory of app copy and issues/proposals. |
| Levain/Services/KefirReminderPlanner.swift | Adjusts kefir notification bodies (punctuation/tone). |
| Levain/Services/BakeReminderPlanner.swift | Updates bake step notification bodies to “fase”-based wording. |
| Levain/Models/DomainEnums.swift | Updates KefirBatchState display title for dueSoon. |
| Levain/Features/Today/TodayView.swift | Shortens the “all features disabled” empty-state message. |
| Levain/Features/Starter/StarterView.swift | Tweaks Starter screen subtitle wording. |
| Levain/Features/Starter/StarterDetailView.swift | Renames section header from “Log rinfreschi” to “Rinfreschi”. |
| Levain/Features/Starter/SettingsView.swift | Rephrases backup/contents copy (“Guide”, “modelli”, removes internal jargon). |
| Levain/Features/Starter/RefreshLogView.swift | Clarifies temperature label, fridge section title, and navigation title. |
| Levain/Features/Kefir/KefirHubView.swift | Normalizes kefir subtitle casing and uses “rinnovi” terminology. |
| Levain/Features/Kefir/KefirBatchManageSheet.swift | Updates toast/banner message after renewal. |
| Levain/Features/Fermentations/FermentationsView.swift | Removes trailing period from subtitle. |
| Levain/Features/Bakes/BakeStepCardView.swift | Fixes Italian accent (“più”). |
| Levain/Features/Bakes/BakeDetailView.swift | Replaces mixed-language “step by step” label with Italian wording. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| case .dueSoon: "Da rinfrescare a breve" | ||
| case .dueNow: "Da rinfrescare" |
There was a problem hiding this comment.
In questo contesto KefirBatchState usa ancora “rinfrescare” (es. dueSoon/dueNow), ma il resto del dominio kefir in UI/azioni usa “rinnovo”/“Rinnova” (es. KefirPrimaryAction.renew, copy in KefirHubView). Questo crea incoerenza nei badge/Today agenda (lo StateBadge mostra kefirState.title). Allinea i titoli dello state a “Da rinnovare …” (e aggiorna anche dueNow per coerenza).
| case .dueSoon: "Da rinfrescare a breve" | |
| case .dueNow: "Da rinfrescare" | |
| case .dueSoon: "Da rinnovare a breve" | |
| case .dueNow: "Da rinnovare" |
| @@ -0,0 +1,8 @@ | |||
| ## Branch base | |||
|
|
|||
| - **Contributori esterni:** imposta il branch base su **`develop`** (non `main`). Vedi [CONTRIBUTING.md](../CONTRIBUTING.md) alla root del repo. | |||
There was a problem hiding this comment.
Il link relativo [CONTRIBUTING.md](../CONTRIBUTING.md) nel template PR molto probabilmente risulta rotto quando il markdown è renderizzato nella descrizione della PR (i link relativi in issue/PR non sono risolti rispetto al path del file). Usa un link assoluto (es. https://github.com/<owner>/<repo>/blob/main/CONTRIBUTING.md) o un link relativo che punti chiaramente al file in repo root in modo che funzioni anche nel contesto PR.
| - **Contributori esterni:** imposta il branch base su **`develop`** (non `main`). Vedi [CONTRIBUTING.md](../CONTRIBUTING.md) alla root del repo. | |
| - **Contributori esterni:** imposta il branch base su **`develop`** (non `main`). Vedi [CONTRIBUTING.md](./CONTRIBUTING.md) alla root del repo. |
* 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. --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
No description provided.