Commit graph

1517 commits

Author SHA1 Message Date
Taranto
3a6f3a2915 fix: wizard rework 2020-10-15 21:32:46 +02:00
Mauricio Navarro Miranda
0f4350f99c fix: wizard tables are not on edit mode by default 2020-10-15 21:32:46 +02:00
Mauricio Navarro Miranda
edce075b18 style: eslint fix 2020-10-15 21:32:46 +02:00
Mauricio Navarro Miranda
a7c1e3cf07 fix: bottom steper does not show subtitle 2020-10-15 21:32:46 +02:00
Mauricio Navarro Miranda
1f5b84340e feat: Admin Wizard
feat: Wallet admin wizard
feat: Notifications admin wizard
feat: Twillio admin wizard
feat: Commissions admin wizard
feat: OperatorInfor admin wizard
feat: Locales admin wizard
feat: wizard admin route
fix: better margin for admin wizard sidebar
feat: allow FormRenderer to receive a field xs size
feat: add a few flags on notifications, to reuse component parts as desired
fix: wrong gql
fix: missnig prop
fix: eslint
fix: radio styles
feat: configure bitgo wallet for single cryptocurrency on wizard
fix: eslint
feat: set up infura wallet on wizard
feat: exchange account config on wizard
fix: choose wallet choose exchange DRY
fix: layout
fix: rebase wizard to use commissions new changes
fix: typo
fix: eslint
fix: horizontal radios
feat: radio interacts with mailgun enabled/disabled state
fix: use yup to validate wizard steps
fix: eslint
feat: add xl size for button
feat: admin wizard splash
feat: use fullsize modal for wizard
fix: eslint
feat: Footer styles
feat: wizard footer styles
fix: wallet step styles
fix: zeplin spec
fix: zeplin styles
feat: blockcypher link
fix: xs can only be used on item
feat: minimize wizard footer on click away
feat: read blockcypher config
fix: all set title styles do not match
fix: no need to wrap the wrapper
feat: allow to override Setup table width for wizard
fix: wrapper class for wizard steps
fix: layout elements for mailgun step
feat: use yup to validate wizard steps
style: eslint
feat: operator info components open by default on wizard
fix: all set table is too wide
feat: full example modal
feat: check if wallet has valid config
feat: check if twilio has valid config
2020-10-15 21:32:46 +02:00
Liordino Neto
d4494dad6f fix: removed unneeded conditions on more operator info switches 2020-10-15 21:30:58 +02:00
Liordino Neto
2a44621e24 fix: removed unneeded condition on receipt options switch 2020-10-15 21:30:58 +02:00
Liordino Neto
61bacbdaec fix: rebase fixes 2020-10-15 21:30:58 +02:00
Liordino Neto
b997e9ecf0 fix: allow text on company number
fix: data wasn't updated after saving

fix: fixed switches on all of the operator info pages
2020-10-15 21:30:58 +02:00
Taranto
b3290602d7 fix: negative numbers on funding 2020-10-15 21:27:27 +02:00
Taranto
d889bb34ac fix: wallet pending values 2020-10-15 21:27:27 +02:00
Liordino Neto
18e5a593e3 fix: leave an empty string when there's no value for a column 2020-10-15 21:24:40 +02:00
Liordino Neto
f9be68f98a fix: make table fields show a '-' instead of an empty string when the
col content is null

fix: make all notifications fields optional

fix: make the notifications overrides fields valid only if the machine/
cryptocurrency and at least one of the other options are filled
2020-10-15 21:24:40 +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
Liordino Neto
37500c3f9b feat: brought back the cashout component
style: fixed the cashout component styles according to the specs
2020-10-10 15:48:42 +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
Liordino Neto
9577d3548e fix: filter out the empty code currencies from the list on locales 2020-10-09 11:09:01 +02:00
Liordino Neto
77043c42ad fix: avoid warning on first fiat currency selection 2020-10-09 11:04:46 +02:00
Liordino Neto
b39692e6f7 fix: make save buttons always shows up prior to cancel buttons
fix: make all save buttons of submit type
2020-10-07 10:45:07 +02:00
Liordino Neto
7da522b1da fix: removed the 'bitcoincash:' substring from bch addresses on the
admin
2020-10-06 23:44:20 +02:00
Liordino Neto
14cbd127c4 fix: extended length of accept and cancel buttons text to 50 chars 2020-10-06 23:41:46 +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
c45241471e fix: small bugfixes and improvements 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
3c6f547349 fix: cash-out fields now accepts only positive values
fix: add max values for fields on Cashout, Commissions, Notifications

fix: disable adding on the Locales overrides when all of the machines
are already overriden
2020-09-25 11:05:38 +01:00
Liordino Neto
0c3ae801d0 fix: Editing/saving fixes (#432)
* feat: table add button is now hidden when adding/editing

feat: disable every other action on editable table when editing/adding

feat: hide add button instead of disabling it when can't add

feat: disable every other action when adding/editing on the commissions
page

feat: disable every other action when adding/editing on the locales
page

feat: disable every other action when adding/editing on the
notifications page

feat: disable save buttons while waiting for server response on tables
and editable numbers

* chore: removed TODO
2020-09-22 22:28:55 +01:00
Liordino Neto
02474a0a6d fix: wrong fonts on the operator info pages (#430)
* fix: fix bug when loading the contact info page with no phone configured
or no country configured in locales

style: fixed contact info styles

style: fixes on the terms & conditions styles

* fix: re-add H4 style after merge

fix: code styling
2020-09-22 22:28:12 +01:00
Liordino Neto
3c0f4ec194 feat: Prevent leaving the page without saving (#431)
* fix: make all fields required on the Terms & Conditions page if Show on
screen is enabled

fix: enable/disable the Terms & Conditions form based on the Show on
screen toggle

fix: replaced deactivated field with plain text when not editing

fix: make de non editable text content field scrollable

style: make it follow the same style as the other screens, with the edit
button and links to save and cancel

feat: created Prompt component to avoid leaving pages without saving

feat: applied component to the editable table

feat: applied component to the Cashout, Commissions, Locales, Cashboxes,
Notifications, CryptoBalanceOverrides and Wallet pages

feat: applied component to the ContactInfo and ReceiptPrinting pages

refactor: export the default prompt message to be used in other contexts

fix: applied prompt component to the Operator Info pages

fix: create routes for the operator info components

feat: applied the Prompt component to the Contact Info and Receipt pages

feat: applied the Prompt component to the Terms & Conditions page

* refactor: move prompt to components

* feat: use formik on the boolean properties table

* chore: removed console.logs

chore: removed comments

refactor: moved BooleanCell to the BooleanPropertiesTable file and make
it not a formik field
2020-09-21 12:45:29 +01:00
Liordino Neto
dbfb37a756 fix: removed unnecessary __typename property on 'All machines' option
fix: cryptoCurrencies is a select multiple so it's default should be [] instead of ''
2020-09-21 12:43:49 +01:00
Liordino Neto
76030c7208 fix: don't allow negative values on the commissions forms
feat: add an all machines option to the commissions overrides

fix: added cash-in and cash-out icons to main and override table headers

feat: filter out already overriden machine-coin combinations

fix: fix error when there's no machine selected yet
2020-09-21 12:43:49 +01:00
Mauricio Navarro Miranda
dec90b9998 fix: add missing dev dependency eslint-plugin-react 2020-09-20 14:26:58 +01:00
Mauricio Navarro Miranda
fa562f5007 feat: use new NumberInput on cash-out wizard 2020-09-20 14:26:26 +01:00
Mauricio Navarro Miranda
c4acfaa609 fix: no need for child selectors
fix: eslint
2020-09-20 14:26:26 +01:00
Mauricio Navarro Miranda
42f19e9d02 fix: cash out fixes
fix: on and off should have a fixed width
fix: fist screen should be two p
fix: autofocus on fields after next
fix: spacing
fix: button position
fix: make the denominations a dropdown
fix: fiat should shown input suffix
fix: wizard should have splash image
fix: add missing warning icon
fix: eslint
fix: modal fiat should be a suffix
fix: increase modal height to match the spec
fix: confirmation step has repeated title
fix: label should cover both the input and the suffix
fix: use code+display to benefit from dropdown improvements
2020-09-20 14:26:26 +01:00
Liordino Neto
b870bdd999 fix: make all fields required on the Terms & Conditions page if Show on
screen is enabled

fix: enable/disable the Terms & Conditions form based on the Show on
screen toggle

fix: replaced deactivated field with plain text when not editing

fix: make de non editable text content field scrollable

style: make it follow the same style as the other screens, with the edit
button and links to save and cancel
2020-09-18 16:19:55 +01:00
Liordino Neto
8853f1fd20 feat: added an alert to confirm fiat currency changes on locales 2020-09-18 16:17:10 +01:00
Liordino Neto
192ae0c5fb style: fix uptime chip style
style: reduced the dropdown border-radius from 16px to 8px only when it's open

feat: scroll the table back up with a log level filter change

fix: dropdown border-radius bottom was still 16px instead of 8px when
opened
2020-09-18 16:16:03 +01:00
Liordino Neto
6177a781a6 fix: make the schema_version column not nullable 2020-09-11 14:13:18 +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