Skip to content

Skill: what the UI/UX review changed for a lesson author - #10

Merged
devmtnaing merged 1 commit into
mainfrom
skill-ux-lessons
Sep 28, 2026
Merged

devmtnaing merged 1 commit into
mainfrom
skill-ux-lessons

Conversation

@devmtnaing

Copy link
Copy Markdown
Owner

What this changes

After the UI/UX review (#3–#9), the leetcode-solution-page skill described parts of the page that no longer exist, and it didn't mention the few rules a lesson can still break. Nearly all of the fixes live in the kit, so a new page gets them without the skill saying anything. This PR only adds what an author needs to know.

references/lesson-kit.md

Brought up to date:

  • The header's LeetCode links sit past a divider as plain links.
  • 2·2's transport and narration stay on screen while you scroll, and the strip wraps.
  • Part 3 folds to the approach chosen in 2·1, and its language tabs stay in reach.

New rules, each placed next to the part of the page it's about:

  • Ids and keys are addresses. Mode ids and control keys appear in every shared link, so keep them stable, and make sure parse(format(v)) gives back v for every control.
  • A control's rejection message is a short phrase, because the kit adds "the walkthrough below still shows the last input that worked" after it.
  • modes[0] is the approach 2·2 and Part 3 open on, so it should be the one a reader meets first.
  • A custom stage's headings are <h5 class="as-h3">, which keeps the page outline unbroken.
  • Empty says what it's waiting for. Use words, slots() or blank(). A · is only for notation such as an empty board square or a cell not computed yet.
  • A widget's own clickable elements are 40px tall on touch screens.

SKILL.md

One new judgement call: measure a kit change on every lesson before choosing it, and show a before/after when it changes how pages look. This comes from #8, where the Part 1 fix that suited x-sum would have made most pages worse.

Checked

Every name the new text mentions exists in the code: blank in stage.js, .empty and .as-h3 in the CSS, stageEmpty in kit.js, and the query parameters in stepper.js.

The follow-up PR moves the checks behind these rules into npm run audit, and updates the "Checking" section here and CONTRIBUTING.md to match.

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.
@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 59a19629-9256-42ce-8800-f371eff61d3f


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ ca538f8 2026-09-28T08:05:10.593Z Visit the dashboard ↗

@devmtnaing
devmtnaing merged commit b52faa3 into main Sep 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant