Claude/food tracking feature hv6bij#2
Merged
Conversation
Tapping a food entry in today's list loads it back into the add-form for editing (name/macros/quantity), with Save Changes/Cancel actions. Adds FoodStore.update(), backed by IndexedDB get+put preserving id and createdAt. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3Q361t53QdxgaV8nHSayT
Switches deploys from the native Pages-artifact flow (which can only host one atomic deployment) to publishing both builds onto the gh-pages branch: main still deploys to the site root, while every other branch overwrites a single shared /tag-notes/preview/ path, so a feature-branch PWA can be installed once on iOS and just gets replaced by whichever branch is pushed next. Makes the base path and PWA manifest/start_url/scope generated rather than hardcoded (VITE_BASE_PATH/VITE_APP_VARIANT env vars), since the preview build needs to live under a different subpath and be distinguishable by name from the production app. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3Q361t53QdxgaV8nHSayT
The production service worker registers with scope "/tag-notes/", which also covers "/tag-notes/preview/". Its workbox NavigationRoute had no denylist, so on devices that had already installed the production PWA, that active worker intercepted every navigation in scope - including a first-ever visit to /preview/ - and served back the old production index.html/JS before the preview build's own worker ever got a chance to register. This made the preview deploy look like it was missing features (e.g. the food-entry edit-on-tap) that were actually present in the deployed files all along. Add a navigateFallbackDenylist to the production build's workbox config so its navigation fallback never claims the /preview/ subpath. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K3Q361t53QdxgaV8nHSayT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.