Skip to content

fix: remove learnerDashboardMessages export from index.ts#826

Merged
arbrandes merged 1 commit into
openedx:frontend-basefrom
brian-smith-tcril:fix/remove-app-messages-export
Apr 9, 2026
Merged

fix: remove learnerDashboardMessages export from index.ts#826
arbrandes merged 1 commit into
openedx:frontend-basefrom
brian-smith-tcril:fix/remove-app-messages-export

Conversation

@brian-smith-tcril
Copy link
Copy Markdown
Contributor

The old App.messages pattern included apps exporting their messages via src/index.ts. There is no reason for apps to export this. The file only exists so the app can run as a site with npm run dev. With frontend-base's i18n pipeline, translations are handled at the site level via site.i18n.

App-only testing didn't catch this because the webpack fallback plugin correctly resolves the missing messages file when npm run dev is running the app as a site from the repo root (src/i18n/ context). The broken export only surfaces when the compiled dist/ is consumed by a site.

🤖 Generated with Claude Code

The old App.messages pattern included apps exporting their messages via
\`src/index.ts\`. There is no reason for apps to export this. The file
only exists so the app can run as a site with \`npm run dev\`. With
frontend-base's i18n pipeline, translations are handled at the site
level via \`site.i18n\`.

App-only testing didn't catch this because the webpack fallback plugin
correctly resolves the missing messages file when \`npm run dev\` is
running the app as a site from the repo root (\`src/i18n/\` context).
The broken export only surfaces when the compiled \`dist/\` is consumed
by a site.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (frontend-base@eb9a2b1). Learn more about missing BASE report.

Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base     #826   +/-   ##
================================================
  Coverage                 ?   90.36%           
================================================
  Files                    ?      152           
  Lines                    ?     1287           
  Branches                 ?      275           
================================================
  Hits                     ?     1163           
  Misses                   ?      119           
  Partials                 ?        5           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arbrandes arbrandes merged commit c540a57 into openedx:frontend-base Apr 9, 2026
6 checks passed
@openedx-semantic-release-bot
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0-alpha.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

i18n pipeline

3 participants