Giter Site home page Giter Site logo

openedx / frontend-app-profile Goto Github PK

View Code? Open in Web Editor NEW
11.0 73.0 86.0 18.47 MB

Open edX micro-frontend application for managing user profile information.

License: GNU Affero General Public License v3.0

JavaScript 96.90% HTML 0.21% Makefile 1.07% SCSS 1.82%
micro-frontend frontend frontend-app

frontend-app-profile's Introduction

frontend-app-profile

License status-badge Continuous Integration Codecov

Purpose

This is a micro-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.

When a user views someone else's profile, they see all those fields that that user set as public.

Getting Started

Installation

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

  1. To use this application, devstack must be running and you must be logged into it.
  2. To run Profile, install requirements and start the development server by running:
1. Clone your new repo:

  ``git clone https://github.com/openedx/frontend-app-profile.git``

2. Use node v18.x.

  The current version of the micro-frontend build scripts support node 18.
  Using other major versions of node *may* work, but this is unsupported.  For
  convenience, this repository includes an .nvmrc file to help in setting the
  correct node version via `nvm <https://github.com/nvm-sh/nvm>`_.

3. Install npm dependencies:

  ``cd frontend-app-profile && npm ci``

4. Start the dev server:

  ``npm start``
   The server will run on port 1995

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

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:

NODE_ENV=production ACCESS_TOKEN_COOKIE_NAME='edx-jwt-cookie-header-payload' npm run build

Getting Help

If you're having trouble, we have discussion forums at https://discuss.openedx.org where you can connect with others in the community.

Our real-time conversations are on Slack. You can request a Slack invitation, then join our community Slack workspace. Because this is a frontend repository, the best place to discuss it would be in the #wg-frontend channel.

For anything non-trivial, the best path is to open an issue in this repository with as many details about the issue you are facing as you can provide. Please tag @openedx/2u-aperture on any PRs or issues.

https://github.com/openedx/frontend-app-profile/issues

For more information about these options, see the Getting Help page.

License

The code in this repository is licensed under the AGPLv3 unless otherwise noted.

Please see LICENSE for details.

Contributing

Contributions are very welcome. Please read How To Contribute for details.

This project is currently accepting all types of contributions, bug fixes, security fixes, maintenance work, or new features. However, please make sure to have a discussion about your new feature idea with the maintainers prior to beginning development to maximize the chances of your change being accepted. You can start a conversation by creating a new issue on this repo summarizing your idea.

The Open edX Code of Conduct

All community members are expected to follow the Open edX Code of Conduct.

People

The assigned maintainers for this component and other project details may be found in Backstage. Backstage pulls this data from the catalog-info.yaml file in this repo.

Reporting Security Issues

Please do not report security issues in public. Email [email protected] instead.

frontend-app-profile's People

Contributors

abdullahwaheed avatar abutterworth avatar adamstankiewicz avatar albemarle avatar aliadnansohail avatar bilalqamar95 avatar christopappas avatar davidjoy avatar deborahgu avatar dependabot[bot] avatar douglashall avatar edx-requirements-bot avatar edx-semantic-release avatar feanil avatar jawayria avatar jsnwesson avatar justinhynes avatar mamankhan99 avatar mashal-m avatar maxfrank13 avatar omarithawi avatar renovate-bot avatar renovate[bot] avatar robrap avatar sarina avatar stvstnfrd avatar syed-ali-abbas-zaidi avatar tj-tracy avatar usamasadiq avatar vladislavkeblysh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

frontend-app-profile's Issues

Profile MFE Accessibility Evaluation

Goal

Produce a report with an assessment of this feature or repo's compliance with WCAG 2.1 at an AA level. If possible, WCAG 2.2 should be used instead of 2.1.

Report Format

  1. Overall assessment: is this feature Green (at least ~90% compliant), Yellow (> ~70% compliant), or Red (< 70% compliant). This is a rough assessment and should be based on the overall feel of the feature.
  2. Provide an enumerated list of accessibility issues with the feature. Where possible, provide recommendations as to how to address major holes or links to relevant documentation

This work will be collated with other, similar tickets that are addressed as part of FC-0017.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update dependency @testing-library/jest-dom to v6.4.5
  • fix(deps): update dependency @edx/frontend-component-header to v5.3.0
  • fix(deps): update dependency @openedx/paragon to v22.3.2
  • fix(deps): update dependency core-js to v3.37.0
  • fix(deps): update react-router monorepo to v6.23.0 (react-router, react-router-dom)
  • chore(deps): update dependency @openedx/frontend-build to v14
  • chore(deps): update dependency @testing-library/react to v15
  • chore(deps): update dependency node to v20
  • fix(deps): update dependency @edx/frontend-platform to v8
  • fix(deps): update dependency react-redux to v9
  • fix(deps): update dependency redux to v5
  • fix(deps): update dependency redux-thunk to v3
  • fix(deps): update dependency reselect to v5
  • fix(deps): update dependency universal-cookie to v7
  • fix(deps): update react monorepo to v18 (major) (react, react-dom)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/add-depr-ticket-to-depr-board.yml
.github/workflows/add-remove-label-on-comment.yml
.github/workflows/ci.yml
  • actions/checkout v4
  • actions/setup-node v4
  • codecov/codecov-action v3
.github/workflows/commitlint.yml
.github/workflows/lockfileversion-check.yml
.github/workflows/self-assign-issue.yml
.github/workflows/update-browserslist-db.yml
npm
package.json
  • @edx/brand ^1.2.2
  • @edx/frontend-component-footer 13.1.0
  • @edx/frontend-component-header 5.2.0
  • @edx/frontend-platform 7.1.4
  • @edx/openedx-atlas ^0.6.0
  • @fortawesome/fontawesome-svg-core 6.5.2
  • @fortawesome/free-brands-svg-icons 6.5.2
  • @fortawesome/free-regular-svg-icons 6.5.2
  • @fortawesome/free-solid-svg-icons 6.5.2
  • @fortawesome/react-fontawesome 0.2.0
  • @openedx/paragon ^22.2.2
  • @pact-foundation/pact ^11.0.2
  • @redux-devtools/extension 3.3.0
  • classnames 2.5.1
  • core-js 3.36.1
  • history 5.3.0
  • lodash.camelcase 4.3.0
  • lodash.get 4.4.2
  • lodash.pick 4.4.0
  • lodash.snakecase 4.1.1
  • prop-types 15.8.1
  • react 17.0.2
  • react-dom 17.0.2
  • react-helmet 6.1.0
  • react-redux 7.2.9
  • react-router 6.22.3
  • react-router-dom 6.22.3
  • redux 4.2.1
  • redux-logger 3.0.6
  • redux-saga 1.3.0
  • redux-thunk 2.4.2
  • regenerator-runtime 0.14.1
  • reselect 4.1.8
  • universal-cookie 4.0.4
  • @commitlint/cli 19.3.0
  • @commitlint/config-angular 19.3.0
  • @edx/browserslist-config ^1.1.1
  • @edx/reactifex 2.2.0
  • @openedx/frontend-build 13.1.4
  • @testing-library/jest-dom 6.4.2
  • @testing-library/react 12.1.5
  • glob 10.3.12
  • reactifex 1.1.1
  • redux-mock-store 1.5.4
nvm
.nvmrc
  • node 18

  • Check this box to trigger a request for Renovate to run again on this repository

Node 20 upgrade

Description

See the parent ticket for the general description and motivation, openedx/public-engineering#231. Make sure to follow its recommendations for each step of the process.

Tasks

Switch to Ansible free Docker Image in Devstack

In order to advance implementation of both OEP-45: Configuring and Operating Open edX and openedx/public-engineering#51, we would like to switch devstack from using primarily Docker images built with Ansible code from the configuration repository to images built from Dockerfiles in each service's repository. We hope this will also help simplify Tutor by providing better base images to derive from, with fewer workarounds and duplicated code blocks required in Tutor.

A/C

Ensure that the repo's Dockerfile can create a base image which is appropriate for small production installations
Ensure that the repo's Dockerfile also defines an additional image derived from the base which adds dependencies and configuration changes needed for development environments
Check with the Tutor developers during code review to see if any further changes to the Dockerfile would help simplify Tutor
Automate uploads of both images when code changes are merged
Switch devstack to use the new Ansible-free development image, and do some basic testing to ensure it works before merging

release schedule

Hi!

Out of curiosity, do you plan to provide releases for this repository?

Thanks in advance for your kind reply

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error near ],

Upgrade React JS to v17

This repo is currently using React JS v16. We need to upgrade it to React 17 before moving to latest React version(v18).
React 17 doesn’t add any new developer-facing features, so its upgrade might not cause any breaking changes. Our end goal is to upgrade React to v18 but v18 no longer support enzyme, so we are upgrading to React 17 and then we’ll migrate from enzyme.

Epic Link

React 17 upgrade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.