Skip to content

Show demo connect guard for demo users launching the widget on non-demo institutions#328

Open
mwclemy wants to merge 1 commit into
masterfrom
cmwimo/CT-2188
Open

Show demo connect guard for demo users launching the widget on non-demo institutions#328
mwclemy wants to merge 1 commit into
masterfrom
cmwimo/CT-2188

Conversation

@mwclemy
Copy link
Copy Markdown
Collaborator

@mwclemy mwclemy commented May 21, 2026

Changes

  • Show demo connect guard for demo users launching the widget on non-demo institutions with current_institution_guid, current_institution_code, or current_member_guid on initial load.
  • Added tests

institution = {},
experimentalFeatures = {},
widgetProfile,
user = {},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love having to pass something(the user) all over the place when we already have it stored somewhere in Redux.

We can use a thunk to grab the user from the state instead of passing it around.

https://github.com/reduxjs/redux-thunk


if (shouldStepToInstitutionStatusDetails) {
return STEPS.INSTITUTION_STATUS_DETAILS
} else if (shouldStepToDemoConnectGuard) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're going to need to have E2E tests for this functionality when we make the changes to the MX connect widget.

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.

2 participants