Skip to content

[DEPR]: v1 Frontend Plugin Slots #416

Closed
Closed

Description

@arbrandes

RFC Start Date

2025-08-07

Target Plan Accepted Date

2025-08-21

Target Transition Unblocked Date

October 2025

Earliest Breaking Changes Unblocked Date

January 2026

Earliest Open edX Named Release with Breaking Changes

Verawood - 2026-04

Rationale

Because frontend-base uses slots and widgets for literally every single item on the page, this necessitated a makeover of the current plugin slot API: it wouldn't make sense to have plugin slots be configured differently from slots intended to host entire apps. In turn, this also means that any plugins written for any and all of the existing v1 slots will need to be refactored for the new frontend-base slots.

Removal

All of the slots documented for Teak:

https://docs.openedx.org/en/latest/site_ops/references/frontend-plugin-slots.html

Replacement

For the most part, each app-specific slot will have a direct replacement, just with a camelCased name and the new frontend-base site configuration mechanism.

For example, the WidgetSidebarSlot in Learner Dashboard has a new ID, renamed from org.openedx.frontend.learner_dashboard.widget_sidebar.v1 to org.openedx.frontend.slot.learnerDashboard.widgetSidebar.v1, and its new, simpler configuration syntax can be seen in the corresponding example.

Slots will continue to be documented next to their definitions in each repository, though now the directory is named slots instead of plugin-slots.

Header and footer are special cases, since they're no longer components to be imported in each app, and will instead be provided by the built-in shell app. They each provide a new set of slots that can be configured specifically. Examples can be found in frontend-base's built-in dev app (example header, example in slot showcase).

Deprecation

No response

Additional Info

Because of the breadth of the changes introduced by frontend-base - particularly in its different configuration mechanism - it will not be possible to offer the previous v1 slots together with the new ones in the same branch, as aliases or otherwise. Instead, the Ulmo release will offer operators the option of deploying either the legacy MFEs, with the existing plugin slots, or the new frontend-base apps, with the new ones. By Verawood, the legacy MFEs will no longer be offered, and thus, only the new slots will be available.

Task List

No response

Task List

No response

Activity

  1. self-assigned this
    on Aug 7, 2025
  2. added
    depr
    on Aug 7, 2025
  3. moved this to In Progress in frontend-baseon Aug 7, 2025
  4. bradenmacdonald commented on Aug 21, 2025

    @bradenmacdonald

    If we're going to be breaking compatibility for the slots anyways, can we fix the other API issues at the same time as previously discussed? i.e. simplify it significantly. https://discuss.openedx.org/t/proposal-simplified-frontend-plugin-api-config/13312

  5. arbrandes commented on Aug 25, 2025

    @arbrandes
    Author

    @bradenmacdonald, good point, but I believe we've already done some significant simplification. Allow me to quote @kdmccormick's last post on that thread:

    "The thing we are calling “plugins” now are actually “widgets” plus a config language to stick those widgets in the right places. Proper “plugins” would be a simple on/off thing."

    This is now effectively the case with frontend-base: we put widgets, not plugins, into slots, which makes it clear that at this level we're only liable to simplify to a certain extent. That said, it's now possible to load an entire MFE (which we'll now go back to calling an "app") using just two lines: an import and an array entry. See how Learner Dashboard is loaded in the template repo:

    https://github.com/openedx/frontend-template-site/blob/main/site.config.dev.tsx#L21

    I have a hard time imagining how much simpler we could make it for the operator and/or Tutor plugin author. I'm all ears, though!

  6. bradenmacdonald commented on Aug 25, 2025

    @bradenmacdonald

    @arbrandes Ah, OK, I don't think I fully realized all the changes that have happened with plugins here.

    The main request at the end of that thread was:

    Give plugins a way to auto-register their widgets, so users don't have to specify the widgets in a config file.

    Based on the header examples, it seems this is now possible. ✅ Does that apply to all plugins and their widgets?

    e.g. the example at https://github.com/openedx/frontend-app-learner-dashboard/tree/frontend-base/src/slots/WidgetSidebarSlot#example just shows how to create a widget and configure it manually. How many more lines of code are needed to convert it into a self-configuring plugin? (Is it so little that we can include it in the examples? Or link to a full plugin example?)

    1. For a long time FPF didn't have types - it looks like you've fixed that ✅💯

    2. The old API had this weird keepDefault thing that was inconsistent with the widget operations API. I think you got rid of that, which is great. ✅

    3. However, the remaining API confusion for me has to do with default content: the new widget operations are clearly designed to work on a list of widgets where each widget has an ID. But when defining a Slot in the app, it seems that it's only possible to define one default widget, and you cannot change its ID. While I think this works for a lot of cases, in some cases it's better to be able to give a default list of widgets and specify each one's ID.

  7. arbrandes commented on Sep 22, 2025

    @arbrandes
    Author

    @bradenmacdonald:

    Does that apply to all plugins and their widgets?

    Yes!

    How many more lines of code are needed to convert it into a self-configuring plugin? (Is it so little that we can include it in the examples? Or link to a full plugin example?)

    First, the idea is that these examples will become reference material for plugin authors, as opposed to the current target audience, operators. The examples should be enough for them to know how to configure the slot in an "app": a packaged set of frontend-base configuration that will be a part of their published plugin.

    You hit the nail on the head, though: there is still no generic documentation on how to write these frontend-base "apps". I can point you to the corresponding type and in a couple of hops you'll figure out how SlotOperations relate to these examples, but yes, at some point we'll have a proper manual that can be linked to.

    when defining a Slot in the app, it seems that it's only possible to define one default widget, and you cannot change its ID. While I think this works for a lot of cases, in some cases it's better to be able to give a default list of widgets and specify each one's ID.

    Alright, so the user story is: "I'm an MFE app developer and I want to specify a list of widgets that go into a particular slot by default." There already is a way to do that: it's how the shell populates the header.

    Still, there's value in what you're describing: the ability to assume WidgetOperationTypes.APPEND with no need to specify slotId by simply declaring the widgets as children to the Slot. A more "Reacty" way to do it for default widgets, basically. I like it.

    That said, it's "just" short-hand, much like how default content works now. Good-short-hand-that-we-want-to-have, I think, though. Probably not enough time to get it in by Ulmo, but probably for Verawood.

  8. moved this from In Progress to Todo in frontend-baseon Jan 14, 2026
  9. added theissue type on Jan 14, 2026
  10. changed the issue type fromtoon Jan 28, 2026
  11. removed their assignment
    on Apr 23, 2026
  12. arbrandes commented on Nov 18, 2026

    @arbrandes
    Author

    Superseded by #580, so I'm closing this one.

    The plan described above is what happened, just a release later than announced. The v1 slots are gone from master in every converted app, and they live on in each repository's legacy-mfe branch: deprecated in Willow, removed in Xylon.

    The old-to-new slot tables are in each app's ticket, all sub-issues of #580, and the one for the header and footer is in #580 itself. frontend-base-compat helps existing plugins across in the meantime.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    depr

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions