Switch exercise DB to gfauredev fork, add immutable defaults with Clone & Edit, periodic refresh, and Wake Lock - #28
Merged
Conversation
…xercises with Clone & Edit, Wake Lock API Co-authored-by: gfauredev <19304085+gfauredev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Enhance exercise database functionality and app behavior
Switch exercise DB to gfauredev fork, add immutable defaults with Clone & Edit, periodic refresh, and Wake Lock
Feb 20, 2026
gfauredev
marked this pull request as ready for review
February 20, 2026 00:27
🧪 Unit Tests & CoverageTest ResultsCoverage SummaryCoverage Gate ✅ PASSED — all tested files have ≥ 90% coverage
|
🚀 PageSpeed Insights (Lighthouse)
|
🔍 PR Preview BuildA preview build of this PR is available as a workflow artifact.
|
gfauredev
deleted the
copilot/enhance-exercise-database-functionality
branch
February 20, 2026 00:34
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.
Addresses several improvements to the exercise database and app behavior: switch data source to the gfauredev fork, make DB exercises read-only via clone-based editing, auto-refresh stale data, and prevent the device from sleeping during workouts.
Exercise DB URL — Single Source of Truth
EXERCISE_DB_BASE_URLinutils.rsas the sole constant pointing tohttps://raw.githubusercontent.com/gfauredev/free-exercise-db/main/dist/exercises.json) and image base path (exercises/) are derived from it — no more two places to update on fork changesImmutable Default Exercises
ExerciseCardgains anis_custom: boolpropcustom_{timestamp}ID, persists it, and navigates directly to its edit formExerciseListPagetracks(Exercise, is_custom)pairs and passes the flag downPeriodic Exercise Refresh
exercise_db_last_fetch(localStorage) is older than 7 days, cached data is served immediately and a background re-download is triggeredrecord_fetch_timestamp()writes the Unix timestamp after each successful downloadWake Lock — Inhibit Idle
New
services/wake_lock.rsrequestsnavigator.wakeLock.request("screen")viajs_sys::Reflect(no new web-sys WakeLock feature flags needed). Re-acquires onvisibilitychangeto survive tab switches. Progressive enhancement — silently no-ops on unsupported browsers.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.