Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
dbadbe8
chore: removing react helmet
jacobo-dominguez-wgu Sep 25, 2025
1001b8c
chore: updating dependencies and package to work with frontend-base
jacobo-dominguez-wgu Sep 25, 2025
884b7d2
chore: update ts, config and ignore files
jacobo-dominguez-wgu Sep 25, 2025
24887b4
chore: updates related to i18n configs
jacobo-dominguez-wgu Sep 25, 2025
7a5c2cb
chore: replacing svg react component with img
jacobo-dominguez-wgu Sep 25, 2025
65e10bf
chore: replacing frontend-platform imports with frontend-base
jacobo-dominguez-wgu Sep 26, 2025
3df7b47
chore: src files restructure
jacobo-dominguez-wgu Sep 30, 2025
b21c231
chore: creation of site config dev
jacobo-dominguez-wgu Sep 30, 2025
26995d2
chore: creation of site config test
jacobo-dominguez-wgu Sep 30, 2025
3065867
chore: adding app scss file
jacobo-dominguez-wgu Sep 30, 2025
8082d01
chore: removing process env reference
jacobo-dominguez-wgu Sep 30, 2025
9b9f020
chore: readme update
jacobo-dominguez-wgu Sep 30, 2025
033c6ec
chore: removing env files
jacobo-dominguez-wgu Sep 30, 2025
98759d5
chore: removing react helmet
jacobo-dominguez-wgu Sep 25, 2025
9b5653e
chore: updating dependencies and package to work with frontend-base
jacobo-dominguez-wgu Sep 30, 2025
8167aff
chore: update ts, config and ignore files
jacobo-dominguez-wgu Sep 25, 2025
b7df6b3
chore: updates related to i18n configs
jacobo-dominguez-wgu Sep 25, 2025
fcb828d
chore: replacing svg react component with img
jacobo-dominguez-wgu Sep 25, 2025
0faed20
chore: replacing frontend-platform imports with frontend-base
jacobo-dominguez-wgu Sep 26, 2025
d6f87f8
chore: src files restructure
jacobo-dominguez-wgu Sep 30, 2025
0bd45fd
chore: creation of site config dev
jacobo-dominguez-wgu Sep 30, 2025
a1e80b2
chore: creation of site config test
jacobo-dominguez-wgu Sep 30, 2025
538aafc
chore: adding app scss file
jacobo-dominguez-wgu Sep 30, 2025
883d4b8
chore: removing process env reference
jacobo-dominguez-wgu Sep 30, 2025
822910d
chore: readme update
jacobo-dominguez-wgu Sep 30, 2025
b266039
chore: removing env files
jacobo-dominguez-wgu Sep 30, 2025
a79a19f
chore: removing head component
jacobo-dominguez-wgu Sep 30, 2025
640f941
chore: fixing routes issue
jacobo-dominguez-wgu Sep 30, 2025
67c04da
chore: repacing getConfig
jacobo-dominguez-wgu Sep 30, 2025
23a1eea
chore: adding scss ts declaration
jacobo-dominguez-wgu Sep 30, 2025
117893c
chore: creating countries and languages functions
jacobo-dominguez-wgu Sep 30, 2025
c6b5fad
chore: adding paragon css uses
jacobo-dominguez-wgu Sep 30, 2025
639da35
chore: makefile i18n updates
jacobo-dominguez-wgu Sep 30, 2025
dd75ac4
chore: fixing css paragon variables
jacobo-dominguez-wgu Sep 30, 2025
fdb9dd7
Merge branch 'frontend-base-conversion' of https://github.com/WGU-Ope…
jacobo-dominguez-wgu Sep 30, 2025
6acaa98
chore: adding courses navlink slot
jacobo-dominguez-wgu Oct 1, 2025
37a9f19
chore: test fixes and mocks updates
jacobo-dominguez-wgu Oct 1, 2025
a36d8ef
chore: removing old routes file and updates on the new one
jacobo-dominguez-wgu Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .env

This file was deleted.

34 changes: 0 additions & 34 deletions .env.development

This file was deleted.

28 changes: 0 additions & 28 deletions .env.test

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

19 changes: 7 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
.DS_Store
.eslintcache
.idea
node_modules
npm-debug.log
coverage

module.config.js
dist/
src/i18n/transifex_input.json
temp/babel-plugin-react-intl
/*.tgz

### pyenv ###
.python-version
### i18n ###
src/i18n/transifex_input.json

### Emacs ###
### Editors ###
.DS_Store
*~
/temp
/.vscode
/module.config.js
src/i18n/messages
/.vscode
19 changes: 5 additions & 14 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
.tx
coverage
dist
__mocks__
node_modules
public
src
.dockerignore
.eslintignore
.eslintrc
.gitignore
.releaserc
.travis.yml
babel.config.js
Makefile
renovate.json
*.test.js
*.test.jsx
*.test.ts
*.test.tsx
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ pull_translations:
mkdir src/i18n/messages
cd src/i18n/messages \
&& atlas pull $(ATLAS_OPTIONS) \
translations/frontend-platform/src/i18n/messages:frontend-platform \
translations/frontend-base/src/i18n/messages:frontend-base \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-component-header/src/i18n/messages:frontend-component-header \
translations/frontend-component-footer/src/i18n/messages:frontend-component-footer \
translations/frontend-app-profile/src/i18n/messages:frontend-app-profile

$(intl_imports) frontend-platform paragon frontend-component-header frontend-component-footer frontend-app-profile
$(intl_imports) frontend-base paragon frontend-app-profile

# This target is used by Travis.
validate-no-uncommitted-package-lock-changes:
Expand Down
18 changes: 5 additions & 13 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ frontend-app-profile
Purpose
********

This is a micro-frontend application responsible for the display and updating of user profiles.
This is a frontend application responsible for the display and updating of user profiles.

When a user views their own profile, they're given fields to edit their full name, location, primary spoken language, education, social links, and bio. Each field also has a dropdown to select the visibility of that field - i.e., whether it can be viewed by other learners.

Expand All @@ -36,14 +36,7 @@ Installation
============

Follow these steps to provision, run, and enable an instance of the
Profile MFE for local development via the `devstack`_.

.. _devstack: https://github.com/openedx/devstack#getting-started

#. To use this application, `devstack <https://github.com/openedx/devstack>`__ must be running and you must be logged into it.

* Start devstack
* Log in (http://localhost:18000/login)
Profile frontend app for local development.

#. To run Profile, install requirements and start the development server by running:

Expand Down Expand Up @@ -71,16 +64,15 @@ Profile MFE for local development via the `devstack`_.

Once the dev server is up, visit http://localhost:1995/u/staff.

Plugins
Widgets
=======
This MFE can be customized using `Frontend Plugin Framework <https://github.com/openedx/frontend-plugin-framework>`_.

The parts of this MFE that can be customized in that manner are documented `here </src/plugin-slots>`_.
The parts of this frontend app that can be customized in that manner are documented `here </src/slots>`_.

Configuration
=============

This MFE is configured via node environment variables supplied at build time. See the .env file for the list of required environment variables. Example build syntax with a single environment variable:
This frontend app is configured via node environment variables supplied at build time. See the src/app.ts file for the list of required environment variables. Example build syntax with a single environment variable:

.. code-block::

Expand Down
25 changes: 25 additions & 0 deletions app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/// <reference types="@openedx/frontend-base" />

declare module 'site.config' {
export default SiteConfig;
}

declare module '*.svg' {
const content: string;
export default content;
}

declare module '*.scss' {
const content: Record<string, string>;
export default content;
}

declare module '*.css' {
const content: Record<string, string>;
export default content;
}

declare module '*.sass' {
const content: Record<string, string>;
export default content;
}
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { createConfig } = require('@openedx/frontend-base/config');

module.exports = createConfig('babel');
21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// @ts-check

const { createLintConfig } = require('@openedx/frontend-base/config');

module.exports = createLintConfig(
{
files: [
'src/**/*',
'site.config.*',
],
},
{
ignores: [
'coverage/*',
'dist/*',
'node_modules/*',
'**/__mocks__/*',
'**/__snapshots__/*',
],
},
);
15 changes: 12 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
const { createConfig } = require('@openedx/frontend-build');
const { createConfig } = require('@openedx/frontend-base/config');

module.exports = createConfig('jest', {
module.exports = createConfig('test', {
setupFilesAfterEnv: [
'<rootDir>/src/setupTest.js',
'<rootDir>/src/setupTest.ts',
],
coveragePathIgnorePatterns: [
'src/setupTest.ts',
'src/i18n',
'src/__mocks__',
],
moduleNameMapper: {
'\\.svg$': '<rootDir>/src/__mocks__/svg.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/file.js',
},
});
Loading
Loading