lamassu-server/new-lamassu-admin
Liordino Neto ccf7eacfad feat: Create migration from old config to new (#424)
* fix: adapt old settings loader to the new schema (filter schema_version)

feat: migrate commissions globals

feat: migrate locales

refactor: generalize the old fields search

chore: created functions signatures for all config migrations

feat: created wallet migration

feat: migrate operator info

feat: migrate coin atm radar

feat: migrate terms and conditions

feat: migrate commissions overrides

fix: removed the wallet_COIN_active field (don't exist anymore)

chore: moved the config-migration lib to the lib folder

feat: migrate cashout configurations

feat: migrate notifications globals

feat: export migration function

feat: migrate most of notifications scoped configs

fix: added the missing text property to the terms and conditions
migration

feat: migrate compliance triggers

feat: migrate receipt printing

feat: migrate accounts

chore: remove test code form module

refactor: change some functions naming

fix: set default trigger type to 'volume'

feat: added threshold days (default 1) to triggers

fix: removed strike from the accounts importing

refactor: cleaner code on fixed properties

feat: avoid repeated crypto/machine pairs on the commissions overrides
migrations

refactor: make renameAccountFields function internal to the account
migration function

fix: migrate all crypto scoped commission overrides

* fix: return plain objects from functions to make the jsons more readable

fix: fix bitgo fields casing

fix: improve commissions migration function readability

refactor: standard styling

* feat: add fallback values to the migration

* feat: created db migration for the new config

* feat: create migration to move machine names from file to db

fix: updates machine names before the config migration

fix: load machineLoader

fix: create a param to ignore the schema version when loading the latest
config using the old loader

* refactor: remove unnecessary arguments on createTrigger function

fix: check if there's an smsVerificationThreshold configured prior to
migrating triggers

* fix: migrate triggers with the correct thresholds and verify if they're
valid
2020-09-25 11:07:47 +01:00
..
.storybook feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
.vscode feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
public fix: remove title attr from svg to prevent browser tooltip 2020-09-02 12:57:18 +02:00
src feat: Create migration from old config to new (#424) 2020-09-25 11:07:47 +01:00
.env fix: change default port to 3001 2020-08-06 12:37:54 +02:00
.eslintrc.js chore: bump eslint import library to activate rule 2020-03-20 17:28:23 +01:00
.gitignore Lamassu admin server initial commit 2019-10-31 12:28:51 +00:00
jsconfig.json feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
package-lock.json fix: add missing dev dependency eslint-plugin-react 2020-09-20 14:26:58 +01:00
package.json fix: add missing dev dependency eslint-plugin-react 2020-09-20 14:26:58 +01:00
README.md feat: add graphql support (#349) 2019-12-24 15:36:41 +01:00
shell.nix chore: pin nix commit hash version 2019-12-31 19:06:01 +02:00
todo.md fix: get triggers up to spec 2020-09-11 14:11:59 +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.