Repository navigation
Audit: guard what the UI/UX review fixed - #11
Merged
Merged
Conversation
lesson-kit.md now describes the page as it is after #3-#9 (LeetCode links past a divider, the sticky transport and wrapping strip, part 3 folding to the chosen approach) and adds the rules a lesson can still break: - mode ids and control keys are in every shared link; parse(format(v)) must give back v - a rejection message is a short phrase - modes[0] is what 2·2 and part 3 open on - a custom stage's headings are <h5 class="as-h3"> - empty says what it waits for; slots()/blank()/stageEmpty(), and a dot only as notation - a widget's own clickable elements are 40px tall on touch SKILL.md gains one judgement call: a kit change is measured on every lesson before choosing, with a before/after when it changes how pages look.
npm run audit now also fails a page when: - a heading skips a level on any step - an answer slot, empty-stage note or ledger shows only a dot or dash (a dot in a stage cell is notation and allowed) - anything scrolls sideways at 320px (one code language; 400px keeps walking all of them) - space on a focused Next starts playback instead of pressing it, or → on an approach tab steps instead of moving between tabs - an untouched page has a query, a shared link reopens a different approach, step, code language, Part 3 pane or input, or "Report an issue" names a different state Repeats collapse to one line per approach, naming the first step. Each check was confirmed to fail with its fix reverted. CONTRIBUTING.md and the skill describe the new checks.
|
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.
What this changes
The checks I wrote while working on #3–#9 lived in a scratchpad. This PR moves the ones that guard what those PRs fixed into
npm run audit, so a page that undoes a fix now fails the audit.New checks in
scripts/audit.mjs·or—. A·in a stage cell is notation and is allowed.Repeated findings collapse to one line per approach, naming the first step where the problem appears.
Docs
CONTRIBUTING.md(the audit paragraph and the checklist),SKILL.mdstep 8, and the "Checking" section oflesson-kit.mdnow describe what the audit checks.Checked
main:npm run auditpassed on all 46 pages and the home page.·answer slots, x-sum's stage<h3>, the Space guard, reading the link) and ran the audit on x-sum and two-sum. It failed with 18 findings, each a readable line naming the approach and first step. Then I restored the code.