Skip to content

Fix/academy review findings - #17

Merged
amielnoy merged 6 commits into
mainfrom
fix/academy-review-findings
Aug 20, 2026
Merged

Fix/academy review findings#17
amielnoy merged 6 commits into
mainfrom
fix/academy-review-findings

Conversation

@amielnoy

Copy link
Copy Markdown
Owner

No description provided.

amielnoy and others added 6 commits August 20, 2026 14:18
Every slide's root carries dir={dir}, which is rtl in Hebrew, and the code
panels inside it inherited it. The bidi algorithm then resolved each line's
trailing neutrals against an RTL paragraph and moved them to the front, so

    def test_system_prompt_includes_persona():

rendered as

    :()def test_system_prompt_includes_persona

Every deck was affected, because the panels are copy-shared between the ten
artifacts. Code reads left-to-right whatever the prose around it does, so
each panel now says so itself: direction: 'ltr' plus textAlign: 'left',
because direction alone leaves text-align: start, which an ancestor's
explicit textAlign: 'right' still wins over — and several slides set exactly
that on the column holding the panel.

246 declarations across 98 slide components in all ten decks.

tests/unit/lectureDecks.spec.ts gains three cases, in the file that already
guards the copy-shared stage logic: one that there are panels to find at all,
so a regex that stops matching cannot turn the others green, and one each for
direction and alignment. Checked by mutation — removing a single declaration
from one slide in one deck fails the suite.

Verified in a browser as well as in the source: all 323 slides in all ten
decks were loaded with ?lang=he and every element that introduces a monospace
family was asserted to compute direction: ltr. That sweep is what caught the
last ten, which sit in single-line style objects that Prettier writes without
a trailing comma — the first pass required one and skipped them, and the
first version of the test had the same blind spot.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@amielnoy
amielnoy merged commit ed4b143 into main Aug 20, 2026
6 of 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