Skip to content

fix: deduplicate custom_logo insert in logo_slot at runtime#22

Merged
ahmed-arb merged 1 commit into
ulmo/fbrfrom
fbr/fix/deduplicate-logo-plugin-slot
Apr 15, 2026
Merged

fix: deduplicate custom_logo insert in logo_slot at runtime#22
ahmed-arb merged 1 commit into
ulmo/fbrfrom
fbr/fix/deduplicate-logo-plugin-slot

Conversation

@ahmed-arb

@ahmed-arb ahmed-arb commented Apr 10, 2026

Copy link
Copy Markdown

Summary

  • Fixes duplicate logo rendering in MFE headers by deduplicating custom_logo insert plugins in logo_slot at runtime
  • The _add_themed_logo hook adds a custom_logo insert for every MFE, which can result in duplicate entries in env.config.jsx
  • Adds a runtime check in mfe-env-config-runtime-final that keeps only the first custom_logo insert, mirroring the existing footer slot dedup logic

Test plan

  • Deploy to staging using deploy or quick-deploy comment
  • Verify only one logo appears in MFE headers (learning, learner-dashboard, profile, account, discussions, authoring, authn)
  • Inspect env.config.jsx in the MFE container to confirm logo_slot has a single custom_logo insert

🤖 Generated with Claude Code

The _add_themed_logo hook adds a custom_logo insert for every MFE,
which can result in duplicate entries in the generated env.config.jsx,
causing the logo to render twice. Add a runtime deduplication check
that keeps only the first custom_logo insert, mirroring the existing
footer slot dedup logic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ahmed-arb

Copy link
Copy Markdown
Author

quick-deploy

@ahmed-arb ahmed-arb self-assigned this Apr 10, 2026
@ahmed-arb ahmed-arb merged commit b741b0e into ulmo/fbr Apr 15, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant