Repository navigation
Try it: run the lesson on the playground's simulate view - #11
Merged
Merged
Conversation
The lesson's widget was a small hand-made copy of the playground's simulate view. It's now that view, from comline-web-kit (a workspace of the playground repo) in its lesson layout: the Chat client and server from chat.lesson.json, the client's calls, the server's behaviours (reply, echo, drop) and the frame log, themed with the tutorial's palette. - comline-web-kit replaces the direct comline-simulator dependency; it depends on the simulator itself. CI skips the kit's editor WASM (COMLINE_KIT_EDITOR=0), as it skips the scripted engine. - Vite serves the kit as source (optimizeDeps.exclude), and TypeScript allows its .ts import paths. - The page says to click the server to change its behaviour. - A Playwright test sends a call, sees the reply and frames, switches the server to drop, and sees the next call time out.
This was referenced Nov 14, 2026
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.
Step 3 of ComlineProject/playground#118.
The "Try it" lesson's widget was a small hand-made copy of the playground's simulate view. It's now that view:
comline-web-kit(a workspace in the playground repo) in its lesson layout.What the lesson shows
chat.lesson.json, drawn as the playground draws them and fitted to the page.sendandnotewith their arguments, and the reply under each.reply,echoanddrop, as before. The page text now says to click it.--cl-*properties.Changes
comline-web-kitby git,#workspace=comline-web-kit&commit=<sha>, replaces the directcomline-simulatordependency; the kit depends on the simulator itself..yarnrc.ymlapproves the playground repo.COMLINE_KIT_EDITOR=0skips the kit's editor WASM, asCOMLINE_SIMULATOR_SCRIPT=0already skips the scripted engine. Only the lean engine WASM ships (1.2 MB, as before).optimizeDeps.exclude), andtsconfig.jsonallows its.tsimport paths.Simulation.sveltemounts the view through an action.tests/try-it.test.ts: it sends a call and sees the reply and frames, then switches the server todropand sees the next call time out./test-resultsis ignored.Before merging
The pin points at a commit on the playground's
kit/lesson-modebranch (ComlineProject/playground#120). Once #119 and #120 merge, repin to the merge commit onmaster, so the pin doesn't depend on a branch that gets deleted.Verified locally
yarn installresolves the kit from git, withCOMLINE_KIT_EDITOR=0 COMLINE_SIMULATOR_SCRIPT=0.yarn checkreports 0 errors,BASE_PATH=/tutorial yarn buildsucceeds, and ESLint and Prettier are clean on the changed files.yarn lintas a whole still fails on files this PR doesn't touch, as it does onmain.Not in this PR
The tutorial page lays its paragraphs and the widget out side by side, so the view gets about 390px. It renders and fits at that width, but the frame log's columns are tight. That's the page's layout, the same on
main, and it's left for whoever is working ontutorial_page.svelte.