Skip to content

fix: visualization bugs found during the bilingual lesson review - #67

Merged
ru44 merged 9 commits into
improve/bilingual-remaining-lessonsfrom
fix/visualization-bugs
Nov 25, 2026
Merged

ru44 merged 9 commits into
improve/bilingual-remaining-lessonsfrom
fix/visualization-bugs

Conversation

@ru44

@ru44 ru44 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Follow-up to #66. The lesson review there found bugs in the pictures themselves and left src/ untouched; this PR fixes them and re-syncs the lesson text in both languages where a fix changes what the student sees.

Stacked on improve/bilingual-remaining-lessons; retarget to main once #66 is merged.

Electromagnetism

  • Lorentz force: electric and magnetic forces now balance at v = E/B, the orbit closes instead of spiralling outward, and the deflection direction for a field into the screen is corrected.
  • Motors and generators: the coil was drawn 90° off.
  • Electric field: arrows have heads; readout labels are translated.

Quantum, cosmos, chemistry

  • Stern–Gerlach: the two spots no longer overlap at the lesson's settings, and the dots follow the sliders.
  • Expansion: the state readout is correct today and for an empty universe.
  • Electron shells: real ground-state filling (K is 2·8·8·1, not 2·8·9), including the common exceptions.
  • Particle in a box: two challenges could be passed by the same setting.

Nuclear, biology, earth and space

  • Binding energy: Fe-56 and U-235 show the right element; the peak is at Ni-62.
  • Chain reaction: k below 1 fades over several generations instead of dying at once.
  • Decay, fission and fusion: challenges that autoplay used to complete on its own now need a setting from the student.
  • Mutation strip: red boxes appear at the presets.
  • Seasons: the 2D plot follows the tilt slider.

AI, computer science, data, cryptography, networking

  • Neural network: sign error in the second hidden unit.
  • Overfitting: the verdict follows the new-point error.
  • Tokenizer: slider capped at the merges that exist.
  • Sorting: counting and radix sort show "reads", not "comparisons".
  • Graph search: BFS/DFS path length counts edges; DFS marks nodes on visit.
  • Powers of ten: the world's data is at 10^23 bytes.
  • Lattice: an off-screen rounded point is marked at the edge.
  • RSA: the same-prime challenge uses the snapped primes.
  • RAID mirror with an odd number of disks reports the right capacity.
  • Join and compression labels translated.

Aerodynamics, engineering, economics

  • Wingtip vortices respond to aspect ratio; helicopter defaults are on the slider grid; the propeller mass-flow formula in the text matches the picture; Bernoulli challenges use the picture's air density.
  • Decibels: new optional scale: log for parameter sliders, so ×10 and ×100 are reachable (touches ParamSlider.vue, LessonView.vue, the parameter schema and the content build).
  • PID plot labels and the economics currency/unit readouts are translated.

Left as is

  • Action potential going quiet at high current is a real depolarization block; the lesson now says so.
  • Reynolds slider values are reachable; only drag precision is coarse.
  • "NULL" and the "b" unit stay, because the lessons quote them.
  • Lorentz-force readout labels and the slider units in three economics lessons are still English.

Validation: pnpm check (390 lessons, 0 problems), vue-tsc --noEmit, pnpm lint and pnpm build pass. The fixes were checked by reading the source and by calculation; none of the pictures has been looked at in a browser.

@ru44
ru44 merged commit 0efc822 into improve/bilingual-remaining-lessons Nov 25, 2026
2 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