Commit graph

1498 commits

Author SHA1 Message Date
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
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
29502ee303 fix: new font sizes 2020-09-11 14:11:59 +01:00
Taranto
99b400f21c fix: regression in tooltips, autocomplete and font 2020-09-11 14:11:59 +01:00
Taranto
6f5cb385b0 feat: compliance triggers and customers up to spec 2020-09-11 14:11:59 +01:00
Taranto
b153a23f25 fix: small component fixes 2020-09-11 14:11:59 +01:00
Taranto
0b28e7f98a fix: get triggers up to spec 2020-09-11 14:11:59 +01:00
Taranto
b07c0e180a fix: general screen fixes 2020-09-11 14:11:59 +01:00
Taranto
ea53d782ad fix: menu changes 2020-09-11 14:11:59 +01:00
Taranto
b853f366f1 fix: soft rework Customers pages 2020-09-11 14:11:59 +01:00
Liordino Neto
246f736fa8 feat: first field now autofocus when editing a row
fix: move the focus to the first editable element

fix: make the Autocomplete options popup on autoFocus

feat: allow saving on table only when changes occurred

fix: compare only the editing row instead of the entire list to decide
if the save method will be called
2020-09-02 13:06:00 +02:00
Liordino Neto
1e810daabc refactor: ramda function replacements to cleanup the code 2020-09-02 13:03:56 +02:00
Liordino Neto
db966cb4c7 fix: removed debug logging 2020-09-02 13:03:56 +02:00
Liordino Neto
c18b935aa8 fix: moved the filtering of already overriden machines to the locales
helper

fix: allow already existing overrides to show the machine when
being edited
2020-09-02 13:03:56 +02:00
Liordino Neto
925d76dc4b fix: filter already overriden machines on locales 2020-09-02 13:03:56 +02:00
Mauricio Navarro Miranda
a32aca40b2 fix: no need to pointerEvents: none if svg have no name
fix: modified unrelated file
2020-09-02 12:57:18 +02:00
Mauricio Navarro Miranda
eb9acc32f2 fix: use new tooltip 2020-09-02 12:57:18 +02:00
Mauricio Navarro Miranda
79f10d032c feat: allow custom button for tooltip anchorEl 2020-09-02 12:57:18 +02:00
Mauricio Navarro Miranda
41eaa99429 fix: remove title attr from svg to prevent browser tooltip 2020-09-02 12:57:18 +02:00
Mauricio Navarro Miranda
5210e14a19 fix: simplify Tooltip 2020-09-02 12:57:18 +02:00