feat: BLS-Stammdaten, FDDB-Mapping und Item-Tagebuch (#106)
Katalog, lernendes Mapping ohne KI, optionale Items und Import-Policy. Playwright-Smoke und Issue-Audit um Ernährung/Zuordnen/API ergänzt. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
72d101415f
commit
919c77fcf8
39 files changed
+2648
-47
No files matched your search
@@ -458,6 +458,33 @@ export default function SettingsPage() {
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<div className="card section-gap">
|
||||
<div className="card-title">Ernährungs-Import</div>
|
||||
<p style={{ fontSize: 13, color: 'var(--text2)', marginBottom: 12, lineHeight: 1.6 }}>
|
||||
Wenn für einen Tag schon Makros existieren: nachfragen, Katalog-/FDDB-Summe schreiben oder die bestehenden Werte behalten.
|
||||
Für den einmaligen FDDB-Reimport kannst du auch die Checkbox am Import nutzen.
|
||||
</p>
|
||||
<select
|
||||
className="form-input"
|
||||
value={activeProfile?.nutrition_import_conflict_policy || 'prompt'}
|
||||
onChange={async (e) => {
|
||||
try {
|
||||
await api.updateActiveProfile({ nutrition_import_conflict_policy: e.target.value })
|
||||
await refreshProfiles()
|
||||
setSaved(true)
|
||||
setTimeout(() => setSaved(false), 2000)
|
||||
} catch (err) {
|
||||
setProfileErr(err.message)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<option value="prompt">Bei Abweichung nachfragen</option>
|
||||
<option value="overwrite_catalog">Immer Katalog-/BLS-Summe</option>
|
||||
<option value="overwrite_fddb">Immer FDDB-Rohsumme</option>
|
||||
<option value="keep_existing">Bestehende Makros behalten</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
{/* Auth actions */}
|
||||
<div className="card section-gap">
|
||||
<div className="card-title">🔐 Konto</div>
|
||||
|
||||
Reference in new issue
Block a user