Conversation
- Updated session list caching to use a 60s TTL in Cloudflare KV with a 15s HTTP max-age for responses, improving cache efficiency. - Introduced a new utility function `isSessionId` for validating session IDs against a UUID format. - Enhanced session retrieval routes to validate session IDs before processing requests, ensuring better error handling. - Refactored cache-related functions to handle errors gracefully, maintaining API reliability. - Updated documentation to reflect changes in caching strategy and session ID validation.
- Integrated PWA capabilities using vite-plugin-pwa, enabling offline access and caching for session data. - Added i18n support with react-i18next, providing English translations for navigation and session details. - Implemented a scorecard export feature, allowing users to generate print-ready scorecards for sessions. - Introduced an OfflineBanner component to notify users when offline, enhancing user experience. - Updated package dependencies to include necessary libraries for analytics and query persistence. - Enhanced documentation to reflect new features and usage instructions.
… updates - Updated the `FileField` component to include a visible button for file selection, improving user experience. - Implemented state management to display the selected file name, enhancing feedback for users. - Modified tooltip descriptions in the documentation to clarify the new file input pattern and usage guidelines. - Ensured accessibility by maintaining proper aria attributes and labels for the file input.
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.
FileFieldcomponent to include a visible button for file selection, improving user experience.Summary by cubic
Adds offline-ready PWA with cached session data, i18n, and a print-ready scorecard export. Also improves file upload UX and hardens API caching and session ID validation.
New Features
vite-plugin-pwa+ persisted queries (@tanstack/react-query-persist-client,@tanstack/query-sync-storage-persister) with an offline banner; mutations stay online-only.react-i18next(EN) for nav, session detail, and scorecard labels./docswith OpenAPI JSON exported duringapps/webbuild; optional privacy analytics viaVITE_PLAUSIBLE_DOMAINorVITE_CF_WEB_ANALYTICS_TOKEN.FileFieldnow uses a hidden input + visible “Choose file” button and shows the selected file name.Refactors
max-age=15, graceful KV errors; headers includeX-Cache.offlineFirst; mutations areonline; onlysessionsandsessionqueries are persisted.Written for commit b4b02f2. Summary will update on new commits.