Skip to content

Improve Racked PWA reliability, security, accessibility, and testing - #1

Merged
mrwave95 merged 9 commits into
mainfrom
improve/pwa-reliability
Oct 25, 2026
Merged

mrwave95 merged 9 commits into
mainfrom
improve/pwa-reliability

Conversation

@mrwave95

Copy link
Copy Markdown
Owner

Summary

Improve Racked's reliability while keeping its self-contained HTML/CSS/JavaScript architecture, existing features, version-1 backups, and zero runtime dependencies.

  • Protect workout data with validated imports, failed-save rollback, recovery exports, preserved notes/metadata and restored active-session controls.
  • Fix workout defaults, measurement dates, unsafe imported IDs, numeric overflow and misleading save/copy feedback.
  • Prevent tabs overwriting each other with exclusive edit ownership, stale-data checks and recoverable drafts.
  • Improve offline cache ownership, update/error handling, keyboard access, modal focus and mobile carousel behavior.
  • Retain 55 regression tests and automated testing CI; simplify shared test setup, remove unused code, and keep repository-specific AGENTS.md concise.

Keep deployment simple

Keep the existing GitHub Pages Deploy from a branch → main → /(root) setup and URL. Remove the unnecessary pages.yml publishing workflow and references to switching deployment systems. No replacement workflow, build step, Pages settings change, merge or deployment is included. Development files stay in Git; the app loads only its runtime assets. Changes to main publish through the existing Pages process, so merging requires approval.

WebKit test failure

The previous CI passed the main 55 tests and 13/14 additional WebKit tests. The remaining failure matches a confirmed Playwright/WebKit offline-emulation bug: #42775, fixed upstream in #42894. Offline emulation can reject navigation before the service worker handles it, including when a worker returns literal HTML.

The compatibility test now disconnects the origin server instead. It requires a 200 response from the installed service worker and verifies that saved notes and sets survive. No application behavior, dependency version or caching logic was changed to satisfy the test. Chromium's existing browser-offline checks remain, and no error is caught/ignored or assertion disabled.

Verification

  • Local npm test: 55 passed, 0 failed, 0 skipped.
  • GitHub Actions run 40169748251: main 55-test suite and all 14 additional Linux WebKit checks passed on commit 578c7c3. The previously failing navigation now passes.
  • Local WebKit installation is blocked by the environment's download-host policy; no local WebKit success is claimed.
  • git diff --check passed; production dependency tree remains empty.
  • All five application assets and the automated testing workflow remain unchanged by this final cleanup.

Final HTML + service-worker size versus original 07da71d: 1,627 → 1,963 lines; 73,466 → 92,451 bytes; 18,368 → 24,040 gzip bytes. The earlier simplification removed 196 net repository lines without removing test cases. There is no claimed overall startup speedup.

Remaining checks

Real iPhone/iPad Safari and Home Screen installation validation remains outstanding; Linux WebKit is not a substitute. Refresh older Racked tabs before rollout because old loaded code cannot honor the new writer lock. Browser storage remains local and should be backed up.

See docs/technical-review.md for engineering details. This PR is for review only; do not merge or deploy without explicit approval.

@mrwave95
mrwave95 merged commit 2f94f3b into main Oct 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant