Add PWA support with offline download#10
Merged
Conversation
PWA: - Web app manifest for home screen install - Service worker caching app shell and static assets - PWA icons (192, 512) in regular and maskable variants - Apple Web App and theme-color meta tags Offline download: - "Download for offline" button on home page test cards - Only shows when running as installed PWA - Only shows for tests that have been opened (known question IDs) - Single bulk POST request to fetch all questions at once - Individual questions cached under TestRunner API URLs - Attachment images downloaded and cached sequentially - Progress bar with status during download - "Available offline" badge with trash icon to remove API: - POST /api/subject/questions — bulk endpoint accepting IDs in body
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Bulk POST /api/subject/questions: filtered IDs, all questions, validation, large lists - PWA assets: manifest.json, service worker, all icon variants
- Cache test runner pages on visit for offline replay - Cache Next.js RSC flight responses for client navigation - Pre-cache test page URL during offline download - Pass testHref to download function
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.
Summary
Progressive Web App support with explicit offline download for individual tests.
PWA
Offline Download
API
POST /api/subject/questions— bulk endpoint accepting question IDs in request body (no URL length limits)(https://claude.com/claude-code)