feat(meals): customizable meal type visibility in Settings (#14)

Users can now toggle which meal types (breakfast, lunch, dinner, snack)
are displayed in the meal planner via a new Settings section. Preference
is stored household-wide in sync_config and applied as a filter on the
meals page. Includes preferences API, i18n (DE/EN/IT), and Settings UI.
This commit is contained in:
Ulas
2026-04-04 22:51:57 +02:00
parent d472e9b9e8
commit 08159ec8b4
12 changed files with 237 additions and 12 deletions
+39
View File
@@ -316,6 +316,45 @@
color: var(--color-accent);
}
/* --------------------------------------------------------
Meal-Type-Toggles
-------------------------------------------------------- */
.meal-type-toggles {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.toggle-row {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
border-radius: var(--radius-sm);
cursor: pointer;
transition: background-color var(--transition-fast);
min-height: var(--target-lg);
}
.toggle-row:hover {
background-color: var(--color-surface-2);
}
.toggle-row input[type="checkbox"] {
width: 18px;
height: 18px;
accent-color: var(--color-accent);
cursor: pointer;
flex-shrink: 0;
}
.toggle-row span {
font-size: var(--text-sm);
font-weight: var(--font-weight-medium);
color: var(--color-text-primary);
}
/* --------------------------------------------------------
Abmelden
-------------------------------------------------------- */