lamassu-server/new-lamassu-admin
Sérgio Salgado 7fe8799edc feat: add loyalty panel screen and structure
feat: add coupons table

feat: add coupons to schema

fix: coupon schema

feat: coupon table

feat: add coupon top button

feat: add first coupon button

feat: delete coupon

feat: coupon modal

fix: clear discount on modal close

fix: modal input formatting

feat: add new coupons

fix: button positioning

fix: remove loyalty panel sidebar

fix: coupon screen matching specs

fix: coupon modal

feat: send coupon data to machine on poll

fix: available coupons bool

feat: coupon endpoint

feat: transaction discount migration

feat: post-discount rates

refactor: bills

feat: version string

fix: bill saving on db

feat: coupon soft-delete

fix: coupon soft delete

fix: bill receiving

feat: remove cryptoAtoms update during tx

fix: tx trading

fix: bills

feat: start trades rework

fix: remove code

fix: code review
2021-01-18 19:42:03 +00: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 chore: version fonts on main project 2020-11-05 18:53:58 +00:00
src feat: add loyalty panel screen and structure 2021-01-18 19:42:03 +00:00
.env feat: nodemon and fast reload 2020-11-05 18:53:58 +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 fix: small fixes and release prep 2020-12-24 20:05:45 +00:00
package.json fix: small fixes and release prep 2020-12-24 20:05:45 +00: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.