Conversation
- Added MediaUpload component for handling video and photo uploads with progress tracking and cancellation. - Introduced SessionMediaSection for attaching media to sessions, including video and poster uploads. - Enhanced CreateSession route to support optional player photo uploads during session creation. - Updated SessionDetail to display video and media upload options. - Improved media handling in the API, allowing for video URLs, posters, and player photos to be updated in sessions. - Added support for new video MIME types and updated OpenAPI specifications accordingly. - Implemented responsive image handling for session posters using PosterThumb component.
- Introduced a motion system with new utility classes for smooth transitions and animations. - Updated various components (e.g., App, MediaUpload, SessionDetail) to utilize the new motion classes for improved user experience. - Added AnimatedScore component for odometer-style score display using @number-flow/react. - Implemented AnimatedOutlet and AnimatedPanel for route transitions with horizontal sliding effects. - Enhanced accessibility by ensuring animations respect user preferences for reduced motion. - Updated styling rules to maintain a cohesive visual identity with Tailwind and shadcn. - Added new TabStrip component for improved navigation with sliding indicators. - Introduced RouteSkeleton for better loading states that match destination layouts.
- Introduced a new `GameGuideCard` component to display game mode instructions in a collapsible format. - Created a centralized `game-guides.ts` file as the single source of truth for game rules and instructions. - Added a new `GAME-GUIDES.md` documentation file detailing how to play each game mode. - Updated the `CreateSession`, `Overview`, and `SessionDetail` routes to incorporate the `GameGuideCard` for enhanced user experience. - Implemented tests for the `resolveGameId` function to ensure accurate game mode detection from session titles. - Enhanced documentation to guide future updates and maintain consistency across game instructions.
- Added support for JWT authentication, allowing users to exchange API keys for JWTs via the new `/auth/token` endpoint. - Introduced API key management with routes for listing and creating API keys, enhancing security and user control. - Updated the OpenAPI specification to reflect new authentication methods and security schemes. - Enhanced the principal resolution logic to support JWTs and API keys, improving authorization handling across the application. - Added tests to ensure proper functionality of the new authentication features and their integration with existing components.
…ures - Introduced `RateLimiter` Durable Object for per-IP rate limiting, replacing in-memory token buckets. - Added KV caching for session lists with a 15s TTL, including cache invalidation on session updates. - Implemented structured JSON logging with `X-Trace-Id` for enhanced observability and error tracking. - Updated health check endpoint to support deep readiness checks with database connectivity verification. - Enhanced API routes and middleware to integrate new features, ensuring compliance with updated specifications. - Added tests for health checks, rate limiting, and session caching functionalities to ensure reliability.
…ken setup - Clarified the process for creating KV namespaces, specifying that commands should be run from the `apps/api` directory. - Added instructions for copying KV namespace IDs into `wrangler.toml` for staging and production environments. - Included guidance for local development without Cloudflare KV and troubleshooting authentication errors related to the Cloudflare API token.
- Added unit tests for the History and Overview components using Vitest and Testing Library, improving test coverage and reliability. - Introduced contract tests to ensure OpenAPI paths align with expected schemas, enhancing API stability. - Implemented visual regression tests with Playwright to capture UI changes and maintain visual consistency. - Updated README and ROADMAP to reflect new testing capabilities and deployment instructions, including a full staging pipeline command. - Upgraded Wrangler to version 4 across the project for improved development experience.
- 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.
Summary by cubic
Adds polished page-load motion, media upload, and “how to play” guides on the web app, plus JWT auth with API keys, offline read-only caching, and a rate‑limited, cached API with structured logs for better UX, security, and reliability.
New Features
AnimatedOutlet,TabStrip, and route-aware skeletons; respects reduced motion.content/game-guides.tswithGameGuideCard; tests included.TextField/SelectField/FileFieldwith centralized copy./auth/tokenissues HS256 JWTs; API keys list/create UI at/settings/keys;AuthProvider+OwnerSwitcher.vite-plugin-pwa+ React Query persistence for sessions;OfflineBanner.i18next; API docs hosted in/docsusing Redoc.Scale & Reliability
RateLimiterDurable Object per IP (health/docs excluded).GET /sessions(60s TTL,Cache-Control: max-age=15,X-Cacheheaders).X-Trace-Id; deep readiness atGET /health?deep=1.wranglerv4; new envs includeOCHE_JWT_SECRET,RATE_LIMITER, andCACHEbindings.Written for commit 670ca34. Summary will update on new commits.