Repository navigation
Conversation
…cache - Refract-Protocol#558: add correct createAppStore / useStoreSelector usage example to src/lib/store/README.md, importing from the barrel (@/lib/store) not the internal module - Refract-Protocol#559: add scripts/dev.mjs wrapper that warns when port 3000 is busy so contributors see the actual URL instead of a stale tab; update package.json "dev" script to call it - Refract-Protocol#562: add v8 coverage config to vitest.config.mts; exclude test setup and stories but keep src/lib/realtime/testing in coverage - Refract-Protocol#563: add mtime-keyed on-disk cache (.api-drift-cache/) to scripts/api-check-drift.mjs so repeated invocations skip the openapi-typescript subprocess when the spec has not changed Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@fn-ripe Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
src/lib/store/README.mdexample imports a path that does not exist #558 – Add a concretecreateAppStore/useStoreSelectorexample tosrc/lib/store/README.md, importing from the barrel@/lib/store(not the internal@/lib/store/createStore) and showing field-level selection to prevent full-store re-renders.npm run devprints no URL hint when the port is already taken #559 – Addscripts/dev.mjs, a Next.js wrapper that checks whether port 3000 (or the--portarg) is already in use and prints a clear warning so contributors don't sit staring at a stale browser tab.package.json"dev"script updated to call it.vitest.config.mtsexcludessrc/lib/realtime/testingfrom coverage, hiding untested helpers #562 – Addcoverageblock tovitest.config.mtsusing thev8provider. Excludessrc/test/**,*.d.ts, and*.stories.*but keepssrc/lib/realtime/testingso coverage reports helpers that tests depend on.scripts/api-check-drift.mjsnow caches the generatedschema.d.tsin.api-drift-cache/keyed by the YAML spec'smtimeMs. Repeated invocations (pre-commit hook, CI matrix) skip theopenapi-typescriptsubprocess entirely when the spec has not changed.Test plan
npm run devon a machine where port 3000 is free: no warning, Next.js starts normallynpm run devwith something else on port 3000: warning line printed before Next.js outputnpm run test -- --coveragecompletes and includessrc/lib/realtime/testingin the reportnode scripts/api-check-drift.mjscold run creates.api-drift-cache/<key>.d.tsopenapi/refract-api.yaml; re-run: subprocess runs again with new cache key@/lib/storeresolves tocreateAppStoreanduseStoreSelectoras the README example showsCloses #558
Closes #559
Closes #562
Closes #563
🤖 Generated with Claude Code