diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..41ad681 --- /dev/null +++ b/.github/pull_request_template.md @@ -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. +- **Maintainer:** PR verso `main` solo per integrazione/release quando appropriato. + +## Descrizione + + diff --git a/.github/workflows/ios-ci.yml b/.github/workflows/ios-ci.yml index c47959f..1d64915 100644 --- a/.github/workflows/ios-ci.yml +++ b/.github/workflows/ios-ci.yml @@ -68,7 +68,7 @@ jobs: -destination "generic/platform=iOS Simulator" \ CODE_SIGNING_ALLOWED=NO \ SWIFT_TREAT_WARNINGS_AS_ERRORS=YES \ - build 2>&1 | tee /tmp/build.log | xcpretty --color + build 2>&1 | tee /tmp/build.log | { if command -v xcpretty >/dev/null; then xcpretty --color; else cat; fi; } # ── 6. List simulators (diagnostic) ───────────────────────────────────── - name: List available simulators diff --git a/.github/workflows/pr-base-main-guard.yml b/.github/workflows/pr-base-main-guard.yml new file mode 100644 index 0000000..0dcb0c1 --- /dev/null +++ b/.github/workflows/pr-base-main-guard.yml @@ -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' + }); diff --git a/.gitignore b/.gitignore index 5152dbc..31a568a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ xcuserdata/ # Build artifacts build_output*.log *.ipa +node_modules/ +tools/remotion/**/out/ # Temp dev scripts fix_*.py @@ -44,3 +46,6 @@ docs/runbook.md *.p12 *.mobileprovision *.cer + +# Local generated outputs +outputs/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 472c406..4ec1859 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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). diff --git a/Levain.xcodeproj/project.pbxproj b/Levain.xcodeproj/project.pbxproj index 8848536..37520b0 100644 --- a/Levain.xcodeproj/project.pbxproj +++ b/Levain.xcodeproj/project.pbxproj @@ -18,6 +18,7 @@ 0D244B36BB2D2FBD61B00E07 /* Date+Levain.swift in Sources */ = {isa = PBXBuildFile; fileRef = A4FAA5A66043B616FE6D1EEB /* Date+Levain.swift */; }; 117C421943BF09675D867489 /* SystemFormulaLoader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 88067D9DEA0402EE4E48496A /* SystemFormulaLoader.swift */; }; 19909D6C120DD64EDE45A9BA /* SectionCard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0EF66CC37AE507FB215CFF22 /* SectionCard.swift */; }; + 2A3B4C5D6E7F8A9B0C1D2E3F /* DescriptionBulletList.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A2B3C4D5E6F7A8B9C0D1E2F /* DescriptionBulletList.swift */; }; 1B203CD85910F7A753EA7B7E /* knowledge.json in Resources */ = {isa = PBXBuildFile; fileRef = 40446C7081740B9B23D8ADD4 /* knowledge.json */; }; 1BE392C607BBCEC2EAF5137D /* KefirReminderPlannerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 083F30497BFDB52B2F385962 /* KefirReminderPlannerTests.swift */; }; 1F99F650F9715E660F28D7D1 /* DomainFixtures.swift in Sources */ = {isa = PBXBuildFile; fileRef = B103892E03A334196B1D10CE /* DomainFixtures.swift */; }; @@ -152,12 +153,13 @@ 019C5DED2589ED39E611C1A1 /* KnowledgeLoaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeLoaderTests.swift; sourceTree = ""; }; 03068B3858AD919A409B16D5 /* RecipeFormulaTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RecipeFormulaTests.swift; sourceTree = ""; }; 031DE41E33A5A47BB92E1B84 /* LevainApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LevainApp.swift; sourceTree = ""; }; - 03C325E845719C6FC294C6FE /* logo-01.svg */ = {isa = PBXFileReference; path = "logo-01.svg"; sourceTree = ""; }; + 03C325E845719C6FC294C6FE /* logo-01.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = "logo-01.svg"; sourceTree = ""; }; 0488D5D97917ED1EDCE7A49E /* KnowledgeRowView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeRowView.swift; sourceTree = ""; }; 05BB2A8E3BCF16B390C67996 /* FlourSelectionEditorView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlourSelectionEditorView.swift; sourceTree = ""; }; - 0829A06D388058C26EB78A33 /* starter.svg */ = {isa = PBXFileReference; path = starter.svg; sourceTree = ""; }; + 0829A06D388058C26EB78A33 /* starter.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = starter.svg; sourceTree = ""; }; 083F30497BFDB52B2F385962 /* KefirReminderPlannerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirReminderPlannerTests.swift; sourceTree = ""; }; 0EF66CC37AE507FB215CFF22 /* SectionCard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SectionCard.swift; sourceTree = ""; }; + 1A2B3C4D5E6F7A8B9C0D1E2F /* DescriptionBulletList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DescriptionBulletList.swift; sourceTree = ""; }; 0F4E7C83EE3E491B01BC1D07 /* KefirBatchManageSheet.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirBatchManageSheet.swift; sourceTree = ""; }; 0F73F2107220BBBBD20F36DA /* TodayStarterReminderRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TodayStarterReminderRow.swift; sourceTree = ""; }; 0FF36CA3FB5AF886EBFB28C7 /* KefirFlowUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirFlowUITests.swift; sourceTree = ""; }; @@ -172,7 +174,7 @@ 25425933BA83B4B7162BE06A /* KefirBatchCardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirBatchCardView.swift; sourceTree = ""; }; 2974CC1E6E482DB4EAF2E6FE /* SystemFormulaLoaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemFormulaLoaderTests.swift; sourceTree = ""; }; 2AC91F1BE2D66E6CA2B2D162 /* RefreshHistoryRow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RefreshHistoryRow.swift; sourceTree = ""; }; - 2EFA2DE8D87323F11D4B16F3 /* LevainTests.xctest */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.cfbundle; path = LevainTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 2EFA2DE8D87323F11D4B16F3 /* LevainTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LevainTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 2F702B38C52B89746F9D8DE1 /* BakeReminderPlannerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BakeReminderPlannerTests.swift; sourceTree = ""; }; 2F8DFC3E0B70BF05BE48DA6B /* BakeReminderPlanner.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BakeReminderPlanner.swift; sourceTree = ""; }; 2F987C31F0C39CE7F5933AE5 /* KefirEventTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirEventTests.swift; sourceTree = ""; }; @@ -204,7 +206,7 @@ 623F69F7E6BA861E103B1791 /* YeastConversionService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YeastConversionService.swift; sourceTree = ""; }; 624AD82924BEAD344125588C /* KnowledgeDetailView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeDetailView.swift; sourceTree = ""; }; 638576BACCFFCBDAB792082C /* KefirBatch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirBatch.swift; sourceTree = ""; }; - 65564B7A1CCBBD895F8BE550 /* LevainUITests.xctest */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.cfbundle; path = LevainUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 65564B7A1CCBBD895F8BE550 /* LevainUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LevainUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 66277E1D52967557EA871DEB /* KefirBatchPresentation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirBatchPresentation.swift; sourceTree = ""; }; 67516C2C986793F18606EC30 /* KnowledgeCategoryPillView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeCategoryPillView.swift; sourceTree = ""; }; 6983B1F948DFA6BE209403E8 /* SeedDataLoaderTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SeedDataLoaderTests.swift; sourceTree = ""; }; @@ -215,19 +217,19 @@ 762C7FC5CFEB6829E4E7BEC1 /* FermentationsFlowUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FermentationsFlowUITests.swift; sourceTree = ""; }; 7762E15F65697D717FBB038F /* StateBadgeToneTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StateBadgeToneTests.swift; sourceTree = ""; }; 79D4C487A002E34766EBC3F2 /* AppEnvironment.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppEnvironment.swift; sourceTree = ""; }; - 7A93F72E454DE1667B080E9C /* bake.svg */ = {isa = PBXFileReference; path = bake.svg; sourceTree = ""; }; + 7A93F72E454DE1667B080E9C /* bake.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = bake.svg; sourceTree = ""; }; 7BD7C03D5139BD3131B782AE /* AppRouterTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppRouterTests.swift; sourceTree = ""; }; 7D19BA59B3A928A04BD8843E /* FermentationsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FermentationsView.swift; sourceTree = ""; }; 82808E94CC2A7217CDAAFE45 /* SystemFormula.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemFormula.swift; sourceTree = ""; }; 88067D9DEA0402EE4E48496A /* SystemFormulaLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemFormulaLoader.swift; sourceTree = ""; }; - 89BAF4761DDB1090512623FB /* logo.svg */ = {isa = PBXFileReference; path = logo.svg; sourceTree = ""; }; + 89BAF4761DDB1090512623FB /* logo.svg */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = logo.svg; sourceTree = ""; }; 8B39BE3A6D9E872507ECAB51 /* BakeSchedulerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BakeSchedulerTests.swift; sourceTree = ""; }; 8CBB82511329EC43AD7BC640 /* StarterDetailHeaderView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StarterDetailHeaderView.swift; sourceTree = ""; }; 8E9AA4021F43AE9655D8F68C /* StateBadge.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StateBadge.swift; sourceTree = ""; }; 9069286C22B79776F290E460 /* KnowledgeLoader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeLoader.swift; sourceTree = ""; }; 9527884010C3C4CC2BA7DF2D /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = ""; }; 9A9E648F721B49CD581E8B10 /* logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = logo.png; sourceTree = ""; }; - 9B4004713422E6E47C0B76CD /* Levain.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = Levain.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 9B4004713422E6E47C0B76CD /* Levain.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Levain.app; sourceTree = BUILT_PRODUCTS_DIR; }; 9FC08F220B40EB7C51A3AB1B /* KefirBatchListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KefirBatchListView.swift; sourceTree = ""; }; A061F753EFB622786D154A83 /* KnowledgeItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KnowledgeItem.swift; sourceTree = ""; }; A327533FEB9FDE64DDA58C58 /* AppLaunchOptions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppLaunchOptions.swift; sourceTree = ""; }; @@ -427,6 +429,7 @@ isa = PBXGroup; children = ( 4D09C0219515B0C58E80A791 /* DesignPrimitives.swift */, + 1A2B3C4D5E6F7A8B9C0D1E2F /* DescriptionBulletList.swift */, DB0CD69CAD160F8964E04E38 /* EmptyStateView.swift */, 0EF66CC37AE507FB215CFF22 /* SectionCard.swift */, 8E9AA4021F43AE9655D8F68C /* StateBadge.swift */, @@ -652,7 +655,7 @@ isa = PBXProject; attributes = { BuildIndependentTargetsInParallel = YES; - LastUpgradeCheck = 1430; + LastUpgradeCheck = 2640; TargetAttributes = { 00849C44FA575554ED75F76A = { DevelopmentTeam = ""; @@ -662,7 +665,6 @@ TestTargetID = 8E84F0B210E0A11CDE4A5962; }; 8E84F0B210E0A11CDE4A5962 = { - DevelopmentTeam = ""; ProvisioningStyle = Automatic; }; }; @@ -771,6 +773,7 @@ 2C9CAFB2E374A422B8C0300F /* BreadHubView.swift in Sources */, 0D244B36BB2D2FBD61B00E07 /* Date+Levain.swift in Sources */, 6F7C689E9224FA177FE49E9D /* DateFormattingService.swift in Sources */, + 2A3B4C5D6E7F8A9B0C1D2E3F /* DescriptionBulletList.swift in Sources */, 7D3DA6A05B6CB6132F859BC1 /* DesignPrimitives.swift in Sources */, 6FB2EAAC65EC1C0350BDCFCB /* DomainEnums.swift in Sources */, AC4C1CBFA44C0269CD84573D /* EmptyStateView.swift in Sources */, @@ -942,6 +945,7 @@ DEVELOPMENT_TEAM = ""; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -962,6 +966,7 @@ ONLY_ACTIVE_ARCH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 6.0; @@ -1044,6 +1049,7 @@ DEVELOPMENT_TEAM = ""; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -1057,6 +1063,7 @@ MTL_FAST_MATH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; + STRING_CATALOG_GENERATE_SYMBOLS = YES; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_OPTIMIZATION_LEVEL = "-O"; SWIFT_VERSION = 6.0; @@ -1088,6 +1095,7 @@ ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = C974BPN56D; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Levain/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = Batch; diff --git a/Levain.xcodeproj/xcshareddata/xcschemes/Levain.xcscheme b/Levain.xcodeproj/xcshareddata/xcschemes/Levain.xcscheme index 2b673e6..48871f2 100644 --- a/Levain.xcodeproj/xcshareddata/xcschemes/Levain.xcscheme +++ b/Levain.xcodeproj/xcshareddata/xcschemes/Levain.xcscheme @@ -1,11 +1,10 @@ + LastUpgradeVersion = "2640" + version = "1.3"> + buildImplicitDependencies = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES"> - - - - - - diff --git a/Levain/App/LevainApp.swift b/Levain/App/LevainApp.swift index 569d811..0c02558 100644 --- a/Levain/App/LevainApp.swift +++ b/Levain/App/LevainApp.swift @@ -1,5 +1,7 @@ import SwiftUI import SwiftData +import AVFoundation +import UIKit @main struct LevainApp: App { @@ -60,27 +62,16 @@ private struct SplashView: View { var body: some View { GeometryReader { geo in + let logoSize = min(geo.size.width * 0.58, 260) + ZStack { - // Radial gradient — warm glow at the logo centre, deepens toward edges - RadialGradient( - colors: [ - Color(hex: "#0F4A35"), - Theme.Palette.green800 - ], - center: UnitPoint(x: 0.5, y: 0.38), - startRadius: 0, - endRadius: geo.size.height * 0.68 - ) + Color(hex: "#155D4D") .ignoresSafeArea() VStack(spacing: 24) { - Image("AppLogo") - .resizable() - .scaledToFit() - .frame(width: geo.size.width * 0.65) - // Layered shadow: green glow + depth - .shadow(color: Theme.Palette.green500.opacity(0.30), radius: 44, x: 0, y: 0) - .shadow(color: Color.black.opacity(0.22), radius: 24, x: 0, y: 14) + SplashLogoAnimationView(reduceMotion: reduceMotion) + .frame(width: logoSize, height: logoSize) + .shadow(color: Theme.Palette.green800.opacity(0.28), radius: 30, x: 0, y: 18) .opacity(logoVisible ? 1 : 0) .scaleEffect(logoVisible ? (logoPulsing ? 0.984 : 1.0) : 0.76) .offset(y: logoVisible ? 0 : 22) @@ -88,14 +79,14 @@ private struct SplashView: View { VStack(spacing: 8) { Text("Batch") .font(.system(size: 36, weight: .bold)) - .foregroundStyle(Color.white) + .foregroundStyle(Theme.Palette.neutral0) .kerning(-0.5) .opacity(titleVisible ? 1 : 0) .offset(y: titleVisible ? 0 : 14) Text("Fermenti Vivi") .font(Theme.Typography.subheadline) - .foregroundStyle(Color.white.opacity(0.50)) + .foregroundStyle(Theme.Palette.neutral0.opacity(0.72)) .kerning(0.4) .opacity(subtitleVisible ? 1 : 0) .offset(y: subtitleVisible ? 0 : 8) @@ -133,3 +124,109 @@ private struct SplashView: View { } } } + +private struct SplashLogoAnimationView: View { + let reduceMotion: Bool + + @State private var player = SplashLogoAnimationAsset.makePlayer() + + var body: some View { + ZStack { + if reduceMotion || player == nil { + Image("AppLogo") + .resizable() + .scaledToFit() + } + + if let player, reduceMotion == false { + SplashLogoPlayerView(player: player) + .aspectRatio(1, contentMode: .fit) + } + } + .accessibilityHidden(true) + .onAppear { + guard reduceMotion == false else { return } + player?.seek(to: .zero) + player?.play() + } + .onDisappear { + player?.pause() + } + .onChange(of: reduceMotion) { _, shouldReduceMotion in + if shouldReduceMotion { + player?.pause() + player?.seek(to: .zero) + } else { + player?.seek(to: .zero) + player?.play() + } + } + } +} + +private struct SplashLogoPlayerView: UIViewRepresentable { + let player: AVPlayer + + func makeUIView(context: Context) -> PlayerContainerView { + let view = PlayerContainerView() + view.configure(with: player) + return view + } + + func updateUIView(_ uiView: PlayerContainerView, context: Context) { + uiView.configure(with: player) + } + + static func dismantleUIView(_ uiView: PlayerContainerView, coordinator: ()) { + uiView.playerLayer.player = nil + } +} + +private final class PlayerContainerView: UIView { + override static var layerClass: AnyClass { AVPlayerLayer.self } + + var playerLayer: AVPlayerLayer { + layer as! AVPlayerLayer + } + + override init(frame: CGRect) { + super.init(frame: frame) + backgroundColor = .clear + isOpaque = false + isUserInteractionEnabled = false + } + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + + func configure(with player: AVPlayer) { + playerLayer.player = player + playerLayer.videoGravity = .resizeAspect + playerLayer.backgroundColor = UIColor.clear.cgColor + playerLayer.isOpaque = false + } +} + +private enum SplashLogoAnimationAsset { + static func makePlayer() -> AVPlayer? { + guard let dataAsset = NSDataAsset(name: "BatchLogoLoading") else { + return nil + } + + let url = FileManager.default.temporaryDirectory + .appendingPathComponent("batch-logo-loading") + .appendingPathExtension("mov") + + do { + try dataAsset.data.write(to: url, options: [.atomic]) + } catch { + return nil + } + + let player = AVPlayer(url: url) + player.isMuted = true + player.actionAtItemEnd = .pause + return player + } +} diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Contents.json b/Levain/Assets.xcassets/AppIcon.appiconset/Contents.json index f40cbb8..57271f7 100644 --- a/Levain/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/Levain/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -49,7 +49,7 @@ "size" : "60x60" }, { - "filename" : "Icon-1024.png", + "filename" : "icon-1024.png", "idiom" : "ios-marketing", "scale" : "1x", "size" : "1024x1024" diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png index d884f12..d922bb5 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png index 6eb1580..6041e13 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png index 7f0dfc7..3e9be07 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png index e02729e..5e31058 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png index 6434a17..28ba6a2 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png index bb8f49d..a8677ab 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png index bb8f49d..a8677ab 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png index 02a1778..e5b6b9e 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png and b/Levain/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png differ diff --git a/Levain/Assets.xcassets/AppIcon.appiconset/icon-1024.png b/Levain/Assets.xcassets/AppIcon.appiconset/icon-1024.png index 1966e00..e05c91e 100644 Binary files a/Levain/Assets.xcassets/AppIcon.appiconset/icon-1024.png and b/Levain/Assets.xcassets/AppIcon.appiconset/icon-1024.png differ diff --git a/Levain/Assets.xcassets/AppLogo.imageset/logo.svg b/Levain/Assets.xcassets/AppLogo.imageset/logo.svg index b0c72ba..7e4973f 100644 --- a/Levain/Assets.xcassets/AppLogo.imageset/logo.svg +++ b/Levain/Assets.xcassets/AppLogo.imageset/logo.svg @@ -1,122 +1,42 @@ - - + - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Levain/Assets.xcassets/AppLogoPrimary.imageset/Contents.json b/Levain/Assets.xcassets/AppLogoPrimary.imageset/Contents.json new file mode 100644 index 0000000..18ae003 --- /dev/null +++ b/Levain/Assets.xcassets/AppLogoPrimary.imageset/Contents.json @@ -0,0 +1,15 @@ +{ + "images" : [ + { + "filename" : "logo-primary.svg", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + }, + "properties" : { + "preserves-vector-representation" : true + } +} diff --git a/Levain/Assets.xcassets/AppLogoPrimary.imageset/logo-primary.svg b/Levain/Assets.xcassets/AppLogoPrimary.imageset/logo-primary.svg new file mode 100644 index 0000000..db9589b --- /dev/null +++ b/Levain/Assets.xcassets/AppLogoPrimary.imageset/logo-primary.svg @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Levain/Assets.xcassets/BatchLogoLoading.dataset/Contents.json b/Levain/Assets.xcassets/BatchLogoLoading.dataset/Contents.json new file mode 100644 index 0000000..c54bc4e --- /dev/null +++ b/Levain/Assets.xcassets/BatchLogoLoading.dataset/Contents.json @@ -0,0 +1,12 @@ +{ + "data" : [ + { + "filename" : "batch-logo-loading.mov", + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Levain/Assets.xcassets/BatchLogoLoading.dataset/batch-logo-loading.mov b/Levain/Assets.xcassets/BatchLogoLoading.dataset/batch-logo-loading.mov new file mode 100644 index 0000000..a4fec20 Binary files /dev/null and b/Levain/Assets.xcassets/BatchLogoLoading.dataset/batch-logo-loading.mov differ diff --git a/Levain/DesignSystem/Components/DescriptionBulletList.swift b/Levain/DesignSystem/Components/DescriptionBulletList.swift new file mode 100644 index 0000000..3f72f32 --- /dev/null +++ b/Levain/DesignSystem/Components/DescriptionBulletList.swift @@ -0,0 +1,47 @@ +import SwiftUI + +/// Renders a multiline description text as a bullet list with vertical bar markers. +/// Strips leading "- " prefixes and replaces " → " with ": " in each line. +struct DescriptionBulletList: View { + let lines: [String] + + init(text: String) { + self.lines = Self.parse(text) + } + + var body: some View { + VStack(alignment: .leading, spacing: 6) { + ForEach(lines, id: \.self) { line in + HStack(alignment: .top, spacing: 10) { + RoundedRectangle(cornerRadius: 1) + .fill(Theme.Control.primaryFill.opacity(0.55)) + .frame(width: 3, height: 16) + .padding(.top, 3) + Text(line) + .font(.subheadline) + .foregroundStyle(Theme.ink) + .fixedSize(horizontal: false, vertical: true) + .frame(maxWidth: .infinity, alignment: .leading) + } + } + } + .frame(maxWidth: .infinity, alignment: .leading) + } + + nonisolated static func parse(_ text: String) -> [String] { + text.split(separator: "\n", omittingEmptySubsequences: true) + .compactMap { raw in + var s = String(raw).trimmingCharacters(in: .whitespaces) + if s.hasPrefix("- ") { s = String(s.dropFirst(2)) } + s = s.replacingOccurrences(of: " → ", with: ": ") + return s.isEmpty ? nil : s + } + } +} + +extension String { + /// Returns the first parsed bullet line, suitable for compact card previews. + var descriptionFirstLine: String { + DescriptionBulletList.parse(self).first ?? self + } +} diff --git a/Levain/Features/Bakes/BakeCreationView.swift b/Levain/Features/Bakes/BakeCreationView.swift index d9f0476..8f0f335 100644 --- a/Levain/Features/Bakes/BakeCreationView.swift +++ b/Levain/Features/Bakes/BakeCreationView.swift @@ -162,7 +162,7 @@ struct BakeCreationView: View { } .pickerStyle(.segmented) .onChange(of: useCommercialYeast) { _, _ in - if !useCommercialYeast { selectedStarterID = nil } + if useCommercialYeast { selectedStarterID = nil } } } @@ -182,6 +182,11 @@ struct BakeCreationView: View { } } + Picker("Profilo tempi", selection: $yeastProfile) { + ForEach(YeastProfile.allCases) { profile in + Text(profile.title).tag(profile) + } + } } } header: { Text("Agente lievitante") @@ -224,6 +229,7 @@ struct BakeCreationView: View { // Ricetta già commerciale: calcoliamo solo la quantità lievito per il profilo return YeastConversionService.calculateYeast( flourWeight: formula.totalFlourWeight, + waterWeight: formula.totalWaterWeight, targetYeastType: targetType, profile: yeastProfile ) @@ -318,24 +324,33 @@ struct BakeCreationView: View { guard let selectedFormulaChoice else { return } let resolvedName = name.trimmingCharacters(in: .whitespacesAndNewlines) - let formula = selectedFormulaChoice.makeTransientFormula() - - // Apply yeast conversion weights to the transient formula when converting sourdough → commercial - if let conversion = computedYeastConversion, selectedFormulaChoice.yeastType == .sourdough { - formula.totalFlourWeight = conversion.newTotalFlourWeight - formula.totalWaterWeight = conversion.newTotalWaterWeight - formula.recalculateDerivedValues() + let baseFormula = selectedFormulaChoice.makeTransientFormula() + let conversionForBake = computedYeastConversion + let convertedSourdoughFormula = conversionForBake != nil + && selectedFormulaChoice.yeastType == .sourdough + && useCommercialYeast + let formula: RecipeFormula + if let conversion = conversionForBake, convertedSourdoughFormula { + formula = RecipeYeastAdaptationService.adaptedFormula( + from: baseFormula, + conversion: conversion, + targetYeastType: commercialYeastType, + profile: yeastProfile + ) + } else { + formula = baseFormula } let bake = BakeScheduler.generateBake( name: resolvedName, targetBakeDateTime: targetBakeDateTime, formula: formula, - starter: useCommercialYeast ? nil : selectedStarter, - notes: notes + starter: conversionForBake == nil ? selectedStarter : nil, + notes: notes, + yeastConversion: conversionForBake ) - if selectedFormulaChoice.isSystem { + if selectedFormulaChoice.isSystem || convertedSourdoughFormula { bake.formula = nil } diff --git a/Levain/Features/Bakes/BakeDetailView.swift b/Levain/Features/Bakes/BakeDetailView.swift index d27feaf..828e12b 100644 --- a/Levain/Features/Bakes/BakeDetailView.swift +++ b/Levain/Features/Bakes/BakeDetailView.swift @@ -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() diff --git a/Levain/Features/Bakes/BakeIngredientsView.swift b/Levain/Features/Bakes/BakeIngredientsView.swift index 1ad96e9..debc20a 100644 --- a/Levain/Features/Bakes/BakeIngredientsView.swift +++ b/Levain/Features/Bakes/BakeIngredientsView.swift @@ -29,7 +29,8 @@ struct BakeIngredientsView: View { // MARK: Parsed data private var ingredientSections: [IngredientSection] { - guard let raw = bake.ingredients, !raw.isEmpty, + let raw = bake.formula?.ingredients ?? bake.ingredients + guard let raw, !raw.isEmpty, let data = raw.data(using: .utf8), let sections = try? JSONDecoder().decode([IngredientSection].self, from: data) else { return [] } @@ -37,7 +38,8 @@ struct BakeIngredientsView: View { } private var procedureSections: [ProcedureSection] { - guard let raw = bake.procedure, !raw.isEmpty, + let raw = bake.formula?.procedure ?? bake.procedure + guard let raw, !raw.isEmpty, let data = raw.data(using: .utf8), let sections = try? JSONDecoder().decode([ProcedureSection].self, from: data) else { return [] } @@ -45,13 +47,24 @@ struct BakeIngredientsView: View { } private var bakingSteps: [String] { - guard let raw = bake.bakingInstructions, !raw.isEmpty, + guard let raw = bake.formula?.bakingInstructions ?? bake.bakingInstructions, !raw.isEmpty, let data = raw.data(using: .utf8), let steps = try? JSONDecoder().decode([String].self, from: data) else { return [] } return steps } + private var yeastMetric: (label: String, value: String)? { + if let item = ingredientSections.flatMap(\.items).first(where: { $0.localizedCaseInsensitiveContains("lievito") }) { + let label = item.localizedCaseInsensitiveContains("lievito madre") ? "Lievito madre" : "Lievito" + return (label, extractedGramValue(from: item) ?? item) + } + + let inocW = Int(bake.totalFlourWeight * bake.inoculationPercent / 100) + guard inocW > 0 else { return nil } + return ("Lievito", "~\(inocW) g") + } + private var glossaryIndex: KnowledgeGlossaryIndex { environment.knowledgeLibrary.glossaryIndex } @@ -77,13 +90,9 @@ struct BakeIngredientsView: View { if saltW > 0 { MetricChip(label: "Sale", value: "\(saltW) g", tone: .schedule) } - let inocW = Int(bake.totalFlourWeight * formula.inoculationPercent / 100) - MetricChip(label: "Lievito madre", value: "~\(inocW) g", tone: .info) - } else { - let inocW = Int(bake.totalFlourWeight * bake.inoculationPercent / 100) - if inocW > 0 { - MetricChip(label: "Lievito madre", value: "~\(inocW) g", tone: .info) - } + } + if let yeastMetric { + MetricChip(label: yeastMetric.label, value: yeastMetric.value, tone: .info) } } @@ -132,15 +141,25 @@ struct BakeIngredientsView: View { .tracking(0.6) .foregroundStyle(Theme.Control.primaryFill) - GlossaryLinkedText( - text: section.content, - glossaryIndex: glossaryIndex, - maxLinks: 2, - onOpenKnowledge: router.openKnowledge - ) - .font(.subheadline) - .foregroundStyle(Theme.ink) - .fixedSize(horizontal: false, vertical: true) + VStack(alignment: .leading, spacing: 6) { + ForEach(DescriptionBulletList.parse(section.content), id: \.self) { line in + HStack(alignment: .top, spacing: 10) { + RoundedRectangle(cornerRadius: 1) + .fill(Theme.Control.primaryFill.opacity(0.55)) + .frame(width: 3, height: 16) + .padding(.top, 3) + GlossaryLinkedText( + text: line, + glossaryIndex: glossaryIndex, + maxLinks: 1, + onOpenKnowledge: router.openKnowledge + ) + .font(.subheadline) + .foregroundStyle(Theme.ink) + .fixedSize(horizontal: false, vertical: true) + } + } + } } } } @@ -197,6 +216,16 @@ struct BakeIngredientsView: View { } } } + + private func extractedGramValue(from text: String) -> String? { + guard let range = text.range( + of: #"([0-9]+(?:[,.][0-9]+)?)\s*g"#, + options: [.regularExpression, .caseInsensitive] + ) else { + return nil + } + return String(text[range]) + } } // MARK: - Ingredient section row diff --git a/Levain/Features/Bakes/BakeStepCardView.swift b/Levain/Features/Bakes/BakeStepCardView.swift index d7e7aef..83fc20d 100644 --- a/Levain/Features/Bakes/BakeStepCardView.swift +++ b/Levain/Features/Bakes/BakeStepCardView.swift @@ -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 { diff --git a/Levain/Features/Bakes/BakeStepDetailView.swift b/Levain/Features/Bakes/BakeStepDetailView.swift index 6c21f2f..4f6df36 100644 --- a/Levain/Features/Bakes/BakeStepDetailView.swift +++ b/Levain/Features/Bakes/BakeStepDetailView.swift @@ -47,9 +47,7 @@ struct BakeStepDetailView: View { .font(.caption.weight(.semibold)) .foregroundStyle(Theme.Control.primaryFill) - Text(step.descriptionText) - .foregroundStyle(Theme.ink) - .fixedSize(horizontal: false, vertical: true) + DescriptionBulletList(text: step.descriptionText) } .padding(.vertical, 4) } diff --git a/Levain/Features/Bakes/BakesView.swift b/Levain/Features/Bakes/BakesView.swift index 3bfb792..444c1da 100644 --- a/Levain/Features/Bakes/BakesView.swift +++ b/Levain/Features/Bakes/BakesView.swift @@ -65,12 +65,8 @@ struct BakesView: View { subtitle: "I tuoi impasti attivi o in programma" ) HStack(spacing: Theme.Spacing.sm + 4) { - if activeBakes.isEmpty == false { - StateBadge(text: "\(activeBakes.count) attivi", tone: .count) - } - if formulas.isEmpty == false { - StateBadge(text: "\(formulas.count) ricette", tone: .count) - } + StateBadge(text: "\(activeBakes.count) attiv\(activeBakes.count == 1 ? "o" : "i")", tone: .count) + StateBadge(text: "\(formulas.count) ricett\(formulas.count == 1 ? "a" : "e")", tone: .count) } Button { @@ -84,6 +80,8 @@ struct BakesView: View { .padding(.top, Theme.Spacing.xxs) } .listRowInsets(.levainListRow(top: Theme.Spacing.sm, bottom: Theme.Spacing.md)) + .listRowSeparator(.hidden) + .listRowBackground(Color.clear) @@ -139,7 +137,7 @@ struct BakesView: View { } if let step = row.snapshot.activeStep { - Text(step.descriptionText.isEmpty ? "La fase attiva è pronta da seguire." : step.descriptionText) + Text(step.descriptionText.isEmpty ? "La fase attiva è pronta da seguire." : step.descriptionText.descriptionFirstLine) .font(.footnote) .foregroundStyle(Theme.muted) .lineLimit(2) diff --git a/Levain/Features/Bakes/FormulaDetailView.swift b/Levain/Features/Bakes/FormulaDetailView.swift index 88f223c..bf962b4 100644 --- a/Levain/Features/Bakes/FormulaDetailView.swift +++ b/Levain/Features/Bakes/FormulaDetailView.swift @@ -283,15 +283,25 @@ struct FormulaDetailView: View { glossarySectionTitle(section.title) } - GlossaryLinkedText( - text: section.content, - glossaryIndex: glossaryIndex, - maxLinks: 2, - onOpenKnowledge: router.openKnowledge - ) - .font(.subheadline) - .foregroundStyle(Theme.ink) - .fixedSize(horizontal: false, vertical: true) + VStack(alignment: .leading, spacing: 6) { + ForEach(DescriptionBulletList.parse(section.content), id: \.self) { line in + HStack(alignment: .top, spacing: 10) { + RoundedRectangle(cornerRadius: 1) + .fill(Theme.Control.primaryFill.opacity(0.55)) + .frame(width: 3, height: 16) + .padding(.top, 3) + GlossaryLinkedText( + text: line, + glossaryIndex: glossaryIndex, + maxLinks: 1, + onOpenKnowledge: router.openKnowledge + ) + .font(.subheadline) + .foregroundStyle(Theme.ink) + .fixedSize(horizontal: false, vertical: true) + } + } + } } .padding(.vertical, 6) } diff --git a/Levain/Features/Bakes/FormulaListView.swift b/Levain/Features/Bakes/FormulaListView.swift index 15d723e..edb8ea3 100644 --- a/Levain/Features/Bakes/FormulaListView.swift +++ b/Levain/Features/Bakes/FormulaListView.swift @@ -50,6 +50,8 @@ struct FormulaListView: View { .padding(.top, Theme.Spacing.xxs) } .listRowInsets(.levainListRow(top: Theme.Spacing.sm, bottom: Theme.Spacing.md)) + .listRowSeparator(.hidden) + .listRowBackground(Color.clear) if activeFormulas.isEmpty { diff --git a/Levain/Features/BreadHub/BreadHubView.swift b/Levain/Features/BreadHub/BreadHubView.swift index f4125da..8c6b81c 100644 --- a/Levain/Features/BreadHub/BreadHubView.swift +++ b/Levain/Features/BreadHub/BreadHubView.swift @@ -193,7 +193,7 @@ struct BreadHubView: View { } if let step = row.snapshot.activeStep { - Text(step.descriptionText.isEmpty ? "La fase attiva è pronta da seguire." : step.descriptionText) + Text(step.descriptionText.isEmpty ? "La fase attiva è pronta da seguire." : step.descriptionText.descriptionFirstLine) .font(.footnote) .foregroundStyle(Theme.muted) .lineLimit(2) diff --git a/Levain/Features/Fermentations/FermentationsView.swift b/Levain/Features/Fermentations/FermentationsView.swift index 714971d..2b29f69 100644 --- a/Levain/Features/Fermentations/FermentationsView.swift +++ b/Levain/Features/Fermentations/FermentationsView.swift @@ -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) @@ -139,10 +139,7 @@ struct FermentationsView: View { title: "Impasti", badge: bakesBadge, rows: bakesRows, - isEmpty: activeBakes.isEmpty, - emptyMessage: "Crea un impasto", - onTap: { router.fermentationsPath.append(.bakesList) }, - onEmptyCTA: { showingBakeEditor = true } + onTap: { router.fermentationsPath.append(.bakesList) } ) .accessibilityIdentifier("ImpastiCard") } @@ -153,10 +150,7 @@ struct FermentationsView: View { title: "Starter", badge: startersBadge, rows: starterRows, - isEmpty: starters.isEmpty, - emptyMessage: "Aggiungi starter", - onTap: { router.fermentationsPath.append(.starterList) }, - onEmptyCTA: { showingStarterEditor = true } + onTap: { router.fermentationsPath.append(.starterList) } ) .accessibilityIdentifier("StarterCard") } @@ -167,10 +161,7 @@ struct FermentationsView: View { title: "Kefir", badge: kefirBadge, rows: kefirRows, - isEmpty: kefirBatches.isEmpty, - emptyMessage: "Crea batch", - onTap: { router.fermentationsPath.append(.kefirHub) }, - onEmptyCTA: { kefirEditorMode = .create } + onTap: { router.fermentationsPath.append(.kefirHub) } ) .accessibilityIdentifier("KefirHubCard") } @@ -179,12 +170,9 @@ struct FermentationsView: View { FermentHubTile( icon: .system("book.closed.fill"), title: "Ricette", - badge: formulas.isEmpty ? nil : "\(formulas.count)", + badge: "\(formulas.count)", rows: formulasRows, - isEmpty: formulas.isEmpty, - emptyMessage: "Aggiungi ricetta", - onTap: { router.fermentationsPath.append(.formulaList) }, - onEmptyCTA: { /* Could trigger formula creation */ } + onTap: { router.fermentationsPath.append(.formulaList) } ) .accessibilityIdentifier("RicetteCard") } @@ -192,8 +180,7 @@ struct FermentationsView: View { // MARK: - Section Rows private var bakesRows: [FermentHubTile.Row] { - guard !activeBakes.isEmpty else { return [] } - return [ + [ .init( icon: "fork.knife", label: "\(activeBakes.count) in corso" @@ -202,21 +189,19 @@ struct FermentationsView: View { } private var starterRows: [FermentHubTile.Row] { - guard !starters.isEmpty else { return [] } - return [ + [ .init( icon: "flame.fill", - label: "\(starters.count) gestiti" + label: "\(starters.count) gestit\(starters.count == 1 ? "o" : "i")" ) ] } private var formulasRows: [FermentHubTile.Row] { - guard !formulas.isEmpty else { return [] } - return [ + [ .init( icon: "list.clipboard.fill", - label: "\(formulas.count) salvate" + label: "\(formulas.count) salvat\(formulas.count == 1 ? "a" : "e")" ) ] } @@ -224,7 +209,6 @@ struct FermentationsView: View { // MARK: - Kefir rows private var kefirRows: [FermentHubTile.Row] { - guard kefirBatches.isEmpty == false else { return [] } var rows: [FermentHubTile.Row] = [] if kefirBatches.warningKefirCount > 0 { rows.append(.init(icon: "exclamationmark.circle.fill", label: "\(kefirBatches.warningKefirCount) da rinnovare", tone: .warning)) @@ -235,22 +219,34 @@ struct FermentationsView: View { if kefirBatches.pausedKefirCount > 0 { rows.append(.init(icon: "pause.circle.fill", label: "\(kefirBatches.pausedKefirCount) pausa")) } + if rows.isEmpty { + if kefirBatches.archivedKefirCount > 0 { + rows.append( + .init( + icon: "archivebox.fill", + label: "\(kefirBatches.archivedKefirCount) archiviat\(kefirBatches.archivedKefirCount == 1 ? "o" : "i")" + ) + ) + } else { + rows.append(.init(icon: "drop.fill", label: "0 batch attivi")) + } + } return rows } // MARK: - Badges private var bakesBadge: String? { - activeBakes.isEmpty ? nil : "\(activeBakes.count)" + "\(activeBakes.count)" } private var startersBadge: String? { - starters.isEmpty ? nil : "\(starters.count)" + "\(starters.count)" } private var kefirBadge: String? { if kefirBatches.liveKefirCount > 0 { return "\(kefirBatches.liveKefirCount)" } - return kefirBatches.archivedKefirCount > 0 ? "\(kefirBatches.archivedKefirCount)" : nil + return kefirBatches.archivedKefirCount > 0 ? "\(kefirBatches.archivedKefirCount)" : "0" } // MARK: - Empty States @@ -291,10 +287,11 @@ private struct FermentHubTile: View { let title: String let badge: String? let rows: [Row] - let isEmpty: Bool - let emptyMessage: String let onTap: () -> Void - let onEmptyCTA: () -> Void + + private static let maxVisibleRows = 2 + private static let minTileContentHeight: CGFloat = 104 + private static let metricRowsMinHeight: CGFloat = 30 var body: some View { SectionCard(emphasis: .tinted) { @@ -313,32 +310,35 @@ private struct FermentHubTile: View { .foregroundStyle(Theme.Text.primary) .lineLimit(1) - if isEmpty { - Text(emptyMessage) - .font(Theme.Typography.caption1) - .foregroundStyle(Theme.Text.secondary) - } else { - VStack(alignment: .leading, spacing: Theme.Spacing.xxs) { - ForEach(rows.prefix(2), id: \.label) { row in - HStack(spacing: Theme.Spacing.xxs) { - Image(systemName: row.icon) - .font(Theme.Typography.caption2.weight(.semibold)) - .foregroundStyle(rowColor(row.tone)) - Text(row.label) - .font(Theme.Typography.caption2) - .foregroundStyle(Theme.Text.secondary) - .lineLimit(1) - } + VStack(alignment: .leading, spacing: Theme.Spacing.xxs) { + ForEach(visibleRows, id: \.label) { row in + HStack(spacing: Theme.Spacing.xxs) { + Image(systemName: row.icon) + .font(Theme.Typography.caption2.weight(.semibold)) + .foregroundStyle(rowColor(row.tone)) + .frame(width: 12, alignment: .center) + Text(row.label) + .font(Theme.Typography.caption2) + .foregroundStyle(Theme.Text.secondary) + .lineLimit(1) + .minimumScaleFactor(0.86) } } } + .frame(minHeight: Self.metricRowsMinHeight, alignment: .topLeading) } } .padding(.vertical, Theme.Spacing.xxs) - .frame(maxWidth: .infinity, alignment: .leading) + .frame(maxWidth: .infinity, minHeight: Self.minTileContentHeight, alignment: .topLeading) } .contentShape(Rectangle()) .onTapGesture { onTap() } + .accessibilityElement(children: .combine) + .accessibilityValue(visibleRows.map(\.label).joined(separator: " · ")) + } + + private var visibleRows: [Row] { + Array(rows.prefix(Self.maxVisibleRows)) } private func rowColor(_ tone: Row.Tone) -> Color { diff --git a/Levain/Features/Kefir/KefirBatchManageSheet.swift b/Levain/Features/Kefir/KefirBatchManageSheet.swift index 52d7443..333c19c 100644 --- a/Levain/Features/Kefir/KefirBatchManageSheet.swift +++ b/Levain/Features/Kefir/KefirBatchManageSheet.swift @@ -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() } diff --git a/Levain/Features/Kefir/KefirHubView.swift b/Levain/Features/Kefir/KefirHubView.swift index 70d3c56..b1dac22 100644 --- a/Levain/Features/Kefir/KefirHubView.swift +++ b/Levain/Features/Kefir/KefirHubView.swift @@ -66,23 +66,19 @@ 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 { - HStack(spacing: 10) { - if batches.warningKefirCount > 0 { - StateBadge(text: "\(batches.warningKefirCount) da seguire", tone: .count) - } - if batches.activeKefirCount > 0 { - StateBadge(text: "\(batches.activeKefirCount) in corso", tone: .count) - } - if batches.pausedKefirCount > 0 { - StateBadge(text: "\(batches.pausedKefirCount) in pausa", tone: .count) - } - if batches.liveKefirCount == 0, batches.archivedKefirCount > 0 { - StateBadge(text: "\(batches.archivedKefirCount) archiviat\(batches.archivedKefirCount == 1 ? "o" : "i")", tone: .count) - } + HStack(spacing: 10) { + if batches.warningKefirCount > 0 { + StateBadge(text: "\(batches.warningKefirCount) da seguire", tone: .count) + } + StateBadge(text: "\(batches.activeKefirCount) in corso", tone: .count) + if batches.pausedKefirCount > 0 { + StateBadge(text: "\(batches.pausedKefirCount) in pausa", tone: .count) + } + if batches.liveKefirCount == 0, batches.archivedKefirCount > 0 { + StateBadge(text: "\(batches.archivedKefirCount) archiviat\(batches.archivedKefirCount == 1 ? "o" : "i")", tone: .count) } } @@ -106,7 +102,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) diff --git a/Levain/Features/Shared/RootTabView.swift b/Levain/Features/Shared/RootTabView.swift index 05c46bf..3051dc8 100644 --- a/Levain/Features/Shared/RootTabView.swift +++ b/Levain/Features/Shared/RootTabView.swift @@ -2,6 +2,7 @@ import SwiftData import SwiftUI struct RootTabView: View { + @Environment(\.scenePhase) private var scenePhase @Environment(\.modelContext) private var modelContext @EnvironmentObject private var environment: AppEnvironment @EnvironmentObject private var router: AppRouter @@ -50,6 +51,19 @@ struct RootTabView: View { .onOpenURL { url in router.open(url: url, modelContext: modelContext) } + .onChange(of: scenePhase) { _, newPhase in + guard newPhase == .active, didBootstrap else { return } + guard ProcessInfo.processInfo.environment["XCODE_RUNNING_FOR_PREVIEWS"] != "1" else { return } + guard AppLaunchOptions.shouldSuppressNotifications == false else { return } + + let appSettings = loadOrCreateAppSettings() + let notificationService = environment.prepareNotificationServiceIfNeeded() + syncNotificationsForLifecycle( + notificationService: notificationService, + appSettings: appSettings, + showDisabledBanner: false + ) + } } // MARK: - Tab content + aligned bottom bar @@ -145,7 +159,11 @@ struct RootTabView: View { guard AppLaunchOptions.shouldSuppressNotifications == false else { return } - scheduleNotificationBootstrap(notificationService: notificationService, appSettings: appSettings) + syncNotificationsForLifecycle( + notificationService: notificationService, + appSettings: appSettings, + showDisabledBanner: true + ) } @MainActor @@ -160,14 +178,11 @@ struct RootTabView: View { } @MainActor - private func scheduleNotificationBootstrap( + private func syncNotificationsForLifecycle( notificationService: NotificationService, - appSettings: AppSettings + appSettings: AppSettings, + showDisabledBanner: Bool ) { - let needsLaunchSync = appSettings.lastNotificationSync == nil - let needsAuthorizationPrompt = appSettings.hasRequestedNotificationPermission == false - guard needsLaunchSync || needsAuthorizationPrompt else { return } - Task(priority: .utility) { let authorizationState = await notificationService.requestAuthorizationIfNeeded(settings: appSettings) if authorizationState == .authorized { @@ -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() } } } diff --git a/Levain/Features/Starter/RefreshLogView.swift b/Levain/Features/Starter/RefreshLogView.swift index 02c0edf..d4a91a9 100644 --- a/Levain/Features/Starter/RefreshLogView.swift +++ b/Levain/Features/Starter/RefreshLogView.swift @@ -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") { @@ -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) @@ -99,7 +99,7 @@ struct RefreshLogView: View { .lineLimit(2...5) } } - .navigationTitle("Log rinfresco") + .navigationTitle("Rinfresco") .tint(Theme.Control.primaryFill) .toolbar { ToolbarItem(placement: .cancellationAction) { diff --git a/Levain/Features/Starter/SettingsView.swift b/Levain/Features/Starter/SettingsView.swift index 606afd1..62a9497 100644 --- a/Levain/Features/Starter/SettingsView.swift +++ b/Levain/Features/Starter/SettingsView.swift @@ -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) @@ -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) } } diff --git a/Levain/Features/Starter/StarterDetailView.swift b/Levain/Features/Starter/StarterDetailView.swift index 179b4de..3d32a6c 100644 --- a/Levain/Features/Starter/StarterDetailView.swift +++ b/Levain/Features/Starter/StarterDetailView.swift @@ -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.") diff --git a/Levain/Features/Starter/StarterView.swift b/Levain/Features/Starter/StarterView.swift index bba98ba..e607314 100644 --- a/Levain/Features/Starter/StarterView.swift +++ b/Levain/Features/Starter/StarterView.swift @@ -20,12 +20,10 @@ struct StarterView: View { SectionCard(emphasis: .tinted) { ScreenTitleBlock( title: "Starter", - subtitle: "Controlla i tuoi starter" + subtitle: "I tuoi starter" ) - if !activeStarters.isEmpty { - StateBadge(text: "\(activeStarters.count) starter", tone: .count) - } + StateBadge(text: "\(activeStarters.count) starter", tone: .count) Button { editingStarter = nil @@ -37,6 +35,8 @@ struct StarterView: View { .padding(.top, Theme.Spacing.xxs) } .listRowInsets(.levainListRow(top: Theme.Spacing.sm, bottom: Theme.Spacing.md)) + .listRowSeparator(.hidden) + .listRowBackground(Color.clear) @@ -131,7 +131,6 @@ struct StarterView: View { .levainListSurface() .tint(Theme.Control.primaryFill) .accessibilityIdentifier("StarterScrollView") - .accessibilityIdentifier("StarterScrollView") .sheet(isPresented: $showingEditor) { NavigationStack { StarterEditorView(starter: editingStarter) diff --git a/Levain/Features/Today/TodayView.swift b/Levain/Features/Today/TodayView.swift index 74583ed..cb8282b 100644 --- a/Levain/Features/Today/TodayView.swift +++ b/Levain/Features/Today/TodayView.swift @@ -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 diff --git a/Levain/Models/DomainEnums.swift b/Levain/Models/DomainEnums.swift index 51560c0..4fe89aa 100644 --- a/Levain/Models/DomainEnums.swift +++ b/Levain/Models/DomainEnums.swift @@ -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" case .overdue: "In ritardo" case .pausedFridge: "In frigo" diff --git a/Levain/Resources/knowledge.json b/Levain/Resources/knowledge.json index 19667ad..21df7cb 100644 --- a/Levain/Resources/knowledge.json +++ b/Levain/Resources/knowledge.json @@ -4,6 +4,7 @@ "title": "Basi del lievito madre", "category": "starter", "tags": ["starter", "rinfresco", "manutenzione"], + "aliases": ["starter", "lievito madre", "sourdough starter"], "summary": "Cos'è lo starter, come funziona e i segnali di uno starter sano.", "content": "Lo starter è un impasto di farina e acqua fermentato in modo continuo, che ospita lieviti e batteri lattici in equilibrio stabile. La sua forza dipende da: regolarità dei rinfreschi, temperatura di conservazione, rapporto di rinfresco (es. 1:4:4) e tipo di farina usata. Dovrebbe raddoppiare o quasi entro 4–8 ore dopo un rinfresco. Segnali positivi: molte bolle diffuse, superficie leggermente bombata, odore lattico/fruttato, consistenza aerata.", "relatedStepTypes": ["starterRefresh"], @@ -14,6 +15,7 @@ "title": "Manutenzione starter in frigo", "category": "starter", "tags": ["frigo", "conservazione", "rinfresco"], + "aliases": ["starter in frigo", "manutenzione starter", "rinfresco in frigo"], "summary": "Come conservare e rinfrescare lo starter in frigorifero.", "content": "Conservare lo starter in frigo a 4–8 °C rallentera la fermentazione. Fai un rinfresco con rapporto alto (es. 1:4:4), lascialo partire un po' a temperatura ambiente, poi mettilo in frigo. Ripeti ogni 5–7 giorni circa. Prima di un bake importante, fai 1–2 rinfreschi a temperatura ambiente per riportarlo in piena forma.", "relatedStepTypes": ["starterRefresh"], @@ -24,26 +26,51 @@ "title": "Recuperare uno starter pigro", "category": "starter", "tags": ["recupero", "attività", "troubleshooting"], + "aliases": ["starter pigro", "starter debole", "hooch"], "summary": "Come riattivare uno starter che cresce lentamente o mostra segni di stanchezza.", "content": "Aumenta temporaneamente la temperatura (22–26 °C). Fai rinfreschi più frequenti per alcuni giorni. Integra una quota di farina integrale o di segale (25–50%) per stimolare l'attività. Usa acqua leggermente tiepida, evitando temperature troppo alte. Se compare il 'hooch' (strato liquido in superficie), è un segnale di acidità alta: scarta parte dello starter e rinfresca con più farina.", "relatedStepTypes": ["starterRefresh"], "relatedStarterStates": ["overdue"] }, + { + "id": "levain-guide", + "title": "Levain", + "category": "starter", + "tags": ["levain", "prefermento", "starter prep"], + "aliases": ["starter prep", "prefermento", "build del levain", "lievito di riporto"], + "summary": "Quando costruire un levain, come leggerlo e in cosa si distingue dallo starter nel barattolo.", + "content": "Il levain è una porzione di starter rinfrescata in una quantità pensata per una ricetta specifica. Serve a portare l'inoculo al punto giusto senza stressare il barattolo principale e permette di scegliere idratazione, forza e finestra di maturazione in base all'impasto. In genere è pronto quando ha aumentato chiaramente il volume, è aerato e ha un profumo lattico-acidulo pulito. Se collassa presto o resta molto compatto, conviene regolare temperatura, rapporto di rinfresco o tempo di attesa prima di usarlo.", + "relatedStepTypes": [], + "relatedStarterStates": [] + }, { "id": "bulk-fermentation-basics", "title": "Bulk fermentation", "category": "fermentation", "tags": ["bulk", "fermentazione", "temperatura"], + "aliases": ["bulk", "prima lievitazione", "first rise"], "summary": "Come leggere e gestire la bulk fermentation per un impasto ben sviluppato.", "content": "La bulk fermentation è la fase di lievitazione principale dopo l'impasto. L'impasto è pronto quando è aumentato del 50–75%, è ben aerato e si stacca pulito dalle pareti del contenitore. La temperatura incide molto: a 24 °C la bulk dura 4–5 ore, a 22 °C circa 6–7 ore. Durante questa fase si eseguono le pieghe (stretch & fold) per rinforzare la struttura del glutine.", "relatedStepTypes": ["bulk", "fold"], "relatedStarterStates": [] }, + { + "id": "appretto-guide", + "title": "Appretto", + "category": "fermentation", + "tags": ["appretto", "proof", "lievitazione finale"], + "aliases": ["proof", "final proof", "second rise", "seconda lievitazione", "lievitazione finale"], + "summary": "Come riconoscere l'appretto giusto prima della cottura o del passaggio in frigo.", + "content": "L'appretto è la lievitazione finale dopo la formatura. In questa fase l'impasto deve gonfiarsi senza perdere tensione: deve risultare più leggero, leggermente elastico al tatto e capace di recuperare lentamente se premi la superficie con un dito infarinato. Un appretto troppo corto porta a pane fitto e tagli che si aprono in modo irregolare; troppo lungo porta invece a poca spinta in forno e struttura fragile. Se prevedi un cold retard, l'impasto deve entrare in frigo già ben formato ma non al limite della sovralievitazione.", + "relatedStepTypes": ["proof"], + "relatedStarterStates": [] + }, { "id": "bakers-math", "title": "Baker's math e idratazione", "category": "bakerMath", "tags": ["percentuale", "idratazione", "calcolo"], + "aliases": ["baker's math", "bakers math", "idratazione", "hydration"], "summary": "Come usare la baker's percentage per calcolare e scalare le ricette.", "content": "Nella baker's math la farina totale è sempre 100%. Tutti gli altri ingredienti sono espressi come percentuale della farina. Formula: (peso ingrediente ÷ peso farina) × 100. Idratazioni tipiche: 65–72% per sourdough artigianale, 75–85% per focaccia e ciabatta. Il sale è tipicamente al 2%, l'inoculazione (starter) tra il 10% e il 20%.", "relatedStepTypes": ["mix"], @@ -54,6 +81,7 @@ "title": "Formatura e preforma", "category": "fermentation", "tags": ["formatura", "tensione", "bench rest"], + "aliases": ["formatura", "preforma", "bench rest", "shape", "shaping"], "summary": "Tecniche di preforma e formatura per costruire tensione superficiale.", "content": "La preforma crea una tensione iniziale e dà all'impasto una struttura temporanea prima del bench rest. Dopo 20–30 minuti di riposo, la formatura finale costruisce la tensione superficiale necessaria per trattenere i gas durante la lievitazione finale. Un buon filo di tensione si vede dalla superficie liscia e leggermente tesa del pane formato.", "relatedStepTypes": ["preshape", "benchRest", "shape"], @@ -64,16 +92,51 @@ "title": "Cold retard", "category": "fermentation", "tags": ["frigo", "retarder", "sapore"], + "aliases": ["cold retard", "lievitazione finale in frigo", "proof in frigo"], "summary": "Come e perché usare il frigo durante la lievitazione finale.", "content": "Il cold retard (lievitazione finale in frigo a 4–6 °C) sviluppa sapore e facilita il taglio grazie all'impasto freddo e compatto. La finestra è tipicamente tra le 12 e le 48 ore. Un impasto ben formato e non sovralievitato prima dell'ingresso in frigo darà risultati migliori. Si può infornare direttamente dal frigo senza bisogno di riportare a temperatura.", "relatedStepTypes": ["coldRetard", "proof"], "relatedStarterStates": [] }, + { + "id": "autolisi-guide", + "title": "Autolisi", + "category": "fermentation", + "tags": ["autolisi", "impasto", "idratazione"], + "aliases": ["autolysis"], + "summary": "Perché lasciare farina e liquidi a riposo prima dell'impasto completo può migliorare struttura ed estensibilità.", + "content": "L'autolisi è un riposo iniziale di farina e acqua, oppure farina e parte dei liquidi, prima di inserire sale, grassi o inoculo. In questo tempo la farina si idrata meglio e il glutine inizia a organizzarsi da solo, così l'impasto richiede meno lavoro meccanico e diventa più estensibile. Nelle ricette ricche o molto dolci l'autolisi va tenuta breve e controllata, perché latte, uova, zucchero e burro cambiano il comportamento dell'impasto rispetto a un pane magro.", + "relatedStepTypes": ["autolysis", "mix"], + "relatedStarterStates": [] + }, + { + "id": "pieghe-guide", + "title": "Pieghe e stretch & fold", + "category": "fermentation", + "tags": ["pieghe", "stretch & fold", "glutine"], + "aliases": ["pieghe", "stretch & fold", "stretch and fold", "giri di pieghe"], + "summary": "Quando fare le pieghe durante la bulk e cosa devono cambiare davvero nell'impasto.", + "content": "Le pieghe servono a rinforzare la maglia glutinica e redistribuire temperatura e gas durante la bulk fermentation. Ogni giro dovrebbe tendere l'impasto senza strapparlo: se oppone troppa resistenza, conviene aspettare ancora un po'; se invece è molto rilassato o si allarga subito, un altro giro può aiutare. Nella pratica 2–4 giri ben distanziati sono spesso sufficienti. Più che contare i minuti, osserva se l'impasto tiene meglio la forma dopo ogni serie.", + "relatedStepTypes": ["fold", "bulk"], + "relatedStarterStates": [] + }, + { + "id": "bollitura-guide", + "title": "Bollitura", + "category": "fermentation", + "tags": ["bollitura", "bagel", "boil and bake"], + "aliases": ["boil and bake", "boil", "bollire i bagel"], + "summary": "Perché la bollitura è decisiva nei bagel e come evitare che la fase rovini forma e consistenza.", + "content": "La bollitura gelatinizza in superficie l'amido e crea la pelle elastica che distingue i bagel da un pane cotto direttamente in forno. L'acqua deve sobbollire, non essere troppo violenta, e il passaggio dura in genere 30–60 secondi per lato a seconda dello stile. Se i bagel collassano o affondano troppo a lungo, spesso il problema è un appretto eccessivo; se restano opachi e poco tesi, la bollitura può essere stata troppo breve o l'impasto troppo freddo e poco maturo. Conviene portare forno e teglie in temperatura prima di iniziare, così il trasferimento resta rapido.", + "relatedStepTypes": [], + "relatedStarterStates": [] + }, { "id": "common-problems", "title": "Problemi comuni e soluzioni", "category": "troubleshooting", "tags": ["troubleshooting", "crosta", "mollica", "pane piatto"], + "aliases": ["troubleshooting", "underproofing", "overproofing"], "summary": "Diagnosi e soluzioni per i problemi più frequenti nella panificazione con lievito madre.", "content": "Pane piatto: starter non abbastanza attivo oppure sovralievitazione. Mollica troppo fitta: underproofing (lievitazione insufficiente) o farina debole. Crosta troppo spessa: temperatura forno troppo alta o cottura troppo lunga senza vapore. Acidità eccessiva: bulk troppo lunga o temperatura troppo alta. Taglio che non apre: tensione superficiale insufficiente nella formatura o lama non abbastanza affilata.", "relatedStepTypes": ["bake"], diff --git a/Levain/Resources/system_formulas.json b/Levain/Resources/system_formulas.json index 770d760..5bc9b65 100644 --- a/Levain/Resources/system_formulas.json +++ b/Levain/Resources/system_formulas.json @@ -398,9 +398,9 @@ "flourMix": "100% farina 00 per pizza", "flours": [], "notes": "", - "ingredients": "[{\"title\": \"Impasto\", \"items\": [\"600 g farina 00 per pizza\", \"360 ml acqua\", \"2 cucchiai olio extravergine d'oliva\", \"12 g sale\", \"100 g lievito madre già rinfrescato la sera prima\"]}, {\"title\": \"Cottura\", \"items\": [\"230 g salsa di pomodoro\", \"200 g mozzarella\", \"50 g salame piccante\"]}]", - "procedure": "[{\"title\": \"Starter prep\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Oggi, ore 21:00\", \"level\": 3, \"content\": \"- Tira fuori il lievito madre dal frigo.\\n- Rinfrescalo.\\n- Lascialo a temperatura ambiente finché raddoppia.\\n- Quando ha raddoppiato, rimettilo in frigo fino a domattina.\"}, {\"title\": \"Domani, ore 8:30\", \"level\": 3, \"content\": \"- Tira fuori il lievito madre dal frigo per riportarlo a temperatura ambiente.\"}, {\"title\": \"Dough mix\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Impasto\", \"level\": 3, \"content\": \"- Alle 9:00 sciogli il lievito madre nell'acqua.\\n- Aggiungi la farina.\\n- Aggiungi il sale.\\n- Aggiungi infine l'olio.\\n- Lavora fino a ottenere un impasto liscio e omogeneo.\"}, {\"title\": \"Timeline\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Bulk fermentation\", \"level\": 3, \"content\": \"- 09:30 → primo giro di pieghe\\n- 11:00 → secondo giro di pieghe\\n- 11:30 → terzo giro di pieghe\\n- 11:30 - 17:30 → lievitazione coperta fino al raddoppio\"}, {\"title\": \"Formatura\", \"level\": 3, \"content\": \"- 17:30 → dividi in 3 panetti e forma le palline\\n- 17:30 - 19:30 → riposo finale dei panetti\\n- 19:30 → stesura prima del condimento\"}, {\"title\": \"Bake\", \"level\": 2, \"content\": \"- Stendi i panetti con le dita.\\n- Condisci con salsa di pomodoro, mozzarella e olio.\\n- Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\\n- Aggiungi il salame piccante.\\n- Sposta la pizza nella parte alta del forno per altri 2 minuti.\\n- Servi subito.\"}]", - "bakingInstructions": "[\"Stendi i panetti con le dita.\", \"Condisci con salsa di pomodoro, mozzarella e olio.\", \"Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\", \"Aggiungi il salame piccante.\", \"Sposta la pizza nella parte alta del forno per altri 2 minuti.\", \"Servi subito.\"]", + "ingredients": "[{\"title\": \"Impasto\", \"items\": [\"600 g farina 00 per pizza\", \"360 ml acqua\", \"2 cucchiai olio extravergine d'oliva\", \"12 g sale\", \"100 g lievito madre già rinfrescato la sera prima\"]}, {\"title\": \"Cottura\", \"items\": [\"230 g salsa di pomodoro\", \"200 g mozzarella\", \"Condimento a piacere\"]}]", + "procedure": "[{\"title\": \"Starter prep\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Oggi, ore 21:00\", \"level\": 3, \"content\": \"- Tira fuori il lievito madre dal frigo.\\n- Rinfrescalo.\\n- Lascialo a temperatura ambiente finché raddoppia.\\n- Quando ha raddoppiato, rimettilo in frigo fino a domattina.\"}, {\"title\": \"Domani, ore 8:30\", \"level\": 3, \"content\": \"- Tira fuori il lievito madre dal frigo per riportarlo a temperatura ambiente.\"}, {\"title\": \"Dough mix\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Impasto\", \"level\": 3, \"content\": \"- Alle 9:00 sciogli il lievito madre nell'acqua.\\n- Aggiungi la farina.\\n- Aggiungi il sale.\\n- Aggiungi infine l'olio.\\n- Lavora fino a ottenere un impasto liscio e omogeneo.\"}, {\"title\": \"Timeline\", \"level\": 2, \"content\": \"\"}, {\"title\": \"Bulk fermentation\", \"level\": 3, \"content\": \"- 09:30 → primo giro di pieghe\\n- 11:00 → secondo giro di pieghe\\n- 11:30 → terzo giro di pieghe\\n- 11:30 - 17:30 → lievitazione coperta fino al raddoppio\"}, {\"title\": \"Formatura\", \"level\": 3, \"content\": \"- 17:30 → dividi in 3 panetti e forma le palline\\n- 17:30 - 19:30 → riposo finale dei panetti\\n- 19:30 → stesura prima del condimento\"}, {\"title\": \"Bake\", \"level\": 2, \"content\": \"- Stendi i panetti con le dita.\\n- Condisci con salsa di pomodoro, mozzarella e olio.\\n- Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\\n- Aggiungi il condimento.\\n- Sposta la pizza nella parte alta del forno per altri 2 minuti.\\n- Servi subito.\"}]", + "bakingInstructions": "[\"Stendi i panetti con le dita.\", \"Condisci con salsa di pomodoro, mozzarella e olio.\", \"Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\", \"Aggiungi il condimento.\", \"Sposta la pizza nella parte alta del forno per altri 2 minuti.\", \"Servi subito.\"]", "defaultSteps": [ { "id": "3F125343-08BE-56B5-BCB4-FFD3C2FEE0BD", @@ -449,7 +449,7 @@ "name": "Cottura", "typeRaw": "bake", "durationMinutes": 12, - "details": "- Stendi i panetti con le dita.\n- Condisci con salsa di pomodoro, mozzarella e olio.\n- Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\n- Aggiungi il salame piccante.\n- Sposta la pizza nella parte alta del forno per altri 2 minuti.\n- Servi subito.", + "details": "- Stendi i panetti con le dita.\n- Condisci con salsa di pomodoro, mozzarella e olio.\n- Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti.\n- Aggiungi il condimento.\n- Sposta la pizza nella parte alta del forno per altri 2 minuti.\n- Servi subito.", "notes": "", "reminderOffsetMinutes": 0, "temperatureRange": "", @@ -457,7 +457,7 @@ "ingredients": [ "230 g salsa di pomodoro", "200 g mozzarella", - "50 g salame piccante" + "Condimento a piacere" ] } ] @@ -581,5 +581,108 @@ "ingredients": [] } ] + }, + { + "id": "C3D4E5F6-A7B8-9012-CDEF-012345678902", + "name": "Pan Brioche (lievito di birra)", + "type": "dolci", + "yeastType": "freshYeast", + "totalFlourWeight": 500, + "totalWaterWeight": 280, + "saltWeight": 8.0, + "servings": 3, + "inoculationPercent": 1.2, + "flourMix": "100% farina forte W300 (circa 13 g proteine)", + "flours": [], + "notes": "Pan brioche soffice con lievito di birra fresco. Resa: 3 rotolini. Lievitazione in due tempi a temperatura ambiente.", + "ingredients": "[{\"title\": \"Impasto\", \"items\": [\"500 g farina W300 (circa 13 g proteine)\", \"280 ml latte\", \"6 g lievito di birra fresco\", \"1 uovo intero\", \"1 tuorlo\", \"8 g sale\", \"40 g zucchero\", \"70 g burro morbido\"]}, {\"title\": \"Spennellatura\", \"items\": [\"1 tuorlo\", \"q.b. latte\"]}]", + "procedure": "[{\"title\": \"Impasto\", \"level\": 2, \"content\": \"- Metti nella ciotola la farina, il lievito di birra fresco sbriciolato, lo zucchero e tutto il latte.\\n- Inizia a impastare fino a quando l'impasto prende consistenza.\\n- Aggiungi il sale e continua a lavorare fino a renderlo liscio e omogeneo.\\n- Inserisci l'uovo intero e, solo dopo che è stato assorbito, aggiungi il tuorlo.\\n- Per ultimo incorpora il burro morbido a pezzetti, aspettando che ogni aggiunta sia assorbita prima di aggiungerne altro.\\n- L'impasto finale deve essere elastico e lucido.\"}, {\"title\": \"Prima lievitazione\", \"level\": 2, \"content\": \"- Copri la ciotola.\\n- Lascia lievitare per 2 ore a temperatura ambiente (circa 19–20°C).\"}, {\"title\": \"Formatura\", \"level\": 2, \"content\": \"- Stendi l'impasto delicatamente.\\n- Forma 3 rotolini di dimensioni simili.\\n- Disponili in uno stampo da plumcake imburrato o su una teglia rivestita di carta forno.\"}, {\"title\": \"Seconda lievitazione\", \"level\": 2, \"content\": \"- Copri i rotolini.\\n- Lascia lievitare per circa 1 ora e 30 minuti a temperatura ambiente, finché raddoppiano di volume.\"}, {\"title\": \"Cottura\", \"level\": 2, \"content\": \"- Preriscalda il forno a 180°C in modalità ventilata.\\n- Spennella delicatamente la superficie con il tuorlo mescolato a un goccio di latte.\\n- Inforna per 20 minuti, finché la superficie è dorata.\\n- Fai raffreddare su una griglia prima di servire.\"}]", + "bakingInstructions": "[\"Preriscalda il forno a 180°C in modalità ventilata.\", \"Spennella la superficie con tuorlo e latte.\", \"Inforna per 20 minuti, finché la superficie è dorata.\", \"Fai raffreddare su una griglia prima di servire.\"]", + "defaultSteps": [ + { + "id": "C3001001-0001-0001-0001-000000000001", + "name": "Impasto", + "typeRaw": "mix", + "durationMinutes": 25, + "details": "- Metti nella ciotola la farina, il lievito di birra fresco sbriciolato, lo zucchero e tutto il latte.\n- Inizia a impastare fino a quando l'impasto prende consistenza.\n- Aggiungi il sale e continua a lavorare fino a renderlo liscio e omogeneo.\n- Inserisci l'uovo intero e, solo dopo che è stato assorbito, aggiungi il tuorlo.\n- Per ultimo incorpora il burro morbido a pezzetti, aspettando che ogni aggiunta sia assorbita.\n- L'impasto finale deve essere elastico e lucido.", + "notes": "", + "reminderOffsetMinutes": 0, + "temperatureRange": "", + "volumeTarget": "", + "ingredients": [ + "500 g farina W300 (circa 13 g proteine)", + "280 ml latte", + "6 g lievito di birra fresco", + "1 uovo intero", + "1 tuorlo", + "8 g sale", + "40 g zucchero", + "70 g burro morbido" + ] + }, + { + "id": "C3001001-0001-0001-0001-000000000002", + "name": "Prima lievitazione", + "typeRaw": "bulk", + "durationMinutes": 120, + "details": "- Copri la ciotola.\n- Lascia lievitare per 2 ore a temperatura ambiente (circa 19–20°C).", + "notes": "", + "reminderOffsetMinutes": 0, + "temperatureRange": "19–20°C", + "volumeTarget": "", + "ingredients": [] + }, + { + "id": "C3001001-0001-0001-0001-000000000003", + "name": "Formatura", + "typeRaw": "shape", + "durationMinutes": 15, + "details": "- Stendi l'impasto delicatamente.\n- Forma 3 rotolini di dimensioni simili.\n- Disponili in uno stampo da plumcake imburrato o su una teglia rivestita di carta forno.", + "notes": "", + "reminderOffsetMinutes": 0, + "temperatureRange": "", + "volumeTarget": "", + "ingredients": [] + }, + { + "id": "C3001001-0001-0001-0001-000000000004", + "name": "Seconda lievitazione", + "typeRaw": "proof", + "durationMinutes": 90, + "details": "- Copri i rotolini.\n- Lascia lievitare per circa 1 ora e 30 minuti a temperatura ambiente, finché raddoppiano di volume.", + "notes": "", + "reminderOffsetMinutes": 0, + "temperatureRange": "19–20°C", + "volumeTarget": "Raddoppio", + "ingredients": [] + }, + { + "id": "C3001001-0001-0001-0001-000000000005", + "name": "Cottura", + "typeRaw": "bake", + "durationMinutes": 20, + "details": "- Preriscalda il forno a 180°C in modalità ventilata.\n- Spennella delicatamente la superficie con il tuorlo mescolato a un goccio di latte.\n- Inforna per 20 minuti, finché la superficie è dorata.", + "notes": "", + "reminderOffsetMinutes": 15, + "temperatureRange": "180°C ventilato", + "volumeTarget": "", + "ingredients": [ + "1 tuorlo", + "q.b. latte" + ] + }, + { + "id": "C3001001-0001-0001-0001-000000000006", + "name": "Raffreddamento", + "typeRaw": "cool", + "durationMinutes": 30, + "details": "- Sforna e lascia raffreddare su una griglia prima di servire.", + "notes": "", + "reminderOffsetMinutes": 0, + "temperatureRange": "", + "volumeTarget": "", + "ingredients": [] + } + ] } -] \ No newline at end of file +] diff --git a/Levain/Services/BakeReminderPlanner.swift b/Levain/Services/BakeReminderPlanner.swift index fa62f1d..0faa913 100644 --- a/Levain/Services/BakeReminderPlanner.swift +++ b/Levain/Services/BakeReminderPlanner.swift @@ -15,6 +15,9 @@ enum BakeReminderPlanner { } var reminders: [BakeReminder] = [] + if let activeStep = bake.activeStep, activeStep.isOverdue(now: now) { + reminders.append(contentsOf: overdueReminders(for: bake, step: activeStep, now: now)) + } for step in bake.sortedSteps where step.isTerminal == false { if step.isWindowBased, step.status == .running { @@ -29,7 +32,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 ) @@ -39,9 +42,10 @@ enum BakeReminderPlanner { return reminders } - static func identifiers(for bake: Bake) -> [String] { + static func identifiers(for bake: Bake, now: Date = .now) -> [String] { bake.steps.flatMap { step in - ReminderPhase.allCases.map { identifier(for: bake, step: step, phase: $0) } + ReminderPhase.allCases.map { identifier(for: bake, step: step, phase: $0) } + + RollingOverdueReminderPlanner.identifierDates(now: now).map { overdueIdentifier(for: bake, step: step, on: $0) } } } @@ -53,7 +57,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 ) @@ -65,7 +69,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 ) @@ -75,6 +79,18 @@ enum BakeReminderPlanner { return reminders } + private static func overdueReminders(for bake: Bake, step: BakeStep, now: Date) -> [BakeReminder] { + RollingOverdueReminderPlanner.reminderDates(overdueSince: step.windowEnd, now: now).map { fireDate in + BakeReminder( + identifier: overdueIdentifier(for: bake, step: step, on: fireDate), + title: "\(step.displayName) · \(bake.name)", + body: "Non hai ancora completato \(step.displayName) di \(bake.name).", + route: AppRouter.DeepLink.bake(id: bake.id, stepID: step.id), + fireDate: fireDate + ) + } + } + private enum ReminderPhase: String, CaseIterable { case start case windowClose @@ -83,4 +99,8 @@ enum BakeReminderPlanner { private static func identifier(for bake: Bake, step: BakeStep, phase: ReminderPhase) -> String { "bake-\(phase.rawValue)-\(bake.id.uuidString)-\(step.id.uuidString)" } + + private static func overdueIdentifier(for bake: Bake, step: BakeStep, on fireDate: Date) -> String { + "bake-overdue-\(bake.id.uuidString)-\(step.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: fireDate))" + } } diff --git a/Levain/Services/BakeScheduler.swift b/Levain/Services/BakeScheduler.swift index a026977..0e0cfae 100644 --- a/Levain/Services/BakeScheduler.swift +++ b/Levain/Services/BakeScheduler.swift @@ -17,7 +17,14 @@ enum BakeScheduler { let waterWeight = yeastConversion?.newTotalWaterWeight ?? formula.totalWaterWeight let hydration = yeastConversion?.hydrationPercent ?? formula.hydrationPercent let inoculationPct = yeastConversion.map { $0.yeastPercent } ?? formula.inoculationPercent - let totalDough = yeastConversion?.totalDoughWeight ?? formula.totalDoughWeight + let totalDough = if let yeastConversion { + yeastConversion.newTotalFlourWeight + + yeastConversion.newTotalWaterWeight + + formula.saltWeight + + yeastConversion.yeastGrams + } else { + formula.totalDoughWeight + } let bake = Bake( name: name.isEmpty ? formula.name : name, diff --git a/Levain/Services/KefirReminderPlanner.swift b/Levain/Services/KefirReminderPlanner.swift index b5ae414..9528d9a 100644 --- a/Levain/Services/KefirReminderPlanner.swift +++ b/Levain/Services/KefirReminderPlanner.swift @@ -45,11 +45,24 @@ enum KefirReminderPlanner { ) } + reminders.append(contentsOf: + RollingOverdueReminderPlanner.reminderDates(overdueSince: dueAt, now: now).map { fireDate in + KefirReminderRequest( + identifier: overdueIdentifier(for: batch, on: fireDate), + fireDate: fireDate, + title: batch.name, + body: overdueBody(for: batch), + route: route + ) + } + ) + return reminders } - static func identifiers(for batch: KefirBatch) -> [String] { - Phase.allCases.map { identifier(for: batch, phase: $0) } + static func identifiers(for batch: KefirBatch, now: Date = .now) -> [String] { + Phase.allCases.map { identifier(for: batch, phase: $0) } + + RollingOverdueReminderPlanner.identifierDates(now: now).map { overdueIdentifier(for: batch, on: $0) } } private static func identifier(for batch: KefirBatch, phase: Phase) -> String { @@ -59,11 +72,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." } } @@ -77,4 +90,19 @@ enum KefirReminderPlanner { return "È il momento di riattivare il batch." } } + + private static func overdueBody(for batch: KefirBatch) -> String { + switch batch.storageMode { + case .roomTemperature: + return "Non hai ancora rinnovato \(batch.name)." + case .fridge: + return "Non hai ancora controllato \(batch.name)." + case .freezer: + return "Non hai ancora riattivato \(batch.name)." + } + } + + private static func overdueIdentifier(for batch: KefirBatch, on fireDate: Date) -> String { + "kefir-overdue-\(batch.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: fireDate))" + } } diff --git a/Levain/Services/NotificationService.swift b/Levain/Services/NotificationService.swift index 121c7d1..c9bf6d7 100644 --- a/Levain/Services/NotificationService.swift +++ b/Levain/Services/NotificationService.swift @@ -2,7 +2,7 @@ import Foundation import SwiftData import UserNotifications -private struct NotificationRequestPayload: Sendable { +struct NotificationRequestPayload: Sendable, Equatable { let identifier: String let title: String let body: String @@ -10,11 +10,162 @@ private struct NotificationRequestPayload: Sendable { let fireDate: Date } -private struct NotificationSyncPlan: Sendable { +struct NotificationSyncPlan: Sendable, Equatable { let identifiersToRemove: [String] let requests: [NotificationRequestPayload] } +enum NotificationPlanningDefaults { + static let overdueReminderHour = 19 + static let overdueReminderMinute = 0 + static let overdueWindowDays = 7 + static let maxPendingRequests = 60 +} + +enum RollingOverdueReminderPlanner { + static func reminderDates( + overdueSince: Date, + now: Date = .now, + windowDays: Int = NotificationPlanningDefaults.overdueWindowDays + ) -> [Date] { + guard windowDays > 0 else { return [] } + + let windowDates = identifierDates(now: now, windowDays: windowDays) + guard let windowEnd = windowDates.last else { return [] } + + let firstEligibleDate = max(firstReminderDate(after: overdueSince), firstReminderDate(after: now)) + guard firstEligibleDate <= windowEnd else { return [] } + + return windowDates.filter { $0 >= firstEligibleDate } + } + + static func identifierDates( + now: Date = .now, + windowDays: Int = NotificationPlanningDefaults.overdueWindowDays + ) -> [Date] { + guard windowDays > 0 else { return [] } + + let firstFutureReminder = firstReminderDate(after: now) + return (0.. String { + let components = Calendar.current.dateComponents([.year, .month, .day], from: date) + let year = components.year ?? 0 + let month = components.month ?? 0 + let day = components.day ?? 0 + return String(format: "%04d%02d%02d", year, month, day) + } + + private static func firstReminderDate(after reference: Date) -> Date { + let sameDayReminder = reference.settingTime( + hour: NotificationPlanningDefaults.overdueReminderHour, + minute: NotificationPlanningDefaults.overdueReminderMinute + ) + + if sameDayReminder > reference { + return sameDayReminder + } + + let nextDay = Calendar.current.date(byAdding: .day, value: 1, to: reference.startOfDay) ?? reference + return nextDay.settingTime( + hour: NotificationPlanningDefaults.overdueReminderHour, + minute: NotificationPlanningDefaults.overdueReminderMinute + ) + } +} + +enum NotificationPlanBuilder { + static func buildGlobalPlan( + bakes: [Bake], + starters: [Starter], + kefirBatches: [KefirBatch], + now: Date = .now + ) -> NotificationSyncPlan { + let plans = + bakes.map { makePlan(for: $0, now: now) } + + starters.map { makePlan(for: $0, now: now) } + + kefirBatches.map { makePlan(for: $0, now: now) } + + return merge(plans: plans, now: now) + } + + static func merge(plans: [NotificationSyncPlan], now: Date = .now) -> NotificationSyncPlan { + let identifiersToRemove = Array(Set(plans.flatMap(\.identifiersToRemove))).sorted() + + let sortedRequests = plans + .flatMap(\.requests) + .filter { $0.fireDate > now } + .sorted { + if $0.fireDate == $1.fireDate { + return $0.identifier < $1.identifier + } + return $0.fireDate < $1.fireDate + } + + var seenIdentifiers = Set() + var requests: [NotificationRequestPayload] = [] + requests.reserveCapacity(min(sortedRequests.count, NotificationPlanningDefaults.maxPendingRequests)) + + for request in sortedRequests where requests.count < NotificationPlanningDefaults.maxPendingRequests { + guard seenIdentifiers.insert(request.identifier).inserted else { continue } + requests.append(request) + } + + return NotificationSyncPlan( + identifiersToRemove: identifiersToRemove, + requests: requests + ) + } + + private static func makePlan(for bake: Bake, now: Date) -> NotificationSyncPlan { + NotificationSyncPlan( + identifiersToRemove: BakeReminderPlanner.identifiers(for: bake, now: now), + requests: BakeReminderPlanner.planReminders(for: bake, now: now).map { reminder in + NotificationRequestPayload( + identifier: reminder.identifier, + title: reminder.title, + body: reminder.body, + route: reminder.route, + fireDate: reminder.fireDate + ) + } + ) + } + + private static func makePlan(for starter: Starter, now: Date) -> NotificationSyncPlan { + NotificationSyncPlan( + identifiersToRemove: StarterReminderPlanner.identifiers(for: starter, now: now), + requests: StarterReminderPlanner.planReminders(for: starter, now: now).map { reminder in + NotificationRequestPayload( + identifier: reminder.identifier, + title: reminder.title, + body: reminder.body, + route: reminder.route, + fireDate: reminder.fireDate + ) + } + ) + } + + private static func makePlan(for batch: KefirBatch, now: Date) -> NotificationSyncPlan { + NotificationSyncPlan( + identifiersToRemove: KefirReminderPlanner.identifiers(for: batch, now: now), + requests: KefirReminderPlanner.planReminders(for: batch, now: now).map { reminder in + NotificationRequestPayload( + identifier: reminder.identifier, + title: reminder.title, + body: reminder.body, + route: reminder.route, + fireDate: reminder.fireDate + ) + } + ) + } +} + private enum NotificationScheduler { @MainActor static func apply(_ plans: [NotificationSyncPlan]) async { @@ -116,29 +267,24 @@ final class NotificationService: NSObject, ObservableObject, UNUserNotificationC let starters = (try? modelContext.fetch(FetchDescriptor())) ?? [] let kefirBatches = (try? modelContext.fetch(FetchDescriptor())) ?? [] - let plans = - bakes.map { makeSyncPlan(for: $0) } + - starters.map { makeSyncPlan(for: $0) } + - kefirBatches.map { makeSyncPlan(for: $0) } - await NotificationScheduler.apply(plans) + let plan = NotificationPlanBuilder.buildGlobalPlan( + bakes: bakes, + starters: starters, + kefirBatches: kefirBatches + ) + await NotificationScheduler.apply([plan]) } - func syncNotifications(forBake bakeID: UUID, in context: ModelContext) async { - let descriptor = FetchDescriptor(predicate: #Predicate { $0.id == bakeID }) - guard let bake = (try? context.fetch(descriptor))?.first else { return } - await NotificationScheduler.apply([makeSyncPlan(for: bake)]) + func syncNotifications(forBake _: UUID, in context: ModelContext) async { + await resyncAll(using: context) } - func syncNotifications(forStarter starterID: UUID, in context: ModelContext) async { - let descriptor = FetchDescriptor(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(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) } nonisolated func userNotificationCenter( @@ -187,56 +333,9 @@ final class NotificationService: NSObject, ObservableObject, UNUserNotificationC } private func fridgeReminderIdentifier(_ id: UUID) -> String { "refresh-fridge-\(id.uuidString)" } - private func dueIdentifier(_ id: UUID) -> String { "starter-due-\(id.uuidString)" } - private func followUpIdentifier(_ id: UUID) -> String { "starter-followup-\(id.uuidString)" } func fridgeReminderRoute(for refresh: StarterRefresh) -> String? { guard let starterID = refresh.starter?.id else { return nil } return AppRouter.DeepLink.starter(id: starterID) } - - private func makeSyncPlan(for bake: Bake) -> NotificationSyncPlan { - NotificationSyncPlan( - identifiersToRemove: BakeReminderPlanner.identifiers(for: bake), - requests: BakeReminderPlanner.planReminders(for: bake).map { reminder in - NotificationRequestPayload( - identifier: reminder.identifier, - title: reminder.title, - body: reminder.body, - route: reminder.route, - fireDate: reminder.fireDate - ) - } - ) - } - - private func makeSyncPlan(for starter: Starter) -> NotificationSyncPlan { - NotificationSyncPlan( - identifiersToRemove: [dueIdentifier(starter.id), followUpIdentifier(starter.id)], - requests: StarterReminderPlanner.planReminders(for: starter).map { reminder in - NotificationRequestPayload( - identifier: reminder.identifier, - title: reminder.title, - body: reminder.body, - route: reminder.route, - fireDate: reminder.fireDate - ) - } - ) - } - - private func makeSyncPlan(for batch: KefirBatch) -> NotificationSyncPlan { - NotificationSyncPlan( - identifiersToRemove: KefirReminderPlanner.identifiers(for: batch), - requests: KefirReminderPlanner.planReminders(for: batch).map { reminder in - NotificationRequestPayload( - identifier: reminder.identifier, - title: reminder.title, - body: reminder.body, - route: reminder.route, - fireDate: reminder.fireDate - ) - } - ) - } } diff --git a/Levain/Services/StarterReminderPlanner.swift b/Levain/Services/StarterReminderPlanner.swift index 9660b3a..12557bb 100644 --- a/Levain/Services/StarterReminderPlanner.swift +++ b/Levain/Services/StarterReminderPlanner.swift @@ -9,30 +9,57 @@ struct StarterReminderRequest: Equatable { } enum StarterReminderPlanner { - static func planReminders(for starter: Starter) -> [StarterReminderRequest] { - guard starter.remindersEnabled else { return [] } + static func planReminders(for starter: Starter, now: Date = .now) -> [StarterReminderRequest] { + guard starter.remindersEnabled, starter.isArchived == false else { return [] } let due = starter.nextDueDate.settingTime(hour: 9, minute: 0) - let followUp = due.adding(minutes: 24 * 60) - let route = AppRouter.DeepLink.starter(id: starter.id) + let overdueSince = (Calendar.current.date(byAdding: .day, value: 1, to: starter.nextDueDate.startOfDay) ?? starter.nextDueDate) + .startOfDay - let dueRequest = StarterReminderRequest( - identifier: "starter-due-\(starter.id.uuidString)", - fireDate: due, - title: starter.name, - body: "Oggi è previsto un rinfresco. Apri lo starter per registrarlo.", - route: route - ) + var reminders: [StarterReminderRequest] = [] + + if due > now { + reminders.append( + StarterReminderRequest( + identifier: dueIdentifier(for: starter), + fireDate: due, + title: starter.name, + body: "Oggi è previsto un rinfresco. Apri lo starter per registrarlo.", + route: route + ) + ) + } - let followUpRequest = StarterReminderRequest( - identifier: "starter-followup-\(starter.id.uuidString)", - fireDate: followUp, - title: starter.name, - body: "Non hai ancora registrato il rinfresco di oggi. Apri lo starter per farlo adesso.", - route: route + reminders.append(contentsOf: + RollingOverdueReminderPlanner.reminderDates(overdueSince: overdueSince, now: now).map { fireDate in + StarterReminderRequest( + identifier: overdueIdentifier(for: starter, on: fireDate), + fireDate: fireDate, + title: starter.name, + body: "Non hai ancora rinfrescato \(starter.name).", + route: route + ) + } ) - return [dueRequest, followUpRequest] + return reminders + } + + static func identifiers(for starter: Starter, now: Date = .now) -> [String] { + [dueIdentifier(for: starter), legacyFollowUpIdentifier(for: starter)] + + RollingOverdueReminderPlanner.identifierDates(now: now).map { overdueIdentifier(for: starter, on: $0) } + } + + private static func dueIdentifier(for starter: Starter) -> String { + "starter-due-\(starter.id.uuidString)" + } + + private static func legacyFollowUpIdentifier(for starter: Starter) -> String { + "starter-followup-\(starter.id.uuidString)" + } + + private static func overdueIdentifier(for starter: Starter, on fireDate: Date) -> String { + "starter-overdue-\(starter.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: fireDate))" } } diff --git a/Levain/Services/YeastConversionService.swift b/Levain/Services/YeastConversionService.swift index 26deaca..b5bc907 100644 --- a/Levain/Services/YeastConversionService.swift +++ b/Levain/Services/YeastConversionService.swift @@ -14,7 +14,7 @@ struct YeastConversionResult { /// Durata appretto in minuti let proofDurationMinutes: Int - /// Peso totale impasto finale (farina + acqua + sale stimato + lievito) + /// Peso base convertito (farina + acqua + lievito). Il sale resta sulla formula. var totalDoughWeight: Double { newTotalFlourWeight + newTotalWaterWeight + yeastGrams } /// Idratazione effettiva della nuova ricetta (%) @@ -89,13 +89,14 @@ enum YeastConversionService { /// Calcola solo la quantità di lievito e i tempi per una ricetta che non usa starter. static func calculateYeast( flourWeight: Double, + waterWeight: Double = 0, targetYeastType: YeastType, profile: YeastProfile ) -> YeastConversionResult { let yeastGrams = yeastAmount(for: targetYeastType, profile: profile, flourWeight: flourWeight) return YeastConversionResult( newTotalFlourWeight: flourWeight, - newTotalWaterWeight: 0, + newTotalWaterWeight: waterWeight, yeastGrams: yeastGrams, bulkDurationMinutes: profile.bulkDurationMinutes, proofDurationMinutes: profile.proofDurationMinutes @@ -153,3 +154,351 @@ enum YeastConversionService { return (baseGrams * scale * 10).rounded() / 10 } } + +enum RecipeYeastAdaptationService { + static func adaptedFormula( + from source: RecipeFormula, + conversion: YeastConversionResult, + targetYeastType: YeastType, + profile: YeastProfile + ) -> RecipeFormula { + let adapted = source.duplicate(newName: source.name) + adapted.yeastType = targetYeastType + adapted.totalFlourWeight = conversion.newTotalFlourWeight + adapted.totalWaterWeight = conversion.newTotalWaterWeight + adapted.inoculationPercent = conversion.yeastPercent + adapted.recalculateDerivedValues() + adapted.ingredients = adaptedIngredientsPayload( + source.ingredients ?? "", + conversion: conversion, + targetYeastType: targetYeastType + ) + adapted.procedure = adaptedProcedurePayload( + source.procedure ?? "", + formulaName: source.name, + formulaType: source.type, + conversion: conversion, + targetYeastType: targetYeastType + ) + adapted.defaultSteps = adaptedSteps( + source.defaultSteps, + formulaName: source.name, + formulaType: source.type, + conversion: conversion, + targetYeastType: targetYeastType, + profile: profile + ) + return adapted + } + + private static func adaptedIngredientsPayload( + _ payload: String, + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + guard var sections = decode([IngredientSectionPayload].self, from: payload) else { + return adaptText(payload, conversion: conversion, targetYeastType: targetYeastType) + } + + let yeastLine = commercialYeastLine(conversion: conversion, targetYeastType: targetYeastType) + var replacedYeast = false + + for sectionIndex in sections.indices { + sections[sectionIndex].title = adaptText(sections[sectionIndex].title, conversion: conversion, targetYeastType: targetYeastType) + sections[sectionIndex].items = sections[sectionIndex].items.map { item in + if referencesSourdough(item) { + replacedYeast = true + return yeastLine + } + return adaptText(item, conversion: conversion, targetYeastType: targetYeastType) + } + } + + if replacedYeast == false { + if let impastoIndex = sections.firstIndex(where: { $0.title.localizedCaseInsensitiveContains("impasto") }) { + sections[impastoIndex].items.append(yeastLine) + } else if sections.isEmpty == false { + sections[0].items.append(yeastLine) + } else { + sections.append(IngredientSectionPayload(title: "Impasto", items: [yeastLine])) + } + } + + return encode(sections) ?? payload + } + + private static func adaptedProcedurePayload( + _ payload: String, + formulaName: String, + formulaType: RecipeCategory, + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + guard var sections = decode([ProcedureSectionPayload].self, from: payload) else { + return adaptText(payload, conversion: conversion, targetYeastType: targetYeastType) + } + + if isPizza(formulaName: formulaName, formulaType: formulaType) { + sections = sections.compactMap { section in + let searchable = "\(section.title)\n\(section.content)".lowercased() + if searchable.contains("starter prep") + || searchable.contains("rinfresca") + || searchable.contains("tira fuori il lievito madre") { + return nil + } + + var adapted = section + let title = section.title.lowercased() + if title.contains("impasto") { + adapted.content = pizzaMixDetails(conversion: conversion, targetYeastType: targetYeastType) + } else if title.contains("bulk") || title.contains("puntata") { + adapted.content = pizzaBulkDetails(conversion: conversion) + } else if title.contains("formatura") || title.contains("staglio") { + adapted.content = pizzaShapeDetails(conversion: conversion) + } else { + adapted.content = adaptText(section.content, conversion: conversion, targetYeastType: targetYeastType) + } + return adapted + } + } else { + sections = sections.map { section in + ProcedureSectionPayload( + title: adaptText(section.title, conversion: conversion, targetYeastType: targetYeastType), + level: section.level, + content: adaptText(section.content, conversion: conversion, targetYeastType: targetYeastType) + ) + } + } + + return encode(sections) ?? payload + } + + private static func adaptedSteps( + _ steps: [FormulaStepTemplate], + formulaName: String, + formulaType: RecipeCategory, + conversion: YeastConversionResult, + targetYeastType: YeastType, + profile: YeastProfile + ) -> [FormulaStepTemplate] { + let isPizzaFormula = isPizza(formulaName: formulaName, formulaType: formulaType) + let hasProof = steps.contains { $0.type == .proof } + var result: [FormulaStepTemplate] = [] + + for step in steps { + if isPizzaFormula, step.type == .shape, hasProof == false { + result.append( + FormulaStepTemplate( + id: step.id, + type: .shape, + name: step.name.isEmpty ? "Formatura" : step.name, + details: "- Dividi l'impasto in panetti e forma le palline.", + durationMinutes: min(max(step.durationMinutes, 15), 30), + reminderOffsetMinutes: step.reminderOffsetMinutes, + temperatureRange: step.temperatureRange, + volumeTarget: step.volumeTarget, + notes: step.notes, + ingredients: step.ingredients.map { + adaptText($0, conversion: conversion, targetYeastType: targetYeastType) + } + ) + ) + result.append( + FormulaStepTemplate( + type: .proof, + name: "Appretto", + details: pizzaProofDetails(conversion: conversion), + durationMinutes: conversion.proofDurationMinutes, + reminderOffsetMinutes: 15, + temperatureRange: step.temperatureRange, + volumeTarget: step.volumeTarget, + notes: "Durata adattata al profilo \(profile.shortTitle)." + ) + ) + continue + } + + var adapted = step + adapted.details = adaptedStepDetails( + step, + isPizzaFormula: isPizzaFormula, + conversion: conversion, + targetYeastType: targetYeastType + ) + adapted.ingredients = adaptedStepIngredients( + step.ingredients, + conversion: conversion, + targetYeastType: targetYeastType + ) + result.append(adapted) + } + + return result + } + + private static func adaptedStepDetails( + _ step: FormulaStepTemplate, + isPizzaFormula: Bool, + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + guard isPizzaFormula else { + return adaptText(step.details, conversion: conversion, targetYeastType: targetYeastType) + } + + switch step.type { + case .mix: + return pizzaMixDetails(conversion: conversion, targetYeastType: targetYeastType) + case .bulk: + return pizzaBulkDetails(conversion: conversion) + case .proof: + return pizzaProofDetails(conversion: conversion) + default: + return adaptText(step.details, conversion: conversion, targetYeastType: targetYeastType) + } + } + + private static func adaptedStepIngredients( + _ ingredients: [String], + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> [String] { + let yeastLine = commercialYeastLine(conversion: conversion, targetYeastType: targetYeastType) + var replacedYeast = false + var adapted = ingredients.map { item in + if referencesSourdough(item) { + replacedYeast = true + return yeastLine + } + return adaptText(item, conversion: conversion, targetYeastType: targetYeastType) + } + + if replacedYeast == false, ingredients.contains(where: { $0.localizedCaseInsensitiveContains("farina") }) { + adapted.append(yeastLine) + } + + return adapted + } + + private static func pizzaMixDetails( + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + let yeastLine = commercialYeastLine(conversion: conversion, targetYeastType: targetYeastType) + return """ + - Sciogli o disperdi \(yeastLine) nell'acqua. + - Aggiungi la farina. + - Aggiungi il sale. + - Aggiungi infine l'olio. + - Lavora fino a ottenere un impasto liscio e omogeneo. + """ + } + + private static func pizzaBulkDetails(conversion: YeastConversionResult) -> String { + """ + - Lascia fermentare l'impasto coperto per circa \(durationLabel(conversion.bulkDurationMinutes)). + - Fai 2-3 giri di pieghe nella prima parte se l'impasto ha bisogno di struttura. + - Procedi quando l'impasto e' visibilmente cresciuto e piu' arioso. + """ + } + + private static func pizzaShapeDetails(conversion: YeastConversionResult) -> String { + """ + - Dividi l'impasto in panetti e forma le palline. + - Copri i panetti e lasciali rilassare per l'appretto. + - Stendi i panetti poco prima del condimento. + """ + } + + private static func pizzaProofDetails(conversion: YeastConversionResult) -> String { + """ + - Lascia apprettare i panetti coperti per circa \(durationLabel(conversion.proofDurationMinutes)). + - Procedi quando i panetti sono rilassati, leggermente gonfi e facili da stendere. + """ + } + + private static func adaptText( + _ text: String, + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + text + .replacingOccurrences(of: "lievito madre già rinfrescato la sera prima", with: commercialYeastLine(conversion: conversion, targetYeastType: targetYeastType), options: .caseInsensitive) + .replacingOccurrences(of: "lievito madre", with: targetYeastType.ingredientName, options: .caseInsensitive) + .replacingOccurrences(of: "starter", with: targetYeastType.ingredientName, options: .caseInsensitive) + .replacingOccurrences(of: "levain", with: targetYeastType.ingredientName, options: .caseInsensitive) + } + + private static func referencesSourdough(_ text: String) -> Bool { + let lowercased = text.lowercased() + return lowercased.contains("lievito madre") + || lowercased.contains("starter") + || lowercased.contains("levain") + } + + private static func commercialYeastLine( + conversion: YeastConversionResult, + targetYeastType: YeastType + ) -> String { + "\(formatGrams(conversion.yeastGrams)) g \(targetYeastType.ingredientName)" + } + + private static func isPizza(formulaName: String, formulaType: RecipeCategory) -> Bool { + formulaType == .pizza || formulaName.localizedCaseInsensitiveContains("pizza") + } + + private static func durationLabel(_ minutes: Int) -> String { + if minutes >= 60 { + let hours = minutes / 60 + let remainingMinutes = minutes % 60 + return remainingMinutes == 0 ? "\(hours)h" : "\(hours)h \(remainingMinutes)min" + } + return "\(minutes) min" + } + + private static func formatGrams(_ value: Double) -> String { + let rounded = (value * 10).rounded() / 10 + if abs(rounded.rounded() - rounded) < 0.01 { + return "\(Int(rounded.rounded()))" + } + return String(format: "%.1f", rounded).replacingOccurrences(of: ".", with: ",") + } + + private static func decode(_ type: T.Type, from payload: String) -> T? { + guard payload.isEmpty == false, let data = payload.data(using: .utf8) else { return nil } + return try? JSONDecoder().decode(type, from: data) + } + + private static func encode(_ value: T) -> String? { + guard let data = try? JSONEncoder().encode(value) else { return nil } + return String(data: data, encoding: .utf8) + } +} + +private struct IngredientSectionPayload: Codable { + var title: String + var items: [String] +} + +private struct ProcedureSectionPayload: Codable { + var title: String + var level: Int? + var content: String +} + +private extension YeastType { + var ingredientName: String { + switch self { + case .freshYeast: + return "lievito di birra fresco" + case .dryYeast: + return "lievito di birra secco attivo" + case .instantYeast: + return "lievito secco istantaneo" + case .sourdough: + return "lievito madre" + case .none: + return "nessun lievito" + } + } +} diff --git a/Levain/icons/logo-01.svg b/Levain/icons/logo-01.svg index 44ca21a..7e4973f 100644 --- a/Levain/icons/logo-01.svg +++ b/Levain/icons/logo-01.svg @@ -1,116 +1,42 @@ - + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Levain/icons/logo.png b/Levain/icons/logo.png index 92e8faa..f29f73d 100644 Binary files a/Levain/icons/logo.png and b/Levain/icons/logo.png differ diff --git a/Levain/icons/logo.svg b/Levain/icons/logo.svg index 44ca21a..7e4973f 100644 --- a/Levain/icons/logo.svg +++ b/Levain/icons/logo.svg @@ -1,116 +1,42 @@ - + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/LevainTests/BakeReminderPlannerTests.swift b/LevainTests/BakeReminderPlannerTests.swift index b028df1..0466160 100644 --- a/LevainTests/BakeReminderPlannerTests.swift +++ b/LevainTests/BakeReminderPlannerTests.swift @@ -58,7 +58,7 @@ struct BakeReminderPlannerTests { if let reminder = reminders.first { #expect(reminder.title == "Shape · My Bread") - #expect(reminder.body == "È il momento di intervenire su questo passaggio. Apri l'impasto per continuare.") + #expect(reminder.body == "È il momento della prossima fase.") #expect(reminder.route == "levain://bake/\(bake.id.uuidString)?step=\(pendingStep.id.uuidString)") #expect(reminder.fireDate == now.addingTimeInterval(2700)) #expect(reminder.identifier == "bake-start-\(bake.id.uuidString)-\(pendingStep.id.uuidString)") @@ -86,7 +86,62 @@ struct BakeReminderPlannerTests { let reminders = BakeReminderPlanner.planReminders(for: bake, now: now) #expect(reminders.count == 2) - #expect(reminders[0].body == "Il tuo impasto è pronto per il prossimo passaggio. Aprilo per continuare.") - #expect(reminders[1].body == "La finestra utile sta per chiudersi. Apri l'impasto se devi intervenire ora.") + #expect(reminders[0].body == "Il tuo impasto è pronto per la fase successiva. Aprilo per continuare.") + #expect(reminders[1].body == "È il momento di completare questa fase.") + } + + @Test("Overdue reminders are generated only for the active overdue step") + func testActiveOverdueStepGeneratesDailyReminders() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 10, minute: 0) + let bake = DomainFixtures.makeBake(name: "Pane in ritardo", target: now.addingTimeInterval(3600 * 24)) + + let activeOverdueStep = BakeStep( + orderIndex: 0, + type: .bulk, + nameOverride: "Puntata", + plannedStart: now.adding(minutes: -(26 * 60)), + plannedDurationMinutes: 60 + ) + activeOverdueStep.status = .running + activeOverdueStep.bake = bake + + let laterStep = BakeStep( + orderIndex: 1, + type: .shape, + nameOverride: "Formatura", + plannedStart: now.adding(minutes: 180), + plannedDurationMinutes: 30 + ) + laterStep.status = .pending + laterStep.bake = bake + bake.steps = [activeOverdueStep, laterStep] + + let reminders = BakeReminderPlanner.planReminders(for: bake, now: now) + + #expect(reminders.count == NotificationPlanningDefaults.overdueWindowDays + 1) + #expect(reminders.contains { $0.identifier == "bake-start-\(bake.id.uuidString)-\(laterStep.id.uuidString)" }) + let overdue = reminders.filter { $0.identifier.contains("bake-overdue-\(bake.id.uuidString)-") } + #expect(overdue.count == NotificationPlanningDefaults.overdueWindowDays) + #expect(overdue.allSatisfy { $0.identifier.contains(activeOverdueStep.id.uuidString) }) + #expect(overdue.first?.identifier == "bake-overdue-\(bake.id.uuidString)-\(activeOverdueStep.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: now.settingTime(hour: 19, minute: 0)))") + #expect(overdue.first?.body == "Non hai ancora completato Puntata di Pane in ritardo.") + #expect(overdue.first?.fireDate == now.settingTime(hour: 19, minute: 0)) + } + + @Test("Identifier cleanup covers overdue slots for every step in the rolling window") + func testIdentifiersIncludeOverdueWindowForAllSteps() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 10, minute: 0) + let bake = DomainFixtures.makeBake(name: "Batch cleanup", target: now.addingTimeInterval(3600 * 24)) + bake.steps = [ + BakeStep(orderIndex: 0, type: .mix, nameOverride: "Mix", plannedStart: now.adding(minutes: -180), plannedDurationMinutes: 30, bake: bake), + BakeStep(orderIndex: 1, type: .bulk, nameOverride: "Bulk", plannedStart: now.adding(minutes: 120), plannedDurationMinutes: 30, bake: bake) + ] + + let identifiers = BakeReminderPlanner.identifiers(for: bake, now: now) + + #expect( + identifiers.filter { $0.contains("bake-overdue-\(bake.id.uuidString)-") }.count == + bake.steps.count * NotificationPlanningDefaults.overdueWindowDays + ) } } diff --git a/LevainTests/BakeSchedulerTests.swift b/LevainTests/BakeSchedulerTests.swift index 91a6507..c9dee1e 100644 --- a/LevainTests/BakeSchedulerTests.swift +++ b/LevainTests/BakeSchedulerTests.swift @@ -63,6 +63,58 @@ final class BakeSchedulerTests: XCTestCase { XCTAssertEqual(proof.windowStart, proof.plannedEnd) XCTAssertEqual(proof.windowEnd, proof.plannedEnd.adding(minutes: 60)) } + + func testCommercialYeastAdaptationUpdatesPizzaDosesAndProcedureText() throws { + let systemFormula = try XCTUnwrap( + SystemFormulaLoader.loadSystemFormulas().first { $0.name == "Pizza in giornata" } + ) + let sourceFormula = systemFormula.makeTransientFormula() + let conversion = YeastConversionService.convert( + formulaFlour: sourceFormula.totalFlourWeight, + formulaWater: sourceFormula.totalWaterWeight, + starterWeight: sourceFormula.inoculationPercent / 100 * sourceFormula.totalFlourWeight, + starterHydration: 100, + targetYeastType: .instantYeast, + profile: .medium + ) + + let adaptedFormula = RecipeYeastAdaptationService.adaptedFormula( + from: sourceFormula, + conversion: conversion, + targetYeastType: .instantYeast, + profile: .medium + ) + let bake = BakeScheduler.generateBake( + name: "", + targetBakeDateTime: Date.fixedNow.adding(minutes: 1_000), + formula: adaptedFormula, + yeastConversion: conversion + ) + + let allRecipeText = [ + bake.ingredients ?? "", + bake.procedure ?? "", + bake.sortedSteps.map(\.descriptionText).joined(separator: "\n"), + bake.sortedSteps.flatMap(\.stepIngredients).joined(separator: "\n") + ].joined(separator: "\n").lowercased() + + XCTAssertEqual(adaptedFormula.yeastType, .instantYeast) + XCTAssertEqual(bake.totalFlourWeight, conversion.newTotalFlourWeight, accuracy: 0.01) + XCTAssertEqual(bake.totalWaterWeight, conversion.newTotalWaterWeight, accuracy: 0.01) + XCTAssertEqual(bake.inoculationPercent, conversion.yeastPercent, accuracy: 0.01) + XCTAssertFalse(allRecipeText.contains("lievito madre")) + XCTAssertFalse(allRecipeText.contains("rinfresca")) + XCTAssertTrue(allRecipeText.contains("lievito secco istantaneo")) + XCTAssertTrue(bake.sortedSteps.contains { $0.type == .proof && $0.displayName == "Appretto" }) + XCTAssertEqual( + bake.sortedSteps.first { $0.type == .bulk }?.plannedDurationMinutes, + conversion.bulkDurationMinutes + ) + XCTAssertEqual( + bake.sortedSteps.first { $0.type == .proof }?.plannedDurationMinutes, + conversion.proofDurationMinutes + ) + } // MARK: - Timeline Shifting diff --git a/LevainTests/KefirReminderPlannerTests.swift b/LevainTests/KefirReminderPlannerTests.swift index cf14a5f..939192a 100644 --- a/LevainTests/KefirReminderPlannerTests.swift +++ b/LevainTests/KefirReminderPlannerTests.swift @@ -6,7 +6,7 @@ import Testing struct KefirReminderPlannerTests { @Test("Room-temperature batch schedules warning and due reminders on the daily cadence") func testRoomTemperatureReminderPlan() { - let now = Date.fixedNow + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) let batch = DomainFixtures.makeKefirBatch( name: "Batch cucina", storageMode: .roomTemperature, @@ -15,17 +15,20 @@ struct KefirReminderPlannerTests { let reminders = KefirReminderPlanner.planReminders(for: batch, now: now) - #expect(reminders.count == 2) + #expect(reminders.count == 8) #expect(reminders[0].fireDate == now.addingTimeInterval(20 * 60 * 60)) #expect(reminders[1].fireDate == now.addingTimeInterval(24 * 60 * 60)) - #expect(reminders[0].body == "Tra poco entra nella finestra di rinnovo.") + #expect(reminders[0].body == "Tra poco sarà il momento di rinnovare il batch.") #expect(reminders[1].body == "È il momento di rinnovare il batch.") #expect(reminders[0].route == AppRouter.DeepLink.kefirBatch(id: batch.id)) + #expect(reminders[2].identifier == "kefir-overdue-\(batch.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: now.startOfDay.adding(minutes: 24 * 60).settingTime(hour: 19, minute: 0)))") + #expect(reminders[2].body == "Non hai ancora rinnovato \(batch.name).") + #expect(reminders[2].fireDate == now.startOfDay.adding(minutes: 24 * 60).settingTime(hour: 19, minute: 0)) } @Test("Fridge batch schedules next-day warning and due reminders on the weekly cadence") func testFridgeReminderPlan() { - let now = Date.fixedNow + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) let batch = DomainFixtures.makeKefirBatch( name: "Backup frigo", storageMode: .fridge, @@ -37,7 +40,7 @@ struct KefirReminderPlannerTests { #expect(reminders.count == 2) #expect(reminders[0].fireDate == now.addingTimeInterval(6 * 24 * 60 * 60)) #expect(reminders[1].fireDate == now.addingTimeInterval(7 * 24 * 60 * 60)) - #expect(reminders[0].body == "Domani conviene controllare il batch in frigo.") + #expect(reminders[0].body == "Domani dovrai controllare il batch in frigo.") #expect(reminders[1].body == "È il momento di controllare il batch in frigo.") } @@ -56,7 +59,7 @@ struct KefirReminderPlannerTests { @Test("Planned freezer reactivation schedules warning and due reminders") func testPlannedFreezerReactivationReminderPlan() { - let now = Date.fixedNow + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) let dueAt = now.addingTimeInterval(5 * 24 * 60 * 60) let batch = DomainFixtures.makeKefirBatch( name: "Scorta freezer", @@ -67,16 +70,18 @@ struct KefirReminderPlannerTests { let reminders = KefirReminderPlanner.planReminders(for: batch, now: now) - #expect(reminders.count == 2) + #expect(reminders.count == 4) #expect(reminders[0].fireDate == dueAt.addingTimeInterval(-(24 * 60 * 60))) #expect(reminders[1].fireDate == dueAt) - #expect(reminders[0].body == "La riattivazione pianificata si avvicina.") + #expect(reminders[0].body == "Tra poco sarà il momento di riattivare il batch.") #expect(reminders[1].body == "È il momento di riattivare il batch.") + #expect(reminders[2].body == "Non hai ancora riattivato \(batch.name).") + #expect(reminders[2].fireDate == dueAt.settingTime(hour: 19, minute: 0)) } @Test("Archived or alerts-disabled batches do not schedule reminders") func testArchivedOrAlertsDisabledBatchesReturnNoReminders() { - let now = Date.fixedNow + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) let archived = DomainFixtures.makeKefirBatch( storageMode: .roomTemperature, lastManagedAt: now, @@ -90,6 +95,6 @@ struct KefirReminderPlannerTests { #expect(KefirReminderPlanner.planReminders(for: archived, now: now).isEmpty) #expect(KefirReminderPlanner.planReminders(for: silenced, now: now).isEmpty) - #expect(KefirReminderPlanner.identifiers(for: silenced).count == 2) + #expect(KefirReminderPlanner.identifiers(for: silenced, now: now).count == 2 + NotificationPlanningDefaults.overdueWindowDays) } } diff --git a/LevainTests/StarterReminderPlannerTests.swift b/LevainTests/StarterReminderPlannerTests.swift index 2f931c7..7049451 100644 --- a/LevainTests/StarterReminderPlannerTests.swift +++ b/LevainTests/StarterReminderPlannerTests.swift @@ -6,32 +6,125 @@ final class StarterReminderPlannerTests: XCTestCase { let starter = DomainFixtures.makeStarter() starter.remindersEnabled = false - let requests = StarterReminderPlanner.planReminders(for: starter) + let requests = StarterReminderPlanner.planReminders(for: starter, now: .fixedNow) XCTAssertTrue(requests.isEmpty) } - func testRemindersEnabledReturnsDueAndFollowUp() { - let today = Date.fixedNow + func testDueReminderStaysAtNineAndOverdueSeriesStartsTheDayAfter() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) let starter = DomainFixtures.makeStarter( refreshIntervalDays: 7, - lastRefresh: today + lastRefresh: now.adding(minutes: -(7 * 24 * 60)) ) starter.remindersEnabled = true - let requests = StarterReminderPlanner.planReminders(for: starter) - XCTAssertEqual(requests.count, 2) + let requests = StarterReminderPlanner.planReminders(for: starter, now: now) + XCTAssertEqual(requests.count, 7) let due = requests[0] XCTAssertEqual(due.identifier, "starter-due-\(starter.id.uuidString)") XCTAssertEqual(due.title, starter.name) XCTAssertEqual(due.body, "Oggi è previsto un rinfresco. Apri lo starter per registrarlo.") - let nextDueDate = Calendar.current.date(byAdding: .day, value: 7, to: today.startOfDay)! + let nextDueDate = Calendar.current.date(byAdding: .day, value: 7, to: starter.lastRefresh.startOfDay)! XCTAssertEqual(due.fireDate, nextDueDate.settingTime(hour: 9, minute: 0)) - let followUp = requests[1] - XCTAssertEqual(followUp.identifier, "starter-followup-\(starter.id.uuidString)") - XCTAssertEqual(followUp.title, starter.name) - XCTAssertEqual(followUp.body, "Non hai ancora registrato il rinfresco di oggi. Apri lo starter per farlo adesso.") - XCTAssertEqual(followUp.fireDate, nextDueDate.settingTime(hour: 9, minute: 0).adding(minutes: 24 * 60)) + let overdue = Array(requests.dropFirst()) + XCTAssertEqual(overdue.count, 6) + XCTAssertEqual(overdue.first?.identifier, "starter-overdue-\(starter.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: now.startOfDay.adding(minutes: 24 * 60).settingTime(hour: 19, minute: 0)))") + XCTAssertEqual(overdue.first?.title, starter.name) + XCTAssertEqual(overdue.first?.body, "Non hai ancora rinfrescato \(starter.name).") + XCTAssertEqual(overdue.first?.fireDate, now.startOfDay.adding(minutes: 24 * 60).settingTime(hour: 19, minute: 0)) + XCTAssertEqual(overdue.last?.fireDate, now.startOfDay.adding(minutes: 6 * 24 * 60).settingTime(hour: 19, minute: 0)) + } + + func testAlreadyOverdueStarterSchedulesTodayAtSevenPm() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 10, minute: 0) + let starter = DomainFixtures.makeStarter( + name: "Madre attiva", + refreshIntervalDays: 1, + lastRefresh: now.adding(minutes: -(2 * 24 * 60)) + ) + + let requests = StarterReminderPlanner.planReminders(for: starter, now: now) + + XCTAssertEqual(requests.first?.identifier, "starter-overdue-\(starter.id.uuidString)-\(RollingOverdueReminderPlanner.identifierSuffix(for: now.settingTime(hour: 19, minute: 0)))") + XCTAssertEqual(requests.first?.fireDate, now.settingTime(hour: 19, minute: 0)) + XCTAssertEqual(requests.count, NotificationPlanningDefaults.overdueWindowDays) + } + + func testArchivedStarterReturnsNoRequestsButIdentifiersStillCoverLegacyAndWindow() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 10, minute: 0) + let starter = DomainFixtures.makeStarter(refreshIntervalDays: 1, lastRefresh: now.adding(minutes: -(2 * 24 * 60))) + starter.archive() + + XCTAssertTrue(StarterReminderPlanner.planReminders(for: starter, now: now).isEmpty) + + let identifiers = StarterReminderPlanner.identifiers(for: starter, now: now) + XCTAssertTrue(identifiers.contains("starter-due-\(starter.id.uuidString)")) + XCTAssertTrue(identifiers.contains("starter-followup-\(starter.id.uuidString)")) + XCTAssertEqual( + identifiers.filter { $0.contains("starter-overdue-\(starter.id.uuidString)-") }.count, + NotificationPlanningDefaults.overdueWindowDays + ) + } +} + +final class NotificationPlanBuilderTests: XCTestCase { + func testMergeSortsDeduplicatesAndCapsBudget() { + let now = Date.fixedNow.startOfDay.settingTime(hour: 8, minute: 0) + let duplicateIdentifier = "duplicate-id" + + let plan = NotificationPlanBuilder.merge( + plans: [ + NotificationSyncPlan( + identifiersToRemove: ["b", "a"], + requests: [ + NotificationRequestPayload( + identifier: duplicateIdentifier, + title: "Later duplicate", + body: "", + route: "levain://starter/1", + fireDate: now.settingTime(hour: 12, minute: 0) + ), + NotificationRequestPayload( + identifier: "late-unique", + title: "Late", + body: "", + route: "levain://starter/2", + fireDate: now.settingTime(hour: 18, minute: 0) + ) + ] + ), + NotificationSyncPlan( + identifiersToRemove: ["a", "c"], + requests: [ + NotificationRequestPayload( + identifier: duplicateIdentifier, + title: "Earlier duplicate", + body: "", + route: "levain://starter/3", + fireDate: now.settingTime(hour: 9, minute: 0) + ) + ] + + (0.. ⚠️` segnalano problemi rilevati. +- La sezione **Feedback e proposte** alla fine riassume tutto per priorità. + +--- + +## 1. Navigazione principale (tab bar) + +| Elemento | Copy attuale | +|---|---| +| Tab 1 | Oggi | +| Tab 2 | Batch | +| Tab 3 | Guide | + +> ⚠️ **Incoerenza di registro**: "Oggi" e "Guide" sono italiani, "Batch" è inglese. Il termine "Batch" compare anche come nome del secondo tab e come titolo dell'app stessa (display name), il che crea ambiguità: l'utente non sa se sta navigando in una sezione o guardando il nome dell'app. + +--- + +## 2. Today — Schermata principale + +### Titoli e subtitle +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Cosa fare oggi | +| Badge contatore | {N} in agenda | +| Badge impasti | {N} impasti attivi | + +### Empty state (sezioni disattivate) +| Elemento | Copy attuale | +|---|---| +| Titolo empty | Nessuna sezione attiva | +| Corpo | Attiva almeno una sezione (Impasti, Starter o Kefir) dalle impostazioni per iniziare a usare Levain. | +| CTA | Apri impostazioni | + +> ⚠️ **Nome prodotto esposto**: Il copy menziona "Levain" (nome interno) invece di "Batch" (nome pubblico). + +### Menu "Nuova preparazione" +| Elemento | Copy attuale | +|---|---| +| Voce principale | Nuova preparazione | +| Sottovoci | Nuovo impasto / Nuovo starter / Nuovo batch kefir | + +> ⚠️ **Inconsistenza terminologica**: "Nuovo batch kefir" usa "batch" ma "Nuovo impasto" non usa mai "batch". Sarebbe più uniforme "Nuovo kefir" o usare "batch" per tutto. + +### Card fase attiva (TodayStepCardView / ActiveStepHeroCard) + +#### Label urgenza +| Stato | Copy attuale | +|---|---| +| Overdue | In ritardo | +| Warning | Da fare | +| Active | Oggi | +| Preview | Domani | + +> ⚠️ **Ambiguità "Da fare"**: Questo label viene usato sia come stato urgenza del Today sia come stato della fase (`StepStatus.pending.title = "Da fare"`). Usare lo stesso testo per due concetti diversi (urgenza temporale vs stato della fase) può generare confusione. + +#### Chip metriche +| Etichetta | Copy attuale | +|---|---| +| Ora di inizio | Inizio | +| Durata pianificata | Durata | +| Fine / Finestra | Fine / Finestra | + +#### Timer block +| Fase | Headline | Label trailing | +|---|---|---| +| Upcoming | Parte tra | Attesa | +| Running | Tempo residuo | Trascorso | +| Overdue | Ritardo accumulato | Ritardo | +| Completed | Fase completata | Esito | + +> ⚠️ **"Parte tra" / "Attesa"**: il trailing metric in fase upcoming vale esattamente come il valore principale — mostra la stessa informazione due volte. + +#### Pill di stato +| Fase | Copy attuale | +|---|---| +| Upcoming | Programmata | +| Running | In corso | +| Overdue | In ritardo | +| Completed | Completato | + +#### Riga dettaglio (detailLine) +| Fase | Copy attuale | +|---|---| +| Upcoming (standard) | Inizio {ora} · Fine {ora} | +| Upcoming (window) | Finestra: {ora} – {ora} | +| Running (standard) | Avviato {ora} · Fine finestra alle {ora} | +| Running (window non aperta) | In corso · Inizio finestra alle {ora} | +| Overdue | Chiusura finestra alle {ora} | +| Completed | Fase chiusa alle {ora}. / Fase chiusa. | + +#### Pulsanti azione +| Azione | Copy attuale | +|---|---| +| Avvia fase | Avvia fase | +| Completa fase | Completa fase | +| Dettaglio procedimento | Procedimento | +| Sposta orari (apri sheet) | Sposta | +| Badge quick shift | Sposta rapidamente gli orari | +| Preset quick shift | +15 min / +30 min / +1 h / -15 min / -30 min | +| Personalizzato | Personalizzato | + +#### Badge stato nella timeline (StepTimelineRow) +| Stato | Copy attuale | +|---|---| +| Archiviata (bake cancellata) | Archiviata | +| Terminal done/skipped | (da StepStatus.title) | +| Overdue | In ritardo | +| Out of order | Fuori ordine | + +#### Riga status (statusLine) +| Stato | Copy attuale | +|---|---| +| Bake annullato | Impasto annullato — fase non piu attiva | +| Pending overdue | Scaduto alle {ora} | +| Pending normale | {data/ora smart} | +| Running (window) | Finestra dalle {data/ora} | +| Running normale | Iniziato alle {ora} | +| Done con ora | Completato alle {ora} | +| Done senza ora | Completato | +| Skipped con ora | Saltato alle {ora} | +| Skipped senza ora | Saltato | + +> ⚠️ **Errore ortografico**: `"fase non piu attiva"` — manca l'accento su **più**. + +> ⚠️ **Inconsistenza**: "fase" vs "passaggio" — vedi nota generale alla fine. + +### Today — Starter reminder row +Il testo del titolo e sottotitolo viene da `TodayAgendaItem.title` / `.subtitle` / `.state` / `.actionTitle` (costruiti in `TodayAgendaBuilder`). + +--- + +## 3. Impasti (BakesView) + +### Titoli +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Impasti | +| Subtitle | I tuoi impasti attivi o in programma | +| Sezione attivi | Impasti attivi | +| Badge | {N} attivi / {N} ricette | +| CTA principale | Nuovo impasto | + +### Empty state +| Elemento | Copy attuale | +|---|---| +| Titolo | Nessun impasto ancora | +| Corpo | Scegli una ricetta e crea il tuo primo impasto | + +### Card ricette +| Elemento | Copy attuale | +|---|---| +| Titolo card | Le tue ricette | +| Corpo | Consulta le ricette e creane di nuove | + +### Archivio impasti +| Elemento | Copy attuale | +|---|---| +| Titolo sheet | Archivio impasti | +| Filtri | Tutti / Completati / Annullati | +| Empty globale — titolo | Nessun impasto in archivio | +| Empty globale — corpo | Qui trovi gli impasti completati o annullati. Archivia un impasto dalla lista principale per vederlo qui. | +| Empty globale — CTA | Chiudi | +| Empty filtro | Nessun impasto per questo filtro. | +| Badge | Completato / Annullato | +| Toolbar | Seleziona / Deseleziona / Elimina selezionati | +| Swipe | Elimina / Ripristina | + +--- + +## 4. Dettaglio impasto (BakeDetailView) + +| Elemento | Copy attuale | +|---|---| +| Label fase attiva | Fase attiva | +| Timeline archiviata | Timeline archiviata | +| Titolo sezione timeline | Timeline / Ricetta step by step | +| Nessuna fase successiva — titolo | Nessun'altra fase da seguire. | +| Nessuna fase successiva — corpo | Quando chiudi la fase corrente, la prossima comparirà qui. | +| Badge contatore fasi | Fasi | +| Azione annulla | Annulla impasto | +| Azione elimina | Elimina impasto | + +> ⚠️ **"Ricetta step by step"**: mix italiano/inglese. Il resto dell'app usa "Timeline" o "Fasi". + +--- + +## 5. Dettaglio fase (BakeStepDetailView) + +### Sezioni +| Titolo sezione | Copy attuale | +|---|---| +| Ingredienti | Ingredienti | +| Procedimento | Procedimento | +| Timing | Timing | +| Obiettivi | Obiettivi qualitativi | +| Esecuzione | Esecuzione | + +### Campi timing +| Etichetta | Copy attuale | +|---|---| +| Ora pianificata | Pianificato | +| Durata pianificata | Durata pianificata | +| Inizio finestra | Inizio finestra | +| Fine finestra | Fine finestra | +| Inizio reale | Inizio reale | +| Fine reale | Fine reale | + +### Campi qualità +| Etichetta | Copy attuale | +|---|---| +| Temperatura | Temperatura | +| Target volume | Target volume | + +### Pulsanti +| Azione | Copy attuale | +|---|---| +| Avvia | Avvia fase | +| Completa | Completa fase | + +> ⚠️ **"Timing"** è inglese in un contesto altrimenti italiano. "Tempi" o "Orari" sarebbero più coerenti. + +> ⚠️ **"Target volume"**: mix. Potrebbe essere "Volume target" (già usato altrove) o "Obiettivo volume". + +--- + +## 6. Sposta orari (ShiftTimelineView) + +| Elemento | Copy attuale | +|---|---| +| Titolo navigazione | Sposta gli orari | +| Sezione selezionata | Fase selezionata | +| Descrizione | Sposterai la fase selezionata e tutte le fasi successive non completate. | +| Sezione spostamento | Spostamento | +| Stepper | Sposta di: {N} min | +| Bottone conferma | Applica | +| Bottone annulla | Chiudi | + +--- + +## 7. Creazione impasto (BakeCreationView) + +| Elemento | Copy attuale | +|---|---| +| Sezione ricetta | Ricetta | +| Picker | Ricetta | +| Sezione pianificazione | Pianificazione | +| Campo nome (opzionale) | Nome impasto (opzionale) | +| Label target | Quando vuoi sfornare | + +--- + +## 8. Ingredienti impasto (BakeIngredientsView) + +| Etichetta | Copy attuale | +|---|---| +| Sezione | Baker's math | +| Farina | Farina | +| Acqua | Acqua | +| Idratazione | Idratazione | +| Porzioni | Porzioni | +| Sale | Sale | + +> ⚠️ **"Baker's math"**: È un termine tecnico inglese usato intenzionalmente (come nel mondo della panificazione). È accettabile se il target conosce il gergo. Controllare se appare solo qui o anche altrove (es. KnowledgeCategory). + +--- + +## 9. Ricette (FormulaListView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Ricette | +| Subtitle | Consulta le ricette e creane di nuove | +| Badge | {N} ricette / {N} personali | +| CTA | Nuova ricetta | +| Empty — titolo | Nessuna ricetta | +| Empty — corpo | Le ricette di sistema appariranno al prossimo avvio. | +| Sezione archivio | Archivio ricette | +| Badge ricetta | Mia ricetta / Modificata | +| Metriche card | Lievito / Idratazione / Porzioni | +| Swipe | Archivia | + +### Archivio ricette +| Elemento | Copy attuale | +|---|---| +| Titolo sheet | Archivio ricette | +| Empty — titolo | Archivio vuoto | +| Empty — corpo | Scorri a sinistra su una ricetta per archiviarla. | +| Empty — CTA | Chiudi | +| Badge | Mia ricetta / {N}% idr. | +| Toolbar | Seleziona tutto / Deseleziona / Elimina selezionati | +| Swipe | Ripristina / Elimina | + +--- + +## 10. Editor ricetta (FormulaEditorView) + +| Elemento | Copy attuale | +|---|---| +| Sezione identità | Identità | +| Campo nome | Nome della ricetta | +| Placeholder nome | es. Pane di Segale | +| Picker tipo | Tipo | +| Stepper porzioni | Porzioni: {N} | +| Sezione ingredienti | Ingredienti | +| Campo farina | Farina totale (g) | +| Campo acqua | Acqua totale (g) | +| Campo sale | Sale (g) | +| Picker lievito | Agente lievitante | +| Campo inoculo (sourdough) | Inoculo starter (%) | +| Campo lievito (commerciale) | Quantità lievito (%) | + +> ⚠️ **"Inoculo starter (%)"**: "inoculo" è un termine tecnico/scientifico. Gli utenti più pratici capiscono, ma "% starter" o "Quantità starter (%)" sarebbe più accessibile. Valutare in base all'utente target. + +--- + +## 11. Dettaglio ricetta (FormulaDetailView) + +| Elemento | Copy attuale | +|---|---| +| Titolo navigazione | Ricetta | +| Error state | Ricetta non trovata | + +--- + +## 12. Starter (StarterView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Starter | +| Subtitle | Controlla i tuoi starter | +| CTA | Aggiungi starter | +| Empty — titolo | Nessuno starter ancora | +| Empty — corpo | Aggiungi il tuo lievito madre per tracciare i rinfreschi, calcolare il prossimo e ricevere promemoria al momento giusto. | +| Sezione archiviati | Archiviati | +| Swipe | Archivia / Ripristina | +| Context menu | Modifica / Archivia / Ripristina | + +> ⚠️ **"Controlla i tuoi starter"**: "controlla" è un po' generico. "Gestisci i tuoi starter" o "I tuoi starter" sarebbe più preciso. + +--- + +## 13. Dettaglio starter (StarterDetailView) + +| Elemento | Copy attuale | +|---|---| +| Sezione log | Log rinfreschi | +| Descrizione sezione | Registro dei rinfreschi passati con dosi, tempi e note. | +| Empty log | Ancora nessun rinfresco registrato. | +| Pulsante log completo | Tutti i rinfreschi | +| Sezione impasti collegati | Impasti collegati | + +--- + +## 14. Editor starter (StarterEditorView) + +| Elemento | Copy attuale | +|---|---| +| Sezione | Identità / Setup / Mix Farine | +| Campo nome | Nome dello starter | +| Placeholder nome | es. Ciccio | +| Campo idratazione | Idratazione (%) | +| Campo peso contenitore | Peso contenitore (g) | +| Picker conservazione | Conservazione | +| Label intervallo | Intervallo rinfresco: {N} giorni | +| Toggle promemoria | Promemoria attivi | +| CTA aggiungi farina | Aggiungi farina | +| Warning farine | Attenzione: il totale è {N}% (dovrebbe essere 100%) | + +--- + +## 15. Log rinfresco (RefreshLogView) + +| Elemento | Copy attuale | +|---|---| +| Titolo navigazione | Log rinfresco | +| Toolbar | Chiudi / Salva | +| Sezione pesi | Pesi | +| Campo farina | Farina (g) | +| Campo acqua | Acqua (g) | +| Campo starter usato | Starter usato (g) | +| Sezione dettagli | Dettagli | +| Campo data/ora | Quando | +| Campo rapporto | Rapporto | +| Campo temp. ambiente | Fuori frigo (°C) | +| Sezione farine | Mix Farine | +| CTA aggiungi farina | Aggiungi farina | +| Sezione frigo | Passaggio in frigo | +| Toggle frigo immediato | Messo subito in frigo | +| DatePicker frigo | Messo in frigo alle | +| Sezione note | Note | +| Campo note | Note sul rinfresco | +| Warning farine | Attenzione: il totale è {N}% (dovrebbe essere 100%) | +| Toast conferma | Rinfresco salvato per {nome} | + +> ⚠️ **"Fuori frigo (°C)"**: il label suggerisce temperatura ambiente, ma il nome è ambiguo — potrebbe essere letto come "temperatura dello starter fuori frigo". Qualcosa come "Temp. ambiente (°C)" o "Temperatura locale (°C)" è più chiaro. + +> ⚠️ **"Passaggio in frigo"**: "passaggio" qui significa "trasferimento", non "fase". Rischio confusione con il termine "passaggio/fase" usato altrove. Alternativa: "In frigo" o "Messa in frigo". + +> ⚠️ **"Log rinfresco"** / **"Log rinfreschi"**: "log" è un termine tecnico/inglese. L'app alterna "log" (titolo) e "registro" (nella descrizione della sezione). Scegliere uno solo. + +--- + +## 16. BreadHub (BreadHubView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Pane e lievito madre | +| Subtitle | Impasti attivi e i tuoi starter. | +| Sezione impasti | Impasti attivi | +| Empty impasti — titolo | Nessun impasto attivo | +| Empty impasti — corpo | Scegli una ricetta e crea il tuo primo impasto | +| CTA impasto | Nuovo impasto | +| Sezione starter | Starter | +| Empty starter — titolo | Nessuno starter ancora | +| Empty starter — corpo | Aggiungi il tuo lievito madre per tracciare i rinfreschi e ricevere promemoria. | +| CTA starter | Aggiungi starter | +| Label utilizzo | Utilizzo | +| Label prossima fase | Prossima fase | +| Sezione ricette | Ricette | +| Context menu | Modifica | + +--- + +## 17. Fermentations hub (FermentationsView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Batch | +| Subtitle | I tuoi batch attivi. | +| Empty — titolo | Nessuna sezione attiva | +| Empty — corpo | Attiva le sezioni dalle impostazioni. | +| Empty — CTA | Apri impostazioni | +| Menu | Nuova preparazione | +| Tile impasti | Impasti | +| Tile starter | Starter | +| Tile kefir | Kefir | +| Tile ricette | Ricette | +| Subtile impasti | {N} in corso | +| Subtile starter | {N} gestiti | +| Subtile ricette | {N} salvate | +| Subtile kefir | {N} in corso / {N} in pausa | +| Subtile kefir da rinnovare | {N} da rinnovare | +| Empty tile impasti | Crea un impasto | +| Empty tile starter | Aggiungi starter | +| Empty tile kefir | Crea batch | +| Empty tile ricette | Aggiungi ricetta | +| Toolbar | Impostazioni | + +> ⚠️ **"I tuoi batch attivi."** con punto finale: il punto in una subtitle breve è insolito e incoerente con altri subtitle dell'app (alcuni terminano con punto, altri no — vedi la sezione coerenza punteggiatura sotto). + +--- + +## 18. Kefir hub (KefirHubView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Kefir | +| Subtitle | I tuoi batch di Kefir. | +| Empty — titolo | Nessun batch attivo | +| Empty — corpo | Quando avvii il primo batch lo trovi qui. | +| CTA | Nuovo batch | +| Badge urgenza | {N} da seguire / {N} in corso / {N} in pausa / {N} archiviato/i | +| Sezione cronologia | Cronologia batch | +| Descrizione cronologia | Tieni traccia dei rinfreschi dei tuoi batch | +| Bottone cronologia | Apri cronologia | + +> ⚠️ **"I tuoi batch di Kefir."**: "Kefir" con K maiuscola nel mezzo del subtitle. Altrove è "kefir" minuscolo. Uniformare. + +> ⚠️ **"Tieni traccia dei rinfreschi dei tuoi batch"**: usa "rinfreschi" per il kefir, ma il termine corretto per il kefir è "rinnovi" o "gestioni". "Rinfresco" è specifico per il lievito madre. + +--- + +## 19. Editor kefir batch (KefirBatchEditorView) + +| Elemento | Copy attuale | +|---|---| +| Titolo nuovo | Nuovo batch | +| Titolo derivato | Crea derivato | +| Bottone crea | Crea | +| Toolbar | Chiudi | +| Sezione identità | Identità | +| Campo nome | Nome batch | +| Placeholder nome | es. Batch cucina | +| Picker conservazione | Conservazione | +| Label routine | Routine attesa | +| Toggle riattivazione | Pianifica riattivazione | +| DatePicker riattivazione | Data riattivazione | +| Sezione contesto | Contesto | + +--- + +## 20. Gestione kefir batch (KefirBatchManageSheet) + +| Elemento | Copy attuale | +|---|---| +| Titolo navigazione | Gestisci batch | +| Toolbar | Chiudi / Salva | +| Sezione azione immediata | Azione immediata | +| Bottone rinnova | Rinnova | +| Bottone riattiva | Riattiva adesso | +| Hint rinnova | Segna il rinnovo adesso. | +| Hint riattiva | Riporta il batch in attività. | +| Footer conservazione | Ogni modifica ricalcola la scadenza del prossimo rinnovo. | +| Picker conservazione | Conservazione | +| Stepper routine | Routine attesa | +| Toggle riattivazione | Pianifica riattivazione | +| DatePicker riattivazione | Data riattivazione | + +### Toast banner +| Azione | Copy attuale | +|---|---| +| Riattivazione | Batch riattivato | +| Rinnovo | Gestione aggiornata a ora | +| Salva | Conservazione aggiornata | + +> ⚠️ **"Gestione aggiornata a ora"**: suona strano. "Rinnovo registrato" o "Rinnovo salvato" sarebbero più chiari. + +--- + +## 21. Dettaglio kefir batch (KefirBatchDetailView) + +| Elemento | Copy attuale | +|---|---| +| Alert archivia — titolo | Archivia batch | +| Alert archivia — corpo | Il batch resta leggibile in archivio. Puoi sempre crearne uno nuovo a partire da questo. | +| Alert archivia — bottons | Annulla / Archivia | +| Sezione note | Note e dettagli | +| Badge origine | Origine | +| Badge derivati | Derivati | +| Badge uso | Come si usa | + +--- + +## 22. Knowledge / Guide (KnowledgeView) + +| Elemento | Copy attuale | +|---|---| +| Titolo schermata | Guide | +| Subtitle | Tutto sulla fermentazione | +| Badge risultati | {N} risultati | +| Pill tutto | Tutti | +| Empty — titolo | Nessun risultato | +| Empty — corpo | Prova a modificare la ricerca o rimuovere il filtro per categoria. | +| Empty — CTA | Mostra tutte le guide | +| Placeholder ricerca | Cerca guide e consigli | + +--- + +## 23. Impostazioni (SettingsView) + +| Elemento | Copy attuale | +|---|---| +| Titolo navigazione | Impostazioni | +| Toolbar | Chiudi | +| Sezione sezioni | Sezioni attive | +| Descrizione sezioni | Attiva o disattiva le sezioni. Le sezioni disattivate non compaiono in Oggi o in Batch. | +| Toggle impasti | Impasti | +| Toggle starter | Starter (lievito madre) | +| Toggle kefir | Kefir | +| Sezione backup | Backup | +| Descrizione backup | Esporta o ripristina solo i dati utente. Knowledge e template di sistema restano nel bundle dell'app. | +| Bottone esporta | Esporta backup | +| Bottone importa | Importa backup | +| Sezione contenuto | Contenuto incluso | +| Descrizione contenuto | Starter, rinfreschi, ricette salvate, impasti e fasi. | +| Nota esclusioni | Non include knowledge, template di sistema o flag tecnici interni. | +| Alert importa — titolo | Sostituire i dati correnti? | +| Alert importa — corpo | L'import sostituirà starter, ricette, impasti e fasi attuali con il contenuto del backup selezionato. | +| Alert importa — buttons | Annulla / Importa | +| Alert errore | Operazione non riuscita | +| Toast successo esporta | Backup pronto per l'esportazione. | +| Toast successo importa | Backup importato. Notifiche riallineate. | + +> ⚠️ **"Knowledge"** compare due volte nel copy delle impostazioni come termine inglese (es. "Knowledge e template di sistema", "Non include knowledge…"). Scegliere una traduzione coerente (es. "guide", "contenuti") o usare sempre il termine in italiano. + +> ⚠️ **"flag tecnici interni"**: questo è un termine da sviluppatore, non dovrebbe essere visibile all'utente nella UI. + +--- + +## 24. Notifiche push + +### Rinfresco starter +| Campo | Copy attuale | +|---|---| +| Titolo | {nome dello starter} | +| Corpo (giorno previsto, ore 9:00) | Oggi è previsto un rinfresco. Apri lo starter per registrarlo. | +| Corpo (follow-up +24h) | Non hai ancora registrato il rinfresco di oggi. Apri lo starter per farlo adesso. | + +### Fasi impasto +| Tipo | Titolo | Corpo | +|---|---|---| +| Reminder step | {nome fase} · {nome impasto} | Se running: "Questo passaggio è in corso. Apri l'impasto per aggiornarlo." | +| Reminder step | {nome fase} · {nome impasto} | Se pending: "È il momento di intervenire su questo passaggio. Apri l'impasto per continuare." | +| Window open | {nome fase} · {nome impasto} | "Il tuo impasto è pronto per il prossimo passaggio. Aprilo per continuare." | +| Window close | {nome fase} · {nome impasto} | "La finestra utile sta per chiudersi. Apri l'impasto se devi intervenire ora." | + +> ⚠️ **Inconsistenza "passaggio" vs "fase"**: Le notifiche usano sempre "passaggio", mentre la UI usa quasi sempre "fase". L'utente riceve una notifica che parla di "passaggio" e poi nell'app trova "fase". Unificare a "fase" ovunque. + +> ⚠️ **"Apri l'impasto per aggiornarlo"**: se la fase è già in corso, l'utente non deve "aggiornarla" ma "completarla". Messaggio più preciso: "Apri l'impasto per completarla." + +> ⚠️ **"La finestra utile sta per chiudersi."**: manca soggetto (la finestra di che?). Aggiungere contesto: "La finestra utile per questa fase sta per chiudersi." + +### Kefir +| Tipo | Titolo | Corpo | +|---|---|---| +| Warning (temperatura ambiente) | {nome batch} | Tra poco sarà il momento di rinnovare il batch | +| Warning (frigo) | {nome batch} | Domani conviene controllare il batch in frigo | +| Warning (freezer) | {nome batch} | Tra poco sarà il momento di riattivare il batch | +| Due (temperatura ambiente) | {nome batch} | È il momento di rinnovare il batch. | +| Due (frigo) | {nome batch} | È il momento di controllare il batch in frigo. | +| Due (freezer) | {nome batch} | È il momento di riattivare il batch. | + +> ⚠️ **Inconsistenza punctuation**: i corpi "warning" non terminano con punto (es. "Tra poco sarà il momento di rinnovare il batch"), i "due" sì (es. "È il momento di rinnovare il batch."). Uniformare aggiungendo il punto finale a tutti. + +> ⚠️ **"Domani conviene controllare il batch in frigo"**: tono informale/colloquiale ("conviene") rispetto al tono più diretto degli altri messaggi. Uniformare: "Domani è il momento di controllare il batch in frigo." + +### Fridge reminder (NotificationService) +| Tipo | Copy attuale | +|---|---| +| Fridge reminder (dopo rinfresco) | Sono passate 3 ore dal rinfresco. Vuoi mettere lo starter in frigo? | + +--- + +## 25. Enums / etichette di dominio + +### BakeStepType (nomi fasi) +| Tipo | Copy attuale | +|---|---| +| starterRefresh | Rinfresco starter | +| autolysis | Autolisi | +| mix | Impasto | +| bulk | Puntata | +| fold | Pieghe | +| preshape | Preforma | +| benchRest | Riposo al banco | +| shape | Formatura | +| proof | Appretto | +| coldRetard | Riposo in frigo | +| bake | Cottura | +| cool | Raffreddamento | +| custom | Fase personalizzata | + +> ⚠️ **"Puntata"** e **"Appretto"**: termini tecnici corretti nella panificazione. Ok se il target è esperto. Se si vuole rendere più accessibile: "Lievitazione in massa" e "Lievitazione finale". + +### StepStatus +| Stato | Copy attuale | +|---|---| +| pending | Da fare | +| running | In corso | +| done | Completato | +| skipped | Saltato | + +### BakeStatus +| Stato | Copy attuale | +|---|---| +| planned | Pianificato | +| inProgress | In corso | +| completed | Completato | +| cancelled | Annullato | + +### StarterDueState +| Stato | Copy attuale | +|---|---| +| ok | Ok | +| dueToday | Da rinfrescare oggi | +| overdue | In ritardo | + +### KefirBatchState +| Stato | Copy attuale | +|---|---| +| active | Attivo | +| dueSoon | Attenzione | +| dueNow | Da rinfrescare | +| overdue | In ritardo | +| pausedFridge | In frigo | +| pausedFreezer | In freezer | +| archived | Archiviato | + +> ⚠️ **"Attenzione"** per `dueSoon`: un badge che dice solo "Attenzione" non dice all'utente cosa fare. "Da rinnovare presto" o "Rinnovo in arrivo" sarebbero più informativi. + +> ⚠️ **"Da rinfrescare"** per un batch kefir: "rinfresco" è terminologia del lievito madre. Per il kefir dovrebbe essere "Da rinnovare". + +### StorageMode (starter) +| Stato | Copy attuale | +|---|---| +| roomTemperature | Fuori frigo | +| fridge | Frigo | + +### KefirStorageMode +| Stato | Copy attuale | +|---|---| +| roomTemperature | Fuori frigo | +| fridge | Frigo | +| freezer | Freezer | + +> ⚠️ **"Frigo"** vs **"Frigorifero"**: entrambe le forme appaiono nella UI (nella notifica kefir compare "frigo" come parola nell'espressione, nelle etichette è il label). Scegliere uno e mantenerlo — "Frigo" è il più compatto e colloquiale, ok per il contesto. + +### RecipeCategory +| Categoria | Copy attuale | +|---|---| +| pane | Pane | +| pizza | Pizza | +| focaccia | Focaccia | +| grandiLievitati | Grandi lievitati | +| dolci | Dolci | +| custom | Altro | + +### YeastType +| Tipo | Titolo completo | Titolo breve | +|---|---|---| +| sourdough | Lievito madre | Madre | +| dryYeast | Lievito di birra secco attivo | Lievito | +| freshYeast | Lievito di birra fresco | Lievito | +| instantYeast | Lievito secco istantaneo | Lievito | +| none | Nessun lievito | Nessun lievito | + +> ⚠️ **ShortTitle identici per yeast commerciali**: "Madre" per sourdough è distintivo, ma i tre tipi commerciali hanno tutti "Lievito" come shortTitle. Se questi compaiono insieme in una UI compatta (chip, badge), saranno indistinguibili. + +### FlourCategory +| Categoria | Titolo completo | Titolo breve | +|---|---|---| +| strong | Manitoba | Manitoba | +| medium | 00/0 | Bianca | +| weak | Debole | Debole | +| whole | Integrale | Integrale | +| rye | Segale | Segale | +| semolina | Semola | Semola | +| special | Spezzata/Multicereale | Multicereale | +| custom | Altro | Altra | + +> ⚠️ **Inconsistenza genere**: "Altro" (neutro/maschile) vs "Altra" (femminile) per la stessa categoria a seconda del contesto (shortTitle usa femminile). Controllare il contesto d'uso: se "Altro" si riferisce a una farina, il femminile "Altra (farina)" è corretto. Se è standalone, usare "Altro" ovunque. + +### KnowledgeCategory +| Categoria | Copy attuale | +|---|---| +| starter | Starter | +| fermentation | Fermentazione | +| bakerMath | Baker's math | +| troubleshooting | Problemi comuni | + +### YeastProfile +| Profilo | Titolo completo | Titolo breve | +|---|---|---| +| slow | Lenta (16–20h) | Lenta | +| medium | Media (8–12h) | Media | +| fast | Rapida (2–4h) | Rapida | + +### TodayAgendaItem.Domain (label header Today feed) +| Dominio | Copy attuale | +|---|---| +| pane | Lievitati | +| starter | Starter | +| kefir | Kefir | + +> ⚠️ **"Lievitati"** come label per il dominio pane: nella tab bar è "Batch", nella sezione è "Impasti", ma nel Today feed il dominio è "Lievitati". Tre nomi diversi per lo stesso concetto. + +--- + +## 26. Azioni globali ricorrenti + +| Azione | Copy attuale | +|---|---| +| Chiudi sheet | Chiudi | +| Salva | Salva | +| Aggiungi | Aggiungi | +| Elimina | Elimina | +| Annulla (alert) | Annulla | +| Modifica | Modifica | +| Archivia | Archivia | +| Ripristina | Ripristina | + +✅ Le azioni globali sono consistenti e ben scelte. + +--- + +--- + +# Feedback generale e proposte + +## 🔴 Priorità alta — Da risolvere prima della release + +### 1. "passaggio" vs "fase" — scegliere uno e usarlo ovunque + +**Problema**: la UI usa quasi sempre "fase" (Avvia fase, Completa fase, Fase selezionata, Fase attiva, Timeline archiviata) ma le notifiche push usano "passaggio" (es. "questo passaggio è in corso", "il prossimo passaggio"). L'utente legge la notifica, apre l'app e non trova il termine — piccola frizione, ma incoerente. + +**Proposta**: unificare a **"fase"** ovunque — è già il termine dominante nella UI. + +Notification bodies da aggiornare: +- `"Questo passaggio è in corso..."` → `"Questa fase è in corso..."` +- `"È il momento di intervenire su questo passaggio..."` → `"È il momento di avanzare con questa fase..."` +- `"Il tuo impasto è pronto per il prossimo passaggio..."` → `"Il tuo impasto è pronto per la fase successiva..."` +- `"La finestra utile sta per chiudersi..."` → `"La finestra utile per questa fase sta per chiudersi."` + +### 2. Errore ortografico + +`"Impasto annullato — fase non piu attiva"` → `"Impasto annullato — fase non più attiva"` + +File: `BakeStepCardView.swift`, `statusLine` + +### 3. "Da rinfrescare" per il kefir + +`KefirBatchState.dueNow.title = "Da rinfrescare"` — "rinfresco" è terminologia del lievito madre, non del kefir. + +**Proposta**: `"Da rinnovare"` (coerente con il CTA "Rinnova" già presente). + +Stesso problema in `KefirHubView`: "Tieni traccia dei rinfreschi dei tuoi batch" → "Tieni traccia dei rinnovi dei tuoi batch". + +### 4. Nome prodotto interno esposto + +`"...per iniziare a usare Levain."` nell'empty state di Today. Il nome pubblico è **Batch**. + +**Proposta**: rimuovere il nome prodotto dalla frase o cambiare in "Batch". + +### 5. Punteggiatura notifiche kefir incoerente + +Le notifiche "warning" non hanno il punto finale, le "due" sì. + +**Proposta**: aggiungere punto a tutte: +- `"Tra poco sarà il momento di rinnovare il batch."` ← aggiungi punto +- `"Domani conviene controllare il batch in frigo."` ← aggiungi punto +- `"Tra poco sarà il momento di riattivare il batch."` ← aggiungi punto + +--- + +## 🟡 Priorità media — Migliora coerenza e chiarezza + +### 6. Toast "Gestione aggiornata a ora" + +Il messaggio è awkward. **Proposta**: `"Rinnovo registrato"`. + +### 7. "Timing" in BakeStepDetailView + +Sezione titolo in inglese in un contesto italiano. **Proposta**: `"Tempi"` o `"Orari"`. + +### 8. "Kefir" con K maiuscola inconsistente + +`"I tuoi batch di Kefir."` — la K maiuscola non è usata altrove. **Proposta**: `"I tuoi batch di kefir."`. + +### 9. "Attenzione" come stato kefir + +`KefirBatchState.dueSoon.title = "Attenzione"` — non dice cosa fare. + +**Proposta**: `"Rinnovo in arrivo"` o `"Da rinnovare presto"`. + +### 10. Punto finale nei subtitle + +Alcuni subtitle finiscono con punto (es. `"I tuoi batch attivi."`, `"I tuoi batch di Kefir."`), altri no. Controllare e uniformare — suggerisco **senza punto** per le brevi label descrittive. + +### 11. "Ricetta step by step" + +In `BakeDetailView`. **Proposta**: `"Fasi della ricetta"` o semplicemente `"Timeline"` (già usato in alternativa). + +### 12. "Knowledge" e "flag tecnici interni" nel copy impostazioni + +Due stringhe esposte all'utente con terminologia da sviluppatore. **Proposte**: +- `"Knowledge e template di sistema"` → `"Guide e modelli di sistema"` +- `"flag tecnici interni"` → rimuovere questa specifica, l'utente non ha bisogno di saperlo. + +### 13. "Fuori frigo (°C)" nel RefreshLogView + +Label ambigua per il campo temperatura. **Proposta**: `"Temp. ambiente (°C)"`. + +### 14. "Passaggio in frigo" come titolo sezione + +Crea confusione con il termine "passaggio" usato per le fasi. **Proposta**: `"In frigo"` o `"Messa in frigo"`. + +### 15. "Log rinfresco" vs "registro" + +Il titolo usa "Log" (inglese), la descrizione usa "Registro" (italiano). **Proposta**: scegliere uno. `"Registro rinfresco"` è più consistente con il tono italiano del resto. + +--- + +## 🟢 Priorità bassa — Rifinitura e considerazioni aperte + +### 16. "Controlla i tuoi starter" (StarterView subtitle) + +Un po' generico. **Proposta**: `"I tuoi starter"` o `"Gestisci i tuoi starter"`. + +### 17. "Inoculo starter (%)" nell'editor ricetta + +Termine tecnico. Se il target è esperto, ok. Alternativa più accessibile: `"% di starter"` o `"Quantità starter (%)"`. + +### 18. "Lievitati" vs "Impasti" vs "Batch" per lo stesso dominio + +Nel Today feed il dominio pane è etichettato "Lievitati", nelle tab è "Batch", nella sezione è "Impasti". Tre nomi diversi per lo stesso concetto. Valutare se uniformare — almeno i due visibili in navigazione ("Impasti" nell'header sezione e "Lievitati" nel Today header) dovrebbero accordarsi. + +### 19. ShortTitle identici per lieviti commerciali + +I tre `YeastType` commerciali hanno tutti `shortTitle = "Lievito"`. Se compaiono insieme in un contesto compatto, diventano identici. Eventualmente differenziare: "Birra fresco", "Birra secco", "Istantaneo". + +### 20. "Baker's math" + +Termine inglese tecnico accettato nel mondo della panificazione. Ok lasciare così — è un termine consolidato anche tra gli appassionati italiani. Verificare che appaia solo nelle sezioni dove è appropriato (tecnico) e non in navigazione generale. + +### 21. "Fuori frigo" / "Frigo" come label conservazione + +Informali ma coerenti. Ok per il tono dell'app. Assicurarsi che "Frigo" sia usato consistentemente (non "Frigorifero" in alcuni punti e "Frigo" in altri). + +--- + +## Riepilogo rapido per priorità + +| # | Problema | Tipo | Priorità | +|---|---|---|---| +| 1 | "passaggio" vs "fase" nelle notifiche | Inconsistenza terminologica | 🔴 Alta | +| 2 | "fase non piu attiva" — manca accento | Errore ortografico | 🔴 Alta | +| 3 | "Da rinfrescare" per kefir, "rinfreschi" per kefir | Termine sbagliato | 🔴 Alta | +| 4 | "Levain" nell'empty state Today | Nome interno esposto | 🔴 Alta | +| 5 | Punto finale mancante in 3 notifiche kefir | Punteggiatura | 🔴 Alta | +| 6 | Toast "Gestione aggiornata a ora" | Copy confuso | 🟡 Media | +| 7 | "Timing" in inglese nel dettaglio fase | Inconsistenza lingua | 🟡 Media | +| 8 | "Kefir" con K maiuscola | Inconsistenza stile | 🟡 Media | +| 9 | "Attenzione" come stato kefir | Label poco informativo | 🟡 Media | +| 10 | Punto finale subtitle inconsistente | Punteggiatura | 🟡 Media | +| 11 | "Ricetta step by step" | Mix italiano/inglese | 🟡 Media | +| 12 | "Knowledge" e "flag tecnici" nel copy impostazioni | Termine tecnico/interno | 🟡 Media | +| 13 | "Fuori frigo (°C)" label ambiguo | Chiarezza | 🟡 Media | +| 14 | "Passaggio in frigo" — confusione col termine fase | Ambiguità | 🟡 Media | +| 15 | "Log" vs "registro" | Inconsistenza lingua | 🟡 Media | +| 16 | "Controlla i tuoi starter" generico | Miglioramento tono | 🟢 Bassa | +| 17 | "Inoculo starter (%)" — termine tecnico | Accessibilità | 🟢 Bassa | +| 18 | "Lievitati" vs "Impasti" vs "Batch" stesso dominio | Inconsistenza naming | 🟢 Bassa | +| 19 | ShortTitle lieviti commerciali identici | UX compatta | 🟢 Bassa | diff --git a/docs/case-history/README.md b/docs/case-history/README.md new file mode 100644 index 0000000..55236cd --- /dev/null +++ b/docs/case-history/README.md @@ -0,0 +1,326 @@ +# Batch Case History - Product Design Material Structure + +**Purpose:** prepare a portfolio-grade case history for Batch that shows product design thinking before final screens: research framing, synthesis, information architecture, flows, interaction logic, iteration, validation, and visual system. + +**Product in one line:** Batch is an iPhone-only operational planner for real fermentation work. It is not a recipe archive; it helps answer "what do I need to do now?" + +**Recommended story angle:** from ambiguous, real-world baking timing to a focused action-first tool. + +--- + +## 1. Case Study Spine + +### 01 - Cover + +**Goal:** make the project immediately legible. + +Materials to produce: +- Final title: `Batch - Operational planner for fermentation workflows` +- Product thumbnail with 3-5 final screens +- Role, timeframe, platform, scope, and status +- One-sentence outcome + +Use this section to establish: +- Personal/internal MVP +- Native iPhone-only app +- Italian-first product +- Product design + implementation collaboration + +### 02 - Context and Challenge + +**Goal:** explain why the product exists before showing UI. + +Materials to produce: +- Context card: sourdough and fermentation are time-sensitive, nonlinear, and often interrupted by real life. +- Problem statement: home bakers do not only need recipes; they need operational guidance while a bake is already in progress. +- Constraints matrix: + - iPhone only + - no backend + - no account + - no cloud sync + - local notifications only + - native iOS patterns + - minimal setup +- Success criteria: + - next action is obvious + - timeline can adapt + - starter maintenance stays fast + - knowledge appears when useful + +### 03 - Research Framing + +**Goal:** show product design rigor even if the project is personal/internal. + +Materials to produce: +- Research assumptions and risks +- Domain workflow audit: how fermentation actually behaves over time +- Proto-persona / target user profile +- Jobs-to-be-done +- Research questions +- Competitive and adjacent-product notes +- Evidence log from product docs, UAT, audits, and real usage corrections + +Suggested framing: +- Treat the project as practice-led research: direct domain experience, workflow decomposition, internal UAT, and iterative product audits. +- Be explicit that the research is not broad market research; the strength is depth of operational workflow modeling. + +### 04 - Synthesis and Opportunity + +**Goal:** turn research into design direction. + +Materials to produce: +- Pain point clusters +- Insight cards +- Opportunity statements +- "How might we" questions +- Prioritization matrix + +Core insights to show: +- The main need is not "store a recipe"; it is "make the next action clear." +- Planned time and actual execution must stay separate. +- Late/overdue is a UI interpretation, not a persisted state. +- Starter work is important but secondary to active bake execution. +- Knowledge must be contextual, not an encyclopedia-first experience. + +### 05 - Product Strategy and Scope + +**Goal:** make product decisions visible. + +Materials to produce: +- Product principles +- MVP scope map +- Out-of-scope list +- Trade-off cards +- Requirement grouping + +Key principles: +- Action-first, not dashboard-first +- One primary action per card +- Progressive disclosure for advanced fields +- Derive state from data instead of storing redundant status +- Local-first and offline-capable +- Italian-first for MVP + +### 06 - Information Architecture + +**Goal:** show how the app is organized conceptually. + +Materials to produce: +- App map +- Object model +- Navigation model +- Content model +- Knowledge taxonomy + +Recommended IA story: +- Root tabs: Oggi, Impasti, Starter, Knowledge +- Primary operational center: Oggi +- Core object chain: RecipeFormula -> Bake -> BakeStep +- Starter is a supporting maintenance object +- Knowledge is bundled content connected to steps and starter states + +### 07 - User Flows and State Logic + +**Goal:** show the product's interaction complexity before final UI. + +Materials to produce: +- Today state matrix +- Bake creation flow +- Active bake execution flow +- Timeline shift flow +- Starter refresh flow +- Notification deep-link fallback flow +- Step state model + +Critical flows: +- First launch / all clear / future only / actionable Today states +- Create bake from system template or saved recipe +- Start, complete, skip, and shift a bake step +- Handle overnight/window-based steps +- Refresh starter in a fast three-field path +- Open from notification with stale payload fallbacks + +### 08 - Design System and Interaction Principles + +**Goal:** connect visual design choices to behavior. + +Materials to produce: +- Semantic color system +- Typography and spacing rules +- Component anatomy +- State badge rules +- StepCard variants +- Accessibility notes + +Design-system story: +- Green = action and plan +- Neutral = past or archived +- Red = problem or destructive action +- Light-only, native iOS feel, SF Pro, generous whitespace +- Components are designed around operational clarity, not decoration + +### 09 - Iteration and UAT + +**Goal:** show design maturity through changes, not just final polish. + +Materials to produce: +- Phase timeline +- UAT findings +- Before/after examples +- Decision log +- Regression and trust-repair notes +- Final sign-off checklist + +Strong iteration themes: +- Home/Today realignment around "what do I do now?" +- Userflow v2 conformance +- Notification routing hardening +- Design-system regression closure +- Memory durability and system content separation + +### 10 - Final Screens and Storyboard + +**Goal:** present final screens after the reasoning is already clear. + +Materials to produce: +- Screen storyboard +- Final screen set +- Annotated flows +- Interaction notes +- Edge-case states + +Screen groups: +- Oggi states +- Impasti list and bake detail +- Bake step detail +- New bake flow +- Starter list, detail, and refresh +- Knowledge browse and article +- Notification entry and fallback feedback + +### 11 - Validation and Outcome + +**Goal:** make the project measurable. + +Materials to produce: +- Requirements coverage matrix +- Build/test/UAT evidence +- Residual risk log +- What changed after testing +- Lessons learned +- Next steps + +Outcome framing: +- The MVP became a reliable operational planner with local persistence, local notifications, system templates, bundled knowledge, and explicit state logic. +- Remaining evidence to show honestly: physical-device UAT and real-notification verification when relevant. + +--- + +## 2. Product Designer Deliverables Checklist + +### Research + +- [ ] Research plan +- [ ] Assumptions map +- [ ] Proto-persona +- [ ] Jobs-to-be-done +- [ ] Domain workflow map +- [ ] Competitive / adjacent audit +- [ ] Research question list +- [ ] Evidence log + +### Synthesis + +- [ ] Pain point clusters +- [ ] Insight cards +- [ ] Opportunity areas +- [ ] How-might-we questions +- [ ] Prioritization matrix +- [ ] Problem statement + +### Structure + +- [ ] IA map +- [ ] Object model +- [ ] Navigation model +- [ ] Content taxonomy +- [ ] State model +- [ ] Requirements map + +### Flows + +- [ ] Today state matrix +- [ ] Bake creation flow +- [ ] Active bake execution flow +- [ ] Timeline shift flow +- [ ] Starter refresh flow +- [ ] Notification entry flow +- [ ] Window-based step flow + +### Design + +- [ ] Design principles +- [ ] Low-fidelity wireflow +- [ ] Component anatomy +- [ ] Design-system tokens +- [ ] Final screen storyboard +- [ ] Annotated screen set + +### Validation + +- [ ] UAT plan +- [ ] UAT findings +- [ ] Before/after iteration evidence +- [ ] Traceability matrix +- [ ] Residual risk log +- [ ] Final learnings + +--- + +## 3. Local Sources To Mine + +Primary source files: +- `docs/levain-prd-complete-v2.md` +- `docs/UX-SPEC.md` +- `docs/levain-user-flows.md` +- `docs/UI-FLOW.md` +- `docs/DESIGN-SYSTEM.md` +- `.planning/milestones/v1-roadmap.md` +- `.planning/milestones/v1-requirements.md` +- `.planning/milestones/v1-state.md` +- `docs/v1-audit.md` +- `docs/mvp-review.md` +- `.planning/phases/24-figma-design-system-parity/DISCOVERY.md` +- `.planning/phases/24-figma-design-system-parity/24-CONTEXT.md` + +Useful app references: +- `Levain/Features/Today/TodayView.swift` +- `Levain/Features/Bakes/BakeCreationView.swift` +- `Levain/Features/Bakes/BakeDetailView.swift` +- `Levain/Features/Bakes/BakeStepDetailView.swift` +- `Levain/Features/Starter/StarterView.swift` +- `Levain/Features/Knowledge/KnowledgeView.swift` +- `Levain/Services/TodayAgendaBuilder.swift` +- `Levain/Services/BakeScheduler.swift` +- `Levain/Services/NotificationService.swift` +- `Levain/DesignSystem/Theme.swift` + +--- + +## 4. Suggested Case Study Page Order + +1. Hero: final product promise +2. Context: why fermentation needs an operational tool +3. Challenge: recipes are static, fermentation is live +4. Research approach: workflow-led research and UAT +5. Target user and JTBD +6. Pain points and insights +7. Product strategy and scope boundaries +8. IA and object model +9. Core flows and state logic +10. Design principles and system +11. Iterations from UAT +12. Final screen walkthrough +13. Validation and outcome +14. Reflection and next steps + diff --git a/docs/case-history/asset-production-plan.md b/docs/case-history/asset-production-plan.md new file mode 100644 index 0000000..18be92a --- /dev/null +++ b/docs/case-history/asset-production-plan.md @@ -0,0 +1,301 @@ +# Batch Showcase Asset Production Plan + +**Purpose:** definire quali asset creare per lo showcase product-design di Batch, dove crearli, come produrli e quale output esportare per il sito portfolio. + +**Source of truth:** `docs/case-history/final-showcase-plan.md` + +**Related content plan:** `docs/case-history/product-design-showcase-content.md` + +--- + +## 1. Regola Di Produzione + +Non creare gli asset finali direttamente nel sito. + +Usare tre livelli: + +1. **Runtime evidence nel repo** + - Screenshot reali dell'app. + - File sorgente tracciabili. + - Nessuna reinterpretazione visiva. + +2. **Master modificabile in Figma/FigJam** + - Diagrammi. + - Annotazioni. + - Composizioni device. + - Asset cover e social. + +3. **Export ottimizzati per portfolio** + - PNG/JPG/WebP per il sito. + - SVG solo per diagrammi semplici se il sito li gestisce bene. + - Naming stabile e leggibile. + +--- + +## 2. Dove Crearli + +### A. Screenshot runtime + +**Dove:** nel repo, partendo dall'app reale. + +**Cartella sorgente attuale:** + +```text +docs/case-history/assets/ +``` + +**Cartella consigliata se il set cresce:** + +```text +docs/case-history/assets/runtime/ +``` + +**Come crearli:** + +- Lanciare la build iOS con seed operativo. +- Catturare schermate da simulatore o device reale. +- Non ridisegnare le UI in Figma se lo scopo è mostrare il prodotto shipped. +- Ricatturare a risoluzione alta prima della pubblicazione finale. + +**Output:** + +- Screenshot puliti in PNG o JPG. +- Nomi descrittivi: + +```text +runtime-01-oggi-actionable.png +runtime-02-batch-hub.png +runtime-03-guide-browse.png +runtime-04-new-preparation-menu.png +runtime-05-kefico-detail.png +runtime-06-kefir-chronology.png +runtime-07-bake-step-shift.png +``` + +### B. Diagrammi UX e prodotto + +**Dove:** Figma/FigJam. + +**Perché:** + +- Devono essere modificabili. +- Servono nel case come artefatti product-design, non come screenshot tecniche. +- Vanno mantenuti coerenti per stile, scala, griglia e annotazioni. + +**Cartella export consigliata:** + +```text +docs/case-history/assets/diagrams/ +``` + +**Output:** + +- SVG se il sito supporta bene linee e testo. +- PNG 2x se il sito rasterizza meglio o se ci sono device/sfondi. + +### C. Composizioni device e hero + +**Dove:** Figma. + +**Perché:** + +- Serve controllo su crop, device frames, sfondo, gerarchia e ritmo della pagina. +- Le composizioni devono usare screenshot reali come contenuto, non mock inventati. + +**Cartella export consigliata:** + +```text +docs/case-history/assets/compositions/ +``` + +**Output:** + +```text +hero-batch-overview.webp +composition-oggi-batch-guide.webp +composition-kefir-operational-flow.webp +case-thumbnail.webp +social-preview-batch.webp +``` + +### D. Annotazioni su schermate + +**Dove:** Figma. + +**Perché:** + +- Le callout devono essere progettate come layer editoriali sopra screenshot reali. +- Devono poter essere aggiornate quando cambia copy o layout della pagina. + +**Cartella export consigliata:** + +```text +docs/case-history/assets/annotated/ +``` + +**Output:** + +```text +annotated-oggi-priority-model.webp +annotated-kefico-detail-state-actions.webp +annotated-batch-hub-domain-model.webp +``` + +--- + +## 3. Asset Prioritari + +### P0 - Necessari Per Rendere Il Caso Da Product Designer + +| Asset | Dove crearlo | Come | Output finale | +|---|---|---|---| +| IA finale `Oggi / Batch / Guide` | FigJam/Figma | Mappa semplice a 3 livelli con before/after | `diagrams/ia-oggi-batch-guide.svg` | +| Oggi priority model | Figma | Diagramma verticale con ordine di priorità | `diagrams/oggi-priority-model.svg` | +| Flow nuova preparazione | FigJam/Figma | Flow a lane: entry, dominio, azione | `diagrams/new-preparation-flow.svg` | +| BakeStep state diagram | FigJam/Figma | Stato pending/running/done/skipped con regole | `diagrams/bake-step-state-model.svg` | +| Kefir lifecycle | FigJam/Figma | Rinnovo, evento, cronologia, archivio, derivazione, confronto | `diagrams/kefir-lifecycle-flow.svg` | +| Annotazione Oggi | Figma | Screenshot runtime + 3 callout | `annotated/annotated-oggi-priority.webp` | +| Annotazione Kefico detail | Figma | Screenshot runtime + callout su stato, metrica, azioni | `annotated/annotated-kefico-detail.webp` | +| Hero 3-5 schermate | Figma | Composizione con Oggi, Batch, Kefico, Guide, menu | `compositions/hero-batch-overview.webp` | + +### P1 - Rafforzano La Lettura UX + +| Asset | Dove crearlo | Come | Output finale | +|---|---|---|---| +| Object model | FigJam/Figma | Relazioni tra oggetti persistiti e contenuti | `diagrams/object-model.svg` | +| Timeline shift flow | FigJam/Figma | Prima/dopo su step futuri non terminali | `diagrams/timeline-shift-flow.svg` | +| Deep-link fallback matrix | Figma | Matrice evento -> validazione -> destinazione/fallback | `diagrams/notification-fallback-matrix.svg` | +| Design-system anatomy | Figma | Componenti e semantica colore | `annotated/design-system-anatomy.webp` | +| Before/after IA | Figma | Vecchia struttura vs nuova | `diagrams/ia-before-after.svg` | + +### P2 - Editoriali / Marketing + +| Asset | Dove crearlo | Come | Output finale | +|---|---|---|---| +| Case thumbnail | Figma | Crop 16:9 o card progetto | `compositions/case-thumbnail.webp` | +| Social preview | Figma | Open Graph crop con brand e 2-3 screen | `compositions/social-preview-batch.webp` | +| Portfolio cover | Figma | Immagine cover coerente con hero | `compositions/portfolio-cover-batch.webp` | + +--- + +## 4. Screenshot Mancanti Da Catturare + +Questi vanno catturati dall'app, non ricreati a mano. + +| Priorità | Screen | Perché serve | +|---|---|---| +| Alta | Kefir chronology / recent history | Prova la dimensione memoria/eventi | +| Alta | Kefir comparison | Prova lineage e confronto non generico | +| Alta | Bake detail with step timeline | Prova impasti e pianificazione | +| Alta | Step detail + shift timeline sheet | Prova esecuzione reale e adattamento | +| Media | Starter detail + refresh sheet | Prova manutenzione veloce | +| Media | Guide article | Prova contenuto a supporto | +| Media | Notification fallback/banner | Prova affidabilità e edge case | +| Bassa | Oggi all-clear / empty first-launch | Utile per stati, meno urgente per il primo pass | + +--- + +## 5. Stile Comune Degli Asset + +### Diagrammi + +- Sfondo chiaro. +- Linee sottili neutre. +- Verde solo per percorso primario/azione. +- Rosso solo per rischio, overdue o fallback problematico. +- Testi brevi, etichette in italiano quando corrispondono alla UI. +- Non usare look tecnico da architettura software: devono sembrare artefatti di product design. + +### Annotazioni + +- Screenshot reale al centro. +- Massimo 3-4 callout per immagine. +- Callout brevi: una decisione, non una spiegazione lunga. +- Frecce o leader lines leggere. +- Evitare callout che coprono CTA o stati importanti. + +### Device compositions + +- Usare screenshot shipped. +- Device frame coerenti tra tutti gli asset. +- Non usare troppi telefoni nella stessa composizione. +- Hero: 3-5 schermate massimo. +- Evitare sfondi decorativi che spostano il focus dalla UI. + +--- + +## 6. Sequenza Di Lavoro Consigliata + +### Passo 1 - Ricattura screenshot + +Ricatturare gli screen mancanti e, se possibile, sostituire gli attuali JPG 369x800 con export più puliti e ad alta risoluzione. + +### Passo 2 - Creare libreria Figma del caso + +Un file Figma dedicato: + +```text +Batch - Portfolio Showcase Assets +``` + +Pagine consigliate: + +```text +00 Source Screens +01 Diagrams +02 Annotated Screens +03 Device Compositions +04 Exports +``` + +### Passo 3 - Disegnare prima i P0 + +Ordine: + +1. IA finale. +2. Oggi priority model. +3. Kefir lifecycle. +4. BakeStep state diagram. +5. Annotated Oggi. +6. Annotated Kefico. +7. Hero composition. + +### Passo 4 - Esportare nel repo/sito + +Salvare gli export in cartelle semantiche: + +```text +docs/case-history/assets/diagrams/ +docs/case-history/assets/annotated/ +docs/case-history/assets/compositions/ +``` + +Nel repo portfolio finale, usare gli stessi nomi file o una variante con prefisso progetto. + +### Passo 5 - Montare nella pagina + +Inserire gli asset in questo ordine: + +1. Hero composition. +2. Research/process block con diagramma priority o IA. +3. IA before/after. +4. Core flow diagrams. +5. Annotated Oggi e Kefico. +6. Final screen storyboard. +7. Validation/outcome. + +--- + +## 7. Primo Batch Di Produzione + +Se bisogna partire subito, creare solo questi 6 asset: + +1. `hero-batch-overview.webp` +2. `ia-oggi-batch-guide.svg` +3. `oggi-priority-model.svg` +4. `kefir-lifecycle-flow.svg` +5. `annotated-oggi-priority.webp` +6. `annotated-kefico-detail.webp` + +Questi bastano per trasformare la pagina da "progetto spiegato con schermate" a "case history product-design con processo, decisioni e sistema". + diff --git a/docs/case-history/assets/annotated/annotated-kefico-detail.webp b/docs/case-history/assets/annotated/annotated-kefico-detail.webp new file mode 100644 index 0000000..06a01ae Binary files /dev/null and b/docs/case-history/assets/annotated/annotated-kefico-detail.webp differ diff --git a/docs/case-history/assets/annotated/annotated-oggi-priority.webp b/docs/case-history/assets/annotated/annotated-oggi-priority.webp new file mode 100644 index 0000000..b69d8af Binary files /dev/null and b/docs/case-history/assets/annotated/annotated-oggi-priority.webp differ diff --git a/docs/case-history/assets/compositions/hero-batch-overview.webp b/docs/case-history/assets/compositions/hero-batch-overview.webp new file mode 100644 index 0000000..f6835b8 Binary files /dev/null and b/docs/case-history/assets/compositions/hero-batch-overview.webp differ diff --git a/docs/case-history/assets/compositions/p0-contact-sheet.webp b/docs/case-history/assets/compositions/p0-contact-sheet.webp new file mode 100644 index 0000000..e2db5fa Binary files /dev/null and b/docs/case-history/assets/compositions/p0-contact-sheet.webp differ diff --git a/docs/case-history/assets/compositions/p0-manifest.json b/docs/case-history/assets/compositions/p0-manifest.json new file mode 100644 index 0000000..a8656bc --- /dev/null +++ b/docs/case-history/assets/compositions/p0-manifest.json @@ -0,0 +1,90 @@ +{ + "project": "Batch", + "runId": "batch-showcase-p0", + "generatedAt": "2026-06-03T10:22:26.941Z", + "method": "Deterministic SVG and sharp compositing. No generative image layer used.", + "sourceOfTruth": "docs/case-history/final-showcase-plan.md", + "items": [ + { + "file": "docs/case-history/assets/compositions/hero-batch-overview.webp", + "title": "hero-batch-overview.webp", + "width": 2400, + "height": 1500, + "type": "composition", + "source": "runtime screenshots + deterministic layout", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/diagrams/ia-oggi-batch-guide.svg", + "title": "ia-oggi-batch-guide.svg", + "width": 1600, + "height": 1000, + "type": "diagram", + "source": "deterministic SVG", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/diagrams/oggi-priority-model.svg", + "title": "oggi-priority-model.svg", + "width": 1600, + "height": 1050, + "type": "diagram", + "source": "deterministic SVG", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/diagrams/new-preparation-flow.svg", + "title": "new-preparation-flow.svg", + "width": 1600, + "height": 950, + "type": "diagram", + "source": "deterministic SVG", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/diagrams/bake-step-state-model.svg", + "title": "bake-step-state-model.svg", + "width": 1600, + "height": 950, + "type": "diagram", + "source": "deterministic SVG", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/diagrams/kefir-lifecycle-flow.svg", + "title": "kefir-lifecycle-flow.svg", + "width": 1800, + "height": 1050, + "type": "diagram", + "source": "deterministic SVG", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/annotated/annotated-oggi-priority.webp", + "title": "annotated-oggi-priority.webp", + "width": 1800, + "height": 1300, + "type": "annotated-screen", + "source": "runtime screenshots + deterministic layout", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/annotated/annotated-kefico-detail.webp", + "title": "annotated-kefico-detail.webp", + "width": 1800, + "height": 1300, + "type": "annotated-screen", + "source": "runtime screenshots + deterministic layout", + "status": "draft-review" + }, + { + "file": "docs/case-history/assets/compositions/p0-contact-sheet.webp", + "title": "p0-contact-sheet.webp", + "width": 1772, + "height": 1674, + "type": "composition", + "source": "runtime screenshots + deterministic layout", + "status": "draft-review" + } + ] +} \ No newline at end of file diff --git a/docs/case-history/assets/diagrams/bake-step-state-model.svg b/docs/case-history/assets/diagrams/bake-step-state-model.svg new file mode 100644 index 0000000..b63516d --- /dev/null +++ b/docs/case-history/assets/diagrams/bake-step-state-model.svg @@ -0,0 +1,45 @@ + + + +BakeStep state model + + +Il tempo può rendere uno step in ritardo, ma non può completarlo. + + + + +pending + + + +running + + + +done + + + +skipped + + + + + + + + + + + +Overdue è una lettura UI derivata, non uno +status salvato. + + + +actualStart e actualEnd restano separati +dal piano. + + + \ No newline at end of file diff --git a/docs/case-history/assets/diagrams/ia-oggi-batch-guide.svg b/docs/case-history/assets/diagrams/ia-oggi-batch-guide.svg new file mode 100644 index 0000000..d00a940 --- /dev/null +++ b/docs/case-history/assets/diagrams/ia-oggi-batch-guide.svg @@ -0,0 +1,76 @@ + + + +IA finale + + +La navigazione passa da sezioni separate a tre superfici con ruoli chiari. + + + + +Oggi + + +Agenda operativa + + +Azioni in ritardo, +elementi attivi, +prossime cose da fare e +supporto guide. + + + +Cosa fare oggi + + + + +Batch + + +Hub dei domini + + +Impasti, Starter, Kefir e +Ricette restano specifici +ma accessibili da un +unico centro. + + + +Impasti + + + +Starter + + + +Kefir + + + + +Guide + + +Supporto + + +Contenuti bundled, +categorie, ricerca e +articoli richiamabili +quando aiutano l'azione. + + + +Cerca guide + + + + + + + \ No newline at end of file diff --git a/docs/case-history/assets/diagrams/kefir-lifecycle-flow.svg b/docs/case-history/assets/diagrams/kefir-lifecycle-flow.svg new file mode 100644 index 0000000..23f6a92 --- /dev/null +++ b/docs/case-history/assets/diagrams/kefir-lifecycle-flow.svg @@ -0,0 +1,75 @@ + + + +Kefir lifecycle + + +Il kefir diventa un dominio operativo: stato, eventi, archivio e confronto. + + + + +Kefico overdue + + +stato derivato + + + +Rinfresca + + +azione primaria + + + +KefirEvent + + +evento automatico + + + +Cronologia + + +memoria leggibile + + + +Archivia + + +resta consultabile + + + +Nuovo batch + + +derivazione + + + +Confronta + + +lineage context + + + + + + + + + + + + + + +Automatic-first: l'utente non deve compilare un diario per avere memoria operativa. + + + \ No newline at end of file diff --git a/docs/case-history/assets/diagrams/new-preparation-flow.svg b/docs/case-history/assets/diagrams/new-preparation-flow.svg new file mode 100644 index 0000000..8916dd2 --- /dev/null +++ b/docs/case-history/assets/diagrams/new-preparation-flow.svg @@ -0,0 +1,64 @@ + + + +Nuova preparazione + + +Il selettore apre domini operativi, non semplici template. + + + + +Oggi + + + +Nuova preparazione + + + + + + +Scegli dominio + + + +Impasto + + + +Starter + + + +Kefir + + + + + + +Timeline impasto + + +Formula -> step -> shift + + + + +Refresh starter + + +Due date -> rinnovo + + + + +Kefir batch + + +Rinfresca -> cronologia + + + \ No newline at end of file diff --git a/docs/case-history/assets/diagrams/oggi-priority-model.svg b/docs/case-history/assets/diagrams/oggi-priority-model.svg new file mode 100644 index 0000000..f08fc9f --- /dev/null +++ b/docs/case-history/assets/diagrams/oggi-priority-model.svg @@ -0,0 +1,69 @@ + + + +Oggi priority model + + +Oggi traduce dominio, tempo e stato in una gerarchia di attenzione. + + + + + +1 + + +Overdue / critical + + +Ciò che richiede azione immediata. + + + + +2 + + +Azioni previste oggi + + +Step, rinnovi e gestione pianificati nella giornata. + + + + +3 + + +Elementi attivi + + +Routine già avviate che devono restare visibili. + + + + +4 + + +Prossime azioni future + + +Preview utile senza occupare il centro della pagina. + + + + +5 + + +Guide e consigli + + +Supporto quando chiarisce una decisione operativa. + + +Non è solo ordinamento cronologico: è una lista di attenzione. + + + \ No newline at end of file diff --git a/docs/case-history/assets/runtime-01-oggi-actionable.jpg b/docs/case-history/assets/runtime-01-oggi-actionable.jpg new file mode 100644 index 0000000..ba722ae Binary files /dev/null and b/docs/case-history/assets/runtime-01-oggi-actionable.jpg differ diff --git a/docs/case-history/assets/runtime-02-batch-hub.jpg b/docs/case-history/assets/runtime-02-batch-hub.jpg new file mode 100644 index 0000000..c1432f2 Binary files /dev/null and b/docs/case-history/assets/runtime-02-batch-hub.jpg differ diff --git a/docs/case-history/assets/runtime-03-guide-browse.jpg b/docs/case-history/assets/runtime-03-guide-browse.jpg new file mode 100644 index 0000000..353c461 Binary files /dev/null and b/docs/case-history/assets/runtime-03-guide-browse.jpg differ diff --git a/docs/case-history/assets/runtime-04-new-preparation-menu.jpg b/docs/case-history/assets/runtime-04-new-preparation-menu.jpg new file mode 100644 index 0000000..8af9093 Binary files /dev/null and b/docs/case-history/assets/runtime-04-new-preparation-menu.jpg differ diff --git a/docs/case-history/assets/runtime-05-kefir-detail.jpg b/docs/case-history/assets/runtime-05-kefir-detail.jpg new file mode 100644 index 0000000..db4eb14 Binary files /dev/null and b/docs/case-history/assets/runtime-05-kefir-detail.jpg differ diff --git a/docs/case-history/create_p0_assets.mjs b/docs/case-history/create_p0_assets.mjs new file mode 100644 index 0000000..742675c --- /dev/null +++ b/docs/case-history/create_p0_assets.mjs @@ -0,0 +1,479 @@ +import fs from "node:fs/promises"; +import path from "node:path"; +import { createRequire } from "node:module"; + +const root = process.cwd(); +const runtimeRequire = createRequire("/Users/lorentso/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/"); +const sharp = runtimeRequire("sharp"); +const assetsDir = path.join(root, "docs/case-history/assets"); +const diagramsDir = path.join(assetsDir, "diagrams"); +const annotatedDir = path.join(assetsDir, "annotated"); +const compositionsDir = path.join(assetsDir, "compositions"); +const runDir = path.join(root, "outputs/imagegen/generative-polish/batch-showcase-p0"); + +const colors = { + bg: "#F7F8F4", + surface: "#FFFFFF", + surface2: "#EFF3EA", + ink: "#172019", + muted: "#667064", + line: "#DDE5D9", + green: "#2F6F45", + greenSoft: "#DDEDDD", + red: "#B6463B", + redSoft: "#F4DFDD", + neutral: "#7A8178", + neutralSoft: "#ECEFEB", +}; + +const runtime = { + oggi: path.join(assetsDir, "runtime-01-oggi-actionable.jpg"), + batch: path.join(assetsDir, "runtime-02-batch-hub.jpg"), + guide: path.join(assetsDir, "runtime-03-guide-browse.jpg"), + menu: path.join(assetsDir, "runtime-04-new-preparation-menu.jpg"), + kefico: path.join(assetsDir, "runtime-05-kefir-detail.jpg"), +}; + +function esc(value) { + return String(value) + .replaceAll("&", "&") + .replaceAll("<", "<") + .replaceAll(">", ">") + .replaceAll('"', """); +} + +function wrap(text, max = 28) { + const words = text.split(" "); + const lines = []; + let current = ""; + for (const word of words) { + const next = current ? `${current} ${word}` : word; + if (next.length > max && current) { + lines.push(current); + current = word; + } else { + current = next; + } + } + if (current) lines.push(current); + return lines; +} + +function textBlock(text, x, y, opts = {}) { + const { + size = 30, + weight = 500, + color = colors.ink, + max = 28, + line = Math.round(size * 1.25), + anchor = "start", + } = opts; + const lines = wrap(text, max); + return ` +${lines.map((value, index) => `${esc(value)}`).join("\n")} +`; +} + +function card(x, y, w, h, fill = colors.surface, stroke = colors.line, r = 30) { + return ``; +} + +function pill(text, x, y, fill = colors.greenSoft, color = colors.green) { + const w = Math.max(128, text.length * 13 + 44); + return ` +${textBlock(text, x + w / 2, y + 30, { size: 18, weight: 700, color, anchor: "middle", max: 40 })}`; +} + +function arrow(x1, y1, x2, y2, color = colors.green) { + return ` +`; +} + +function baseSvg(width, height, title, subtitle, body) { + return ` + +${textBlock(title, 80, 92, { size: 46, weight: 800, max: 48 })} +${subtitle ? textBlock(subtitle, 82, 138, { size: 22, weight: 500, color: colors.muted, max: 90 }) : ""} +${body} +`; +} + +async function writeSvg(file, svg) { + await fs.writeFile(file, svg, "utf8"); +} + +async function createDiagrams() { + await writeSvg( + path.join(diagramsDir, "ia-oggi-batch-guide.svg"), + baseSvg( + 1600, + 1000, + "IA finale", + "La navigazione passa da sezioni separate a tre superfici con ruoli chiari.", + ` +${card(95, 220, 400, 590)} +${textBlock("Oggi", 145, 292, { size: 38, weight: 800 })} +${textBlock("Agenda operativa", 145, 350, { size: 24, weight: 700, color: colors.green })} +${textBlock("Azioni in ritardo, elementi attivi, prossime cose da fare e supporto guide.", 145, 405, { size: 25, color: colors.muted, max: 24 })} +${pill("Cosa fare oggi", 145, 675)} + +${card(600, 220, 400, 590)} +${textBlock("Batch", 650, 292, { size: 38, weight: 800 })} +${textBlock("Hub dei domini", 650, 350, { size: 24, weight: 700, color: colors.green })} +${textBlock("Impasti, Starter, Kefir e Ricette restano specifici ma accessibili da un unico centro.", 650, 405, { size: 25, color: colors.muted, max: 25 })} +${pill("Impasti", 650, 635)} +${pill("Starter", 650, 695, colors.neutralSoft, colors.neutral)} +${pill("Kefir", 805, 695, colors.redSoft, colors.red)} + +${card(1105, 220, 400, 590)} +${textBlock("Guide", 1155, 292, { size: 38, weight: 800 })} +${textBlock("Supporto", 1155, 350, { size: 24, weight: 700, color: colors.green })} +${textBlock("Contenuti bundled, categorie, ricerca e articoli richiamabili quando aiutano l'azione.", 1155, 405, { size: 25, color: colors.muted, max: 25 })} +${pill("Cerca guide", 1155, 675, colors.neutralSoft, colors.neutral)} +${arrow(495, 515, 600, 515, colors.line)} +${arrow(1000, 515, 1105, 515, colors.line)} +` + ) + ); + + await writeSvg( + path.join(diagramsDir, "oggi-priority-model.svg"), + baseSvg( + 1600, + 1050, + "Oggi priority model", + "Oggi traduce dominio, tempo e stato in una gerarchia di attenzione.", + ` +${[ + ["1", "Overdue / critical", "Ciò che richiede azione immediata.", colors.redSoft, colors.red], + ["2", "Azioni previste oggi", "Step, rinnovi e gestione pianificati nella giornata.", colors.greenSoft, colors.green], + ["3", "Elementi attivi", "Routine già avviate che devono restare visibili.", colors.surface2, colors.neutral], + ["4", "Prossime azioni future", "Preview utile senza occupare il centro della pagina.", colors.surface, colors.muted], + ["5", "Guide e consigli", "Supporto quando chiarisce una decisione operativa.", colors.surface, colors.muted], +] + .map((row, index) => { + const y = 230 + index * 145; + return `${card(160, y, 1280, 105, row[3], colors.line, 28)} + +${textBlock(row[0], 225, y + 62, { size: 24, weight: 800, color: "#fff", anchor: "middle" })} +${textBlock(row[1], 285, y + 45, { size: 28, weight: 800, color: colors.ink, max: 38 })} +${textBlock(row[2], 285, y + 78, { size: 22, weight: 500, color: colors.muted, max: 80 })}`; + }) + .join("\n")} +${textBlock("Non è solo ordinamento cronologico: è una lista di attenzione.", 160, 955, { size: 28, weight: 700, color: colors.green, max: 80 })} +` + ) + ); + + await writeSvg( + path.join(diagramsDir, "new-preparation-flow.svg"), + baseSvg( + 1600, + 950, + "Nuova preparazione", + "Il selettore apre domini operativi, non semplici template.", + ` +${card(95, 300, 310, 260)} +${textBlock("Oggi", 150, 375, { size: 34, weight: 800 })} +${pill("Nuova preparazione", 150, 455)} +${arrow(405, 430, 535, 430)} + +${card(535, 235, 360, 390)} +${textBlock("Scegli dominio", 585, 310, { size: 34, weight: 800 })} +${pill("Impasto", 585, 385)} +${pill("Starter", 585, 455, colors.neutralSoft, colors.neutral)} +${pill("Kefir", 585, 525, colors.redSoft, colors.red)} +${arrow(895, 430, 1025, 430)} + +${card(1025, 160, 380, 170)} +${textBlock("Timeline impasto", 1075, 230, { size: 29, weight: 800 })} +${textBlock("Formula -> step -> shift", 1075, 270, { size: 22, color: colors.muted, max: 28 })} + +${card(1025, 390, 380, 170)} +${textBlock("Refresh starter", 1075, 460, { size: 29, weight: 800 })} +${textBlock("Due date -> rinnovo", 1075, 500, { size: 22, color: colors.muted, max: 28 })} + +${card(1025, 620, 380, 170)} +${textBlock("Kefir batch", 1075, 690, { size: 29, weight: 800 })} +${textBlock("Rinfresca -> cronologia", 1075, 730, { size: 22, color: colors.muted, max: 30 })} +` + ) + ); + + await writeSvg( + path.join(diagramsDir, "bake-step-state-model.svg"), + baseSvg( + 1600, + 950, + "BakeStep state model", + "Il tempo può rendere uno step in ritardo, ma non può completarlo.", + ` +${card(150, 370, 280, 150, colors.surface)} +${textBlock("pending", 290, 455, { size: 34, weight: 800, anchor: "middle" })} +${card(650, 260, 280, 150, colors.greenSoft)} +${textBlock("running", 790, 345, { size: 34, weight: 800, color: colors.green, anchor: "middle" })} +${card(1170, 260, 280, 150, colors.greenSoft)} +${textBlock("done", 1310, 345, { size: 34, weight: 800, color: colors.green, anchor: "middle" })} +${card(1170, 560, 280, 150, colors.neutralSoft)} +${textBlock("skipped", 1310, 645, { size: 34, weight: 800, color: colors.neutral, anchor: "middle" })} +${arrow(430, 445, 650, 335)} +${arrow(930, 335, 1170, 335)} +${arrow(430, 445, 1170, 635, colors.neutral)} +${arrow(930, 335, 1170, 635, colors.neutral)} +${card(150, 650, 610, 130, colors.redSoft, colors.red)} +${textBlock("Overdue è una lettura UI derivata, non uno status salvato.", 195, 722, { size: 26, weight: 700, color: colors.red, max: 42 })} +${card(845, 650, 610, 130, colors.surface2)} +${textBlock("actualStart e actualEnd restano separati dal piano.", 890, 722, { size: 26, weight: 700, color: colors.green, max: 42 })} +` + ) + ); + + await writeSvg( + path.join(diagramsDir, "kefir-lifecycle-flow.svg"), + baseSvg( + 1800, + 1050, + "Kefir lifecycle", + "Il kefir diventa un dominio operativo: stato, eventi, archivio e confronto.", + ` +${[ + ["Kefico overdue", "stato derivato", colors.redSoft, colors.red], + ["Rinfresca", "azione primaria", colors.greenSoft, colors.green], + ["KefirEvent", "evento automatico", colors.surface2, colors.neutral], + ["Cronologia", "memoria leggibile", colors.surface, colors.muted], + ["Archivia", "resta consultabile", colors.neutralSoft, colors.neutral], + ["Nuovo batch", "derivazione", colors.greenSoft, colors.green], + ["Confronta", "lineage context", colors.surface, colors.muted], +] + .map((item, i) => { + const x = 95 + (i % 4) * 420; + const y = i < 4 ? 275 : 630; + return `${card(x, y, 330, 170, item[2])} +${textBlock(item[0], x + 36, y + 72, { size: 30, weight: 800, color: item[3], max: 17 })} +${textBlock(item[1], x + 36, y + 112, { size: 21, color: colors.muted, max: 22 })}`; + }) + .join("\n")} +${arrow(425, 360, 515, 360)} +${arrow(845, 360, 935, 360)} +${arrow(1265, 360, 1355, 360)} +${arrow(1520, 445, 1520, 630, colors.neutral)} +${arrow(1355, 715, 1265, 715, colors.neutral)} +${arrow(1095, 715, 935, 715)} +${textBlock("Automatic-first: l'utente non deve compilare un diario per avere memoria operativa.", 95, 930, { size: 28, weight: 700, color: colors.green, max: 92 })} +` + ) + ); +} + +function phoneBaseSvg(w, h) { + return Buffer.from(` + + + + + + + +`); +} + +function phoneOverlaySvg(w, h, label = "") { + return Buffer.from(` + + +${label ? textBlock(label, w / 2, h - 22, { size: 18, weight: 700, color: colors.muted, anchor: "middle", max: 32 }) : ""} +`); +} + +async function phoneComposite(input, options = {}) { + const { width = 370, label = "" } = options; + const height = Math.round(width * 800 / 369); + const framePad = Math.round(width * 0.055); + const frameW = width + framePad * 2; + const frameH = height + framePad * 2; + const screen = await sharp(input).resize(width, height, { fit: "fill" }).png().toBuffer(); + return sharp({ + create: { width: frameW, height: frameH, channels: 4, background: "#00000000" }, + }) + .composite([ + { input: phoneBaseSvg(frameW, frameH), left: 0, top: 0 }, + { input: screen, left: framePad, top: framePad }, + { input: phoneOverlaySvg(frameW, frameH, label), left: 0, top: 0 }, + ]) + .png() + .toBuffer(); +} + +function calloutSvg(width, height, title, subtitle, callouts) { + return Buffer.from(` + +${textBlock(title, 82, 92, { size: 46, weight: 800, max: 46 })} +${textBlock(subtitle, 84, 135, { size: 22, color: colors.muted, max: 72 })} +${callouts + .map((item, index) => { + const y = 235 + index * 215; + return `${card(1020, y, 690, 155, item.tone === "red" ? colors.redSoft : item.tone === "neutral" ? colors.neutralSoft : colors.surface, colors.line, 26)} +${textBlock(item.title, 1060, y + 58, { size: 28, weight: 800, color: item.tone === "red" ? colors.red : colors.green, max: 30 })} +${textBlock(item.body, 1060, y + 96, { size: 21, color: colors.muted, max: 50 })} +`; + }) + .join("\n")} +`); +} + +async function createHero() { + const width = 2400; + const height = 1500; + const phones = await Promise.all([ + phoneComposite(runtime.oggi, { width: 370, label: "Oggi" }), + phoneComposite(runtime.batch, { width: 370, label: "Batch" }), + phoneComposite(runtime.kefico, { width: 390, label: "Kefico" }), + phoneComposite(runtime.guide, { width: 370, label: "Guide" }), + phoneComposite(runtime.menu, { width: 370, label: "Nuova preparazione" }), + ]); + const bg = Buffer.from(` + + +${textBlock("Batch", 170, 220, { size: 82, weight: 850, max: 20 })} +${textBlock("Hub operativo per routine fermentative", 172, 292, { size: 32, weight: 650, color: colors.green, max: 48 })} +${textBlock("Oggi, Batch e Guide tengono insieme priorità, domini e supporto senza trasformare l'app in un ricettario.", 172, 350, { size: 25, color: colors.muted, max: 74 })} +${pill("iPhone only", 172, 430, colors.surface2, colors.neutral)} +${pill("Local-first", 338, 430)} +${pill("Italian-first", 510, 430, colors.surface2, colors.neutral)} +`); + + await sharp(bg) + .composite([ + { input: phones[0], left: 230, top: 590 }, + { input: phones[1], left: 660, top: 520 }, + { input: phones[2], left: 1080, top: 455 }, + { input: phones[3], left: 1530, top: 520 }, + { input: phones[4], left: 1920, top: 590 }, + ]) + .webp({ quality: 92 }) + .toFile(path.join(compositionsDir, "hero-batch-overview.webp")); +} + +async function createAnnotated() { + const oggiPhone = await phoneComposite(runtime.oggi, { width: 480, label: "Oggi actionable" }); + const oggiBase = calloutSvg(1800, 1300, "Oggi: priorità operativa", "La home ordina ciò che richiede attenzione, non tutto ciò che esiste.", [ + { title: "Promessa chiara", body: "`Cosa fare oggi` orienta la schermata sulla prossima azione.", targetY: 260 }, + { title: "Card per dominio", body: "Kefir, Starter e Guide convivono nella stessa agenda.", targetY: 520 }, + { title: "CTA sempre visibile", body: "`Nuova preparazione` resta un ingresso rapido al sistema.", targetY: 860 }, + ]); + await sharp(oggiBase) + .composite([{ input: oggiPhone, left: 220, top: 185 }]) + .webp({ quality: 92 }) + .toFile(path.join(annotatedDir, "annotated-oggi-priority.webp")); + + const keficoPhone = await phoneComposite(runtime.kefico, { width: 480, label: "Kefico detail" }); + const keficoBase = calloutSvg(1800, 1300, "Kefico: stato e azioni", "Il dettaglio mostra come un dominio specifico resta action-first.", [ + { title: "Overdue derivato", body: "Il ritardo è una lettura UI, non un valore duplicato nei dati.", targetY: 255, tone: "red" }, + { title: "Metriche operative", body: "Le informazioni servono a decidere, non a riempire dashboard.", targetY: 525 }, + { title: "Una primaria", body: "`Rinfresca` domina; cronologia, confronto e archivio restano secondari.", targetY: 820 }, + ]); + await sharp(keficoBase) + .composite([{ input: keficoPhone, left: 220, top: 185 }]) + .webp({ quality: 92 }) + .toFile(path.join(annotatedDir, "annotated-kefico-detail.webp")); +} + +async function makeContactSheet(files) { + const thumbs = []; + for (const file of files) { + const input = path.join(root, file); + const meta = await sharp(input).metadata(); + const thumb = await sharp(input) + .resize(520, 360, { fit: "contain", background: colors.surface }) + .extend({ top: 18, bottom: 92, left: 18, right: 18, background: colors.surface }) + .composite([ + { + input: Buffer.from(` +${textBlock(path.basename(file), 28, 430, { size: 18, weight: 700, color: colors.ink, max: 45 })} +${textBlock(`${meta.width}x${meta.height}`, 28, 456, { size: 15, color: colors.muted, max: 25 })} +`), + left: 0, + top: 0, + }, + ]) + .webp({ quality: 88 }) + .toBuffer(); + thumbs.push(thumb); + } + + const cols = 3; + const tileW = 556; + const tileH = 470; + const gap = 26; + const top = 160; + const width = cols * tileW + (cols + 1) * gap; + const rows = Math.ceil(files.length / cols); + const height = top + rows * tileH + (rows + 1) * gap; + const bg = Buffer.from(` + +${textBlock("Batch showcase P0 asset pack", gap, 70, { size: 42, weight: 850, max: 60 })} +${textBlock("Diagrammi, annotazioni e hero generati da screenshot runtime e layout deterministici.", gap, 116, { size: 20, color: colors.muted, max: 92 })} +`); + const composites = thumbs.map((input, index) => ({ + input, + left: gap + (index % cols) * (tileW + gap), + top: top + Math.floor(index / cols) * (tileH + gap), + })); + await sharp(bg) + .composite(composites) + .webp({ quality: 90 }) + .toFile(path.join(compositionsDir, "p0-contact-sheet.webp")); +} + +async function writeManifest(files) { + const items = []; + for (const file of files) { + const input = path.join(root, file); + const meta = await sharp(input).metadata(); + items.push({ + file, + title: path.basename(file), + width: meta.width, + height: meta.height, + type: file.includes("/diagrams/") ? "diagram" : file.includes("/annotated/") ? "annotated-screen" : "composition", + source: file.includes("/diagrams/") ? "deterministic SVG" : "runtime screenshots + deterministic layout", + status: "draft-review", + }); + } + const manifest = { + project: "Batch", + runId: "batch-showcase-p0", + generatedAt: new Date().toISOString(), + method: "Deterministic SVG and sharp compositing. No generative image layer used.", + sourceOfTruth: "docs/case-history/final-showcase-plan.md", + items, + }; + await fs.mkdir(path.join(runDir, "data"), { recursive: true }); + await fs.writeFile(path.join(runDir, "manifest.json"), JSON.stringify(manifest, null, 2)); + await fs.writeFile(path.join(compositionsDir, "p0-manifest.json"), JSON.stringify(manifest, null, 2)); +} + +async function main() { + await Promise.all([fs.mkdir(diagramsDir, { recursive: true }), fs.mkdir(annotatedDir, { recursive: true }), fs.mkdir(compositionsDir, { recursive: true }), fs.mkdir(runDir, { recursive: true })]); + await createDiagrams(); + await createHero(); + await createAnnotated(); + const files = [ + "docs/case-history/assets/compositions/hero-batch-overview.webp", + "docs/case-history/assets/diagrams/ia-oggi-batch-guide.svg", + "docs/case-history/assets/diagrams/oggi-priority-model.svg", + "docs/case-history/assets/diagrams/new-preparation-flow.svg", + "docs/case-history/assets/diagrams/bake-step-state-model.svg", + "docs/case-history/assets/diagrams/kefir-lifecycle-flow.svg", + "docs/case-history/assets/annotated/annotated-oggi-priority.webp", + "docs/case-history/assets/annotated/annotated-kefico-detail.webp", + ]; + await makeContactSheet(files); + files.push("docs/case-history/assets/compositions/p0-contact-sheet.webp"); + await writeManifest(files); +} + +main().catch((error) => { + console.error(error); + process.exit(1); +}); diff --git a/docs/case-history/figjam-board-plan.md b/docs/case-history/figjam-board-plan.md new file mode 100644 index 0000000..845c591 --- /dev/null +++ b/docs/case-history/figjam-board-plan.md @@ -0,0 +1,309 @@ +# Batch Case History FigJam Board Plan + +**Board name:** `Batch - Case History Preparation` + +**Goal:** create a working FigJam board that organizes all preparatory product-design material before final screen layout work. + +**Board logic:** left to right: +1. frame the project +2. collect research inputs +3. synthesize insights +4. define product structure +5. map flows and states +6. plan final case-study assets + +--- + +## Section 00 - Board Guide + +Purpose: +- Orient the case history work. +- Explain what material is still missing. + +Content: +- Case study spine +- Source-of-truth list +- Color legend for stickies + +Suggested stickies: +- Blue: source/evidence +- Yellow: open question +- Green: validated decision +- Pink: design risk +- Violet: material to create + +--- + +## Section 01 - Product Framing + +Purpose: +- Define project, role, constraints, and case-study angle. + +Cards: +- Product one-liner +- Role and responsibilities +- Platform and constraints +- Product promise +- Scope / non-scope + +Initial content: +- "Operational planner for fermentation workflows" +- "Question: what do I need to do now?" +- "iPhone only, local-first, no backend, no auth, local notifications" +- "Not a recipe manager, not a social app, not an AI assistant" + +Outputs: +- Cover copy +- Project summary block +- Constraint matrix + +--- + +## Section 02 - Research Framing + +Purpose: +- Make the research approach explicit and honest. + +Cards: +- Research approach +- Assumptions +- Target user / proto-persona +- Jobs to be done +- Research questions +- Evidence sources + +Outputs: +- Research slide/page copy +- Proto-persona card +- JTBD card +- Research scope note + +--- + +## Section 03 - Domain Workflow Map + +Purpose: +- Show that the product comes from the real structure of fermentation. + +Materials: +- High-level fermentation journey +- Planned vs actual timing +- Interruptions and adaptations +- Starter maintenance loop +- Knowledge moments + +Outputs: +- Journey map +- Service / operational blueprint +- Key pain points along the timeline + +--- + +## Section 04 - Synthesis + +Purpose: +- Transform observations into design direction. + +Columns: +- Pain points +- Insights +- Opportunities +- How might we +- Product principles + +Starter content: +- Static recipes fail during live execution. +- The next action needs visual priority. +- Timing changes must not destroy the original plan. +- Starter is a supporting workflow, not the product center. +- Contextual knowledge is more useful than encyclopedic browsing. + +Outputs: +- Insight cards +- Opportunity matrix +- Product principles + +--- + +## Section 05 - Product Strategy And Scope + +Purpose: +- Show product decision-making. + +Cards: +- MVP scope +- Out of scope +- Trade-offs +- Prioritization +- Requirements map + +Outputs: +- Scope map +- Prioritization matrix +- Product decision log + +--- + +## Section 06 - Information Architecture + +Purpose: +- Prepare the IA artifact for the case history. + +Maps: +- Root navigation +- Object model +- Content model +- Knowledge taxonomy + +Canonical structure: +- Oggi +- Impasti +- Starter +- Knowledge + +Object chain: +- RecipeFormula -> Bake -> BakeStep +- Starter -> StarterRefresh +- KnowledgeItem -> relatedStepTypes / relatedStarterStates + +Outputs: +- IA diagram +- Object model diagram +- Content taxonomy + +--- + +## Section 07 - Core User Flows + +Purpose: +- Prepare diagram-ready flows. + +Flow lanes: +- Today states +- Create new bake +- Execute active bake +- Shift timeline +- Refresh starter +- Notification to deep link + +Outputs: +- Flow diagrams +- Edge-case notes +- Screen storyboard requirements + +--- + +## Section 08 - State Models And Edge Cases + +Purpose: +- Show product rigor through state logic. + +Models: +- Bake derived status +- Step status +- Today state matrix +- Window-based step urgency +- Notification fallback routes + +Important rules: +- Steps never auto-complete. +- Overdue is derived UI, not persisted status. +- Timeline shifts affect future non-terminal steps. +- Notification payloads must validate live entities. + +Outputs: +- State model diagram +- Edge-case matrix +- Interaction rules card + +--- + +## Section 09 - Design System Story + +Purpose: +- Connect visual design to product behavior. + +Cards: +- Semantic color rules +- Typography and spacing +- Component anatomy +- StepCard states +- Accessibility notes + +Canonical semantic system: +- Green = action and plan +- Neutral = past / archived +- Red = problem / destructive + +Outputs: +- Design-system explanation +- Component breakdowns +- Screen annotation labels + +--- + +## Section 10 - Iteration And UAT + +Purpose: +- Show how the product improved through testing and review. + +Columns: +- Finding +- Design change +- Reason +- Evidence +- Portfolio artifact needed + +Initial topics: +- Today realignment +- Userflow v2 conformance +- Notification routing hardening +- Design-system regression closure +- Memory durability and content separation + +Outputs: +- Before/after story list +- UAT evidence plan +- Decision log + +--- + +## Section 11 - Final Screen Storyboard + +Purpose: +- Decide which final screens prove the case. + +Screen groups: +- Oggi: first launch, all clear, future only, actionable +- Impasti: planned, active, completed +- Bake detail and step detail +- New bake flow +- Starter refresh flow +- Knowledge contextual article +- Notification fallback / banner + +Outputs: +- Screenshot capture checklist +- Screen annotation plan +- Case-study page order + +--- + +## Section 12 - Production Backlog + +Purpose: +- Convert the FigJam into a checklist. + +Backlog groups: +- Research artifacts +- IA and flows +- Visual/design artifacts +- Screen captures +- Written case history +- Portfolio publishing + +Outputs: +- Final production checklist +- Owner/status columns +- Missing evidence list + diff --git a/docs/case-history/final-showcase-plan.md b/docs/case-history/final-showcase-plan.md new file mode 100644 index 0000000..cd6502d --- /dev/null +++ b/docs/case-history/final-showcase-plan.md @@ -0,0 +1,571 @@ +# Batch Final Showcase Plan + +**Purpose:** source of truth for turning the current FigJam preparation board and the running iOS app into a polished portfolio case history. + +**Status:** updated on 2026-06-03 after reviewing the FigJam board, launching the iOS simulator with the deterministic `operational` seed scenario, checking current source labels, using the provided current Kefico detail screenshot, and confirming the final positioning decisions. + +--- + +## 1. Confirmed Showcase Direction + +Batch should be presented as a native iPhone hub for keeping track of fermented products. + +The current product covers: + +- `Lievito madre` / sourdough starter management. +- `Impasti` and baked-product preparation workflows. +- `Kefir` batch tracking, renewal, chronology, archive, and comparison. +- `Guide` as supporting knowledge content. + +The broader product frame is extensible: the same hub could later cover other fermented products such as kombucha, as long as each domain keeps its own operational model and does not become a generic recipe archive. + +Core positioning: + +> Batch helps you keep track of fermented products by surfacing what needs attention now. + +Sharper product angle: + +> Static recipes tell you what should happen. Batch tells you what needs attention now across real fermentation routines. + +One-line description: + +> Batch is an iPhone-only hub for fermented-product routines: lievito madre, baked products, and kefir organized around the next action. + +--- + +## 2. Runtime Truth To Reflect + +The current first-level information architecture and the showcase language are Italian: + +```text +Oggi +Batch +Guide +``` + +Do not use `Home / Batch / Guides` in the final case. English may be used for explanatory portfolio copy, but IA labels, screen labels, diagrams, and annotations should use the shipped Italian names. + +Current app shell: + +- **Oggi:** action-first operational agenda. It answers what needs attention now across kefir, starter, impasti/bakes, and guide support. +- **Batch:** domain hub for `Impasti`, `Starter`, `Kefir`, and `Ricette`. +- **Guide:** bundled knowledge surface with categories, article rows, and bottom search. + +Runtime references from simulator and provided screenshot: + +- Oggi hero: `Cosa fare oggi`, agenda count, `Nuova preparazione`. +- Oggi actionable sections: domain-grouped cards such as `Kefir`, `Starter`, plus `Guide e consigli`. +- Batch hub: title `Batch`, subtitle `I tuoi batch attivi`, `Nuova preparazione`, tiles for `Impasti`, `Starter`, `Kefir`, `Ricette`. +- Guide: title `Guide`, subtitle `Tutto sulla fermentazione`, category pills, article rows, bottom search `Cerca guide e consigli`. +- Kefir detail example: `Kefico`, overdue state, metric tiles, `Azioni rapide`, primary action `Rinfresca`, secondary actions `Cronologia`, `Confronta`, `Nuovo batch`, `Archivia`, recent history. + +--- + +## 3. Source Evidence + +Use these as the evidence base for the showcase: + +- Running iOS app in simulator: `Levain` scheme, `iPhone 15 Pro`, seeded `operational` scenario. +- User-provided current Kefico detail screenshot. +- FigJam board: `Batch - Case History Preparation`. +- Current source code labels and routes: + - `Levain/Features/Shared/RootTabView.swift` + - `Levain/Features/Today/TodayView.swift` + - `Levain/Features/Fermentations/FermentationsView.swift` + - `Levain/Features/Knowledge/KnowledgeView.swift` + - `Levain/Features/Kefir/KefirBatchDetailView.swift` +- Planning phase evidence: + - Phase 17: v2 shell and preparation hubs. + - Phase 18: cross-domain Oggi agenda. + - Phase 19: milk kefir batch core. + - Phase 20: kefir lineage, journal, archive, comparison. + - Phase 24: design-system parity approved as portfolio-ready. + +FigJam board material to keep: + +- Product framing: operational planner/hub, not recipe manager/social/AI. +- Research framing: practice-led research, workflow decomposition, narrow-sample honesty. +- Domain workflow: planned vs actual timing, interruptions, starter maintenance, kefir renewal/history, knowledge at moment of action. +- Synthesis: next action priority, planned/actual separation, derived status, contextual knowledge. +- Strategy: action-first, one primary action per card, progressive disclosure, local-first. +- State logic: no auto-completion, overdue as derived UI, live entity validation for deep links. +- Design system: semantic green/neutral/red, light-only native iOS, operational card anatomy. +- Iteration/UAT: Oggi too static, knowledge discoverability, flat bakes list, notification trust, design-system regressions, data durability. + +FigJam board material to treat as stale or before-state only: + +- `Oggi / Impasti / Starter / Knowledge` as root IA. +- `Knowledge` as the current tab/surface name. +- Sourdough-only framing. +- Kefir as a placeholder or only a renewal detail. +- Any final-case structure that reads like a generic recipe-manager showcase. + +--- + +## 4. Product Scope And Constraints + +Platform and implementation: + +- Native iPhone app. +- SwiftUI UI. +- SwiftData persistence. +- Local notifications. +- Bundled knowledge content. +- Local-first, no backend. +- No authentication. +- No cloud sync. +- Italian-first MVP. +- Personal/internal product, suitable for a practice-led case study. + +What Batch is: + +- A focused hub for tracking fermented products. +- A way to manage time-sensitive routines across lievito madre, impasti/baked products, and kefir. +- A local app that prioritizes what needs attention now. +- A product architecture that can extend to other fermented products such as kombucha. + +What Batch is not: + +- Not a generic recipe manager. +- Not a social/community product. +- Not an AI assistant. +- Not a backend/cloud product. +- Not an automatic fermentation controller. +- Not a broad market-validation project. +- Not a generic fermentation abstraction that erases domain-specific behavior. + +--- + +## 5. Final Case Study Spine + +### 01 - Hero + +Goal: make the product legible in the first viewport as a hub for fermented products. + +Show: + +- App name: `Batch`. +- Positioning line: hub for tracking fermented-product routines. +- 3 to 5 hero screens: Oggi actionable agenda, Batch hub, Kefico detail, Guide browse, optional new preparation menu. +- Domain coverage signal: lievito madre, impasti/baked products, kefir. +- Extensibility signal: could expand to other fermented products such as kombucha. +- Metadata: iPhone app, SwiftUI, SwiftData, local notifications, Italian-first, local-first, personal/internal MVP. + +Recommended copy: + +> Batch keeps fermented-product routines visible and actionable, from lievito madre and impasti to kefir batches. + +### 02 - Context + +Goal: explain why the product exists before UI. + +Show: + +- Fermented products are time-sensitive, stateful, and often interrupted by real life. +- Recipes describe a plan, but execution needs live prioritization. +- Lievito madre, impasti, baked products, and kefir have different rhythms, but all create operational attention debt. +- The product chooses local reliability and low setup over accounts, sync, and community features. + +### 03 - Research Framing + +Goal: be honest and rigorous. + +Frame the research as practice-led: + +- Domain experience. +- Workflow decomposition. +- Product audits. +- UAT/regression passes. +- Deterministic seeded runtime scenarios. + +Avoid broad-market claims. The strength of the case is workflow depth, not survey breadth. + +### 04 - Synthesis + +Goal: turn observations into product decisions. + +Insight cards: + +- The core question is: what needs attention now? +- Planned time and actual execution must stay separate. +- Overdue is a derived UI interpretation, not a persisted status. +- Fermented-product domains differ, but the agenda model can unify attention. +- Knowledge helps when it supports action, not when it becomes the main product center. +- Operational trust depends on routing, persistence, and notification fallbacks. + +### 05 - Product Strategy + +Goal: show hard scope choices. + +Principles: + +- Action-first, not dashboard-first. +- One dominant action per operational card. +- Progressive disclosure for advanced fields and secondary actions. +- Derive state from persisted facts instead of storing redundant computed state. +- Keep domain models specific instead of forcing a generic fermentation abstraction. +- Local-first and offline-capable. +- Italian-first MVP. +- Extensible hub architecture: new fermented products can be added when they have clear operational rules. + +Explicit non-scope: + +- Backend. +- Cloud sync. +- Accounts/auth. +- Social sharing/community. +- AI suggestions. +- Automatic step completion. +- Analytics-heavy kefir comparison. +- Culture/grain measurement tracking for this milestone. +- Kombucha implementation is not in the current shipped scope. + +### 06 - Information Architecture + +Goal: show the current app structure and the iteration from the old model. + +Current first-level IA: + +```text +Oggi + Agenda + Actionable domain cards + Empty / all-clear / future-only states + New preparation entry + Guide support card + +Batch + Impasti + Bakes + Recipes/Formulas + Bake detail + Step detail + Timeline shift + Starter + Starter list/detail + Refresh flow + Kefir + Batch list/detail + Renew/manage + Cronologia + Archivio + Confronto lineage + Ricette + Formula list/detail + +Guide + Browse + Categories + Search + Articles + Contextual article sheet +``` + +Iteration note: + +- Before: separate root areas for Oggi, Impasti, Starter, Knowledge. +- After: `Oggi / Batch / Guide`, with Batch acting as the fermented-product hub and Oggi acting as the operational agenda. + +### 07 - Core Flows + +Goal: prove interaction depth without making the showcase feel like a full manual. + +Final flow set: + +- Oggi agenda: identify due/overdue/next work across domains. +- New preparation: choose impasto, starter, or kefir. +- Bake creation: saved recipe/system recipe to generated timeline. +- Bake execution: start, complete, skip, inspect detail, shift future non-terminal steps. +- Starter refresh: due/overdue, fast refresh, history. +- Kefir renewal: overdue/detail state, refresh, manage, archive. +- Kefir lineage/history: chronology, derive new batch, compare related batches. +- Guide lookup: browse/search, article, contextual support. +- Notification/deep link: validate live entity, route to the right detail, show fallback banner when needed. + +### 08 - State Logic + +Goal: show rigor behind the simple UI. + +Artifacts to produce: + +- Oggi priority model: overdue/critical first, today items, active items, future preview. +- Step lifecycle: pending, running, done, skipped. +- Bake derived status: cancelled, completed, in progress, planned. +- Starter due/overdue derivation from last refresh and interval. +- Kefir derived state from last managed date, storage mode, planned reactivation, archive state. +- Kefir event history: typed lifecycle events beside `KefirBatch`. +- Notification sync rules for bake timeline shifts and domain management changes. +- Deep-link fallback matrix for missing entities, terminal objects, and notification-disabled states. + +Key rules: + +- Steps never auto-complete. +- Overdue is UI meaning, not a persisted status. +- Actual start/end stay separate from planned schedule. +- Timeline shifts affect future non-terminal steps. +- Kefir chronology is automatic-first, not mandatory journaling. +- Archived kefir batches stay readable and derivable. + +### 09 - Design System + +Goal: connect visual language to behavior. + +Semantic system: + +- Green = action, plan, active route, current work. +- Neutral = past, archived, secondary, disabled. +- Red = overdue, problem, destructive, high-risk feedback. +- Tinted cards highlight operational focus without turning the UI into a dashboard. + +Native visual language: + +- Light-only. +- iPhone-only. +- SF Pro. +- Large, readable hierarchy. +- Continuous rounded cards. +- Generous spacing. +- Floating bottom tab bar. +- One primary action visible in the card or action area. + +Component anatomy to show: + +- Oggi hero card. +- Operational agenda card. +- Batch domain hub tile. +- State badge. +- Kefir detail metric tiles. +- Quick action group. +- Guide row and bottom search. + +### 10 - Iteration And UAT + +Goal: show design maturity through changes, not just final polish. + +Strong before/after themes: + +- First-level IA evolved from four separate tabs into `Oggi / Batch / Guide`. +- Oggi became a cross-domain operational agenda, not a passive dashboard. +- Batch became the hub for fermented-product domains: impasti, starter, kefir, ricette. +- Kefir moved from placeholder/core renewal into batch detail, chronology, archive, and comparison. +- Guide became persistent support content with search and categories. +- Notification routing validates live SwiftData entities and falls back visibly. +- Design-system parity/hardening tied color to behavior. +- Persistence and data durability became part of product trust. + +Use 3 to 5 before/after examples, not every phase. + +### 11 - Final Screens + +Goal: present the product after the reasoning is clear. + +Use a guided storyboard, not a gallery dump: + +1. Oggi actionable agenda. +2. New preparation menu. +3. Batch domain hub. +4. Kefir detail: overdue state and quick actions. +5. Kefir chronology or recent history. +6. Kefir comparison or archive reuse. +7. Starter detail and refresh. +8. Impasti list or bake detail. +9. Step detail and timeline shift. +10. Guide browse/search. +11. Guide article or contextual guide sheet. +12. Oggi all-clear or first-launch state. +13. Notification fallback/banner state if useful. + +Hero screen recommendation: + +- Use Oggi actionable agenda, Batch hub, Kefico detail, Guide browse, and new preparation menu. +- The hero should sell Batch as the fermented-products hub, not as a kefir-only or sourdough-only app. + +### 12 - Validation And Outcome + +Goal: close with evidence and honest limits. + +Use: + +- Build/run evidence from simulator. +- Unit/UI test summaries from planning phases. +- Completed UAT and regression evidence. +- Requirements coverage where useful. +- Residual risks. +- Lessons learned. + +Outcome framing: + +> Batch reached a reliable local-first hub model for fermented-product routines, with deterministic data, derived state, local notifications, bundled guides, and a visual system tied to operational meaning. + +--- + +## 6. Captured Runtime Assets + +Already captured from the real app with seeded operational data: + +- `docs/case-history/assets/runtime-01-oggi-actionable.jpg` +- `docs/case-history/assets/runtime-02-batch-hub.jpg` +- `docs/case-history/assets/runtime-03-guide-browse.jpg` +- `docs/case-history/assets/runtime-04-new-preparation-menu.jpg` +- `docs/case-history/assets/runtime-05-kefir-detail.jpg` + +Fresh simulator reference checked during this pass: + +- Oggi actionable state on `iPhone 15 Pro` simulator with `operational` seed. + +Provided external reference: + +- Current Kefico detail screenshot showing overdue detail, quick actions, recent history, and bottom nav. + +For final portfolio assets, recapture or export high-resolution screens and place them in polished device frames. Do not imply speculative redesign; use shipped app parity. + +--- + +## 7. Final Asset Checklist + +### Must-Have Screen Captures + +- [x] Oggi actionable state +- [x] Batch domain hub +- [x] Guide browse +- [x] New preparation menu +- [x] Kefir detail +- [ ] Kefir recent history / chronology +- [ ] Kefir comparison +- [ ] Kefir archive / derive-from-archive +- [ ] Starter detail +- [ ] Starter refresh sheet +- [ ] Impasti list +- [ ] Bake detail with step timeline +- [ ] Step detail sheet +- [ ] Shift timeline sheet +- [ ] Bake creation flow +- [ ] Guide article +- [ ] Oggi all-clear state +- [ ] Empty first-launch Oggi state +- [ ] Notification deep-link/fallback banner + +### Diagrams + +- [ ] Product positioning map: recipe archive vs fermented-products hub. +- [ ] Updated IA map: `Oggi / Batch / Guide`. +- [ ] Object model: `RecipeFormula`, `Bake`, `BakeStep`, `Starter`, `StarterRefresh`, `KefirBatch`, `KefirEvent`, `KnowledgeItem`. +- [ ] Oggi agenda priority model. +- [ ] Bake step execution state diagram. +- [ ] Timeline shift flow. +- [ ] Kefir batch lifecycle and event flow. +- [ ] Extensibility note: how another fermented product such as kombucha could enter the hub. +- [ ] Notification deep-link and fallback flow. + +### Written Blocks + +- [ ] One-line product promise. +- [ ] Problem statement. +- [ ] Role/scope/timeframe. +- [ ] Constraints matrix. +- [ ] Research approach note. +- [ ] Insight cards. +- [ ] Product principles. +- [ ] IA evolution note. +- [ ] State logic explanation. +- [ ] Extensibility note. +- [ ] Design-system rationale. +- [ ] Iteration before/after notes. +- [ ] Validation and residual risks. +- [ ] Reflection. + +### Visual Production + +- [ ] Device-frame compositions. +- [ ] Annotated screen callouts. +- [ ] Final 3 to 5 hero screens. +- [ ] Flow diagram visual style. +- [ ] Case-study thumbnail. +- [ ] Social preview crop. +- [ ] Portfolio page cover image. + +--- + +## 8. Recommended Portfolio Page Order + +1. Hero: Batch as the fermented-products hub. +2. The problem: fermented products need live attention, not static recipe screens. +3. Constraints: local-first, native iPhone, no backend. +4. Research approach: practice-led workflow modeling. +5. Key insight: the next action matters more than the recipe archive. +6. Product strategy: action-first, derived state, progressive disclosure, extensible domain hub. +7. IA evolution: from separate tabs to `Oggi / Batch / Guide`. +8. Core flows: create, execute, shift, renew, compare, learn. +9. State logic: why simple UI required careful modeling. +10. Design system: semantic color and operational cards. +11. Iterations: what changed through audits/UAT. +12. Final screens: guided storyboard. +13. Validation: build, tests, UAT evidence. +14. Reflection: what the project taught and what could extend next. + +--- + +## 9. FigJam Board Refinement Plan + +The board is readable and should be treated as a preparation canvas, not the published case itself. + +Update the board in this order: + +1. **Board Guide** + - Mark this document as the current source of truth. + - Add source statuses: runtime verified, board-derived, stale/before-state, needs capture. + +2. **Product Framing** + - Replace sourdough-only framing with fermented-products hub. + - Keep `not a recipe manager` as the sharp positioning line. + - Add the current coverage: lievito madre, impasti/baked products, kefir. + - Add extensibility note: future domains like kombucha are plausible if modeled around attention and state. + +3. **Research Framing** + - Keep practice-led research and narrow-sample honesty. + - Add simulator/runtime capture evidence and planning phase evidence. + +4. **Domain Workflow Map** + - Split into starter maintenance, impasti/baked-product preparation, kefir renewal/history. + - Add one shared lane: Oggi agenda prioritization. + +5. **Synthesis** + - Add cross-domain insight: different fermented products share the same operational attention need. + +6. **Product Strategy And Scope** + - Add `Oggi / Batch / Guide` as the major product-shell decision. + - Preserve local-first constraints. + - Mark kombucha as future extension, not current shipped scope. + +7. **Information Architecture** + - Update final IA to `Oggi / Batch / Guide`. + - Keep old `Oggi / Impasti / Starter / Knowledge` only as before-state/iteration evidence. + +8. **Core User Flows** + - Add new preparation selector. + - Add kefir chronology, archive, and comparison flows. + - Keep bake execution and timeline shift flows. + +9. **State Models** + - Add kefir event history and archive/read/derive behavior. + - Add cross-domain Oggi agenda ordering. + +10. **Design System Story** + - Use runtime screenshots to annotate color semantics and card anatomy. + - Add the Kefico detail as proof of red/green/neutral semantics in one screen. + +11. **Final Screen Storyboard** + - Replace planned screen groups with the current storyboard in section 5.11. + +12. **Production Backlog** + - Turn missing captures and diagrams into owner/status checklist. + +--- + +## 10. Confirmed Decisions + +- Final IA labels are Italian: `Oggi / Batch / Guide`. +- UAT is completed. +- The hero and overall showcase focus on Batch as a hub for tracking fermented products. +- Current product coverage: sourdough/lievito madre, baked products/impasti, kefir. +- Future extensibility: domains like kombucha can be added later, but are not current shipped scope. diff --git a/docs/case-history/product-design-showcase-content.md b/docs/case-history/product-design-showcase-content.md new file mode 100644 index 0000000..65c8f12 --- /dev/null +++ b/docs/case-history/product-design-showcase-content.md @@ -0,0 +1,681 @@ +# Batch Product Design Showcase Content + +**Purpose:** contenuti strutturati da inserire nello showcase pubblico di Batch per far emergere il lavoro da product designer, usando `docs/case-history/final-showcase-plan.md` come source of truth. + +**Pagina esistente analizzata:** `https://lorenzoboschi.it/it/progetti/batch` + +**Gap principale:** la pagina copre già concept, spiegazione generale, problema/soluzione e schermate finali. Mancano le prove di processo: ricerca, sintesi, decisioni di prodotto, architettura UX, modelli di stato, iterazioni, validazione e trade-off. + +--- + +## 1. Diagnosi Della Pagina Attuale + +### Già coperto + +- Intro prodotto: app nativa iPhone per preparazioni basate sulla fermentazione. +- Problema: strumenti esistenti troppo vicini a ricettari o community. +- Soluzione: app planner-first centrata sulla prossima cosa da fare. +- Concept visivo e schermate. +- Nota generale su UX/UI e sistema essenziale. +- Risultato finale. + +### Da aggiungere + +- Ruolo e responsabilità da product designer. +- Metodo di ricerca practice-led. +- Evidenza delle osservazioni e dei vincoli. +- Sintesi: insight, opportunità, principi. +- Architettura informativa aggiornata `Oggi / Batch / Guide`. +- Core flows e logica degli stati. +- Iterazioni progettuali e UAT. +- Validazione, limiti e prossimi sviluppi. + +### Da correggere nella pagina + +La sezione "Architettura dell'app" deve riflettere la IA finale: + +```text +Oggi +Batch +Guide +``` + +Evitare di descrivere la seconda area come `Fermentazioni`: nel caso finale `Batch` è l'hub dei domini operativi, con `Impasti`, `Starter`, `Kefir` e `Ricette`. + +--- + +## 2. Struttura Consigliata Dello Showcase + +Questa struttura mantiene la pagina già pubblicata, ma inserisce il lavoro UX/prodotto tra la spiegazione iniziale e la gallery finale. + +1. **Hero / Intro prodotto** + - Tenere ciò che esiste. + - Aggiungere metadati più forti: ruolo, piattaforma, scope, stato, vincoli. + +2. **Contesto e challenge** + - Tenere "Il problema", ma renderlo più specifico. + - Spiegare perché la fermentazione non è solo ricetta: è tempo, stato, interruzioni, manutenzione. + +3. **Ricerca e framing** + - Nuova sezione. + - Mostra come è stato compreso il dominio senza fingere una ricerca di mercato ampia. + +4. **Sintesi progettuale** + - Nuova sezione. + - Insight, opportunità, principi e decisioni di scope. + +5. **Architettura UX** + - Aggiornare la sezione IA esistente. + - Mostrare evoluzione da struttura frammentata a `Oggi / Batch / Guide`. + +6. **Flussi e modelli di stato** + - Nuova sezione. + - Dimostra che l'interfaccia semplice poggia su regole operative chiare. + +7. **Design system e interazione** + - Espandere la sezione UX/UI esistente. + - Legare colore, card, CTA e gerarchia al comportamento del prodotto. + +8. **Iterazione e validazione** + - Nuova sezione. + - Mostra maturità: cosa è cambiato dopo audit, UAT e regression pass. + +9. **Schermate finali guidate** + - Tenere le schermate, ma organizzarle come storyboard, non come gallery. + +10. **Outcome e riflessione** + - Tenere "Risultato", ma chiudere con evidenze, limiti e learnings. + +--- + +## 3. Blocchi Editoriali Pronti + +### 3.1 Ruolo E Scope + +**Titolo sezione:** Ruolo e responsabilità + +**Copy:** + +Ho seguito Batch come progetto end-to-end di product design e sviluppo iOS: dalla definizione del problema alla struttura dei flussi, dalla modellazione degli stati operativi fino alla UI nativa SwiftUI. Il lavoro non si è limitato alla resa visiva delle schermate: la parte centrale è stata trasformare routine fermentative reali in un sistema leggibile, affidabile e gestibile nel tempo. + +**Dati sintetici:** + +| Area | Scelta | +|---|---| +| Ruolo | Product design, UX/UI, iOS implementation | +| Piattaforma | iPhone native app | +| Lingua prodotto | Italiano-first | +| Persistenza | Locale, SwiftData | +| Notifiche | Locali, senza backend | +| Stato progetto | MVP personale/interno portfolio-ready | + +### 3.2 Vincoli Di Prodotto + +**Titolo sezione:** Vincoli che hanno guidato le decisioni + +**Copy:** + +Batch nasce come prodotto locale e personale, quindi molte decisioni sono state intenzionalmente restrittive: nessun account, nessun backend, nessuna community, nessuna automazione che completi gli step al posto dell'utente. Il valore doveva stare nella chiarezza operativa: sapere cosa richiede attenzione adesso, anche quando il piano originale cambia. + +**Constraint cards:** + +- **Local-first:** i dati restano sul dispositivo, con SwiftData. +- **No setup pesante:** niente account, onboarding esteso o cloud sync. +- **Affidabilità offline:** notifiche locali e contenuti guida in bundle. +- **iPhone-only:** interazione pensata per uso rapido, in cucina o durante una routine. +- **Italian-first:** etichette, seed data e guide allineate all'uso reale del prodotto. + +### 3.3 Ricerca Practice-Led + +**Titolo sezione:** Ricerca: modellare una pratica reale + +**Copy:** + +La ricerca è stata trattata come practice-led research: non una validazione di mercato ampia, ma un lavoro profondo sulla struttura operativa delle routine fermentative. Ho scomposto preparazioni, manutenzioni e momenti di controllo per capire dove una ricetta statica smette di essere utile e dove serve invece un sistema che riporti attenzione, priorità e stato. + +**Fonti usate:** + +- Esperienza diretta con lievito madre, impasti e kefir. +- Decomposizione dei workflow: piano, esecuzione, ritardi, rinnovi, cronologia. +- Product audit di strumenti adiacenti: ricettari, timer, note, app community. +- UAT e regression pass sui flussi principali. +- Scenari runtime deterministici in simulatore con dati operativi. + +**Nota di rigore da inserire:** + +Il caso non va presentato come una ricerca quantitativa o broad-market. La sua forza è la profondità del modello operativo: poche routine osservate bene, trasformate in regole di prodotto verificabili. + +### 3.4 Domande Di Ricerca + +**Titolo sezione:** Le domande che hanno orientato il progetto + +**Domande:** + +- Come può un'app dire chiaramente cosa richiede attenzione ora? +- Come separare il piano originale da quello che succede davvero durante l'esecuzione? +- Quando uno stato è un dato da salvare e quando è solo un'interpretazione UI? +- Come tenere insieme domini diversi, come impasti, starter e kefir, senza creare un generico archivio di ricette? +- In quali momenti la conoscenza è utile: prima, durante o dopo l'azione? + +### 3.5 Insight + +**Titolo sezione:** Dalle osservazioni alle decisioni + +**Insight cards:** + +1. **La domanda centrale non è "che ricetta uso?", ma "cosa devo fare adesso?"** + - Decisione: `Oggi` diventa agenda operativa cross-domain, non dashboard passiva. + +2. **Il piano e l'esecuzione reale devono restare separati.** + - Decisione: gli orari pianificati convivono con `actualStart` e `actualEnd`. + +3. **Un ritardo non è uno stato salvato, è una lettura del contesto.** + - Decisione: overdue/late è derivato in UI, non persistito come status. + +4. **I domini fermentativi condividono attenzione, ma non logica interna.** + - Decisione: `Batch` è un hub estensibile, ma impasti, starter e kefir mantengono modelli specifici. + +5. **La conoscenza serve quando supporta una decisione.** + - Decisione: `Guide` resta browse/search, ma può apparire come supporto contestuale nell'azione. + +6. **La fiducia nasce dagli edge case.** + - Decisione: notifiche, deep link, archiviazione e fallback visibili diventano parte dell'esperienza prodotto. + +### 3.6 Product Strategy + +**Titolo sezione:** Strategia di prodotto + +**Copy:** + +La strategia di Batch è stata ridurre il prodotto alla sua promessa più utile: rendere visibili e azionabili routine che cambiano nel tempo. Per questo il progetto evita funzioni attraenti ma dispersive, come community, AI suggestion o cloud sync, e concentra il design su priorità, stato, azione e continuità locale. + +**Principi:** + +- Action-first, non dashboard-first. +- Una sola azione primaria per card. +- Campi avanzati dietro progressive disclosure. +- Stati derivati dai dati, non duplicati. +- Modelli specifici per dominio. +- Guide a supporto dell'azione, non centro del prodotto. +- Estendibilità solo quando un nuovo dominio ha regole operative chiare. + +**Out of scope da mostrare:** + +- Backend e account. +- Cloud sync. +- Community/social. +- AI suggestions. +- Auto-completamento degli step. +- Ricettario generico. +- Kombucha nel perimetro attuale, anche se è una possibile estensione futura. + +--- + +## 4. Architettura UX + +### 4.1 IA Finale + +**Titolo sezione:** Architettura: da sezioni separate a hub operativo + +**Copy:** + +L'architettura iniziale separava i domini in aree autonome. La versione finale riduce la navigazione di primo livello a tre superfici: `Oggi`, `Batch` e `Guide`. Questo sposta il focus dalla categoria alla situazione: prima vedo cosa richiede attenzione, poi entro nel dominio specifico. + +```text +Oggi + Agenda operativa + Card per dominio + Stati empty / all-clear / future-only / actionable + Nuova preparazione + Supporto guide + +Batch + Impasti + Starter + Kefir + Ricette + +Guide + Browse + Categorie + Ricerca + Articoli + Supporto contestuale +``` + +**Prima / dopo:** + +| Prima | Dopo | Perché | +|---|---|---| +| `Oggi / Impasti / Starter / Knowledge` | `Oggi / Batch / Guide` | Meno frammentazione, più chiarezza sul ruolo di ogni area | +| Knowledge come tab tecnica | Guide come supporto leggibile | Etichetta italiana e più coerente con l'esperienza | +| Kefir come estensione secondaria | Kefir come dominio completo | Rinnovo, cronologia, archivio e confronto hanno logiche proprie | + +### 4.2 Oggetti E Relazioni + +**Titolo sezione:** Modellare il prodotto prima delle schermate + +**Copy:** + +Per evitare che Batch diventasse un archivio generico, il lavoro UX è partito dagli oggetti operativi: formula, preparazione, step, starter, rinnovo, batch di kefir, evento e guida. Ogni schermata espone solo una parte di questo modello, ma la coerenza nasce dalla relazione tra oggetti, stati e azioni. + +**Diagramma da produrre:** + +```text +RecipeFormula -> Bake -> BakeStep +Starter -> StarterRefresh +KefirBatch -> KefirEvent +KnowledgeItem -> relatedStepTypes / relatedStarterStates +``` + +**Annotazione chiave:** + +Le guide non sono ricette salvate dall'utente: sono contenuti bundled che aiutano a interpretare passaggi, stati e concetti nel momento giusto. + +--- + +## 5. Core Flows Da Mostrare + +### 5.1 Oggi Agenda + +**Goal:** mostrare il cuore del prodotto. + +**Flow:** + +```text +Apri Oggi +-> vedi cosa è in ritardo o richiede attenzione +-> apri la card del dominio +-> esegui l'azione primaria +-> torna a Oggi con priorità aggiornata +``` + +**Cosa evidenziare nelle callout:** + +- `Cosa fare oggi` come promessa della schermata. +- Card raggruppate per dominio, non per tipo tecnico. +- Priorità: overdue/critical, oggi, attivo, prossimo. +- CTA `Nuova preparazione` sempre raggiungibile. + +### 5.2 Nuova Preparazione + +**Goal:** mostrare l'hub estensibile senza sembrare generico. + +**Flow:** + +```text +Nuova preparazione +-> scegli dominio +-> impasto / starter / kefir +-> entra nel flow specifico +``` + +**Decisione UX:** + +Il selettore non è una lista di ricette. È un punto di ingresso ai diversi modelli operativi del prodotto. + +### 5.3 Esecuzione Impasto + +**Goal:** dimostrare la separazione tra piano ed esecuzione. + +**Flow:** + +```text +Crea preparazione da formula +-> timeline generata a ritroso dalla data target +-> step pending +-> start +-> complete / skip +-> eventuale shift della timeline +``` + +**Regole da annotare:** + +- Gli step non si completano mai da soli. +- `actualStart` e `actualEnd` sono separati dalla pianificazione. +- Lo shift sposta solo step futuri e non terminali. + +### 5.4 Starter Refresh + +**Goal:** mostrare una routine frequente e veloce. + +**Flow:** + +```text +Starter due / overdue +-> apri dettaglio +-> log rinfresco +-> aggiorna lastRefresh +-> ricalcola prossimo stato +``` + +**Decisione UX:** + +Il refresh deve essere più rapido di un form completo: i dettagli avanzati restano secondari. + +### 5.5 Kefir Renewal, History, Archive + +**Goal:** mostrare che Batch non è sourdough-only. + +**Flow:** + +```text +Kefico overdue +-> Rinfresca +-> evento registrato +-> cronologia aggiornata +-> eventuale nuovo batch derivato +-> archivio consultabile +-> confronto tra batch collegati +``` + +**Decisione UX:** + +La cronologia kefir è automatic-first: l'utente non deve tenere un diario manuale per avere memoria operativa. + +### 5.6 Guide Lookup + +**Goal:** posizionare le guide come supporto, non come centro dell'app. + +**Flow:** + +```text +Guide +-> categorie / ricerca +-> articolo +-> eventuale richiamo contestuale da un'azione +``` + +**Decisione UX:** + +Il contenuto editoriale aumenta fiducia quando risponde a un dubbio operativo, non quando obbliga l'utente a navigare prima di agire. + +### 5.7 Notifiche E Deep Link + +**Goal:** mostrare prodotto affidabile. + +**Flow:** + +```text +Notifica locale +-> tap +-> validazione entità live +-> dettaglio corretto +-> fallback visibile se l'oggetto non esiste più o non è raggiungibile +``` + +**Decisione UX:** + +La notifica non è solo un reminder: è un punto di ingresso nel modello operativo. Per questo il routing deve gestire oggetti mancanti, archiviati o terminali. + +--- + +## 6. Modelli Di Stato Da Visualizzare + +### 6.1 Priorità Di Oggi + +```text +1. Overdue / critical +2. Azioni previste oggi +3. Elementi attivi +4. Prossime azioni future +5. Supporto guide +``` + +**Copy breve:** + +Oggi non ordina semplicemente per data: traduce stato, dominio e urgenza in una gerarchia di attenzione. + +### 6.2 Step Lifecycle + +```text +pending -> running -> done +pending -> skipped +running -> skipped +``` + +**Regola:** + +Il tempo può rendere uno step in ritardo, ma non può completarlo. Il controllo resta all'utente. + +### 6.3 Bake Derived Status + +```text +cancelled: isCancelled == true +completed: tutti gli step sono done/skipped +in_progress: almeno uno step running o actualStart presente +planned: fallback +``` + +**Regola:** + +Lo stato del bake si deriva dagli step e dai fatti salvati, evitando ridondanze che potrebbero divergere. + +### 6.4 Kefir State + +```text +lastManagedAt +storageMode +expectedInterval +plannedReactivation +archivedAt +events +``` + +**Regola:** + +Il batch di kefir resta leggibile anche dopo l'archiviazione e può generare nuovi batch derivati. + +--- + +## 7. Design System Story + +### Titolo Sezione + +Un sistema visivo legato al comportamento + +### Copy + +Il design system di Batch non cerca un'estetica rustica o laboratoriale. Usa un linguaggio nativo iOS, chiaro e leggero, dove colore, spaziatura e gerarchia indicano cosa fare, cosa è passato e cosa richiede attenzione. + +### Semantica + +| Colore | Significato | Uso | +|---|---|---| +| Verde | Azione, piano, attività corrente | CTA, stati attivi, percorsi primari | +| Neutro | Storico, archivio, secondario | Card passate, informazioni, azioni non primarie | +| Rosso | Ritardo, problema, rischio | Overdue, destructive, feedback ad alta priorità | + +### Componenti Da Annotare + +- **Oggi hero card:** promessa e conteggio agenda. +- **Operational card:** dominio, stato, orario, descrizione, azione primaria. +- **State badge:** stato leggibile a colpo d'occhio. +- **Batch hub tile:** dominio + sintesi operativa. +- **Kefir metric tiles:** stato, ultimo rinnovo, prossima azione. +- **Quick actions:** azioni secondarie senza competere con `Rinfresca`. +- **Guide row/search:** contenuto leggero, non editoriale invasivo. + +### Principio UI Da Evidenziare + +Ogni card deve avere una sola azione primaria visibile. Tutto il resto entra in dettaglio, sheet o azioni secondarie. + +--- + +## 8. Iterazioni Da Raccontare + +Usare 3-5 esempi, non tutta la roadmap. + +### Esempio 1 - Oggi Da Dashboard A Agenda + +**Prima:** una home troppo statica, utile per vedere informazioni ma non abbastanza forte nel dire cosa fare. + +**Dopo:** `Oggi` diventa agenda cross-domain con priorità, card operative e ingresso rapido alla nuova preparazione. + +**Perché conta:** il prodotto passa da archivio organizzato a strumento operativo. + +### Esempio 2 - IA Da Domini Separati A Hub + +**Prima:** `Oggi / Impasti / Starter / Knowledge`. + +**Dopo:** `Oggi / Batch / Guide`. + +**Perché conta:** il secondo tab non è una categoria singola, ma il contenitore dei batch e delle routine fermentative. + +### Esempio 3 - Kefir Da Placeholder A Dominio + +**Prima:** kefir trattato come rinnovo o estensione. + +**Dopo:** batch detail, rinnovo, cronologia, archivio e confronto. + +**Perché conta:** dimostra che l'architettura può accogliere nuovi domini senza diventare generica. + +### Esempio 4 - Stato Derivato E Fiducia + +**Prima:** rischio di stati salvati o routing fragile. + +**Dopo:** overdue derivato in UI, validazione entità live, fallback visibili nei deep link. + +**Perché conta:** l'affidabilità è parte dell'esperienza, non solo implementazione. + +### Esempio 5 - Design System Hardening + +**Prima:** componenti e stati non sempre allineati alla semantica operativa. + +**Dopo:** verde/neutro/rosso legati a comportamento, card e CTA coerenti, parità runtime/portfolio. + +**Perché conta:** il sistema visivo diventa una grammatica di prodotto. + +--- + +## 9. Validazione E Outcome + +### Titolo Sezione + +Validare un prodotto locale-first + +### Copy + +La validazione di Batch ha combinato test automatici, scenari runtime deterministici e passaggi UAT sui flussi principali. L'obiettivo non era solo verificare che le schermate fossero corrette, ma che il prodotto restasse affidabile quando cambiano tempo, stato, notifiche e dati salvati. + +### Evidenze Da Mostrare + +- App avviata in simulatore con seed `operational`. +- Schermate runtime catturate dalla build reale. +- UAT completata sui flow principali. +- Regression pass su Today, routing, notifiche, kefir e design-system parity. +- Test su planner, modelli di stato, routing e flussi UI dove rilevante. + +### Outcome + +Batch ha raggiunto un modello local-first affidabile per routine fermentative: dati persistenti, stati derivati, notifiche locali, guide offline e un sistema visivo legato al significato operativo. + +### Limiti Onesti + +- Progetto personale/interno, non ricerca quantitativa di mercato. +- iPhone-only per scelta di scope. +- Nessun sync cloud nel perimetro attuale. +- Kombucha e altri domini sono estensioni possibili, non parte dello scope spedito. +- Le notifiche locali richiedono sempre verifica su device reale prima di distribuzione ampia. + +--- + +## 10. Asset Da Produrre Per Rendere Il Caso Solido + +### Priorità Alta + +- Diagramma IA `Oggi / Batch / Guide`. +- Oggi priority model. +- Flow `Nuova preparazione -> dominio -> azione`. +- State diagram `BakeStep`. +- Kefir lifecycle: rinnovo, evento, archivio, derivazione, confronto. +- Annotazioni su `runtime-01-oggi-actionable.jpg`. +- Annotazioni su `runtime-05-kefir-detail.jpg`. + +### Priorità Media + +- Object model `RecipeFormula / Bake / BakeStep / Starter / KefirBatch / KefirEvent / KnowledgeItem`. +- Timeline shift flow. +- Deep-link fallback matrix. +- Before/after IA. +- Design-system component anatomy. + +### Screenshot Mancanti Più Utili + +- Kefir chronology. +- Kefir comparison. +- Starter detail + refresh. +- Bake detail with timeline. +- Step detail + shift timeline sheet. +- Guide article. +- Notification fallback/banner. + +--- + +## 11. Microcopy Per Callout Schermate + +### Oggi + +- "La home non mostra tutto: ordina ciò che richiede attenzione." +- "Le card sono raggruppate per dominio, ma priorizzate per urgenza." +- "`Nuova preparazione` resta un ingresso rapido, non un percorso nascosto." + +### Batch Hub + +- "`Batch` raccoglie domini diversi senza appiattirli in un ricettario." +- "Impasti, Starter, Kefir e Ricette mantengono modelli specifici." +- "La struttura può estendersi ad altri fermentati solo quando hanno regole operative chiare." + +### Kefico Detail + +- "Lo stato overdue è una lettura derivata, non un valore salvato." +- "`Rinfresca` è l'azione primaria; cronologia, confronto e archivio restano secondari." +- "Metriche e azioni rapide rendono leggibile una routine ricorrente." + +### Guide + +- "Le guide supportano il momento operativo, non sostituiscono l'azione." +- "Categorie e search servono a recuperare conoscenza senza trasformare l'app in enciclopedia." + +### New Preparation + +- "Il selettore apre domini operativi, non semplici template." +- "Ogni dominio porta a un flow coerente con la sua routine." + +--- + +## 12. Cosa Evitare Nel Caso Finale + +- Non presentare Batch come app solo per lievito madre. +- Non usare `Knowledge` come label finale: usare `Guide`. +- Non usare `Fermentazioni` come tab finale se la UI shipped usa `Batch`. +- Non promettere kombucha come feature attuale. +- Non posizionare il progetto come ricerca quantitativa o validazione market-wide. +- Non mettere le schermate prima del ragionamento UX se l'obiettivo è un case da product designer. +- Non descrivere overdue come status salvato. +- Non suggerire auto-completamento degli step. + +--- + +## 13. Inserimento Nella Pagina Esistente + +### Dove Inserire + +1. Dopo "Il Progetto": aggiungere ruolo/scope/vincoli. +2. Dopo "Il problema": aggiungere ricerca practice-led e domande di ricerca. +3. Dopo "La soluzione": aggiungere insight e product strategy. +4. Sostituire "Architettura dell'app" con IA aggiornata + before/after. +5. Espandere "UX/UI" in design system + interaction principles. +6. Prima di "Risultato": aggiungere iterazione/UAT e validazione. + +### Titoli Raccomandati + +- `Il lavoro di product design` +- `Ricerca e definizione del problema` +- `Insight e principi di prodotto` +- `Architettura UX` +- `Flussi, stati e regole operative` +- `Sistema visivo` +- `Iterazioni e validazione` +- `Risultato e limiti` + diff --git a/docs/content/formulas/pizza-in-giornata.md b/docs/content/formulas/pizza-in-giornata.md index 2dc8b71..8669bef 100644 --- a/docs/content/formulas/pizza-in-giornata.md +++ b/docs/content/formulas/pizza-in-giornata.md @@ -32,7 +32,7 @@ bake_type: pizza-tonda - 230 g salsa di pomodoro - 200 g mozzarella -- 50 g salame piccante +- Condimento a piacere ## Starter prep @@ -84,7 +84,7 @@ bake_type: pizza-tonda - Stendi i panetti con le dita. - Condisci con salsa di pomodoro, mozzarella e olio. - Inforna alla massima potenza nella parte bassa del forno per circa 10 minuti. -- Aggiungi il salame piccante. +- Aggiungi il condimento. - Sposta la pizza nella parte alta del forno per altri 2 minuti. - Servi subito. diff --git a/docs/knowledge-export/README.md b/docs/knowledge-export/README.md new file mode 100644 index 0000000..757a329 --- /dev/null +++ b/docs/knowledge-export/README.md @@ -0,0 +1,38 @@ +# Batch Knowledge Export + +Questa cartella contiene una copia Markdown esterna della knowledge base usata dall'app Batch. + +## File principali + +- [Knowledge base completa](knowledge-base-completa.md) +- [Sorgente editoriale completa](source-editoriale-completa.md) +- [Articoli singoli](items/) + +## Origine + +- App runtime: `Levain/Resources/knowledge.json` +- Sorgente editoriale: `docs/levain-knowledge.md` + +Articoli runtime esportati: **8**. + +## Articoli per categoria + +### Baker's math + +- [Baker's math e idratazione](items/bakers-math.md) — `bakers-math` + +### Fermentazione + +- [Bulk fermentation](items/bulk-fermentation-basics.md) — `bulk-fermentation-basics` +- [Formatura e preforma](items/shaping-guide.md) — `shaping-guide` +- [Cold retard](items/cold-retard-guide.md) — `cold-retard-guide` + +### Starter + +- [Basi del lievito madre](items/starter-basics.md) — `starter-basics` +- [Manutenzione starter in frigo](items/starter-maintenance-fridge.md) — `starter-maintenance-fridge` +- [Recuperare uno starter pigro](items/starter-recovery.md) — `starter-recovery` + +### Troubleshooting + +- [Problemi comuni e soluzioni](items/common-problems.md) — `common-problems` diff --git a/docs/knowledge-export/items/bakers-math.md b/docs/knowledge-export/items/bakers-math.md new file mode 100644 index 0000000..9062ccd --- /dev/null +++ b/docs/knowledge-export/items/bakers-math.md @@ -0,0 +1,34 @@ +--- +id: "bakers-math" +title: "Baker's math e idratazione" +category: "bakerMath" +tags: ["percentuale", "idratazione", "calcolo"] +aliases: [] +relatedStepTypes: ["mix"] +relatedStarterStates: [] +source: "Levain/Resources/knowledge.json" +--- + +# Baker's math e idratazione + +**ID:** `bakers-math` +**Categoria:** `bakerMath` + +**Tag:** `percentuale`, `idratazione`, `calcolo` + +## Sintesi + +Come usare la baker's percentage per calcolare e scalare le ricette. + +## Contenuto + +Nella baker's math la farina totale è sempre 100%. Tutti gli altri ingredienti sono espressi come percentuale della farina. Formula: (peso ingrediente ÷ peso farina) × 100. Idratazioni tipiche: 65–72% per sourdough artigianale, 75–85% per focaccia e ciabatta. Il sale è tipicamente al 2%, l'inoculazione (starter) tra il 10% e il 20%. + +## Collegamenti app + +- Step collegati: `mix` +- Stati starter collegati: nessuno + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/bulk-fermentation-basics.md b/docs/knowledge-export/items/bulk-fermentation-basics.md new file mode 100644 index 0000000..c81f02e --- /dev/null +++ b/docs/knowledge-export/items/bulk-fermentation-basics.md @@ -0,0 +1,34 @@ +--- +id: "bulk-fermentation-basics" +title: "Bulk fermentation" +category: "fermentation" +tags: ["bulk", "fermentazione", "temperatura"] +aliases: [] +relatedStepTypes: ["bulk", "fold"] +relatedStarterStates: [] +source: "Levain/Resources/knowledge.json" +--- + +# Bulk fermentation + +**ID:** `bulk-fermentation-basics` +**Categoria:** `fermentation` + +**Tag:** `bulk`, `fermentazione`, `temperatura` + +## Sintesi + +Come leggere e gestire la bulk fermentation per un impasto ben sviluppato. + +## Contenuto + +La bulk fermentation è la fase di lievitazione principale dopo l'impasto. L'impasto è pronto quando è aumentato del 50–75%, è ben aerato e si stacca pulito dalle pareti del contenitore. La temperatura incide molto: a 24 °C la bulk dura 4–5 ore, a 22 °C circa 6–7 ore. Durante questa fase si eseguono le pieghe (stretch & fold) per rinforzare la struttura del glutine. + +## Collegamenti app + +- Step collegati: `bulk`, `fold` +- Stati starter collegati: nessuno + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/cold-retard-guide.md b/docs/knowledge-export/items/cold-retard-guide.md new file mode 100644 index 0000000..b2c5267 --- /dev/null +++ b/docs/knowledge-export/items/cold-retard-guide.md @@ -0,0 +1,34 @@ +--- +id: "cold-retard-guide" +title: "Cold retard" +category: "fermentation" +tags: ["frigo", "retarder", "sapore"] +aliases: [] +relatedStepTypes: ["coldRetard", "proof"] +relatedStarterStates: [] +source: "Levain/Resources/knowledge.json" +--- + +# Cold retard + +**ID:** `cold-retard-guide` +**Categoria:** `fermentation` + +**Tag:** `frigo`, `retarder`, `sapore` + +## Sintesi + +Come e perché usare il frigo durante la lievitazione finale. + +## Contenuto + +Il cold retard (lievitazione finale in frigo a 4–6 °C) sviluppa sapore e facilita il taglio grazie all'impasto freddo e compatto. La finestra è tipicamente tra le 12 e le 48 ore. Un impasto ben formato e non sovralievitato prima dell'ingresso in frigo darà risultati migliori. Si può infornare direttamente dal frigo senza bisogno di riportare a temperatura. + +## Collegamenti app + +- Step collegati: `coldRetard`, `proof` +- Stati starter collegati: nessuno + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/common-problems.md b/docs/knowledge-export/items/common-problems.md new file mode 100644 index 0000000..09ef5b8 --- /dev/null +++ b/docs/knowledge-export/items/common-problems.md @@ -0,0 +1,34 @@ +--- +id: "common-problems" +title: "Problemi comuni e soluzioni" +category: "troubleshooting" +tags: ["troubleshooting", "crosta", "mollica", "pane piatto"] +aliases: [] +relatedStepTypes: ["bake"] +relatedStarterStates: ["overdue"] +source: "Levain/Resources/knowledge.json" +--- + +# Problemi comuni e soluzioni + +**ID:** `common-problems` +**Categoria:** `troubleshooting` + +**Tag:** `troubleshooting`, `crosta`, `mollica`, `pane piatto` + +## Sintesi + +Diagnosi e soluzioni per i problemi più frequenti nella panificazione con lievito madre. + +## Contenuto + +Pane piatto: starter non abbastanza attivo oppure sovralievitazione. Mollica troppo fitta: underproofing (lievitazione insufficiente) o farina debole. Crosta troppo spessa: temperatura forno troppo alta o cottura troppo lunga senza vapore. Acidità eccessiva: bulk troppo lunga o temperatura troppo alta. Taglio che non apre: tensione superficiale insufficiente nella formatura o lama non abbastanza affilata. + +## Collegamenti app + +- Step collegati: `bake` +- Stati starter collegati: `overdue` + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/shaping-guide.md b/docs/knowledge-export/items/shaping-guide.md new file mode 100644 index 0000000..a9ae792 --- /dev/null +++ b/docs/knowledge-export/items/shaping-guide.md @@ -0,0 +1,34 @@ +--- +id: "shaping-guide" +title: "Formatura e preforma" +category: "fermentation" +tags: ["formatura", "tensione", "bench rest"] +aliases: [] +relatedStepTypes: ["preshape", "benchRest", "shape"] +relatedStarterStates: [] +source: "Levain/Resources/knowledge.json" +--- + +# Formatura e preforma + +**ID:** `shaping-guide` +**Categoria:** `fermentation` + +**Tag:** `formatura`, `tensione`, `bench rest` + +## Sintesi + +Tecniche di preforma e formatura per costruire tensione superficiale. + +## Contenuto + +La preforma crea una tensione iniziale e dà all'impasto una struttura temporanea prima del bench rest. Dopo 20–30 minuti di riposo, la formatura finale costruisce la tensione superficiale necessaria per trattenere i gas durante la lievitazione finale. Un buon filo di tensione si vede dalla superficie liscia e leggermente tesa del pane formato. + +## Collegamenti app + +- Step collegati: `preshape`, `benchRest`, `shape` +- Stati starter collegati: nessuno + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/starter-basics.md b/docs/knowledge-export/items/starter-basics.md new file mode 100644 index 0000000..3bab88b --- /dev/null +++ b/docs/knowledge-export/items/starter-basics.md @@ -0,0 +1,34 @@ +--- +id: "starter-basics" +title: "Basi del lievito madre" +category: "starter" +tags: ["starter", "rinfresco", "manutenzione"] +aliases: [] +relatedStepTypes: ["starterRefresh"] +relatedStarterStates: ["ok", "dueToday"] +source: "Levain/Resources/knowledge.json" +--- + +# Basi del lievito madre + +**ID:** `starter-basics` +**Categoria:** `starter` + +**Tag:** `starter`, `rinfresco`, `manutenzione` + +## Sintesi + +Cos'è lo starter, come funziona e i segnali di uno starter sano. + +## Contenuto + +Lo starter è un impasto di farina e acqua fermentato in modo continuo, che ospita lieviti e batteri lattici in equilibrio stabile. La sua forza dipende da: regolarità dei rinfreschi, temperatura di conservazione, rapporto di rinfresco (es. 1:4:4) e tipo di farina usata. Dovrebbe raddoppiare o quasi entro 4–8 ore dopo un rinfresco. Segnali positivi: molte bolle diffuse, superficie leggermente bombata, odore lattico/fruttato, consistenza aerata. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `ok`, `dueToday` + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/starter-maintenance-fridge.md b/docs/knowledge-export/items/starter-maintenance-fridge.md new file mode 100644 index 0000000..a95ae24 --- /dev/null +++ b/docs/knowledge-export/items/starter-maintenance-fridge.md @@ -0,0 +1,34 @@ +--- +id: "starter-maintenance-fridge" +title: "Manutenzione starter in frigo" +category: "starter" +tags: ["frigo", "conservazione", "rinfresco"] +aliases: [] +relatedStepTypes: ["starterRefresh"] +relatedStarterStates: ["dueToday", "overdue"] +source: "Levain/Resources/knowledge.json" +--- + +# Manutenzione starter in frigo + +**ID:** `starter-maintenance-fridge` +**Categoria:** `starter` + +**Tag:** `frigo`, `conservazione`, `rinfresco` + +## Sintesi + +Come conservare e rinfrescare lo starter in frigorifero. + +## Contenuto + +Conservare lo starter in frigo a 4–8 °C rallentera la fermentazione. Fai un rinfresco con rapporto alto (es. 1:4:4), lascialo partire un po' a temperatura ambiente, poi mettilo in frigo. Ripeti ogni 5–7 giorni circa. Prima di un bake importante, fai 1–2 rinfreschi a temperatura ambiente per riportarlo in piena forma. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `dueToday`, `overdue` + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/items/starter-recovery.md b/docs/knowledge-export/items/starter-recovery.md new file mode 100644 index 0000000..dfde7ac --- /dev/null +++ b/docs/knowledge-export/items/starter-recovery.md @@ -0,0 +1,34 @@ +--- +id: "starter-recovery" +title: "Recuperare uno starter pigro" +category: "starter" +tags: ["recupero", "attività", "troubleshooting"] +aliases: [] +relatedStepTypes: ["starterRefresh"] +relatedStarterStates: ["overdue"] +source: "Levain/Resources/knowledge.json" +--- + +# Recuperare uno starter pigro + +**ID:** `starter-recovery` +**Categoria:** `starter` + +**Tag:** `recupero`, `attività`, `troubleshooting` + +## Sintesi + +Come riattivare uno starter che cresce lentamente o mostra segni di stanchezza. + +## Contenuto + +Aumenta temporaneamente la temperatura (22–26 °C). Fai rinfreschi più frequenti per alcuni giorni. Integra una quota di farina integrale o di segale (25–50%) per stimolare l'attività. Usa acqua leggermente tiepida, evitando temperature troppo alte. Se compare il 'hooch' (strato liquido in superficie), è un segnale di acidità alta: scarta parte dello starter e rinfresca con più farina. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `overdue` + +--- + +[Torna all'indice](../README.md) diff --git a/docs/knowledge-export/knowledge-base-completa.md b/docs/knowledge-export/knowledge-base-completa.md new file mode 100644 index 0000000..5c30474 --- /dev/null +++ b/docs/knowledge-export/knowledge-base-completa.md @@ -0,0 +1,201 @@ +# Batch Knowledge Base completa + +Export Markdown della knowledge base caricata dall'app da `Levain/Resources/knowledge.json`. + +- Articoli esportati: 8 +- Formato: un articolo per sezione, con metadati app preservati +- Nota: il testo e i campi sono copiati dal JSON runtime senza correzioni editoriali + +--- + +## 1. Basi del lievito madre + + + +**ID:** `starter-basics` +**Categoria:** `starter` + +**Tag:** `starter`, `rinfresco`, `manutenzione` + +## Sintesi + +Cos'è lo starter, come funziona e i segnali di uno starter sano. + +## Contenuto + +Lo starter è un impasto di farina e acqua fermentato in modo continuo, che ospita lieviti e batteri lattici in equilibrio stabile. La sua forza dipende da: regolarità dei rinfreschi, temperatura di conservazione, rapporto di rinfresco (es. 1:4:4) e tipo di farina usata. Dovrebbe raddoppiare o quasi entro 4–8 ore dopo un rinfresco. Segnali positivi: molte bolle diffuse, superficie leggermente bombata, odore lattico/fruttato, consistenza aerata. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `ok`, `dueToday` + +--- + +## 2. Manutenzione starter in frigo + + + +**ID:** `starter-maintenance-fridge` +**Categoria:** `starter` + +**Tag:** `frigo`, `conservazione`, `rinfresco` + +## Sintesi + +Come conservare e rinfrescare lo starter in frigorifero. + +## Contenuto + +Conservare lo starter in frigo a 4–8 °C rallentera la fermentazione. Fai un rinfresco con rapporto alto (es. 1:4:4), lascialo partire un po' a temperatura ambiente, poi mettilo in frigo. Ripeti ogni 5–7 giorni circa. Prima di un bake importante, fai 1–2 rinfreschi a temperatura ambiente per riportarlo in piena forma. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `dueToday`, `overdue` + +--- + +## 3. Recuperare uno starter pigro + + + +**ID:** `starter-recovery` +**Categoria:** `starter` + +**Tag:** `recupero`, `attività`, `troubleshooting` + +## Sintesi + +Come riattivare uno starter che cresce lentamente o mostra segni di stanchezza. + +## Contenuto + +Aumenta temporaneamente la temperatura (22–26 °C). Fai rinfreschi più frequenti per alcuni giorni. Integra una quota di farina integrale o di segale (25–50%) per stimolare l'attività. Usa acqua leggermente tiepida, evitando temperature troppo alte. Se compare il 'hooch' (strato liquido in superficie), è un segnale di acidità alta: scarta parte dello starter e rinfresca con più farina. + +## Collegamenti app + +- Step collegati: `starterRefresh` +- Stati starter collegati: `overdue` + +--- + +## 4. Bulk fermentation + + + +**ID:** `bulk-fermentation-basics` +**Categoria:** `fermentation` + +**Tag:** `bulk`, `fermentazione`, `temperatura` + +## Sintesi + +Come leggere e gestire la bulk fermentation per un impasto ben sviluppato. + +## Contenuto + +La bulk fermentation è la fase di lievitazione principale dopo l'impasto. L'impasto è pronto quando è aumentato del 50–75%, è ben aerato e si stacca pulito dalle pareti del contenitore. La temperatura incide molto: a 24 °C la bulk dura 4–5 ore, a 22 °C circa 6–7 ore. Durante questa fase si eseguono le pieghe (stretch & fold) per rinforzare la struttura del glutine. + +## Collegamenti app + +- Step collegati: `bulk`, `fold` +- Stati starter collegati: nessuno + +--- + +## 5. Baker's math e idratazione + + + +**ID:** `bakers-math` +**Categoria:** `bakerMath` + +**Tag:** `percentuale`, `idratazione`, `calcolo` + +## Sintesi + +Come usare la baker's percentage per calcolare e scalare le ricette. + +## Contenuto + +Nella baker's math la farina totale è sempre 100%. Tutti gli altri ingredienti sono espressi come percentuale della farina. Formula: (peso ingrediente ÷ peso farina) × 100. Idratazioni tipiche: 65–72% per sourdough artigianale, 75–85% per focaccia e ciabatta. Il sale è tipicamente al 2%, l'inoculazione (starter) tra il 10% e il 20%. + +## Collegamenti app + +- Step collegati: `mix` +- Stati starter collegati: nessuno + +--- + +## 6. Formatura e preforma + + + +**ID:** `shaping-guide` +**Categoria:** `fermentation` + +**Tag:** `formatura`, `tensione`, `bench rest` + +## Sintesi + +Tecniche di preforma e formatura per costruire tensione superficiale. + +## Contenuto + +La preforma crea una tensione iniziale e dà all'impasto una struttura temporanea prima del bench rest. Dopo 20–30 minuti di riposo, la formatura finale costruisce la tensione superficiale necessaria per trattenere i gas durante la lievitazione finale. Un buon filo di tensione si vede dalla superficie liscia e leggermente tesa del pane formato. + +## Collegamenti app + +- Step collegati: `preshape`, `benchRest`, `shape` +- Stati starter collegati: nessuno + +--- + +## 7. Cold retard + + + +**ID:** `cold-retard-guide` +**Categoria:** `fermentation` + +**Tag:** `frigo`, `retarder`, `sapore` + +## Sintesi + +Come e perché usare il frigo durante la lievitazione finale. + +## Contenuto + +Il cold retard (lievitazione finale in frigo a 4–6 °C) sviluppa sapore e facilita il taglio grazie all'impasto freddo e compatto. La finestra è tipicamente tra le 12 e le 48 ore. Un impasto ben formato e non sovralievitato prima dell'ingresso in frigo darà risultati migliori. Si può infornare direttamente dal frigo senza bisogno di riportare a temperatura. + +## Collegamenti app + +- Step collegati: `coldRetard`, `proof` +- Stati starter collegati: nessuno + +--- + +## 8. Problemi comuni e soluzioni + + + +**ID:** `common-problems` +**Categoria:** `troubleshooting` + +**Tag:** `troubleshooting`, `crosta`, `mollica`, `pane piatto` + +## Sintesi + +Diagnosi e soluzioni per i problemi più frequenti nella panificazione con lievito madre. + +## Contenuto + +Pane piatto: starter non abbastanza attivo oppure sovralievitazione. Mollica troppo fitta: underproofing (lievitazione insufficiente) o farina debole. Crosta troppo spessa: temperatura forno troppo alta o cottura troppo lunga senza vapore. Acidità eccessiva: bulk troppo lunga o temperatura troppo alta. Taglio che non apre: tensione superficiale insufficiente nella formatura o lama non abbastanza affilata. + +## Collegamenti app + +- Step collegati: `bake` +- Stati starter collegati: `overdue` + +--- diff --git a/docs/knowledge-export/source-editoriale-completa.md b/docs/knowledge-export/source-editoriale-completa.md new file mode 100644 index 0000000..c2120e6 --- /dev/null +++ b/docs/knowledge-export/source-editoriale-completa.md @@ -0,0 +1,261 @@ +# Batch Knowledge Base + +Questa knowledge base è pensata per essere integrata nell’app come sorgente di suggerimenti statici (non generati da AI) su gestione starter, tempi, roadmap di lievitazione, baker’s math e troubleshooting. I contenuti sono sintetizzati e rielaborati a partire da guide autorevoli su sourdough e panificazione artigianale.[web:20][web:23][web:28][web:36][web:39][web:41][web:44][web:45] + +--- + +## 1. Basi di lievito madre (starter) + +### 1.1 Cos’è lo starter + +- Lo starter è un impasto di farina e acqua fermentato in modo continuo, che ospita lieviti e batteri lattici in equilibrio stabile. +- La sua forza dipende da: + - regolarità dei rinfreschi, + - temperatura di conservazione, + - rapporto di rinfresco (es. 1:4:4), + - tipo di farina usata.[web:20][web:23] + +### 1.2 Obiettivo di uno starter sano + +- Dovrebbe **raddoppiare o quasi** entro 4–8 ore dopo un rinfresco, in base a temperatura e idratazione.[web:20][web:42] +- Segnali positivi: + - molte bolle diffuse, + - superficie leggermente bombata, + - odore lattico/fruttato, non solo acido pungente, + - consistenza aerata, non liquida e collassata.[web:23] + +### 1.3 Segnali di starter in difficoltà + +- Raddoppio molto lento (oltre 10–12 ore nelle stesse condizioni). +- Poche bolle, profilo piatto, odore di farina cruda o acidità eccessiva. +- Strato liquido in superficie ("hooch") dopo lunghi periodi di inattività: indica acidità alta e fame di alimento, ma di solito è recuperabile con più rinfreschi.[web:23][web:20] + +--- + +## 2. Gestione e manutenzione dello starter + +### 2.1 Parametri chiave di gestione + +- **Rapporto di rinfresco (starter : farina : acqua)** + - Rapporti ricorrenti: 1:1:1 (più veloce), 1:2:2, 1:4:4 (più lento e stabile).[web:20] + - Rapporti più alti di farina/acqua rallentano la maturazione e stabilizzano lo starter, utili per routine meno frequenti. +- **Temperatura** + - Più caldo → starter matura prima, ma accumula acidità più in fretta. + - Più freddo (frigo o celle intorno a 7–12 °C) → fermentazione rallentata, adatta a rinfreschi ogni 3–7 giorni.[web:20][web:38] +- **Tipo di farina** + - Farine integrali o di segale aumentano attività e acidità. + - Farine raffinate danno profilo più delicato e prevedibile.[web:20][web:23] + +### 2.2 Routine frequenti (uso quasi quotidiano) + +- Obiettivo: starter sempre attivo a temperatura ambiente. +- Esempio di schema (ispirato a pratiche diffuse): + - T intorno a 20–23 °C. + - Rapporto 1:4:4 o simile, un rinfresco ogni 24 ore.[web:20][web:23] +- Per chi cuoce più volte a settimana, alcuni panificatori fanno **2 rinfreschi al giorno** a temperatura ambiente per tenere l’attività al massimo.[web:23] + +### 2.3 Routine meno frequenti (uso settimanale) + +- Obiettivo: ridurre i rinfreschi mantenendo lo starter pronto nel giro di 1–2 rinfreschi di riattivazione. +- Strategia comune: + - Conservare lo starter in frigo a 4–8 °C. + - Fare un rinfresco con rapporto alto (es. 1:4:4 o simile), lasciarlo partire un po’ a T ambiente, poi metterlo in frigo.[web:20][web:38] + - Ripetere ogni 5–7 giorni circa. +- Prima di un bake importante, spesso si fanno 1–2 rinfreschi a T ambiente per riportarlo in piena forma.[web:20] + +### 2.4 Recuperare uno starter pigro + +- Aumentare temporaneamente la temperatura (portare a 22–26 °C circa).[web:20] +- Fare rinfreschi più frequenti per alcuni giorni. +- Integrare una quota di farina integrale/di segale (25–50%) per stimolare l’attività.[web:20][web:26] +- Usare acqua leggermente tiepida, evitando temperature troppo alte che cuocerebbero il lievito.[web:20] + +### 2.5 Conservazioni lunghe + +- Per pause molto lunghe si può: + - mantenere lo starter in frigo con rinfreschi sporadici (settimane), + - oppure **deidratarlo** e conservarlo secco da riattivare in seguito.[web:20] + +--- + +## 3. Baker’s math e idratazione + +### 3.1 Baker’s percentage + +- Nella baker’s math, **la farina totale è sempre 100%**. +- Tutti gli altri ingredienti (acqua, sale, starter, zucchero, grassi, ecc.) sono espressi come percentuale della farina. +- Formula: \( (peso\_ingrediente ÷ peso\_farina) × 100 \).[web:28] + +Esempio: +- 1000 g farina, 800 g acqua → idratazione 80%. +- 1000 g farina, 20 g sale → sale al 2%. + +### 3.2 Idratazione + +- Definizione: **acqua totale come % della farina totale**. +- Range tipici:[web:39][web:35] + - 55–60%: impasti compatti (bagel, pretzel). + - 60–65%: pane da sandwich, panini, risultati abbastanza prevedibili. + - 65–72%: pane tipo sourdough/artigianale con mollica più aperta. + - 75–85%: impasti molto idratati (ciabatta, focaccia) più difficili da gestire. +- Le farine integrali assorbono più acqua: spesso servono 5–10% di idratazione in più per avere la stessa sensazione di impasto.[web:39][web:35] + +### 3.3 Percentuale di inoculo + +- Percentuale di starter rispetto alla farina totale. +- Influenza fortemente la velocità di fermentazione: + - Più starter → fermentazione più rapida. + - Meno starter → fermentazione più lenta ma spesso con profilo aromatico diverso.[web:39] +- Range indicativi per pane a lievito madre: + - 10–20% di starter sulla farina totale è comune, con circa 15–20% per bulk di ~12 ore intorno a 20–22 °C (valori indicativi, da adattare).[web:39] + +--- + +## 4. Roadmap di un pane a lievito madre + +### 4.1 Fasi principali + +1. **Rinfresco starter / costruzione levain** + - Assicurarsi che lo starter sia in piena attività e a picco o quasi al momento di usarlo.[web:23] +2. **Autolisi** + - Farina + acqua (e talvolta parte del lievito) mescolate e lasciate riposare per idratare il glutine. + - Durata tipica: 20–60 minuti in casa, ma può variare.[web:6] +3. **Impasto principale** + - Aggiunta di starter (se non incluso in autolisi) e sale. + - Può essere impastato a mano o con pieghe successive. +4. **Bulk fermentation (prima lievitazione in massa)** + - L’impasto riposa e fermenta in blocco. + - Durante la prima metà si effettuano spesso serie di pieghe (stretch & fold, coil fold) per sviluppare il glutine.[web:36][web:44] +5. **Preforma e bench rest** + - Divisione dell’impasto e pre‑formatura in pezzi grezzi. + - Riposo (bench rest) per rilassare il glutine. +6. **Formatura (shaping)** + - Dare la forma finale (pagnotta tonda, batard, ecc.) sviluppando tensione superficiale. +7. **Appretto (seconda lievitazione)** + - A temperatura ambiente o in frigo (cold retard). +8. **Scoring e cottura** + - Tagli superficiali per controllare l’apertura in forno. + - Cottura con vapore iniziale o in pentola chiusa per favorire oven spring.[web:23][web:44] + +### 4.2 Indicazioni sulla bulk fermentation + +- A T intorno a 23–25 °C, molti impasti a lievito madre completano la bulk in un range tra circa 2 e 5 ore, ma è solo un punto di partenza: la temperatura reale e la forza dello starter fanno enorme differenza.[web:36][web:44] +- Segnali di bulk quasi completata: + - impasto più gonfio e arioso, + - bordi del contenitore leggermente bombati, + - superficie liscia ma viva, con bolle visibili. +- Alcuni panificatori usano un **aliquot jar** (piccolo campione di impasto in barattolo trasparente) e guardano il **% di aumento di volume** (es. 35–60% come target indicativo, secondo la ricetta).[web:36][web:40] + +### 4.3 Appretto e cold retard + +- Dopo la formatura, l’impasto può: + - finire la lievitazione a temperatura ambiente per alcune ore, + - oppure essere messo in frigo (4–8 °C) per rallentare la fermentazione, sviluppare aromi e gestire meglio i tempi. +- Tempi in frigo possono andare da 8–12 ore fino a 24 ore o più, in base a ricetta e forza dell’impasto.[web:44] +- Segnali di appretto corretto: + - finger poke test: impronta che torna indietro lentamente e non completamente, + - impasto gonfio ma ancora elastico. + +--- + +## 5. Gestione tempi e temperatura + +### 5.1 Temperatura come driver principale + +- La temperatura del **dough** è il fattore più importante per l’andamento della fermentazione. +- Range comunemente raccomandati per bulk di pane a lievito madre: circa 25–28 °C per risultati prevedibili, con durata tipica nel range 3,5–5 ore secondo molte guide.[web:40][web:44] +- In cucine fredde (es. 18–20 °C), la stessa ricetta può richiedere anche il doppio del tempo. + +### 5.2 Come modulare i tempi + +- **Più caldo / ambiente più alto** → fermentazione più veloce. +- **Meno starter** o temperature più basse → fermentazione più lenta. +- L’acqua dell’impasto può essere regolata (più fredda o tiepida) per aiutare a centrare una temperatura finale desiderata.[web:20][web:40] + +### 5.3 Lettura dell’impasto vs orologio + +- Molte guide insistono sul fatto che bisogna guardare **condizione dell’impasto, non solo l’orologio**: + - volume (aumento percentuale), + - bolle superficiali e interne, + - sensazione al tatto (più aerato, meno denso).[web:23][web:36] +- Questo principio è centrale anche nel troubleshooting (vedi sezione successiva). + +--- + +## 6. Troubleshooting del pane a lievito madre + +### 6.1 Pane denso o gommoso + +Cause frequenti:[web:37][web:41][web:45] +- **Starter debole o immaturo**: + - non raddoppia in 4–8 ore, + - poche bolle, odore spento. +- **Sotto‑lievitazione (underproofing)**: + - bulk troppo breve, appretto insufficiente. + - Lievitazione in forno (oven spring) irregolare, mollica con buchi casuali e zone compatte. +- **Glutine poco sviluppato**: + - impasto lavorato poco o non abbastanza rinforzato con pieghe. + +Possibili correzioni: +- Rinforzare lo starter con rinfreschi ripetuti a T più alta. +- Estendere la bulk finché volume e segnali visivi sono coerenti. +- Aggiungere qualche serie di pieghe nella prima metà della bulk. + +### 6.2 Pane piatto o collassato + +Cause frequenti:[web:41][web:45] +- **Overproofing (troppa fermentazione)**: + - appretto prolungato, soprattutto a T alta, + - glutine indebolito da eccesso di acidità. +- Impasto troppo morbido senza supporto adeguato. + +Segnali: +- Impasto molto molle e tremolante al tatto. +- Finger poke test: l’impronta non torna indietro. +- In forno il pane si allarga e non sviluppa in altezza. + +Possibili correzioni: +- Accorciare i tempi di appretto. +- Ridurre leggermente l’idratazione. +- Migliorare la tensione in formatura e usare banneton o stampi.[web:41][web:45] + +### 6.3 Pagnotta con mollica irregolare (zone gommose e buchi grandi) + +- Spesso indica **underproofing**: alcune zone hanno fermentato e catturato gas, altre sono rimaste crude. +- Può essere collegata a bulk troppo breve o a pieghe insufficienti che non distribuiscono bene gas e glutine.[web:37][web:44] + +### 6.4 Crosta troppo spessa o troppo pallida + +- Crosta pallida: + - forno non abbastanza caldo, + - tempi troppo brevi, + - mancanza di zuccheri (es. fermentazione troppo corta). +- Crosta eccessivamente spessa: + - tempi lunghi a T bassa senza vapore, + - forno troppo secco nelle prime fasi. +- Molte guide consigliano di usare una pentola chiusa (Dutch oven) per trattenere il vapore iniziale e ottenere una crosta migliore.[web:41] + +--- + +## 7. Integrazione della KB nell’app + +Questa knowledge base può essere spezzata in **KnowledgeItem** con slug tematici, ad esempio: + +- `starter-basics` +- `starter-maintenance-fridge` +- `starter-sluggish` +- `bakers-math-basics` +- `hydration-ranges` +- `bulk-fermentation-basics` +- `proofing-and-cold-retard` +- `timing-and-temperature` +- `troubleshooting-dense` +- `troubleshooting-overproofed` +- `troubleshooting-crumb` + +Ogni sezione sopra può essere mappata a uno o più item, mostrando: +- un **testo breve** (2–3 paragrafi), +- una lista di **tips** pratici, +- eventuali link interni verso slug correlati. + +Fonti di riferimento per mantenere i contenuti aggiornati e coerenti includono guide autorevoli su manutenzione dello starter, spiegazioni su baker’s percentage e articoli dettagliati su bulk fermentation e troubleshooting del pane a lievito madre.[web:20][web:23][web:28][web:36][web:39][web:41][web:44][web:45] diff --git a/tools/remotion/batch-logo-loading/README.md b/tools/remotion/batch-logo-loading/README.md new file mode 100644 index 0000000..39b744c --- /dev/null +++ b/tools/remotion/batch-logo-loading/README.md @@ -0,0 +1,16 @@ +# Batch Logo Loading Animation + +Remotion source for the Batch launch/loading mark. + +The composition uses `public/logo-loading.svg` as the source mark and renders the app asset to: + +`../../../Levain/Assets.xcassets/BatchLogoLoading.dataset/batch-logo-loading.mp4` + +Commands: + +```bash +npm install +npm run still +npm run render:app +npm run preview +``` diff --git a/tools/remotion/batch-logo-loading/package-lock.json b/tools/remotion/batch-logo-loading/package-lock.json new file mode 100644 index 0000000..b7e1b01 --- /dev/null +++ b/tools/remotion/batch-logo-loading/package-lock.json @@ -0,0 +1,2895 @@ +{ + "name": "batch-logo-loading", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "batch-logo-loading", + "version": "0.1.0", + "dependencies": { + "@remotion/cli": "4.0.456", + "react": "19.1.0", + "react-dom": "19.1.0", + "remotion": "4.0.456" + }, + "devDependencies": { + "@types/node": "22.15.3", + "@types/react": "19.1.8", + "@types/react-dom": "19.1.6", + "typescript": "5.8.3" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz", + "integrity": "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==", + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", + "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.23.4", + "@babel/helper-validator-identifier": "^7.22.20", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.0.tgz", + "integrity": "sha512-O7vun9Sf8DFjH2UtqK8Ku3LkquL9SZL8OLY1T5NZkA34+wG3OQF7cl4Ql8vdNzM6fzBbYfLaiRLIOZ+2FOCgBQ==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.0.tgz", + "integrity": "sha512-PTyWCYYiU0+1eJKmw21lWtC+d08JDZPQ5g+kFyxP0V+es6VPPSUhM6zk8iImp2jbV6GwjX4pap0JFbUQN65X1g==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.0.tgz", + "integrity": "sha512-grvv8WncGjDSyUBjN9yHXNt+cq0snxXbDxy5pJtzMKGmmpPxeAmAhWxXI+01lU5rwZomDgD3kJwulEnhTRUd6g==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.0.tgz", + "integrity": "sha512-m/ix7SfKG5buCnxasr52+LI78SQ+wgdENi9CqyCXwjVR2X4Jkz+BpC3le3AoBPYTC9NHklwngVXvbJ9/Akhrfg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.0.tgz", + "integrity": "sha512-mVwdUb5SRkPayVadIOI78K7aAnPamoeFR2bT5nszFUZ9P8UpK4ratOdYbZZXYSqPKMHfS1wdHCJk1P1EZpRdvw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.0.tgz", + "integrity": "sha512-DgDaYsPWFTS4S3nWpFcMn/33ZZwAAeAFKNHNa1QN0rI4pUjgqf0f7ONmXf6d22tqTY+H9FNdgeaAa+YIFUn2Rg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.0.tgz", + "integrity": "sha512-VN4ocxy6dxefN1MepBx/iD1dH5K8qNtNe227I0mnTRjry8tj5MRk4zprLEdG8WPyAPb93/e4pSgi1SoHdgOa4w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.0.tgz", + "integrity": "sha512-mrSgt7lCh07FY+hDD1TxiTyIHyttn6vnjesnPoVDNmDfOmggTLXRv8Id5fNZey1gl/V2dyVK1VXXqVsQIiAk+A==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.0.tgz", + "integrity": "sha512-vkB3IYj2IDo3g9xX7HqhPYxVkNQe8qTK55fraQyTzTX/fxaDtXiEnavv9geOsonh2Fd2RMB+i5cbhu2zMNWJwg==", + "cpu": [ + "arm" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.0.tgz", + "integrity": "sha512-9QAQjTWNDM/Vk2bgBl17yWuZxZNQIF0OUUuPZRKoDtqF2k4EtYbpyiG5/Dk7nqeK6kIJWPYldkOcBqjXjrUlmg==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.0.tgz", + "integrity": "sha512-43ET5bHbphBegyeqLb7I1eYn2P/JYGNmzzdidq/w0T8E2SsYL1U6un2NFROFRg1JZLTzdCoRomg8Rvf9M6W6Gg==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.0.tgz", + "integrity": "sha512-fC95c/xyNFueMhClxJmeRIj2yrSMdDfmqJnyOY4ZqsALkDrrKJfIg5NTMSzVBr5YW1jf+l7/cndBfP3MSDpoHw==", + "cpu": [ + "loong64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.0.tgz", + "integrity": "sha512-nkAMFju7KDW73T1DdH7glcyIptm95a7Le8irTQNO/qtkoyypZAnjchQgooFUDQhNAy4iu08N79W4T4pMBwhPwQ==", + "cpu": [ + "mips64el" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.0.tgz", + "integrity": "sha512-NhyOejdhRGS8Iwv+KKR2zTq2PpysF9XqY+Zk77vQHqNbo/PwZCzB5/h7VGuREZm1fixhs4Q/qWRSi5zmAiO4Fw==", + "cpu": [ + "ppc64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.0.tgz", + "integrity": "sha512-5S/rbP5OY+GHLC5qXp1y/Mx//e92L1YDqkiBbO9TQOvuFXM+iDqUNG5XopAnXoRH3FjIUDkeGcY1cgNvnXp/kA==", + "cpu": [ + "riscv64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.0.tgz", + "integrity": "sha512-XM2BFsEBz0Fw37V0zU4CXfcfuACMrppsMFKdYY2WuTS3yi8O1nFOhil/xhKTmE1nPmVyvQJjJivgDT+xh8pXJA==", + "cpu": [ + "s390x" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.0.tgz", + "integrity": "sha512-9yl91rHw/cpwMCNytUDxwj2XjFpxML0y9HAOH9pNVQDpQrBxHy01Dx+vaMu0N1CKa/RzBD2hB4u//nfc+Sd3Cw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.0.tgz", + "integrity": "sha512-RuG4PSMPFfrkH6UwCAqBzauBWTygTvb1nxWasEJooGSJ/NwRw7b2HOwyRTQIU97Hq37l3npXoZGYMy3b3xYvPw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.0.tgz", + "integrity": "sha512-jl+qisSB5jk01N5f7sPCsBENCOlPiS/xptD5yxOx2oqQfyourJwIKLRA2yqWdifj3owQZCL2sn6o08dBzZGQzA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.0.tgz", + "integrity": "sha512-21sUNbq2r84YE+SJDfaQRvdgznTD8Xc0oc3p3iW/a1EVWeNj/SdUCbm5U0itZPQYRuRTW20fPMWMpcrciH2EJw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.0.tgz", + "integrity": "sha512-2gwwriSMPcCFRlPlKx3zLQhfN/2WjJ2NSlg5TKLQOJdV0mSxIcYNTMhk3H3ulL/cak+Xj0lY1Ym9ysDV1igceg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.0.tgz", + "integrity": "sha512-bxI7ThgLzPrPz484/S9jLlvUAHYMzy6I0XiU1ZMeAEOBcS0VePBFxh1JjTQt3Xiat5b6Oh4x7UC7IwKQKIJRIg==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.0.tgz", + "integrity": "sha512-ZUAc2YK6JW89xTbXvftxdnYy3m4iHIkDtK3CLce8wg8M2L+YZhIvO1DKpxrd0Yr59AeNNkTiic9YLf6FTtXWMw==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.0.tgz", + "integrity": "sha512-eSNxISBu8XweVEWG31/JzjkIGbGIJN/TrRoiSVZwZ6pkC6VX4Im/WV2cz559/TXLcYbcrDN8JtKgd9DJVIo8GA==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.0.tgz", + "integrity": "sha512-ZENoHJBxA20C2zFzh6AI4fT6RraMzjYw4xKWemRTRmRVtN9c5DcH9r/f2ihEkMjOW5eGgrwCslG/+Y/3bL+DHQ==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.11", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.11.tgz", + "integrity": "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@mediabunny/aac-encoder": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/@mediabunny/aac-encoder/-/aac-encoder-1.42.0.tgz", + "integrity": "sha512-Wcxn/Ez5oYNnHtNDjSV1kxrGeHm9Xq9SycdyXBLwbyd3VJvsagR9r/XwtHYOp2CGYKo+biN/NYhJuEORSXkkGQ==", + "license": "MPL-2.0", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/Vanilagy" + }, + "peerDependencies": { + "mediabunny": "^1.0.0" + } + }, + "node_modules/@mediabunny/flac-encoder": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/@mediabunny/flac-encoder/-/flac-encoder-1.42.0.tgz", + "integrity": "sha512-yguntZRxJ9ghVVxV1okbehi5jUgmlGbvjknNAgTzkM0m6F+IGZn9hG6ztW4Pvfdmv8YH1m7WbcB8wj87UHVsyg==", + "license": "MPL-2.0", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/Vanilagy" + }, + "peerDependencies": { + "mediabunny": "^1.0.0" + } + }, + "node_modules/@mediabunny/mp3-encoder": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/@mediabunny/mp3-encoder/-/mp3-encoder-1.42.0.tgz", + "integrity": "sha512-J6TwGa6rbVpXxcOETL6NVTi8UFYkd/W+DcV0CsQEEEjjMnL9Y5SN1h36Vc1CDSGVDSq62E8PxbG8C8eOIDqbFg==", + "license": "MPL-2.0", + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/Vanilagy" + }, + "peerDependencies": { + "mediabunny": "^1.0.0" + } + }, + "node_modules/@module-federation/error-codes": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/error-codes/-/error-codes-0.22.0.tgz", + "integrity": "sha512-xF9SjnEy7vTdx+xekjPCV5cIHOGCkdn3pIxo9vU7gEZMIw0SvAEdsy6Uh17xaCpm8V0FWvR0SZoK9Ik6jGOaug==", + "license": "MIT" + }, + "node_modules/@module-federation/runtime": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime/-/runtime-0.22.0.tgz", + "integrity": "sha512-38g5iPju2tPC3KHMPxRKmy4k4onNp6ypFPS1eKGsNLUkXgHsPMBFqAjDw96iEcjri91BrahG4XcdyKi97xZzlA==", + "license": "MIT", + "dependencies": { + "@module-federation/error-codes": "0.22.0", + "@module-federation/runtime-core": "0.22.0", + "@module-federation/sdk": "0.22.0" + } + }, + "node_modules/@module-federation/runtime-core": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-core/-/runtime-core-0.22.0.tgz", + "integrity": "sha512-GR1TcD6/s7zqItfhC87zAp30PqzvceoeDGYTgF3Vx2TXvsfDrhP6Qw9T4vudDQL3uJRne6t7CzdT29YyVxlgIA==", + "license": "MIT", + "dependencies": { + "@module-federation/error-codes": "0.22.0", + "@module-federation/sdk": "0.22.0" + } + }, + "node_modules/@module-federation/runtime-tools": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/runtime-tools/-/runtime-tools-0.22.0.tgz", + "integrity": "sha512-4ScUJ/aUfEernb+4PbLdhM/c60VHl698Gn1gY21m9vyC1Ucn69fPCA1y2EwcCB7IItseRMoNhdcWQnzt/OPCNA==", + "license": "MIT", + "dependencies": { + "@module-federation/runtime": "0.22.0", + "@module-federation/webpack-bundler-runtime": "0.22.0" + } + }, + "node_modules/@module-federation/sdk": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/sdk/-/sdk-0.22.0.tgz", + "integrity": "sha512-x4aFNBKn2KVQRuNVC5A7SnrSCSqyfIWmm1DvubjbO9iKFe7ith5niw8dqSFBekYBg2Fwy+eMg4sEFNVvCAdo6g==", + "license": "MIT" + }, + "node_modules/@module-federation/webpack-bundler-runtime": { + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.22.0.tgz", + "integrity": "sha512-aM8gCqXu+/4wBmJtVeMeeMN5guw3chf+2i6HajKtQv7SJfxV/f4IyNQJUeUQu9HfiAZHjqtMV5Lvq/Lvh8LdyA==", + "license": "MIT", + "dependencies": { + "@module-federation/runtime": "0.22.0", + "@module-federation/sdk": "0.22.0" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz", + "integrity": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==", + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.5.0", + "@emnapi/runtime": "^1.5.0", + "@tybys/wasm-util": "^0.10.1" + } + }, + "node_modules/@remotion/bundler": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/bundler/-/bundler-4.0.456.tgz", + "integrity": "sha512-A1e1b9E56zrjmKPVDwLLHqei5AGVclQPrJWSsr1tI8bxvS4/p5XovdYuRrynHPu82mWREY2Sh6dzfi/ejbyAIA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@remotion/media-parser": "4.0.456", + "@remotion/studio": "4.0.456", + "@remotion/studio-shared": "4.0.456", + "@rspack/core": "1.7.6", + "@rspack/plugin-react-refresh": "1.6.1", + "esbuild": "0.25.0", + "loader-utils": "2.0.4", + "postcss": "8.5.10", + "postcss-value-parser": "4.2.0", + "react-refresh": "0.18.0", + "remotion": "4.0.456", + "source-map": "0.7.3", + "style-loader": "4.0.0", + "webpack": "5.105.0" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/cli": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/cli/-/cli-4.0.456.tgz", + "integrity": "sha512-pUqLR+Jcwo3NYFmv9WI5DmkykMpBVB0Qh6bVNddVXRXNFvv/Q2P1vCwhSKg1vp+6+zdtYV2Ef218UY8jgcEvoA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@remotion/bundler": "4.0.456", + "@remotion/media-utils": "4.0.456", + "@remotion/player": "4.0.456", + "@remotion/renderer": "4.0.456", + "@remotion/studio": "4.0.456", + "@remotion/studio-server": "4.0.456", + "@remotion/studio-shared": "4.0.456", + "dotenv": "17.3.1", + "minimist": "1.2.6", + "prompts": "2.4.2", + "remotion": "4.0.456" + }, + "bin": { + "remotion": "remotion-cli.js", + "remotionb": "remotionb-cli.js", + "remotiond": "remotiond-cli.js" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/compositor-darwin-arm64": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-arm64/-/compositor-darwin-arm64-4.0.456.tgz", + "integrity": "sha512-aF5ZnO2Vt6KDeb4h5quxk5x1g+B7emcUh9wsHdWlPIr5OvB43IglfMw5hKGabwHiI28q8KYWd1PBeStUkskpFg==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@remotion/compositor-darwin-x64": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-darwin-x64/-/compositor-darwin-x64-4.0.456.tgz", + "integrity": "sha512-Q1rsmu3xw38oxYFLmAFBJ5JLOwp6B8KCbeU1N9LRcs0TO9ONETA88suPBqqKf5G1SvGuo8265CG/KAr5yHhDdQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@remotion/compositor-linux-arm64-gnu": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-gnu/-/compositor-linux-arm64-gnu-4.0.456.tgz", + "integrity": "sha512-vAOyvXizFDZ4031nnkYmeSuUKP+0g4pF1miKgGsGFJrLT9uWmUl2i8VQEmCCliMyVtYGd/hI7nMiHYsDE3MWGw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@remotion/compositor-linux-arm64-musl": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-arm64-musl/-/compositor-linux-arm64-musl-4.0.456.tgz", + "integrity": "sha512-Bsq//++CpTG1ht3PI1Y5A9n0CQYCOrOAS2UyJmgCmezE1G609b6NvD2ZPAsXH9WXNZU7C+0b7Hf11Mzmxpasvw==", + "cpu": [ + "arm64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@remotion/compositor-linux-x64-gnu": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-gnu/-/compositor-linux-x64-gnu-4.0.456.tgz", + "integrity": "sha512-L1s1fJdp3PsfrsEoTSFY7Q6MirZZ8frdErQ63uEwV0L4sh8aUaS27PhG1a7tFdtuGZbxp3Cf+jR2uZC5jqvBXQ==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@remotion/compositor-linux-x64-musl": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-linux-x64-musl/-/compositor-linux-x64-musl-4.0.456.tgz", + "integrity": "sha512-8tYxgSfJ9yLgrsB/z6H1PNnLHqECqbV7aW5ox/djolqgd6aSVEYwsKGlapikfk9jeEK+Ucr9GciNjvyiQbohkA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@remotion/compositor-win32-x64-msvc": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/compositor-win32-x64-msvc/-/compositor-win32-x64-msvc-4.0.456.tgz", + "integrity": "sha512-be+0bYKlIaKIOhlfL7rZUDSXT1Anu/ImqjGjBLI5fbUJgYi+l7J8XqWxGhuhlr5ff3EwPuK38igFknt/ppi2HA==", + "cpu": [ + "x64" + ], + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@remotion/licensing": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/licensing/-/licensing-4.0.456.tgz", + "integrity": "sha512-/sMMInqx0rmGsQi1idmwCCTKmv5S4ed/ASlNf+01Dz0UxZv+/6NLfsDKDrQKZ2LV3+/BsreUSAUxN33FmvP7sw==", + "license": "MIT" + }, + "node_modules/@remotion/media-parser": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/media-parser/-/media-parser-4.0.456.tgz", + "integrity": "sha512-ZpdF84wq3j/95bvjrt2WxXW05NHQPP+E9t6cuj3M8Q+ZG37Taw1MJLLZZ376a2wFT0HAlzrwzVgLnHnq5j9IYg==", + "license": "Remotion License https://remotion.dev/license" + }, + "node_modules/@remotion/media-utils": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/media-utils/-/media-utils-4.0.456.tgz", + "integrity": "sha512-7fLko647T6VHrSYV5OwoFb+UnE37N01zTz2dCjQz2M0gbZgG//8aMuyPwOLVUOqPsEuC24jtTuFeKCTQFDWlfw==", + "license": "MIT", + "dependencies": { + "mediabunny": "1.42.0", + "remotion": "4.0.456" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/player": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/player/-/player-4.0.456.tgz", + "integrity": "sha512-dy+2OONDSjSmxAEAImiwmpNR39uZ2sJPKREfQorLUVmCMXnEdLcXgBLZ1itLts0OwepeVwQLxsjuvSB6yqLkrg==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "remotion": "4.0.456" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/renderer": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/renderer/-/renderer-4.0.456.tgz", + "integrity": "sha512-GWQSBmao+Njl5ZnfP0xohK9Nk9LziYRPJ8kM+A8yTy33cTSPRL0yeMCse6iBsxpj2XrA6Ci58OWrSwYDLbhKTA==", + "license": "SEE LICENSE IN LICENSE.md", + "dependencies": { + "@remotion/licensing": "4.0.456", + "@remotion/streaming": "4.0.456", + "execa": "5.1.1", + "extract-zip": "2.0.1", + "remotion": "4.0.456", + "source-map": "^0.8.0-beta.0", + "ws": "8.17.1" + }, + "optionalDependencies": { + "@remotion/compositor-darwin-arm64": "4.0.456", + "@remotion/compositor-darwin-x64": "4.0.456", + "@remotion/compositor-linux-arm64-gnu": "4.0.456", + "@remotion/compositor-linux-arm64-musl": "4.0.456", + "@remotion/compositor-linux-x64-gnu": "4.0.456", + "@remotion/compositor-linux-x64-musl": "4.0.456", + "@remotion/compositor-win32-x64-msvc": "4.0.456" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/renderer/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "deprecated": "The work that was done in this beta branch won't be included in future versions", + "license": "BSD-3-Clause", + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@remotion/streaming": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/streaming/-/streaming-4.0.456.tgz", + "integrity": "sha512-E0xp8rsmxtzx6pijXrbxkBASkQ1uf5iKgfk4yZOvlBCymzTiDH6F4iqi/k62MRsTju+3Q3HTbDL+jJZ94HRCUA==", + "license": "MIT" + }, + "node_modules/@remotion/studio": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/studio/-/studio-4.0.456.tgz", + "integrity": "sha512-z4E7Ma52vih22xZiVBdJHjxlLgP55byBNqV8tu47HT19Ms6aTBbfYELgVvQgZDcl+VNr72cEiiPciV6wInIjIw==", + "license": "MIT", + "dependencies": { + "@remotion/media-utils": "4.0.456", + "@remotion/player": "4.0.456", + "@remotion/renderer": "4.0.456", + "@remotion/studio-shared": "4.0.456", + "@remotion/web-renderer": "4.0.456", + "@remotion/zod-types": "4.0.456", + "mediabunny": "1.42.0", + "memfs": "3.4.3", + "open": "^8.4.2", + "remotion": "4.0.456", + "semver": "7.5.3", + "source-map": "0.7.3", + "zod": "4.3.6" + }, + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/@remotion/studio-server": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/studio-server/-/studio-server-4.0.456.tgz", + "integrity": "sha512-Ew+mbYEQNFa1BH4TG9yW0UePA1x7vhjy3h43it0lzLhURjneMdqmL9BMcNg4dHT02IjjokWBMCB5wYenREgv2A==", + "license": "MIT", + "dependencies": { + "@babel/parser": "7.24.1", + "@babel/types": "7.24.0", + "@remotion/bundler": "4.0.456", + "@remotion/renderer": "4.0.456", + "@remotion/studio-shared": "4.0.456", + "memfs": "3.4.3", + "open": "^8.4.2", + "prettier": "3.8.1", + "recast": "0.23.11", + "remotion": "4.0.456", + "semver": "7.5.3", + "source-map": "0.7.3" + } + }, + "node_modules/@remotion/studio-shared": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/studio-shared/-/studio-shared-4.0.456.tgz", + "integrity": "sha512-VmHw+eddTfU8tOoG7pg0I1mXYhOpHr2bXdPCbLRfwV7hKN9gK8ndpLGvzrmM18vDXg+Zq4ES9TLu4sF900eN2w==", + "license": "MIT", + "dependencies": { + "remotion": "4.0.456" + } + }, + "node_modules/@remotion/web-renderer": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/web-renderer/-/web-renderer-4.0.456.tgz", + "integrity": "sha512-ktXALqjGTjarZYmpBDfSOsVAOchr3udwjUSy6Rvwx6zIIVM2QxsaTh8Z177uNsODsMBdOdOljoIHI5+6q843qw==", + "license": "UNLICENSED", + "dependencies": { + "@mediabunny/aac-encoder": "1.42.0", + "@mediabunny/flac-encoder": "1.42.0", + "@mediabunny/mp3-encoder": "1.42.0", + "@remotion/licensing": "4.0.456", + "mediabunny": "1.42.0", + "remotion": "4.0.456" + }, + "peerDependencies": { + "react": ">=18.0.0", + "react-dom": ">=18.0.0" + } + }, + "node_modules/@remotion/zod-types": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/@remotion/zod-types/-/zod-types-4.0.456.tgz", + "integrity": "sha512-udVlAxa0IXEBIn0RzhngkRBR+Ga4M5ONZ21rqKnCahl9QjODn2jturjjO2P+aHQ3yRaItsU7uPNrC4Fn63tRgA==", + "license": "MIT", + "dependencies": { + "remotion": "4.0.456" + }, + "peerDependencies": { + "zod": "4.3.6" + } + }, + "node_modules/@rspack/binding": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-1.7.6.tgz", + "integrity": "sha512-/NrEcfo8Gx22hLGysanrV6gHMuqZSxToSci/3M4kzEQtF5cPjfOv5pqeLK/+B6cr56ul/OmE96cCdWcXeVnFjQ==", + "license": "MIT", + "optionalDependencies": { + "@rspack/binding-darwin-arm64": "1.7.6", + "@rspack/binding-darwin-x64": "1.7.6", + "@rspack/binding-linux-arm64-gnu": "1.7.6", + "@rspack/binding-linux-arm64-musl": "1.7.6", + "@rspack/binding-linux-x64-gnu": "1.7.6", + "@rspack/binding-linux-x64-musl": "1.7.6", + "@rspack/binding-wasm32-wasi": "1.7.6", + "@rspack/binding-win32-arm64-msvc": "1.7.6", + "@rspack/binding-win32-ia32-msvc": "1.7.6", + "@rspack/binding-win32-x64-msvc": "1.7.6" + } + }, + "node_modules/@rspack/binding-darwin-arm64": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.7.6.tgz", + "integrity": "sha512-NZ9AWtB1COLUX1tA9HQQvWpTy07NSFfKBU8A6ylWd5KH8AePZztpNgLLAVPTuNO4CZXYpwcoclf8jG/luJcQdQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-darwin-x64": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.7.6.tgz", + "integrity": "sha512-J2g6xk8ZS7uc024dNTGTHxoFzFovAZIRixUG7PiciLKTMP78svbSSWrmW6N8oAsAkzYfJWwQpVgWfFNRHvYxSw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rspack/binding-linux-arm64-gnu": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.7.6.tgz", + "integrity": "sha512-eQfcsaxhFrv5FmtaA7+O1F9/2yFDNIoPZzV/ZvqvFz5bBXVc4FAm/1fVpBg8Po/kX1h0chBc7Xkpry3cabFW8w==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-arm64-musl": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.7.6.tgz", + "integrity": "sha512-DfQXKiyPIl7i1yECHy4eAkSmlUzzsSAbOjgMuKn7pudsWf483jg0UUYutNgXSlBjc/QSUp7906Cg8oty9OfwPA==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-gnu": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.7.6.tgz", + "integrity": "sha512-NdA+2X3lk2GGrMMnTGyYTzM3pn+zNjaqXqlgKmFBXvjfZqzSsKq3pdD1KHZCd5QHN+Fwvoszj0JFsquEVhE1og==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-linux-x64-musl": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.7.6.tgz", + "integrity": "sha512-rEy6MHKob02t/77YNgr6dREyJ0e0tv1X6Xsg8Z5E7rPXead06zefUbfazj4RELYySWnM38ovZyJAkPx/gOn3VA==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rspack/binding-wasm32-wasi": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.7.6.tgz", + "integrity": "sha512-YupOrz0daSG+YBbCIgpDgzfMM38YpChv+afZpaxx5Ml7xPeAZIIdgWmLHnQ2rts73N2M1NspAiBwV00Xx0N4Vg==", + "cpu": [ + "wasm32" + ], + "license": "MIT", + "optional": true, + "dependencies": { + "@napi-rs/wasm-runtime": "1.0.7" + } + }, + "node_modules/@rspack/binding-win32-arm64-msvc": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.7.6.tgz", + "integrity": "sha512-INj7aVXjBvlZ84kEhSK4kJ484ub0i+BzgnjDWOWM1K+eFYDZjLdAsQSS3fGGXwVc3qKbPIssFfnftATDMTEJHQ==", + "cpu": [ + "arm64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-ia32-msvc": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.7.6.tgz", + "integrity": "sha512-lXGvC+z67UMcw58In12h8zCa9IyYRmuptUBMItQJzu+M278aMuD1nETyGLL7e4+OZ2lvrnnBIcjXN1hfw2yRzw==", + "cpu": [ + "ia32" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/binding-win32-x64-msvc": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.7.6.tgz", + "integrity": "sha512-zeUxEc0ZaPpmaYlCeWcjSJUPuRRySiSHN23oJ2Xyw0jsQ01Qm4OScPdr0RhEOFuK/UE+ANyRtDo4zJsY52Hadw==", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rspack/core": { + "version": "1.7.6", + "resolved": "https://registry.npmjs.org/@rspack/core/-/core-1.7.6.tgz", + "integrity": "sha512-Iax6UhrfZqJajA778c1d5DBFbSIqPOSrI34kpNIiNpWd8Jq7mFIa+Z60SQb5ZQDZuUxcCZikjz5BxinFjTkg7Q==", + "license": "MIT", + "dependencies": { + "@module-federation/runtime-tools": "0.22.0", + "@rspack/binding": "1.7.6", + "@rspack/lite-tapable": "1.1.0" + }, + "engines": { + "node": ">=18.12.0" + }, + "peerDependencies": { + "@swc/helpers": ">=0.5.1" + }, + "peerDependenciesMeta": { + "@swc/helpers": { + "optional": true + } + } + }, + "node_modules/@rspack/lite-tapable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@rspack/lite-tapable/-/lite-tapable-1.1.0.tgz", + "integrity": "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw==", + "license": "MIT" + }, + "node_modules/@rspack/plugin-react-refresh": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@rspack/plugin-react-refresh/-/plugin-react-refresh-1.6.1.tgz", + "integrity": "sha512-eqqW5645VG3CzGzFgNg5HqNdHVXY+567PGjtDhhrM8t67caxmsSzRmT5qfoEIfBcGgFkH9vEg7kzXwmCYQdQDw==", + "license": "MIT", + "dependencies": { + "error-stack-parser": "^2.1.4", + "html-entities": "^2.6.0" + }, + "peerDependencies": { + "react-refresh": ">=0.10.0 <1.0.0", + "webpack-hot-middleware": "2.x" + }, + "peerDependenciesMeta": { + "webpack-hot-middleware": { + "optional": true + } + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz", + "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==", + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@types/dom-mediacapture-transform": { + "version": "0.1.11", + "resolved": "https://registry.npmjs.org/@types/dom-mediacapture-transform/-/dom-mediacapture-transform-0.1.11.tgz", + "integrity": "sha512-Y2p+nGf1bF2XMttBnsVPHUWzRRZzqUoJAKmiP10b5umnO6DDrWI0BrGDJy1pOHoOULVmGSfFNkQrAlC5dcj6nQ==", + "license": "MIT", + "dependencies": { + "@types/dom-webcodecs": "*" + } + }, + "node_modules/@types/dom-webcodecs": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/@types/dom-webcodecs/-/dom-webcodecs-0.1.13.tgz", + "integrity": "sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==", + "license": "MIT" + }, + "node_modules/@types/eslint": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "license": "MIT", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "license": "MIT" + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.15.3", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.3.tgz", + "integrity": "sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/react": { + "version": "19.1.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.8.tgz", + "integrity": "sha512-AwAfQ2Wa5bCx9WP8nZL2uMZWod7J7/JSplxbTmBQ5ms6QpqNYm672H0Vu9ZVKVngQ+ii4R/byguVEUZQyeg44g==", + "dev": true, + "license": "MIT", + "dependencies": { + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "19.1.6", + "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-19.1.6.tgz", + "integrity": "sha512-4hOiT/dwO8Ko0gV1m/TJZYk3y0KBnY9vzDh7W+DH17b2HFSOGgdj33dhihPeuy3l0q23+4e+hoXHV6hCC4dCXw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "@types/react": "^19.0.0" + } + }, + "node_modules/@types/yauzl": { + "version": "2.10.3", + "resolved": "https://registry.npmjs.org/@types/yauzl/-/yauzl-2.10.3.tgz", + "integrity": "sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", + "license": "MIT", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", + "license": "Apache-2.0", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", + "license": "MIT" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "license": "BSD-3-Clause" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "license": "Apache-2.0" + }, + "node_modules/acorn": { + "version": "8.16.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", + "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-phases": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/acorn-import-phases/-/acorn-import-phases-1.0.4.tgz", + "integrity": "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + }, + "peerDependencies": { + "acorn": "^8.14.0" + } + }, + "node_modules/ajv": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.20.0.tgz", + "integrity": "sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/ast-types": { + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.1.tgz", + "integrity": "sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.10.27", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.27.tgz", + "integrity": "sha512-zEs/ufmZoUd7WftKpKyXaT6RFxpQ5Qm9xytKRHvJfxFV9DFJkZph9RvJ1LcOUi0Z1ZVijMte65JbILeV+8QQEA==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-5.2.2.tgz", + "integrity": "sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/browserslist": { + "version": "4.28.2", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.2.tgz", + "integrity": "sha512-48xSriZYYg+8qXna9kwqjIVzuQxi+KYWp2+5nCYnYKPTr0LvD89Jqk2Or5ogxz0NUMfIjhh2lIUX/LyX9B4oIg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.10.12", + "caniuse-lite": "^1.0.30001782", + "electron-to-chromium": "^1.5.328", + "node-releases": "^2.0.36", + "update-browserslist-db": "^1.2.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-crc32": { + "version": "0.2.13", + "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001791", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001791.tgz", + "integrity": "sha512-yk0l/YSrOnFZk3UROpDLQD9+kC1l4meK/wed583AXrzoarMGJcbRi2Q4RaUYbKxYAsZ8sWmaSa/DsLmdBeI1vQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "license": "MIT", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", + "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/dotenv": { + "version": "17.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.3.1.tgz", + "integrity": "sha512-IO8C/dzEb6O3F9/twg6ZLXz164a2fhTnEWb95H23Dm4OuN+92NmEAlTrupP9VW6Jm3sO26tQlqyvyi4CsnY9GA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://dotenvx.com" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.349", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.349.tgz", + "integrity": "sha512-QsWVGyRuY07Aqb234QytTfwd5d9AJlfNIQ5wIOl1L+PZDzI9d9+Fn0FRale/QYlFxt/bUnB0/nLd1jFPGxGK1A==", + "license": "ISC" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-3.0.0.tgz", + "integrity": "sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q==", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz", + "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.21.0", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.0.tgz", + "integrity": "sha512-otxSQPw4lkOZWkHpB3zaEQs6gWYEsmX4xQF68ElXC/TWvGxGMSGOvoNbaLXm6/cS/fSfHtsEdw90y20PCd+sCA==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.1.4.tgz", + "integrity": "sha512-Sk5V6wVazPhq5MhpO+AUxJn5x7XSXGl1R93Vn7i+zS15KDVxQijejNCrz8340/2bgLBjR9GtEG8ZVKONDjcqGQ==", + "license": "MIT", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-module-lexer": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", + "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", + "license": "MIT" + }, + "node_modules/esbuild": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.0.tgz", + "integrity": "sha512-BXq5mqc8ltbaN34cDqWuYKyNhX8D/Z0J1xdtdQ8UcIIIyJyz+ZMKUt58tF3SrZ85jcfN/PZYhjR5uDQAYNVbuw==", + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.25.0", + "@esbuild/android-arm": "0.25.0", + "@esbuild/android-arm64": "0.25.0", + "@esbuild/android-x64": "0.25.0", + "@esbuild/darwin-arm64": "0.25.0", + "@esbuild/darwin-x64": "0.25.0", + "@esbuild/freebsd-arm64": "0.25.0", + "@esbuild/freebsd-x64": "0.25.0", + "@esbuild/linux-arm": "0.25.0", + "@esbuild/linux-arm64": "0.25.0", + "@esbuild/linux-ia32": "0.25.0", + "@esbuild/linux-loong64": "0.25.0", + "@esbuild/linux-mips64el": "0.25.0", + "@esbuild/linux-ppc64": "0.25.0", + "@esbuild/linux-riscv64": "0.25.0", + "@esbuild/linux-s390x": "0.25.0", + "@esbuild/linux-x64": "0.25.0", + "@esbuild/netbsd-arm64": "0.25.0", + "@esbuild/netbsd-x64": "0.25.0", + "@esbuild/openbsd-arm64": "0.25.0", + "@esbuild/openbsd-x64": "0.25.0", + "@esbuild/sunos-x64": "0.25.0", + "@esbuild/win32-arm64": "0.25.0", + "@esbuild/win32-ia32": "0.25.0", + "@esbuild/win32-x64": "0.25.0" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/extract-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", + "integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==", + "license": "BSD-2-Clause", + "dependencies": { + "debug": "^4.1.1", + "get-stream": "^5.1.0", + "yauzl": "^2.10.0" + }, + "bin": { + "extract-zip": "cli.js" + }, + "engines": { + "node": ">= 10.17.0" + }, + "optionalDependencies": { + "@types/yauzl": "^2.9.1" + } + }, + "node_modules/extract-zip/node_modules/get-stream": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", + "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/fd-slicer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.1.0.tgz", + "integrity": "sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==", + "license": "MIT", + "dependencies": { + "pend": "~1.2.0" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/fs-monkey/-/fs-monkey-1.0.3.tgz", + "integrity": "sha512-cybjIfiiE+pTWicSCLFHSrXZ6EilF30oh91FDP9S2B051prEa7QWfrVTQm10/dDpswBDXZugPa1Ogu8Yh+HV0Q==", + "license": "Unlicense" + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "license": "BSD-2-Clause" + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/html-entities": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.6.0.tgz", + "integrity": "sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/mdevils" + }, + { + "type": "patreon", + "url": "https://patreon.com/mdevils" + } + ], + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/loader-runner": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.2.tgz", + "integrity": "sha512-DFEqQ3ihfS9blba08cLfYf1NRAIEm+dDjic073DRDc3/JspI/8wYmtDsHwd3+4hwvdxSK7PGaElfTmm0awWJ4w==", + "license": "MIT", + "engines": { + "node": ">=6.11.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.4.tgz", + "integrity": "sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw==", + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mediabunny": { + "version": "1.42.0", + "resolved": "https://registry.npmjs.org/mediabunny/-/mediabunny-1.42.0.tgz", + "integrity": "sha512-s9ypTqLi6kbh95gC+YaJlG0PkLvMxu37Q/wO/pFZx0fUCA5Ym5mp+2dWoa83mKQ3Uo18aNlgev5iJ5ESZqWwgQ==", + "license": "MPL-2.0", + "workspaces": [ + "packages/*" + ], + "dependencies": { + "@types/dom-mediacapture-transform": "^0.1.11", + "@types/dom-webcodecs": "0.1.13" + }, + "funding": { + "type": "individual", + "url": "https://github.com/sponsors/Vanilagy" + } + }, + "node_modules/memfs": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/memfs/-/memfs-3.4.3.tgz", + "integrity": "sha512-eivjfi7Ahr6eQTn44nvTnR60e4a1Fs1Via2kCR5lHo/kyNoiMWaXCNJ/GpSd0ilXas2JSOl9B5FTIhflXu0hlg==", + "license": "Unlicense", + "dependencies": { + "fs-monkey": "1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "license": "MIT" + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimist": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.38", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.38.tgz", + "integrity": "sha512-3qT/88Y3FbH/Kx4szpQQ4HzUbVrHPKTLVpVocKiLfoYvw9XSGOX2FmD2d6DrXbVYyAQTF2HeF6My8jmzx7/CRw==", + "license": "MIT" + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-8.4.2.tgz", + "integrity": "sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==", + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pend": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", + "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/postcss": { + "version": "8.5.10", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.10.tgz", + "integrity": "sha512-pMMHxBOZKFU6HgAZ4eyGnwXF/EvPGGqUr0MnZ5+99485wwW41kW91A4LOGxSHhgugZmSChL5AlElNdwlNgcnLQ==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "license": "MIT" + }, + "node_modules/prettier": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.1.tgz", + "integrity": "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==", + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pump": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz", + "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/react": { + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz", + "integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz", + "integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==", + "license": "MIT", + "dependencies": { + "scheduler": "^0.26.0" + }, + "peerDependencies": { + "react": "^19.1.0" + } + }, + "node_modules/react-refresh": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.18.0.tgz", + "integrity": "sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/recast": { + "version": "0.23.11", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.11.tgz", + "integrity": "sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==", + "license": "MIT", + "dependencies": { + "ast-types": "^0.16.1", + "esprima": "~4.0.0", + "source-map": "~0.6.1", + "tiny-invariant": "^1.3.3", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/recast/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/remotion": { + "version": "4.0.456", + "resolved": "https://registry.npmjs.org/remotion/-/remotion-4.0.456.tgz", + "integrity": "sha512-yi0joZ0u4hIdhcSKV+Ou3myP5qQbzSyb592AjYUli1O9oOOt+CGFFn3LNNii4vI6pqM2Wjh+X1x9iSuITo7Vhw==", + "license": "SEE LICENSE IN LICENSE.md", + "peerDependencies": { + "react": ">=16.8.0", + "react-dom": ">=16.8.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/scheduler": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.26.0.tgz", + "integrity": "sha512-NlHwttCI/l5gCPR3D1nNXtWABUmBwvZpEQiD4IXSbIDq8BzLIK/7Ir5gTFSGZDUu37K5cMNp0hFtzO38sC7gWA==", + "license": "MIT" + }, + "node_modules/schema-utils": { + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", + "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/semver": { + "version": "7.5.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", + "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", + "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/stackframe/-/stackframe-1.3.4.tgz", + "integrity": "sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==", + "license": "MIT" + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/style-loader": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-4.0.0.tgz", + "integrity": "sha512-1V4WqhhZZgjVAVJyt7TdDPZoPBPNHbekX4fWnCJL1yQukhCeZhJySUL+gL9y6sNdN95uEOS83Y55SqHcP7MzLA==", + "license": "MIT", + "engines": { + "node": ">= 18.12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.27.0" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/terser": { + "version": "5.46.2", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.46.2.tgz", + "integrity": "sha512-uxfo9fPcSgLDYob/w1FuL0c99MWiJDnv+5qXSQc5+Ki5NjVNsYi66INnMFBjf6uFz6OnX12piJQPF4IpjJTNTw==", + "license": "BSD-2-Clause", + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.15.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.5.0.tgz", + "integrity": "sha512-UYhptBwhWvfIjKd/UuFo6D8uq9xpGLDK+z8EDsj/zWhrTaH34cKEbrkMKfV5YWqGBvAYA3tlzZbs2R+qYrbQJA==", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "jest-worker": "^27.4.5", + "schema-utils": "^4.3.0", + "terser": "^5.31.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "license": "MIT" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/watchpack": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.5.1.tgz", + "integrity": "sha512-Zn5uXdcFNIA1+1Ei5McRd+iRzfhENPCe7LeABkJtNulSxjma+l7ltNx55BWZkRlwRnpOgHqxnjyaDgJnNXnqzg==", + "license": "MIT", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "license": "BSD-2-Clause" + }, + "node_modules/webpack": { + "version": "5.105.0", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.105.0.tgz", + "integrity": "sha512-gX/dMkRQc7QOMzgTe6KsYFM7DxeIONQSui1s0n/0xht36HvrgbxtM1xBlgx596NbpHuQU8P7QpKwrZYwUX48nw==", + "license": "MIT", + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.8", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.15.0", + "acorn-import-phases": "^1.0.3", + "browserslist": "^4.28.1", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.19.0", + "es-module-lexer": "^2.0.0", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.3.1", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.3", + "tapable": "^2.3.0", + "terser-webpack-plugin": "^5.3.16", + "watchpack": "^2.5.1", + "webpack-sources": "^3.3.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.4.1.tgz", + "integrity": "sha512-eACpxRN02yaawnt+uUNIF7Qje6A9zArxBbcAJjK1PK3S9Ycg5jIuJ8pW4q8EMnwNZCEGltcjkRx1QzOxOkKD8A==", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "license": "MIT", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + }, + "node_modules/yauzl": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.10.0.tgz", + "integrity": "sha512-p4a9I6X6nu6IhoGmBqAcbJy1mlC4j27vEPZX9F4L4/vZT3Lyq1VkFHw/V/PUcB9Buo+DG3iHkT0x3Qya58zc3g==", + "license": "MIT", + "dependencies": { + "buffer-crc32": "~0.2.3", + "fd-slicer": "~1.1.0" + } + }, + "node_modules/zod": { + "version": "4.3.6", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz", + "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + } + } +} diff --git a/tools/remotion/batch-logo-loading/package.json b/tools/remotion/batch-logo-loading/package.json new file mode 100644 index 0000000..61ef841 --- /dev/null +++ b/tools/remotion/batch-logo-loading/package.json @@ -0,0 +1,23 @@ +{ + "name": "batch-logo-loading", + "private": true, + "version": "0.1.0", + "scripts": { + "preview": "remotion studio src/index.ts", + "still": "remotion still src/index.ts BatchLogoLoading out/batch-logo-loading-frame30.png --frame=30", + "export:lottie": "node scripts/export-lottie.mjs", + "render:app": "remotion render src/index.ts BatchLogoLoading ../../../Levain/Assets.xcassets/BatchLogoLoading.dataset/batch-logo-loading.mov --image-format=png --pixel-format=yuva444p10le --codec=prores --prores-profile=4444 --muted" + }, + "dependencies": { + "@remotion/cli": "4.0.456", + "react": "19.1.0", + "react-dom": "19.1.0", + "remotion": "4.0.456" + }, + "devDependencies": { + "@types/node": "22.15.3", + "@types/react": "19.1.8", + "@types/react-dom": "19.1.6", + "typescript": "5.8.3" + } +} diff --git a/tools/remotion/batch-logo-loading/public/logo-loading.svg b/tools/remotion/batch-logo-loading/public/logo-loading.svg new file mode 100644 index 0000000..fb8beac --- /dev/null +++ b/tools/remotion/batch-logo-loading/public/logo-loading.svg @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tools/remotion/batch-logo-loading/scripts/export-lottie.mjs b/tools/remotion/batch-logo-loading/scripts/export-lottie.mjs new file mode 100644 index 0000000..279e077 --- /dev/null +++ b/tools/remotion/batch-logo-loading/scripts/export-lottie.mjs @@ -0,0 +1,408 @@ +import { mkdirSync, writeFileSync } from "node:fs"; +import { dirname, resolve } from "node:path"; + +const FRAME_RATE = 30; +const DURATION = 72; +const WIDTH = 1080; +const HEIGHT = 1080; +const VIEWBOX_WIDTH = 923.27; +const VIEWBOX_HEIGHT = 967.23; +const SVG_WIDTH = 674; +const SVG_HEIGHT = 706; +const MARK_FILL = "#EAF6F1"; + +const svgScale = Math.min(SVG_WIDTH / VIEWBOX_WIDTH, SVG_HEIGHT / VIEWBOX_HEIGHT); +const svgLeft = (WIDTH - SVG_WIDTH) / 2 + (SVG_WIDTH - VIEWBOX_WIDTH * svgScale) / 2; +const svgTop = (HEIGHT - SVG_HEIGHT) / 2 + (SVG_HEIGHT - VIEWBOX_HEIGHT * svgScale) / 2; + +const segments = [ + { + name: "Upper Left", + order: 5, + vector: { x: -298, y: -54 }, + shapes: [ + { + type: "path", + d: "M163.96,429.66c-58-31.23-81.76-100.8-55.04-160.97,21.21,5.65,43.06-3.15,54.26-22.11,6.98-11.8,9.25-25.36,5.3-38.72,68-33.49,150.07,1.49,172.24,74.38,17.62,57.93-8.13,120.54-62.28,148.76-35.72,18.34-78.73,17.91-114.49-1.35Z", + }, + { type: "circle", cx: 121.28, cy: 220.18, r: 37.45 }, + ], + }, + { + name: "Top", + order: 0, + vector: { x: 52, y: -354 }, + shapes: [ + { + type: "path", + d: "M598.73,129.97c11.57,55.51-14.18,110.98-63.86,137.63-52.98,28.42-118.39,13.53-155.23-34.63-24.07-31.47-31.88-71.66-20.43-111.84,9.4-33,34.12-63.34,68.14-79.05,40.98-18.92,87.95-13.43,123.38,13.44-6.18,9.73-8.32,20.24-7.12,31.2,3.01,27.59,27.42,47.14,55.13,43.25Z", + }, + { + type: "path", + d: "M604.67,116c-16.2,6.27-34.07-.05-43.44-14.36-7.56-11.54-8.13-26.13-1.3-38.78,10.79-20,36.71-26.38,54.28-12.32,11.17,8.94,16.22,21.86,14.01,36.15-1.88,12.19-10.12,24.1-23.55,29.3Z", + }, + ], + }, + { + name: "Upper Right", + order: 1, + vector: { x: 314, y: -152 }, + shapes: [ + { + type: "path", + d: "M856.41,322.52c-18.08,2.12-34.33,13.16-41.11,29.1-7.69,18.07-4.99,38.09,7.49,52.63-27.99,29.94-67.65,43.39-107.57,37.77-45.35-6.39-82.93-38.22-98.08-78.79-17.48-46.82-5.96-97.41,28.24-131.86,27.16-27.36,64.48-40.67,103.22-35.95,63.89,7.78,110.53,63.25,107.81,127.1Z", + }, + { type: "circle", cx: 859.47, cy: 371.93, r: 36.9 }, + ], + }, + { + name: "Lower Left", + order: 4, + vector: { x: -314, y: 178 }, + shapes: [ + { + type: "path", + d: "M205.33,755.55c-63.6,3-118.08-41.2-128.03-106.09,21.75-3.25,37.86-19.6,41.38-40.95,3.23-19.59-4.71-39.08-21.43-50.16,13.27-19.39,30.9-34.86,52.07-44.49,53.32-24.24,115.02-7.78,149.39,39.37,32.55,44.65,32.75,105.96.25,150.86-22.19,30.65-56.68,49.71-93.63,51.46Z", + }, + { type: "circle", cx: 70.82, cy: 600.34, r: 37.06 }, + ], + }, + { + name: "Lower Right", + order: 2, + vector: { x: 314, y: 198 }, + shapes: [ + { + type: "path", + d: "M864.39,687.47c-18.07-8.46-38.57-5.35-52.88,8.05-13.99,13.1-19.37,33.28-11.61,52.07-45.02,18.1-95.81,8.13-130.71-25.47-45.82-44.11-52-116.52-14.52-167.76,31.63-43.24,86.26-62.5,137.71-46.06,38.99,12.46,68.74,43.83,80.33,83.12,9.37,31.79,6.49,64.94-8.31,96.03Z", + }, + { type: "circle", cx: 843.04, cy: 730.06, r: 35.04 }, + ], + }, + { + name: "Bottom", + order: 3, + vector: { x: 0, y: 350 }, + shapes: [ + { + type: "path", + d: "M450.13,908.71c5.54-22.2-4.68-44.64-24.8-54.53-15.94-7.84-34.15-5.34-48.53,5.97-44.79-61.44-25.32-148.68,41.2-184.88,28.8-15.67,61.67-19.62,93.31-10.01,35.19,10.68,63.98,36.56,78.37,70.23,21.75,50.87,8.07,109.07-32.97,145.65-29.09,25.93-68.65,35.85-106.58,27.57Z", + }, + { type: "circle", cx: 405.7, cy: 896.69, r: 34.75 }, + ], + }, +]; + +const isCommand = (token) => /^[a-zA-Z]$/.test(token); + +const tokenizePath = (path) => + path.match(/[a-zA-Z]|[-+]?(?:\d*\.\d+|\d+\.?)(?:e[-+]?\d+)?/gi) ?? []; + +const toCompPoint = ([x, y]) => [ + round(svgLeft + x * svgScale), + round(svgTop + y * svgScale), +]; + +const toCompTangent = ([x, y]) => [round(x * svgScale), round(y * svgScale)]; + +const round = (value) => Number(value.toFixed(4)); + +const addPoint = (points, point) => { + points.push(toCompPoint(point)); +}; + +const parsePath = (path) => { + const tokens = tokenizePath(path); + const vertices = []; + const inTangents = []; + const outTangents = []; + const bboxPoints = []; + let index = 0; + let command = ""; + let current = [0, 0]; + let start = [0, 0]; + + const readNumber = () => Number(tokens[index++]); + const addVertex = (point, inTangent = [0, 0], outTangent = [0, 0]) => { + vertices.push(toCompPoint(point)); + inTangents.push(toCompTangent(inTangent)); + outTangents.push(toCompTangent(outTangent)); + addPoint(bboxPoints, point); + }; + + while (index < tokens.length) { + if (isCommand(tokens[index])) { + command = tokens[index++]; + } + + switch (command) { + case "M": + case "m": { + const isRelative = command === "m"; + const x = readNumber(); + const y = readNumber(); + current = isRelative ? [current[0] + x, current[1] + y] : [x, y]; + start = current; + addVertex(current); + + while (index < tokens.length && !isCommand(tokens[index])) { + const lineX = readNumber(); + const lineY = readNumber(); + current = isRelative + ? [current[0] + lineX, current[1] + lineY] + : [lineX, lineY]; + addVertex(current); + } + break; + } + case "C": + case "c": { + const isRelative = command === "c"; + while (index < tokens.length && !isCommand(tokens[index])) { + const c1 = [readNumber(), readNumber()]; + const c2 = [readNumber(), readNumber()]; + const end = [readNumber(), readNumber()]; + const control1 = isRelative + ? [current[0] + c1[0], current[1] + c1[1]] + : c1; + const control2 = isRelative + ? [current[0] + c2[0], current[1] + c2[1]] + : c2; + const next = isRelative + ? [current[0] + end[0], current[1] + end[1]] + : end; + + outTangents[outTangents.length - 1] = toCompTangent([ + control1[0] - current[0], + control1[1] - current[1], + ]); + addVertex(next, [control2[0] - next[0], control2[1] - next[1]]); + addPoint(bboxPoints, control1); + addPoint(bboxPoints, control2); + current = next; + } + break; + } + case "Z": + case "z": + current = start; + command = ""; + break; + default: + throw new Error(`Unsupported SVG path command: ${command}`); + } + } + + return { + bboxPoints, + shape: { + c: true, + i: inTangents, + o: outTangents, + v: vertices, + }, + }; +}; + +const hexToLottieRgb = (hex) => { + const value = hex.replace("#", ""); + return [ + parseInt(value.slice(0, 2), 16) / 255, + parseInt(value.slice(2, 4), 16) / 255, + parseInt(value.slice(4, 6), 16) / 255, + 1, + ].map(round); +}; + +const ease = (dimensions) => ({ + i: { + x: Array(dimensions).fill(0.3), + y: Array(dimensions).fill(1), + }, + o: { + x: Array(dimensions).fill(0.16), + y: Array(dimensions).fill(1), + }, +}); + +const animated = (start, end, from, to, dimensions) => ({ + a: 1, + k: [ + { + t: start, + s: from, + e: to, + ...ease(dimensions), + }, + { + t: end, + s: to, + }, + ], +}); + +const staticProperty = (value) => ({ + a: 0, + k: value, +}); + +const layerTransform = ({ anchor, position, scale, opacity, rotation = 0 }) => ({ + o: opacity, + r: typeof rotation === "number" ? staticProperty(rotation) : rotation, + p: position, + a: staticProperty([anchor[0], anchor[1], 0]), + s: scale, +}); + +const shapeTransform = () => ({ + ty: "tr", + p: staticProperty([0, 0]), + a: staticProperty([0, 0]), + s: staticProperty([100, 100]), + r: staticProperty(0), + o: staticProperty(100), + sk: staticProperty(0), + sa: staticProperty(0), + nm: "Transform", +}); + +const boundsFromPoints = (points) => { + const xs = points.map(([x]) => x); + const ys = points.map(([, y]) => y); + return { + minX: Math.min(...xs), + maxX: Math.max(...xs), + minY: Math.min(...ys), + maxY: Math.max(...ys), + }; +}; + +const segmentLayer = (segment, index) => { + const shapeItems = []; + const bboxPoints = []; + + segment.shapes.forEach((shape, shapeIndex) => { + if (shape.type === "path") { + const parsed = parsePath(shape.d); + shapeItems.push({ + ty: "sh", + ks: staticProperty(parsed.shape), + nm: `${segment.name} Path ${shapeIndex + 1}`, + }); + bboxPoints.push(...parsed.bboxPoints); + return; + } + + const center = toCompPoint([shape.cx, shape.cy]); + const radius = round(shape.r * svgScale); + shapeItems.push({ + ty: "el", + p: staticProperty(center), + s: staticProperty([round(radius * 2), round(radius * 2)]), + d: 1, + nm: `${segment.name} Dot`, + }); + bboxPoints.push( + [round(center[0] - radius), center[1]], + [round(center[0] + radius), center[1]], + [center[0], round(center[1] - radius)], + [center[0], round(center[1] + radius)], + ); + }); + + const bounds = boundsFromPoints(bboxPoints); + const anchor = [ + round((bounds.minX + bounds.maxX) / 2), + round((bounds.minY + bounds.maxY) / 2), + ]; + const startFrame = 4 + segment.order * 4; + const offset = [ + round(segment.vector.x * -0.24), + round(segment.vector.y * -0.24), + ]; + + return { + ddd: 0, + ind: index + 2, + ty: 4, + nm: `Batch Logo ${segment.name}`, + parent: 1, + sr: 1, + ks: layerTransform({ + anchor, + position: animated( + startFrame, + startFrame + 17, + [round(anchor[0] + offset[0]), round(anchor[1] + offset[1]), 0], + [anchor[0], anchor[1], 0], + 3, + ), + scale: animated(startFrame, startFrame + 17, [86, 86, 100], [100, 100, 100], 3), + opacity: animated(startFrame, startFrame + 12, [0], [100], 1), + }), + ao: 0, + shapes: [ + { + ty: "gr", + it: [ + ...shapeItems, + { + ty: "fl", + c: staticProperty(hexToLottieRgb(MARK_FILL)), + o: staticProperty(100), + r: 1, + bm: 0, + nm: "Unified Fill", + }, + shapeTransform(), + ], + nm: `${segment.name} Shapes`, + bm: 0, + }, + ], + ip: 0, + op: DURATION, + st: 0, + bm: 0, + }; +}; + +const parentLayer = { + ddd: 0, + ind: 1, + ty: 3, + nm: "Logo Intro Transform", + sr: 1, + ks: layerTransform({ + anchor: [WIDTH / 2, HEIGHT / 2], + position: animated(0, 22, [WIDTH / 2, HEIGHT / 2 + 28, 0], [WIDTH / 2, HEIGHT / 2, 0], 3), + scale: animated(0, 22, [90, 90, 100], [100, 100, 100], 3), + opacity: animated(0, 20, [0], [100], 1), + rotation: animated(0, 58, [-10], [0], 1), + }), + ao: 0, + ip: 0, + op: DURATION, + st: 0, + bm: 0, +}; + +const lottie = { + v: "5.12.2", + fr: FRAME_RATE, + ip: 0, + op: DURATION, + w: WIDTH, + h: HEIGHT, + nm: "Batch Logo Loading", + ddd: 0, + assets: [], + layers: [...segments.map(segmentLayer), parentLayer], + markers: [], +}; + +const outputPath = resolve("out/batch-logo-loading.json"); +mkdirSync(dirname(outputPath), { recursive: true }); +writeFileSync(outputPath, `${JSON.stringify(lottie, null, 2)}\n`); + +console.log(outputPath); diff --git a/tools/remotion/batch-logo-loading/src/BatchLogoLoading.tsx b/tools/remotion/batch-logo-loading/src/BatchLogoLoading.tsx new file mode 100644 index 0000000..709e33e --- /dev/null +++ b/tools/remotion/batch-logo-loading/src/BatchLogoLoading.tsx @@ -0,0 +1,134 @@ +import React from "react"; +import { + AbsoluteFill, + Easing, + interpolate, + useCurrentFrame, +} from "remotion"; + +const VIEWBOX_WIDTH = 923.27; +const VIEWBOX_HEIGHT = 967.23; +const MARK_FILL = "#EAF6F1"; + +const clampEase = { + easing: Easing.bezier(0.16, 1, 0.3, 1), + extrapolateLeft: "clamp" as const, + extrapolateRight: "clamp" as const, +}; + +type SegmentProps = { + order: number; + vector: { x: number; y: number }; + children: React.ReactNode; +}; + +const Segment = ({ order, vector, children }: SegmentProps) => { + const frame = useCurrentFrame(); + + const start = 4 + order * 4; + const enter = interpolate(frame, [start, start + 17], [0, 1], clampEase); + + const radialIntro = 0.24 * (1 - enter); + const x = vector.x * -radialIntro; + const y = vector.y * -radialIntro; + const scale = 0.86 + enter * 0.14; + const opacity = interpolate(frame, [start, start + 12], [0, 1], clampEase); + + const style: React.CSSProperties & { + transformBox?: "fill-box"; + transformOrigin?: string; + } = { + opacity, + transform: `translate(${x}px, ${y}px) scale(${scale})`, + transformBox: "fill-box", + transformOrigin: "center", + }; + + return {children}; +}; + +export const BatchLogoLoading = () => { + const frame = useCurrentFrame(); + + const logoIntro = interpolate(frame, [0, 20], [0, 1], clampEase); + const markScale = interpolate(frame, [0, 22], [0.9, 1], clampEase); + const markY = interpolate(frame, [0, 22], [28, 0], clampEase); + const markRotate = interpolate(frame, [0, 58], [-10, 0], clampEase); + + return ( + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ); +}; diff --git a/tools/remotion/batch-logo-loading/src/Root.tsx b/tools/remotion/batch-logo-loading/src/Root.tsx new file mode 100644 index 0000000..9518c5c --- /dev/null +++ b/tools/remotion/batch-logo-loading/src/Root.tsx @@ -0,0 +1,15 @@ +import { Composition } from "remotion"; +import { BatchLogoLoading } from "./BatchLogoLoading"; + +export const RemotionRoot = () => { + return ( + + ); +}; diff --git a/tools/remotion/batch-logo-loading/src/index.ts b/tools/remotion/batch-logo-loading/src/index.ts new file mode 100644 index 0000000..f31c790 --- /dev/null +++ b/tools/remotion/batch-logo-loading/src/index.ts @@ -0,0 +1,4 @@ +import { registerRoot } from "remotion"; +import { RemotionRoot } from "./Root"; + +registerRoot(RemotionRoot); diff --git a/tools/remotion/batch-logo-loading/tsconfig.json b/tools/remotion/batch-logo-loading/tsconfig.json new file mode 100644 index 0000000..1e0cf79 --- /dev/null +++ b/tools/remotion/batch-logo-loading/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "Bundler", + "jsx": "react-jsx", + "strict": true, + "noEmit": true, + "lib": ["DOM", "DOM.Iterable", "ES2022"], + "types": ["node"], + "skipLibCheck": true + }, + "include": ["src"] +}