Skip to content

fix: remove authnMessages export from index.ts#1662

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

fix: remove authnMessages export from index.ts#1662
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

codecov Bot commented Apr 9, 2026

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base    #1662   +/-   ##
================================================
  Coverage                 ?   92.12%           
================================================
  Files                    ?       92           
  Lines                    ?     2045           
  Branches                 ?      577           
================================================
  Hits                     ?     1884           
  Misses                   ?      158           
  Partials                 ?        3           

☔ 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 e11cd04 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

None yet

Development

Successfully merging this pull request may close these issues.

i18n pipeline

3 participants