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

source-academy / frontend / 33820839998
45%

Build:
DEFAULT BRANCH: master
Ran 04 Sep 2026 12:15AM UTC
Jobs 1
Files 474
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

04 Sep 2026 12:12AM UTC coverage: 45.468% (+0.1%) from 45.37%
33820839998

push

github

web-flow
Apply the course-configured default language in the Playground (#4337)

* Apply the course-configured default language in the Playground

Ground Control's "Default language" selector already persisted a course's
default sublanguage (source_chapter), but nothing under Conductor ever
read it back - the Playground always fell back to the first language
directory entry, so admins changing the default had no visible effect.

LanguageDirectorySaga now derives the course default from source_chapter
(via the existing deriveLanguageFromChapter) and applies it whenever the
directory or the course config load, in whichever order they arrive. A
new isDefaultSelection flag on the languageDirectory slice stops a late
course config from clobbering a language the user (or a share link,
textbook route, or assessment) already picked deliberately.

Playground.tsx's legacy course-language effect is now gated off when
Conductor is enabled - it duplicated this under Conductor and could
throw for course chapters above Source §4 (Python Full, Scheme), which
have no Source-chapter equivalent.

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

* Wire changeSublanguage into the mock backend; drop unused test import

Ground Control's "Default language" selector dispatches
WorkspaceActions.changeSublanguage, which was only handled by the real
BackendSaga - under the mock backend (REACT_APP_USE_BACKEND=FALSE) the
control silently no-op'd, making this fix impossible to demo without a
live backend. Mirrors the real handler's effect on course config, minus
the network round-trip.

Also drops an unused `expect` import left over in the saga test file.

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

* Fall back to the first directory entry on an invalid course default too

setCourseConfiguration previously bailed out when the ne... (continued)

3132 of 7871 branches covered (39.79%)

Branch coverage included in aggregate %.

28 of 32 new or added lines in 5 files covered. (87.5%)

2 existing lines in 2 files now uncovered.

7107 of 14648 relevant lines covered (48.52%)

31.14 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
12.83
0.22% src/commons/mocks/BackendMocks.ts
1
64.29
-19.05% src/features/directory/LanguageDirectoryReducer.ts

Coverage Regressions

Lines Coverage ∆ File
1
64.29
-19.05% src/features/directory/LanguageDirectoryReducer.ts
1
55.01
0.07% src/pages/playground/Playground.tsx
Jobs
ID Job ID Ran Files Coverage
1 33820839998.1 04 Sep 2026 12:15AM UTC 474
45.47
GitHub Action Run
Source Files on build 33820839998
  • Tree
  • List 474
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bee1a772 on github
  • Prev Build on master (#33738584308)
  • Next Build on master (#33821276299)
  • 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