Repository navigation
Code review: escape typed input, keep widget focus, bound verify runs - #12
Merged
Merged
Conversation
- longest-substring: narration and widget lines escape the string the reader typed; a shared ?s=a<i>b link injected markup and garbled step 6 - esc() moves to kit.js, the one escaper lessons import; valid-palindrome drops its own copy - the stepper puts focus back on a redrawn widget chip or cell, which 44 widgets dropped to <body> on a keyboard pick - home page: a rate-limited replaceState in Safari no longer throws - run.py: each approach x language times out after 20 minutes and removes its container; rust:1-slim pinned to rust:1.98-slim, the version the badges quote - audit: wait out the 150ms address debounce before checking for a query, and stop playback only if the space test started it
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
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.
Fixes from the whole-codebase review. Nothing else is open, so this is against
mainwith no stack.Bugs
<,>and&, and the narration and widget spliced them in raw. A link with?s=a<i>bput a real<i>into step 6, which readThe run is "a", length 4. It now readsThe run is "a<i>", length 4. The stage and hover tip already escaped, so they are unchanged.<body>when a preset chip was chosen with the keyboard, and 6 did the same for cells. One listener instepper.js(keepFocus) puts focus back on the redrawn element with the samedata-*attributes. Widgets that already refocus are left alone.replaceStatein the search box is wrapped intry, because Safari throws when it is called too often (the same guardstepper.jsalready has).Tooling
run.py: each approach × language has a 20-minute timeout, and a timed-out Docker container is removed by name.rust:1-slimis pinned torust:1.98-slim, the version the badges quote (rustc 1.98). This touches a comment in every lesson.audit.mjs: the untouched-page query check now waits out the 150ms address debounce, and the space-test cleanup only clicks Play if playback is actually running.Duplicate code:
esc()now lives inkit.js, andvalid-palindromedrops its own copy. The lesson-kit reference coversesc()and the stabledata-*key widgets need.Checked
npm run check: 46 lessons, 0 failures.npm run audit: passed, 46 pages.run.py --stricton longest-substring, valid-palindrome and merge-intervals: all passed.