Skip to content

fix: scope header slot widgets to dashboard role#830

Merged
arbrandes merged 1 commit into
openedx:frontend-basefrom
arbrandes:arbrandes/fix-header-slot-usage
Apr 13, 2026
Merged

fix: scope header slot widgets to dashboard role#830
arbrandes merged 1 commit into
openedx:frontend-basefrom
arbrandes:arbrandes/fix-header-slot-usage

Conversation

@arbrandes
Copy link
Copy Markdown
Contributor

Description

Adds an active: [dashboardRole] condition to all header slot widget operations so they only render when the dashboard route is active. Previously, none of the slot operations were scoped to the dashboard role, meaning they would appear in the header on every page.

Also extracts the dashboard role string into a shared dashboardRole constant in src/constants.ts, replacing the hardcoded values in app.tsx and routes.jsx.

Fixes #829

LLM usage notice

Built with assistance from Claude.

Fixes openedx#829

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

codecov Bot commented Apr 13, 2026

Codecov Report

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

Additional details and impacted files
@@               Coverage Diff                @@
##             frontend-base     #830   +/-   ##
================================================
  Coverage                 ?   90.37%           
================================================
  Files                    ?      152           
  Lines                    ?     1288           
  Branches                 ?      275           
================================================
  Hits                     ?     1164           
  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 3c2ccdc into openedx:frontend-base Apr 13, 2026
6 checks passed
@arbrandes arbrandes deleted the arbrandes/fix-header-slot-usage branch April 13, 2026 17:42
@openedx-semantic-release-bot
Copy link
Copy Markdown

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

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.

Header slot widgets missing dashboard role condition

3 participants