Skip to content

feat: add welcome route#18

Merged
MaxFrank13 merged 9 commits into
release-ulmofrom
mfrank/add-welcome-route
Jul 7, 2026
Merged

feat: add welcome route#18
MaxFrank13 merged 9 commits into
release-ulmofrom
mfrank/add-welcome-route

Conversation

@MaxFrank13

Copy link
Copy Markdown
Member

Adds the temporary /welcome route for the duplicated welcome page. This is meant to be identical to the welcome page in frontend-app-authn.

We will be removing this code once we switch over to the modal based Progressive Profiling approach.

To test:

  • pull the mfrank/add-replica-progressive-profiling branch from frontend-plugin-learner-dashboard
  • set up the alias for the plugin repository in module.config.js
  • npm ci && npm start
  • go to localhost:1996/welcome
  • you should see the Progressive Profiling Page

Copilot AI review requested due to automatic review settings June 29, 2026 18:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a temporary /welcome route to the learner dashboard app to render the Progressive Profiling page (intended to match the welcome page behavior from frontend-app-authn) for local testing and transitional use.

Changes:

  • Add a new /welcome route rendering ProgressiveProfiling.
  • Add a local development env var for the Progressive Profiling support link.
  • Minor JSON formatting normalization in package.json / package-lock.json.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/index.jsx Adds ProgressiveProfiling import and wires a new welcome route into the top-level router.
package.json Formatting-only change (no dependency changes included).
package-lock.json Formatting-only change (no dependency changes included).
.env.development Adds a dev-only support-link env var for progressive profiling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/index.jsx
subscribe,
mergeConfig,
} from '@edx/frontend-platform';
import { ProgressiveProfiling } from '@edx/frontend-plugin-learner-dashboard';
Comment thread src/index.jsx Outdated
Comment thread .env.development Outdated
Copilot AI review requested due to automatic review settings June 29, 2026 18:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Comment thread src/index.jsx
Comment thread .env.development Outdated
Comment thread src/index.test.jsx
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 29, 2026 18:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Comment thread src/index.jsx Outdated
Comment thread src/index.jsx
subscribe,
mergeConfig,
} from '@edx/frontend-platform';
import { ProgressiveProfiling } from '@edx/frontend-plugin-learner-dashboard';
Comment thread package.json
"@edx/frontend-component-header": "^8.0.0",
"@edx/frontend-enterprise-hotjar": "7.2.0",
"@edx/frontend-platform": "^8.3.1",
"@edx/frontend-plugin-learner-dashboard": "^3.3.5",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

any reason we're now adding Frontend Plugin Learner Dashboard as a dependency here instead of continuing to update the version via edx-internal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is just to make sure the linter is happy. We could tell eslint to ignore the fact that frontend-plugin-learner-dashboard is not installed. But I was worried something may get missed.

I believe we still overwrite the version in the build step so it's pretty much the same thing. We will also need the plugins for https://2u-internal.atlassian.net/browse/SUBS-663 so I figured may as well add in the library as a "real" dependency.

@jsnwesson jsnwesson Jul 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Personally, just so we don't lead to confusion about where the true version upgrade is coming from, I'd include the dependency in only one place. Fair point on needing it for future work/development. If this is the case, and knowing we'll be moving to frontend-base, maybe we can have a ticket to remove the dependency from edx-internal?

Comment thread src/index.jsx Outdated
<AppProvider store={store}>
<Routes>
<Route path="/" element={<PageWrap><App /></PageWrap>} />
<Route path="welcome" element={<PageWrap><ProgressiveProfiling /></PageWrap>} />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: don't we usually use the forward slash like /welcome for these routes?

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 6, 2026 18:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

@MaxFrank13
MaxFrank13 merged commit e8967d4 into release-ulmo Jul 7, 2026
4 checks passed
@MaxFrank13
MaxFrank13 deleted the mfrank/add-welcome-route branch July 7, 2026 14:59
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.

3 participants