Skip to content

fix: bring visualization fixes to main, with browser-check corrections - #68

Merged
ru44 merged 10 commits into
mainfrom
fix/visualization-bugs
Nov 25, 2026
Merged

ru44 merged 10 commits into
mainfrom
fix/visualization-bugs

Conversation

@ru44

@ru44 ru44 commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

#67 was merged into the improve/bilingual-remaining-lessons branch instead of main, so its visualization fixes never reached main. This PR brings them to main, plus four display problems found by opening the fixed pictures in a headless browser:

  • Generators: the wave was drawn past the bottom of the picture, so the negative half was cut off.
  • Electric field: the top row of field arrows ran through the hint line and made it unreadable.
  • Decibels: the note beside the linear bar ran across the decibel ladder labels; it now sits under the bar.
  • Graph search (BFS, DFS, Dijkstra): the "start" and "goal" labels were English in Arabic.

Browser check: 22 of the fixed pictures were opened in English or Arabic at 1280 px wide; none threw a runtime error. The logarithmic decibels slider, the Lorentz velocity selector (straight path), the motor and generator coil orientation, the Stern–Gerlach spots, the PID labels and the economics readouts were confirmed on screen. Not checked: 3D views, dark theme, phone width, and the pictures not listed in #67.

Added after a second browser pass

  • Lesson page: on a wide screen the picture card stretched to the height of the slider panel, leaving a large empty area under 3D scenes (reported on what-is-a-dimension). The picture and chart cards now keep their own height.
  • Slider units that are words (yr, mo, $, $bn, USD, EGP, …) are shown in Arabic (سنة، شهر، دولار، جنيه…), with the number first.
  • Lorentz force and atomic structure: all labels translated; the mass number now sits before the element symbol instead of on top of it.
  • Joins and GDP: overlapping labels moved apart.
  • Upstream visualize-it/visualize-it.github.io 398ebf5 ("First round of corrections") applied to public/legacy/, with the Arabic text keys updated for the eight corrected sentences and a broken </li> tag closed in the special relativity page.

Checked in a headless browser: the fixed pictures in English and Arabic, five 3D views, dark theme, and phone width (390 px). The classic pages changed upstream were checked in Arabic for leftover English.

Still open: element names in the periodic-table picture are English in Arabic; at phone width the 2D pictures are small and their labels hard to read (all lessons, not new).

Validation: pnpm check (390 lessons, 0 problems), pnpm lint and pnpm build pass.

@ru44
ru44 merged commit 596122d into main 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