Commit graph

923 commits

Author SHA1 Message Date
Rafael Taranto
431f652de7 Chore/merge dd back (#503)
* chore: update ZEC, LTC, BTC, ETH, use BCHN

* chore: update zcashd

* chore: v7.4.10

* fix: remove lamassu-update

* fix: remove lamassu-update from bins

* fix: use p2sh-segwit addresses for cash-out

Latest releases of bitcoind default to bech32 addresses. Instead, use p2sh-segwit to maintain compatibility on cash-out.

* fix: use p2sh-segwit addresses for LTC

* chore: update wallet nodes

Co-authored-by: naconner <7396812+naconner@users.noreply.github.com>
Co-authored-by: Neal <neal@lamassu.is>
2020-11-06 20:31:32 +00:00
Neal
0fe322a076 chore: update wallet nodes 2020-11-06 18:15:14 +00:00
Taranto
c7a6a290c9 fix: unresponsive instead of stuck if both 2020-11-05 18:53:58 +00:00
Taranto
9595afb63a feat: all coins on commissions 2020-11-05 18:53:58 +00:00
Liordino Neto
3a5bbbca1f feat: added shutdown function to the machine loader
feat: created shutdown route and call it from gql server (called from
admin UI button)

feat: added an extra message property to the ConfirmDialog

refactor: simplified the MachineDetailsCard component

feat: added an extra information message to the Shutdown machine action
2020-11-04 13:12:12 +00:00
Liordino Neto
106fa166b0 fix: correctly test the alert thresholds (considering falsy values) 2020-11-04 13:06:38 +00:00
Liordino Neto
b1574c277a fix: removed the attempts to use the bignumber.js lib with null values 2020-11-04 13:06:38 +00:00
Liordino Neto
5b502c1395 fix: high value notifications, if configured, are now triggered even if
transactions notifications are globally disabled (for sms or email)

fix: added extra information on the sms notification informing if the
transaction that just happened is a high value one
2020-11-02 15:11:06 +00:00
Taranto
13633b06bd fix: overrides should not merge child arrays 2020-10-30 20:18:37 +00:00
Taranto
a108df0c4c feat: return logs in csv format 2020-10-30 20:17:42 +00:00
Taranto
e3310ce856 fix: receipt printing new admin 2020-10-30 20:14:45 +00:00
Taranto
96b8e3d9a2 feat: error handling for the tables and wizards 2020-10-30 20:13:12 +00:00
Liordino Neto
a1cc7cad13 fix: removed unnecessary support log code from server 2020-10-28 16:16:14 +00:00
Liordino Neto
15618df4ef fix: inverted name and phone positions on the customers list
fix: use the correct variables for getting the customers status

fix: customer name was showing as 'undefined undefined' when not present

fix: use the phone number as a fallback for the customer name when it's
not present

fix: removed phone number compliance card

fix: set a fixed size for the popup photos
2020-10-26 16:04:15 +00:00
Liordino Neto
f53a934092 feat: change customer screen transaction list part to the new design
feat: created the compliance details component (no data for now)

fix: added missing properties into the gql schema and the compliance
details component

feat: added another chip type for a neutral situation

style: change the property card style for the v1 specs

fix: added front facing camera override to schema and components

feat: added authorized override (status) column to the customers list
table

fix: moved name to the front of the phone on the customers list table

fix: added sanctions description text on it's card

fix: added id icon to the right of the customer name

feat: created subpage button component and use it in the customer
profile

feat: created an image popper component and use it in the customer
compliance page

fix: added varying sizes to the customer details and id data cards fields

refactor: simplify the compliance subpage code
2020-10-26 16:04:15 +00:00
Taranto
0aae7ac1ff fix: prevent account query from returning null 2020-10-25 20:24:31 +00:00
Taranto
c5b2c2daaa fix: overrides stuck on infinite loop if blocked 2020-10-25 20:22:21 +00:00
Taranto
f19a2749ec chore: added builded files and compression 2020-10-22 17:03:00 +01:00
Taranto
89bb9a8f25 chore: cleanup, node14 and new admin default 2020-10-20 21:54:58 +02:00
Taranto
be7e4c5c10 fix: commissions overrides and coinatmradar 2020-10-20 21:50:15 +02:00
Taranto
520efc0c27 fix: suspend when no ff camera 2020-10-20 21:11:29 +02:00
Taranto
3a6f3a2915 fix: wizard rework 2020-10-15 21:32:46 +02:00
Taranto
d889bb34ac fix: wallet pending values 2020-10-15 21:27:27 +02:00
Liordino Neto
bbf98b4d52 feat: created the rename action on the machine status page
fix: added missing 'shutdown' action on the MachineActions enum of the
gql schema

style: set the Edit icon for the rename action

style: fixed first and last action buttons spacing
2020-10-15 21:20:06 +02:00
Liordino Neto
79298d5dec fix: send a single state for the machine status 2020-10-15 21:20:06 +02:00
Mauricio Navarro Miranda
db014a3ed4 fix: machine status layout bugs
fix: reboot icon looks cropped

fix: confirm dialog layout

fix: Status chip background colors

fix: detailed machine status layout

fix: machine detailed status layout

fix: machine status article links, status chip size

fix: confirmDialog for all machine actions

fix: confirm dialog on every action. reload when success

fix: verbose input label

fix: display software version and machine model

fix: eslint fixes

fix: removed machine version and update button

fix: get machines statuses from ping

chore: removed the support articles until they're ready

fix: reset value and error states when closing the confirm dialog

fix: removed unused info from the machine table

styles: fixed styles in the machine details card

chore: moved styles to another file

fix: fixed the version gql property
2020-10-15 21:20:06 +02:00
naconner
825a9bfe09 fix: add back missing tickers, simplify zero-conf 2020-10-15 21:12:10 +02:00
Rafael Taranto
8616b5ad5f Chore: merge v7.4.10 (#455)
* chore: update ZEC, LTC, BTC, ETH, use BCHN

* chore: update zcashd

* chore: v7.4.10

Co-authored-by: naconner <7396812+naconner@users.noreply.github.com>
Co-authored-by: Neal <neal@lamassu.is>
2020-10-15 21:10:57 +02:00
Taranto
5887a301fb feat: us ssn 2020-10-09 18:01:02 +02:00
Liordino Neto
d065baeda9 fix: moved coin filter from the front-end to the server 2020-10-09 11:09:01 +02:00
Taranto
77e5d4860d fix: resolving two admin todos 2020-10-06 23:19:22 +02:00
Taranto
e0581fc39b feat: suspension trigger 2020-10-06 23:19:22 +02:00
Taranto
118852a433 fix: compliance fixes 2020-10-06 23:19:22 +02:00
Taranto
f6547341f1 feat: reject address reuse 2020-10-06 23:19:22 +02:00
Taranto
f2080c32e9 feat: new compliance options 2020-10-06 23:19:22 +02:00
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
Liordino Neto
d6b707ff7a feat: refactor the loading of the latest config so there's now two
functions, one for the server and one for the new admin web page
2020-09-11 14:13:18 +01:00
Liordino Neto
a0f6feeb78 fix: remove unnecessary ternary operation 2020-09-11 14:13:18 +01:00
Liordino Neto
f95deab005 fix: removed unnecessary processes from the account loading process
fix: treat an empty response as an error when loading the latest config
2020-09-11 14:13:18 +01:00
Liordino Neto
6e356217ae feat: created migration to add a schema_version column on the user_config table
feat: adapted the new settings loader to work with the db instead of
the json file

fix: fixed the schema migration file

fix: updated accounts to work with the db

fix: fetch only data with the new schema version

fix: change the account saving process so there's no more than one
account record

chore: removed unnecessary TODO comments

fix: replaced an error throwing with a Promise reject

fix: when looking for the latest config, don't limit it to the new ones

fix: fix function names on gql server

fix: remove duplicate import

fix: return an empty object when there's no schema_version 2 config yet
2020-09-11 14:13:18 +01:00
Taranto
b853f366f1 fix: soft rework Customers pages 2020-09-11 14:11:59 +01:00
Mauricio Navarro Miranda
8a8503dcbb fix: server_logs creates inf loop on l-s install
fix: flag that skips storing server_logs on DB when table does not yet exists
fix: hook server logs migration as soft dependency on initial
Revert "fix: hook server logs migration as soft dependency on initial"
This reverts commit e6c4cf4419c894598393997637dcfd95a5ff6a0e.
fix: empty promise, actually no additional promise was needed
2020-09-02 12:41:49 +02:00
Liordino Neto
72a1b798f8 fix: added missing lodash dependency to accounts lib
fix: don't prepend '+' when using a friendly name with Twilio

fix: consider that the phone number may contain whitespaces

fix: removed duplicated import on accounts.js

fix: replaced isNan with lodash's _.isNumber

fix: _isNumber logic was inverted
2020-09-02 12:31:06 +02:00
Liordino Neto
c3222362d7 fix: change default port to 3001 2020-08-06 12:37:54 +02:00
Liordino Neto
994f823632 fix: added missing lodash dependency to accounts lib
fix: show full languages name on the dropdown

fix: search crypto per name as well

fix: limit selected languages to 4 (the same as the old admin)

fix: removed duplicated import
2020-08-02 00:38:54 +02:00
Liordino Neto
f641e605a4 fix: added timestamp parameters for a date range on the gql queries for
machineLogs, serverLogs and transactions

feat: added optional limit and offset variables for the logs queries,
for filtering and pagination

feat: adapted the LogsDownloaderPopper to download the logs by whats set
on the filters

fix: improved code readability

fix: avoid errors when the range option is selected and no range is
actually selected
2020-07-31 00:37:00 +02:00
Liordino Neto
fbb72e9562 fix: added missing lodash dependency to accounts lib
fix: removed unnecessary properties from CAR page and config

style: changed the CAR page properties from radio groups to switches

fix: refetch config after saving
2020-07-31 00:02:42 +02:00
Taranto
5dd8501a17 fix: pre release screen fixes 2020-07-06 14:17:44 +01:00
Taranto
db32ad4f16 Merge remote-tracking branch 'upstream/defiant-dingirma' into fix/flat-schema 2020-06-01 21:02:44 +01:00
Taranto
8f7bb412a1 fix: transaction screens fixes 2020-06-01 20:54:19 +01:00