lamassu-server/new-lamassu-admin
Sérgio Salgado fded22f39a feat: add user management screen
feat: login screen

fix: login routing and layout

feat: add users migration

feat: passport login strategy

fix: users migration

feat: simple authentication

fix: request body

feat: JWT authorization

feat: 2fa step on login

feat: 2fa flow

feat: add rememberme to req body

fix: hide 2fa secret from jwt

fix: block login access to logged in user

fix: rerouting to wizard

refactor: login screen

feat: setup 2fa state on login

feat: 2fa secret qr code

fix: remove jwt from 2fa secret

fix: wizard redirect after login

fix: 2fa setup flow

fix: user id to uuid

feat: user roles

feat: user sessions and db persistence

feat: session saving on DB and cookie

refactor: unused code

feat: cookie auto renew on request

feat: get user data endpoint

fix: repeated requests

feat: react routing

fix: private routes

refactor: auth

feat: sessions aware of ua and ip

feat: sessions on gql

feat: session management screen

feat: replace user_tokens usage for users

feat: user deletion also deletes active sessions

feat: remember me alters session cookie accordingly

feat: last session by all users

fix: login feedback

fix: page loading UX

feat: routes based on user role

feat: header aware of roles

feat: reset password

fix: reset password endpoint

feat: handle password change

feat: reset 2FA

feat: user role on management screen

feat: change user role

fix: user last session query

fix: context

fix: destroy own session

feat: reset password now resets sessions

feat: reset 2fa now resets sessions

refactor: user data

refactor: user management screen

feat: user enable

feat: schema directives

fix: remove schema directive temp

feat: create new users

feat: register endpoint

feat: modals for reset links

fix: directive Date errors

feat: superuser directive

feat: create user url modal

fix: user management layout

feat: confirmation modals

fix: info text

feat: 2fa input component

feat: code input on 2fa state

feat: add button styling

feat: confirmation modal on superuser action

feat: rework 2fa setup screen

feat: rework reset 2fa screen

fix: session management screen

fix: user management screen

fix: blacklist roles

chore: migrate old customer values to new columns

fix: value migration

fix: value migration

refactor: remove old code
2021-05-03 23:00:41 +01:00
..
.storybook fix: wizard rework 2020-10-15 21:32:46 +02:00
.vscode feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
patches feat: nodemon and fast reload 2020-11-05 18:53:58 +00:00
public feat: add user management screen 2021-05-03 23:00:41 +01:00
src feat: add user management screen 2021-05-03 23:00:41 +01:00
.env refactor: AppContext and App entrypoints 2021-03-18 11:06:35 +00:00
.eslintrc.js fix: small fixes and release prep 2020-12-24 20:05:45 +00:00
.gitignore chore: version fonts on main project 2020-11-05 18:53:58 +00:00
jsconfig.json feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
package-lock.json feat: add user management screen 2021-05-03 23:00:41 +01:00
package.json feat: add user management screen 2021-05-03 23:00:41 +01:00
README.md feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00

This project was bootstrapped with Create React App.

Dev Environment

formatting

You can configure a eslint plugin to format code on save. The configuration for vscode is already on the repo, all you need to do is install the eslint plugin.

This project has a husky pre commit hook to format the staged changes using our styleguide. To take advantage of that make sure to run git commit from within this folder.

Sanctuary

Sanctuary has a runtime typechecker that can make be quite slow, but its turned off by default.

To turn it on add the following line to a .env.local file.

REACT_APP_TYPE_CHECK_SANCTUARY=true

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm fix

Runs eslint --fix on the src folder

npm storybook

Runs the storybook server

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.