Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
aa44556
chore(ci): add develop branch to CI triggers (#4)
lorentsob Mar 17, 2026
d08831c
fix(ci): remove manual simulator boot step that caused hang (#5)
lorentsob Mar 17, 2026
fa0d54d
chore(ci): use self-hosted runner, remove brew steps, fix picker test
lorentsob Mar 17, 2026
88a65f0
Feature/phase 16 step ingredients (#6)
lorentsob Mar 17, 2026
f824022
chore(ci): clean stale xcresult before test run on self-hosted runner
lorentsob Mar 17, 2026
a0fd5ad
fix(bakes): prevent crash on bake close by passing ID to notification…
lorentsob Mar 17, 2026
be69e13
fix(notifications): update remaining callers to new syncNotifications…
lorentsob Mar 17, 2026
cd13d83
fix(concurrency): add @MainActor to views using ModelContext in Task …
lorentsob Mar 17, 2026
664b741
fix(notifications): use distinct method labels to resolve redeclarati…
lorentsob Mar 17, 2026
0d8a0e0
fix(notifications): use distinct method labels to resolve redeclarati…
lorentsob Mar 17, 2026
65728b5
fix(notifications): update BakesView to use forBake label (#14)
lorentsob Mar 17, 2026
1ee9224
fix(tests): use type-agnostic query for BakesScrollView (#15)
lorentsob Mar 17, 2026
44a703e
feat(bakes): enhance bake completion handling and UI updates (#16)
lorentsob Mar 18, 2026
7f3bcc4
pipeline build&test (#17)
lorentsob Mar 18, 2026
cb47afb
refactor(FormulaDetailView): comment out duplicate button functionali…
lorentsob Mar 18, 2026
f969559
elimina tasto modifica da ricetta (#18)
lorentsob Mar 18, 2026
7ecdd43
feat(FormulaDetailView): add formula editor and improve data safety
lorentsob Mar 18, 2026
1213177
feat(v2-shell): Phase 17 — V2 shell & Preparazioni hubs (#19)
lorentsob Mar 29, 2026
23705f4
feat(oggi): Phase 18 — cross-domain agenda feed, TodayOperationalCard…
lorentsob Mar 29, 2026
1502459
v2
lorentsob Apr 3, 2026
1d7b2e8
docs: capture todo - selettore fonte lievito con ricalcolo automatico
lorentsob Apr 4, 2026
a632abc
feat: selettore fonte lievito con ricalcolo automatico quantità e tempi
lorentsob Apr 4, 2026
097585d
docs: capture todo - formula edit button + unified list + restore-to-…
lorentsob Apr 4, 2026
5be7dfb
feat: lista ricette unificata, modifica e ripristino default
lorentsob Apr 4, 2026
d91203a
docs: close todo - formula edit and unified list
lorentsob Apr 4, 2026
b53c305
fix: aggiungi default value inline a isSystemFormula/isModifiedFromDe…
lorentsob Apr 4, 2026
c0796aa
feat: ingredienti nel dettaglio ricetta + archivio ricette con swipe
lorentsob Apr 4, 2026
ab78098
fix: TextEditor piena larghezza per Dettagli e Note nel FormulaStepEd…
lorentsob Apr 4, 2026
278647d
fix: @Bindable su FormulaDetailView per osservare le modifiche SwiftData
lorentsob Apr 4, 2026
ec287a5
fix: aggiornamento dettaglio ricetta dopo modifica (Query + defaultSt…
lorentsob Apr 4, 2026
e3dac42
fix: simbolo SF valido, refresh dettaglio ricetta, TextEditor senza v…
lorentsob Apr 4, 2026
fe9acaf
fix: rimuovi .id basato su hash (freeze UI) + refresh solo a chiusura…
lorentsob Apr 4, 2026
e1dd3d7
feat: starter UX, bake scheduler, step cards, system formulas
lorentsob Apr 5, 2026
7b513eb
refactor: update EmptyStateView to support optional action and improv…
lorentsob Apr 8, 2026
db3f7b3
feat: complete Phase 23 with glossary linking and knowledge enhancements
lorentsob Apr 8, 2026
80b43ca
chore: remove Batch subproject reference
lorentsob Apr 8, 2026
2230b15
chore: align repo for public release
lorentsob Apr 9, 2026
fe99808
chore: merge main into develop to resolve PR #22 conflicts
lorentsob Apr 9, 2026
6b2d669
fix: replace Theme.Layout with Theme.Spacing in KnowledgeDetailView
lorentsob Apr 9, 2026
40e0492
fix: resolve post-merge build errors
lorentsob Apr 9, 2026
7d0d840
fix: restore all source files to correct develop version
lorentsob Apr 9, 2026
d826329
refactor: update SVG logo and improve BakeCreationView layout
lorentsob Apr 9, 2026
586e8aa
chore: default PR flow to develop, guard PRs to main
lorentsob Apr 9, 2026
03b585a
chore: sync develop with main after docs on main
lorentsob Apr 9, 2026
5c44bb6
docs: keep CONTRIBUTING.md in English
lorentsob Apr 9, 2026
8354dbb
fix: update Italian text for clarity and consistency across various v…
lorentsob Apr 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -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.

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

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

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.

Suggested change
- **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.

Copilot uses AI. Check for mistakes.
- **Maintainer:** PR verso `main` solo per integrazione/release quando appropriato.

## Descrizione

<!-- Cosa cambia e perché -->
46 changes: 46 additions & 0 deletions .github/workflows/pr-base-main-guard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Le PR verso `main` sono riservate al maintainer (@lorentsob).
# Gli altri contributi devono usare `develop` come branch base.
name: PR base branch (main)

on:
pull_request_target:
types: [opened, reopened, edited]
branches:
- main

permissions:
pull-requests: write
issues: write

jobs:
enforce-develop-for-contributors:
if: github.event.pull_request.user.login != 'lorentsob'
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
script: |
const pr = context.payload.pull_request;
const body = [
'Questa PR punta a `main`, che in questo repo è riservato ai merge di release da parte del maintainer.',
'',
'**Apri una nuova pull request con base `develop`:**',
'- nella PR, usa il menu del branch base e seleziona `develop`, oppure',
'- chiudi questa PR e creane una nuova con base `develop`.',
'',
'Vedi [CONTRIBUTING.md](https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/blob/main/CONTRIBUTING.md) per i dettagli.'
].join('\n');

await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: pr.number,
body
});

await github.rest.pulls.update({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: pr.number,
state: 'closed'
});
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ Thanks for checking out the repository.

## Branching

- Open pull requests against `develop`
- `main` is reserved for release-ready code
- Pull requests to `main` may be closed unless explicitly requested by the maintainer
- Open pull requests against **`develop`** for features, fixes, and reviews. That is where active development happens.
- **`main`** is the default branch on clone and the release snapshot; **do not open pull requests against `main`** unless you are the repository maintainer. Pull requests to `main` from other accounts are closed automatically with instructions to retarget **`develop`**.

The maintainer (@lorentsob) integrates on `develop` and merges or aligns to `main` when appropriate.

## Before opening a PR

1. Sync `develop`
2. Create a feature or fix branch
3. Open the PR with base `develop`
1. Start from an up-to-date `develop` (`git fetch origin && git checkout develop && git pull`).
2. Create a feature or fix branch (`feature/…` or `fix/…`).
3. Open the PR with **base `develop`**.

## Notes
## CI

- CI currently relies on a self-hosted runner
- External forks may not reproduce the same build environment
CI uses a self-hosted runner; external forks may not get a green build without an equivalent environment. See [docs/ci-cd.md](docs/ci-cd.md).
2 changes: 1 addition & 1 deletion Levain/Features/Bakes/BakeDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct BakeDetailView: View {

VStack(alignment: .leading, spacing: 12) {
HStack {
Text(isCancelled ? "Timeline archiviata" : (activeStep == nil ? "Timeline" : "Ricetta step by step"))
Text(isCancelled ? "Timeline archiviata" : (activeStep == nil ? "Timeline" : "Fasi della ricetta"))
.font(.headline)
.foregroundStyle(Theme.ink)
Spacer()
Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Bakes/BakeStepCardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ struct StepTimelineRow: View {

private var statusLine: String {
if isArchived {
return "Impasto annullato — fase non piu attiva"
return "Impasto annullato — fase non più attiva"
}

switch step.status {
Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Fermentations/FermentationsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct FermentationsView: View {
SectionCard(emphasis: .tinted) {
ScreenTitleBlock(
title: "Batch",
subtitle: "I tuoi batch attivi."
subtitle: "I tuoi batch attivi"
)
.padding(.bottom, Theme.Spacing.xs)

Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Kefir/KefirBatchManageSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct KefirBatchManageSheet: View {
batch.renew(at: now)
KefirEventRecorder.recordRenewal(of: batch, in: modelContext, at: now)
try? saveContext()
syncNotificationsAndShowBanner("Gestione aggiornata a ora")
syncNotificationsAndShowBanner("Rinnovo registrato")
}
dismiss()
}
Expand Down
4 changes: 2 additions & 2 deletions Levain/Features/Kefir/KefirHubView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ struct KefirHubView: View {
SectionCard(emphasis: .tinted) {
ScreenTitleBlock(
title: "Kefir",
subtitle: "I tuoi batch di Kefir."
subtitle: "I tuoi batch di kefir"
)

if batches.isEmpty == false {
Expand Down Expand Up @@ -106,7 +106,7 @@ struct KefirHubView: View {
Text("Cronologia batch")
.font(Theme.Typography.headline)
.foregroundStyle(Theme.Text.primary)
Text("Tieni traccia dei rinfreschi dei tuoi batch")
Text("Tieni traccia dei rinnovi dei tuoi batch")
.font(Theme.Typography.subheadline)
.foregroundStyle(Theme.Text.secondary)
.fixedSize(horizontal: false, vertical: true)
Expand Down
6 changes: 3 additions & 3 deletions Levain/Features/Starter/RefreshLogView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct RefreshLogView: View {
Section("Dettagli") {
DatePicker("Quando", selection: $dateTime)
TextField("Rapporto", text: $ratioText)
NumericField(title: "Fuori frigo (°C)", value: $ambientTemp)
NumericField(title: "Temp. ambiente (°C)", value: $ambientTemp)
}

Section("Mix Farine") {
Expand Down Expand Up @@ -87,7 +87,7 @@ struct RefreshLogView: View {
}
}

Section("Passaggio in frigo") {
Section("In frigo") {
Toggle("Messo subito in frigo", isOn: $recordFridgeTime)
if recordFridgeTime {
DatePicker("Messo in frigo alle", selection: $putInFridgeAt)
Expand All @@ -99,7 +99,7 @@ struct RefreshLogView: View {
.lineLimit(2...5)
}
}
.navigationTitle("Log rinfresco")
.navigationTitle("Rinfresco")
.tint(Theme.Control.primaryFill)
.toolbar {
ToolbarItem(placement: .cancellationAction) {
Expand Down
4 changes: 2 additions & 2 deletions Levain/Features/Starter/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct SettingsView: View {
}

Section("Backup") {
Text("Esporta o ripristina solo i dati utente. Knowledge e template di sistema restano nel bundle dell'app.")
Text("Esporta o ripristina solo i dati utente. Guide e modelli di sistema restano nell'app.")
.font(.footnote)
.foregroundStyle(Theme.muted)

Expand All @@ -88,7 +88,7 @@ struct SettingsView: View {

Section("Contenuto incluso") {
Text("Starter, rinfreschi, ricette salvate, impasti e fasi.")
Text("Non include knowledge, template di sistema o flag tecnici interni.")
Text("Non include guide, modelli di sistema o preferenze dell'app.")
.foregroundStyle(Theme.muted)
}
}
Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Starter/StarterDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ struct StarterDetailView: View {

SectionCard {
VStack(alignment: .leading, spacing: 4) {
Text("Log rinfreschi")
Text("Rinfreschi")
.font(.headline)
.foregroundStyle(Theme.ink)
Text("Registro dei rinfreschi passati con dosi, tempi e note.")
Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Starter/StarterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct StarterView: View {
SectionCard(emphasis: .tinted) {
ScreenTitleBlock(
title: "Starter",
subtitle: "Controlla i tuoi starter"
subtitle: "I tuoi starter"
)

if !activeStarters.isEmpty {
Expand Down
2 changes: 1 addition & 1 deletion Levain/Features/Today/TodayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct TodayView: View {
if allFeaturesDisabled {
EmptyStateView(
title: "Nessuna sezione attiva",
message: "Attiva almeno una sezione (Impasti, Starter o Kefir) dalle impostazioni per iniziare a usare Levain.",
message: "Attiva almeno una sezione dalle impostazioni per iniziare.",
actionTitle: "Apri impostazioni"
) {
showingSettings = true
Expand Down
2 changes: 1 addition & 1 deletion Levain/Models/DomainEnums.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ enum KefirBatchState: String, CaseIterable, Codable, Identifiable {
var title: String {
switch self {
case .active: "Attivo"
case .dueSoon: "Attenzione"
case .dueSoon: "Da rinfrescare a breve"
case .dueNow: "Da rinfrescare"
Comment on lines +89 to 90

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

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

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).

Suggested change
case .dueSoon: "Da rinfrescare a breve"
case .dueNow: "Da rinfrescare"
case .dueSoon: "Da rinnovare a breve"
case .dueNow: "Da rinnovare"

Copilot uses AI. Check for mistakes.
case .overdue: "In ritardo"
case .pausedFridge: "In frigo"
Expand Down
6 changes: 3 additions & 3 deletions Levain/Services/BakeReminderPlanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ enum BakeReminderPlanner {
BakeReminder(
identifier: identifier(for: bake, step: step, phase: .start),
title: "\(step.displayName) · \(bake.name)",
body: step.status == .running ? "Questo passaggio è in corso. Apri l'impasto per aggiornarlo." : "È il momento di intervenire su questo passaggio. Apri l'impasto per continuare.",
body: step.status == .running ? "Questa fase è in corso. Aprila per completarla." : "È il momento della prossima fase.",
route: AppRouter.DeepLink.bake(id: bake.id, stepID: step.id),
fireDate: fireDate
)
Expand All @@ -53,7 +53,7 @@ enum BakeReminderPlanner {
BakeReminder(
identifier: identifier(for: bake, step: step, phase: .start),
title: "\(step.displayName) · \(bake.name)",
body: "Il tuo impasto è pronto per il prossimo passaggio. Aprilo per continuare.",
body: "Il tuo impasto è pronto per la fase successiva. Aprilo per continuare.",
route: AppRouter.DeepLink.bake(id: bake.id, stepID: step.id),
fireDate: step.windowStart
)
Expand All @@ -65,7 +65,7 @@ enum BakeReminderPlanner {
BakeReminder(
identifier: identifier(for: bake, step: step, phase: .windowClose),
title: "\(step.displayName) · \(bake.name)",
body: "La finestra utile sta per chiudersi. Apri l'impasto se devi intervenire ora.",
body: "È il momento di completare questa fase.",
route: AppRouter.DeepLink.bake(id: bake.id, stepID: step.id),
fireDate: step.windowEnd
)
Expand Down
6 changes: 3 additions & 3 deletions Levain/Services/KefirReminderPlanner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ enum KefirReminderPlanner {
private static func warningBody(for batch: KefirBatch) -> String {
switch batch.storageMode {
case .roomTemperature:
return "Tra poco sarà il momento di rinnovare il batch"
return "Tra poco sarà il momento di rinnovare il batch."
case .fridge:
return "Domani conviene controllare il batch in frigo"
return "Domani dovrai controllare il batch in frigo."
case .freezer:
return "Tra poco sarà il momento di riattivare il batch"
return "Tra poco sarà il momento di riattivare il batch."
}
}

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,18 @@ Because of that, the repo is optimized for:
- honest documentation
- clear architecture and feature boundaries

It is **not** currently positioned as a broad open contribution project.

## Current State

The product direction, core UX, architecture, and roadmap are already defined in detail. The repository documents a native iPhone app with a three-area structure around Oggi, Batch, and Guide, and a roadmap that covers app shell, execution flows, starter management, kefir tracking, knowledge, and hardening for internal release confidence.

## Contributing

The default branch is **`main`** (release-oriented snapshot). **Open pull requests against `develop`** for changes you want reviewed and integrated. Pull requests targeting `main` from accounts other than the repository maintainer are closed automatically with instructions to retarget `develop`.

See [CONTRIBUTING.md](CONTRIBUTING.md) for the full branch policy.

## Local Development

### Prerequisites
Expand Down
Loading
Loading