Feat/settings page#4
Merged
Merged
Conversation
…nshot - next.config.ts: pin a content-derived generateBuildId. Next's default buildId is random per build and is baked into index.html + the _next/static/<id>/ path, both precached — so the service worker's content-version changed on every build (even docs-only commits or CI re-runs), prompting every client to "Reload" with nothing actually to update. Hashing the build inputs makes the SW version stable across rebuilds of identical source while still changing on real app changes; unlike a constant id it keeps online users safe (new content → new asset folder). - DataLog: render measurements newest-first (latest on top, oldest at the bottom); display-only — the underlying dataset, chart, stats, and CSV stay chronological. - README: add interface screenshot near the top + expand the PWA install/offline section (no native .exe/.dmg needed). - bump version 1.0.4 → 1.0.5 (single bump for the session); realign stale package-lock version.
Add a third sidebar view, Settings, persisted to localStorage (lib/settings.ts, version-tagged, per-field validation, SSR-safe). Each setting has a keyboard-accessible help tooltip; defaults reproduce prior behavior so the change is non-breaking. Settings: - Stable readings to confirm (>=2): stability is now N consecutive equal readings (stableRunRef) instead of a fixed single-prev compare. - Trigger hysteresis (%): replaces the hardcoded RELEASE_RATIO=0.9; release = threshold * (1 - pct/100). - Keep log on mode change: splits flushSession into a full reset vs. resetSessionDerived (keeps recorded rows, resets the single-unit chart/stats) for the preserve path. No-data warning: - Detect connected-but-silent (status connected, no reading for ~3s) via a status-keyed poll over lastDataAtRef. - Whole-page dismissible NoDataWarning overlay (default on); re-arms per outage. overlayVisible gates both the overlay and the audio. - Optional audio alert (default off) via a Web Audio beeper (lib/beep.ts, no asset); sounds only while the overlay is visible. Extract the shared Toggle from Controls into components/Toggle.tsx. Bump version 1.0.5 -> 1.1.0.
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.