Skip to content

Wealth Health is a application to handle employee records. New employees can be created, and the list of all previously created employees is available. The whole application was converted from jQuery to React.

Notifications You must be signed in to change notification settings

aurelianeg/wealthhealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wealth Health

Wealth Health1 is a application to handle employee records. New employees can be created, and the list of all previously created employees is available.

Goal of this project: App conversion from jQuery to React, npm package creation, and use of Redux.

Load specifications

Website designs

No specific designs were available on the old application version. A website design was created, to modernize the application with colors matching the company logo.

Design for the home page

Features

  • Users can create a new employee by filling the form on homepage (/).
  • If inputs are empty on form submit, error messages appear to remind user to fill out missing fields.
  • If all inputs are filled, the confirmation modal is shown when user submits the form to create a new employee.
  • A list of created employees is available on the /employee-list page, where each table column can be sorted by ascending or descending order.
  • Users can also search for an specific employee in the list with the search bar.

The old version of the application used jQuery, which leaded to massive bugs and increased internal complaints. The app has here been upgraded with React. The biggest issues for users were four jQuery plugins, very slow and incompatible with applying custom styles: date pickers, modal, dropdowns and table.

To solve that, a new React component was created for one of the plugins only (react-select for dropdowns), and existing React components were used for the other three plugins (react-modal for modal, react-data-table-component for table, and HTML <input type="date"> tag for date pickers).

Technical constraints

  • Application conversion with React (from jQuery):
    • New version fo application pages.
    • Use of state management system (Redux) instead of local storage.
    • Conversion of jQuery plugins in React (one from stratch, other three plugins from existing published components).
  • No class when writing libraries in React.
  • Documentation of converted React components with general description and comments (JSDoc).
  • Creation of a separate repository for the created plugin in React, published as a npm package.
  • Performance tests with Lighthouse on old and new application versions.

Prerequisites

Installation and launch

  1. Clone the repository
git clone https://github.com/aurelianeg/wealthhealth.git
  1. Install the dependencies
npm install
  1. Launch the project
npm start

It runs the app in the development mode, and opens http://localhost:3000 to view it in the browser. The page will reload when changes are made in the code. Any lint errors can also be seen in the console.

Three false employees have been created to visualize a non-empty employee table. Feel free to delete them in src/scripts/store.js if needed.

Footnotes

  1. This is the 11th project of the "Front-end developer (JS - React)" training by OpenClassrooms.

About

Wealth Health is a application to handle employee records. New employees can be created, and the list of all previously created employees is available. The whole application was converted from jQuery to React.

Topics

Resources

Stars

Watchers

Forks