Conversation
…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
Tier 5 scale upgrades plus Tier 6/7 polish: adds a DO-backed rate limiter, KV-cached session lists, structured logs with trace IDs, deep health checks, and ships PWA offline read-only, i18n, scorecard export, and static API docs.
New Features
RateLimiterDurable Object;CACHEKV forGET /sessions(KV 60s, HTTPmax-age=15,X-Cache), structured JSON logs withX-Trace-Idand 500 bodies includingtraceId, deep readiness atGET /health?deep=1(503 on DB down).GET /openapi.jsonand static Redoc at/docsfromapps/web/public/openapi.json(exported vianpm run export:openapi).vite-plugin-pwawith WorkboxNetworkFirstfor/sessions*; React Query persistence forsessions/session;OfflineBanner; queriesofflineFirst, mutationsonline.i18nextwithenstrings;FileFielduses hidden input + visible “Choose file” button; optional analytics viaVITE_PLAUSIBLE_DOMAINorVITE_CF_WEB_ANALYTICS_TOKEN.npm run deploy:staging:full; upgradedwranglerto v4; improved README.Migration
CACHE(run fromapps/api:wrangler kv namespace create ...) and deploy DO migration forRateLimiter; IDs are configured inwrangler.toml.npm run deploy:staging:full(migrate → force‑rls → rls check → seed → deploy).VITE_PLAUSIBLE_DOMAINorVITE_CF_WEB_ANALYTICS_TOKENfor analytics; no changes needed for local dev.Written for commit 3a9f531. Summary will update on new commits.