Skip to content

fix: set document title via Helmet on the dashboard route#192

Merged
arbrandes merged 2 commits into
openedx:mainfrom
arbrandes:arbrandes/page-titles
Apr 29, 2026
Merged

fix: set document title via Helmet on the dashboard route#192
arbrandes merged 2 commits into
openedx:mainfrom
arbrandes:arbrandes/page-titles

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

Refs openedx/frontend-base#250.

Adopts the per-page document title pattern set out in frontend-base ADR 0015. Because all frontend-base apps share a single index.html, the document title only changes if a page sets it. Authn does, but the instructor dashboard didn't, so after navigating in from another app the browser tab kept reading the previous page's title.

The dashboard's Main route component now renders a <Helmet> block that sets <title> from a new localized message (instructor-dashboard.page.title, default Instructor Dashboard | {siteName}), with siteName pulled from getSiteConfig() and passed as an i18n parameter so localizers can re-order the segments. react-helmet is added to the app's runtime dependencies.

LLM usage notice

Built with assistance from Claude.

Adopt the per-page document title pattern from frontend-base ADR 0015,
so the browser tab no longer keeps the previous app's title (commonly
"Login | <site>" after sign-in via authn).

Refs openedx/frontend-base#250.

Co-Authored-By: Claude <noreply@anthropic.com>
@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.05%. Comparing base (6efc53a) to head (eccd736).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   89.96%   90.05%   +0.09%     
==========================================
  Files         139      140       +1     
  Lines        2291     2293       +2     
  Branches      499      499              
==========================================
+ Hits         2061     2065       +4     
+ Misses        222      220       -2     
  Partials        8        8              

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

Brings patch coverage back to 100% on Main.tsx and the new messages.ts
by asserting the Helmet-set document title against the test site name.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes arbrandes merged commit b391264 into openedx:main Apr 29, 2026
6 checks passed
@arbrandes arbrandes deleted the arbrandes/page-titles branch April 29, 2026 17:52
@openedx-semantic-release-bot

Copy link
Copy Markdown

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

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.

Page title not updating after logging in

3 participants