frontend/04: Pennsic Planner build-through tutorial - #51
Open
jbeshir wants to merge 3 commits into
Open
Conversation
Build-through tutorial covering the pure algorithmic conjugation engine, a Cloudflare Worker AI backend (run_worker_first + Workers AI), debounced abortable fetch with graceful degradation, lazy code-split corpus loading, bidirectional URL state, and romaji input transformation. Adds the README track row. Progressive: references frontend 01 and 02 for known concepts.
Build-through tutorial for the pennsic-planner widget as entry 04 in the progressive tutorials/frontend/ curriculum. Teaches the external observable store seam, remote persistence with optimistic concurrency, capability-URL hash routing, JS-computed layout geometry, and client-side .ics generation. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Entry 04 in the progressive
tutorials/frontend/curriculum, for the pennsic-planner widget — https://pennsic-planner.widgets.beshir.orgBuilt through the demesne frontend-tutorial pipeline (research → outline → 9 concurrent section drafts → stitch → review, 2 rounds → PASS). Markdown only; ~60 code excerpts verified verbatim against
widgets/pennsic-planner/source.New ground (reference-only for anything 01–03 own)
PlanStoreinterface + singletonRemotePlanStoreliving outside the component tree,subscribe/emitbridged intouseStatevia auseEffect.If-Match: <rev>,writing/dirtysingle-flight coalescing, 409 → reload-and-notify,pagehide+keepaliveflush.AppModediscriminated-union state machine, and theapplyRouteReflatest-closure pattern..icsgeneration & download — RFC 5545 + self-contained VTIMEZONE, octet-aware folding;Blob→ object URL →<a download>.top/height, greedy lane packing,findConflicts; cross-linked to the design tutorial for the CSS half.Already-covered concepts (hooks, lifting state, composition, URL-as-state, the Workers SPA+API model, domain-logic-outside-components, debounce, ResizeObserver→postMessage) are named-and-linked to [01]/[02]/[03], not re-taught.
Files:
tutorials/frontend/04-pennsic-planner.md(+1317), one newtutorials/frontend/README.mdrow. The 01/02/03 files are untouched.🤖 Generated with Claude Code