Repository navigation
feat(institute): serve the Ratstack Institute from the Effect UI Website - #378
Merged
Merged
Conversation
# Conflicts: # .env.schema
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
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.
Serves the Ratstack Institute course from the Effect UI Website, behind two switches that both default to off.
What ships
apps/web/src/institute/contentdecodes a digest-pinned Institute build (INSTITUTE_CONTENT_ARTIFACT) and stages only the six Ratstack chapters as hashed Website static assets: 71 files, 14.0 MB, with WebM narration plus an AAC fallback per section. No lesson bytes reach Worker JavaScript, and the fork runtime isn't staged. Kit Langton's two Effect chapters are credited links to Effect Institute.apps/web/src/institute/playerports the timed code-and-narration player to Effect UI, with an XState lifecycle. Against the original player on an aligned 24 s sample, narration drifted at most 17 ms from the on-screen words, and code steps at most 14 ms.?section=) and credits. Chapter pages load the player after hydration; the home page loads no player code. The player picks WebM whencanPlayTypesupports it, otherwise AAC. It follows the next-section link when narration ends..webmand.m4aare served with byte ranges. If ASSETS answers a Range request with 200, the Website returns a single 206 range. The old Institute service binding still wins where it exists.Switches
INSTITUTE_ENABLEDINSTITUTE_PUBLIC/institutereturns the normal not-found page, as it does todayThis PR changes no deployed behaviour until
INSTITUTE_ENABLEDis set.Checks
pnpm turbo run check test build --summarize: 106/106 tasks on the integrated tip, with commit hooks passing on every commit.ad383c8, digestcdba4794…42ad): exactly six chapters staged, matching a per-file size receipt.Not claimed here: real Cloudflare Range behaviour and native iPhone Safari. Both are checked on the unlisted deploy.
Credits
Built from Kit Langton's Effect Institute (MIT). The notice is kept on the course credits page. Narration voice: "Tom - Conversations & Books" from the ElevenLabs Voice Library.