TEMP: Conference workshop demonstration branch#1672
Draft
bmtcril wants to merge 2 commits into
Draft
Conversation
Adds a new ``frontend-plugin-framework`` plugin slot, ``org.openedx.frontend.authn.register.additional_fields.v1``, in ``RegistrationPage``. The slot is positioned just above the submit button so plugins can append optional fields (e.g. demographics, institutional affiliation, role) without modifying the form's core required-fields layout. Why a slot here, and why "additional_fields"? * Several deployments already maintain forks of ``RegistrationPage`` to inject extra fields. Forking the authn MFE is a well-known pain point — the slot replaces a class of long-lived forks with a single documented extension point. * "additional_fields" deliberately scopes the slot to *learner-supplied optional input*, not to layout chrome (links, banners, marketing copy). Layout-level extension is better served by separate slots with simpler contracts. * The slot exposes ``formFields`` (current form values) and ``setFormField(name, value)`` so plugin components participate in the existing form-state machinery instead of maintaining shadow state and submitting via a side channel. This change is additive: with no plugin registered, the slot renders nothing and the form is byte-identical to today. Companion server-side changes: - openedx-events: ``REGISTRATION_DEMOGRAPHICS_CAPTURED`` (#NNNN) - edx-platform: fire the event from the authn registration view (#NNNN) Reference: OEX 2026 workshop "Leveraging Open edX Extension Points", Section 4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a demonstration PR for the Open edX conference talk "Extending Open edX". It is designed to showcase adding a new plugin slot to an MFE, but it not intended to be merged.