• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / frontend / 30704730473
45%

Build:
DEFAULT BRANCH: master
Ran 01 Aug 2026 02:56PM UTC
Jobs 1
Files 475
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Aug 2026 02:53PM UTC coverage: 44.971% (+0.3%) from 44.713%
30704730473

push

github

web-flow
Add local-file ("folder") imports for py2js (§2+) (#4221)

* Add local-file ("folder") imports for py2js (§2+)

* Bump language-directory to 0.0.20; add defaultFileExtension wiring

- Bumps @sourceacademy/language-directory to 0.0.20 (tagged, has real
  foldersEnabled types) and drops the temporary ILanguageDefinition cast in
  Playground.tsx now that it's no longer needed.
- Wires up defaultFileExtension (source-academy/language-directory#55, not
  yet tagged so still cast the same way foldersEnabled originally was): the
  Playground previously hardcoded "program.js" as the default single-file
  entrypoint filename whenever a workspace had no open tabs, regardless of
  language. WorkspaceSaga's setFolderMode handler and evalEditor's saga now
  read the current language's own extension (e.g. "program.py" for Python)
  via a small getDefaultFileExtension helper.
- Updates the Playground snapshot test: with the real bundled directory
  data, Python §1 (foldersEnabled: false) is now the app's default selected
  language (languages[0]), so the Folder Mode button correctly renders
  disabled by default — a real, intended behavior change from the original
  foldersEnabled commit that a Node-version issue in this checkout had
  prevented from surfacing via the test suite until now.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011b8eJsqoDGiuesf5uQ42oG

* Force-disable folder mode when the current language doesn't support it

CodeRabbit review finding on PR #4221: foldersEnabled only disabled the
toggle button, so folder mode already active from a share link's isFolder
param, or left on from a previously-selected language, stayed active after
switching to a language like Python §1 — with no way to turn it off, since
the now-disabled button couldn't be clicked either. Added a useEffect that
dispatches setFolderMode(false) whenever foldersEnabled goes false while
folder mode is still on, reusing the same... (continued)

3029 of 7765 branches covered (39.01%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 5 files covered. (100.0%)

3 existing lines in 1 file now uncovered.

6986 of 14505 relevant lines covered (48.16%)

30.31 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
33.65
-1.44% src/commons/sideContent/content/SideContentCseMachine.tsx
Jobs
ID Job ID Ran Files Coverage
1 30704730473.1 01 Aug 2026 02:56PM UTC 475
44.97
GitHub Action Run
Source Files on build 30704730473
  • Tree
  • List 475
  • Changed 16
  • Source Changed 0
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e8402771 on github
  • Prev Build on master (#30684067603)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc