Repository navigation
Say what an empty spot means instead of drawing a dot - #9
Merged
Merged
Conversation
|
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
|
- Each part 3 solution's heading is a disclosure button (aria-expanded, aria-controls). The approach chosen in 2·1 starts open, the others fold to their heading; choosing another approach opens it too. Folds hold across the five language panes, a page-language switch and deep links. Copy still copies a folded solution. - The part 3 language tabs stick under the masthead until part 3 ends. - On phones the language tabs keep to one row (two rows of touch-sized tabs made a 94px sticky bar) and scroll sideways only at ~320px, where the selected tab is kept in view without moving the page.
The two cards stretch to their row's height instead of aligning to the top, so the shorter one keeps its spare room inside its own card rather than leaving a hole beside the taller one. Which is taller varies by lesson (the statement on 20 of 46, the widget on 26), so this fixes both directions; below 900px they stack as before.
- An answer slot not yet filled shows a faint "?" and reads "not yet" to a screen reader, instead of "·" (slots() in stage.js, used by 40 lessons; product-of-array-except-self and rotate-image's hand-built slots use the same blank()). - x-sum's third brute-force step reads "not summed yet", like the two above it, instead of "—" and a 30px "·" that looked like "▪". - basic-calculator's empty running-call panel says "no call running". - A .vh utility hides text from sight but not from screen readers. Dots that are notation stay: an empty n-queens square, a table cell not computed yet, an unknown bit, the dummy list node.
devmtnaing
force-pushed
the
empty-states
branch
from
September 28, 2026 06:24
d12c406 to
5c8c34d
Compare
This was referenced Sep 28, 2026
devmtnaing
added a commit
that referenced
this pull request
Sep 28, 2026
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.
devmtnaing
added a commit
that referenced
this pull request
Sep 28, 2026
* Skill: what the UI/UX review changed for a lesson author 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. * Audit: guard what the UI/UX review fixed 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.
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
Item 8, the last one from the x-sum UI/UX review: placeholders such as
·,—and▪that meant nothing before the first step.How I scoped it
I stepped through every approach of every lesson and recorded each element whose only text is a placeholder glyph. 31 lessons had at least one. I sorted them into placeholders that tell the reader nothing, and fixed those, and notation that means something, and kept those.
Fixed
·becomes a faint?, with "not yet" (or "မရသေး") for screen readers. The fix is inslots()insrc/lib/stage.js. product-of-array-except-self and rotate-image build some slots by hand, so they now use the sameblank()helper.—and a 30px·that looked like▪. It now reads "not summed yet", like "not counted yet" and "not ranked yet" on the two steps above it.—. It now says "no call running".base.cssgets a.vhutility for text that screen readers read but sighted readers don't see.Kept, because it's notation: an empty n-queens square (
·), a table cell not computed yet (climbing-stairs dp, the matrix memo, rotate-image's output matrix, product-of-array's factors), unknown bits in single-number, merge-two-sorted-lists' dummy node, and—for an unset variable in the hover tooltips.Checked
?slots and the notation listed above.npm run check,npm run build, thennpm run audit(axe in both themes): passed, 46 pages.