Skip to content

Say what an empty spot means instead of drawing a dot - #9

Merged
devmtnaing merged 3 commits into
mainfrom
empty-states
Sep 28, 2026
Merged

devmtnaing merged 3 commits into
mainfrom
empty-states

Conversation

@devmtnaing

Copy link
Copy Markdown
Owner

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.

Stacked on #3–#8. Until those merge, this diff also shows their commits. Merge in order and it shrinks to its own commit.

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

  • Unfilled answer slots, 28 lessons: · becomes a faint ?, with "not yet" (or "မရသေး") for screen readers. The fix is in slots() in src/lib/stage.js. product-of-array-except-self and rotate-image build some slots by hand, so they now use the same blank() helper.
  • x-sum: the third brute-force step, "sum the survivors", showed — 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.
  • basic-calculator: the empty "running call" panel showed —. It now says "no call running".
  • base.css gets a .vh utility 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

@coderabbitai

coderabbitai Bot commented Sep 27, 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: 6c5a5fb4-f285-4d97-abf8-43c66dbe64c9


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 27, 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 ↗ 5c8c34d 2026-09-28T06:27:03.176Z Visit the dashboard ↗
  • Build: Success ✅

View logs ↗
No Preview URL. Enable ↗ d12c406 2026-09-27T05:10:53.784Z Visit the dashboard ↗

- 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
devmtnaing merged commit 6d9a923 into main Sep 28, 2026
52 checks passed
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.
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