From 03207f7bfe0efbacc331a4f4cb48aa5f20121f71 Mon Sep 17 00:00:00 2001 From: iamdoubz <> Date: Thu, 5 Nov 2026 16:08:42 -0600 Subject: [PATCH] Add lunch screen --- frontend/src/routes/LunchPage.svelte | 112 +++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 frontend/src/routes/LunchPage.svelte diff --git a/frontend/src/routes/LunchPage.svelte b/frontend/src/routes/LunchPage.svelte new file mode 100644 index 0000000..b010425 --- /dev/null +++ b/frontend/src/routes/LunchPage.svelte @@ -0,0 +1,112 @@ + + +
Add your children in Settings first.
+{:else} +No lunch menu is set up for {child?.display_name}. Add a source with the “Lunch menu” layout in Settings, then scan the menu.
+ {:else if error} +{error}
+ {:else if days === null} +Loading…
+ {:else if !days.length} +No published menu for {monthLabel(month)} yet. Scan it from the Scans tab.
+ {:else} +{child?.display_name}: tap the days to pack lunch. {picked} picked. Each pick goes on the calendar as “Pack lunch”.
+{d.closed ?? 'No lunch this day'}
+ {:else} + {#each d.menus as m} + {#if d.menus.length > 1}{m.source_name}
{/if} +{m.items.join(' · ')}
+ {/each} + {/if} + {#if !d.greyed || d.picked} + + {/if} +