Commit graph

1485 commits

Author SHA1 Message Date
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
Mauricio Navarro Miranda
e7805040f0 fix: revert selected files, no need to add tooltips on svg buttons 2020-09-02 12:57:18 +02:00
Mauricio Navarro Miranda
653f939856 feat: custom tooltip instead of browser tooltip
fix: remove default browser tooltip
fix: rename HelpTooltip into Tooltip
feat: allow custom tooltip element
fix: open cashout fudgefactor help tooltip on click
feat: edit and delete (editabletable) custom tooltip
feat: custom tooltip on single field editables
feat: SingleRowTable custom tooltip
feat: custom tooltip on modal close button
fix: operatorinfo custom tooltip
feat: confirmdialog custom close tooltip
fix: remove browser default tooltip from action buttons
fix: eslint
2020-09-02 12:57:18 +02:00
Liordino Neto
f700b29b3d fix: added last month last days on the popup calendar, and fix it's day
of week organization

chore: removed debug logging
2020-09-02 12:50:03 +02:00
Liordino Neto
d88508d0f5 fix: machine status popup validation now occurs only on lose of focus 2020-09-02 12:47:24 +02: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
Mauricio Navarro Miranda
4b98f3503f fix: remove selected item preference when something is typed 2020-09-02 12:36:14 +02:00
Mauricio Navarro Miranda
ddf488e3b7 fix: selected values must be at the start of the dropdown 2020-09-02 12:36:14 +02:00
Mauricio Navarro Miranda
ef9f8b49a6 fix: match-sorter for a better drop-down sorting
fix: autocoplete inerOnBlur
fix: revert autocomplete limit api
fix: no need for custom filterOptions
fix: eslint
2020-09-02 12:36:14 +02:00
Liordino Neto
d1c1734dec fix: set the correct number o decimal places on percentage number inputs 2020-09-02 12:32:40 +02:00
Liordino Neto
27da8cc025 feat: created a number input component (base and formik)
fix: replace numeric TextInput fields on the Cashout, Commissions,
Cashboxes, Notifications, Operator Info and Terms & Conditions pages

fix: change the way the number format is defined on the component

fix: parameterize the number of decimal places in the in the number
input and set it's value for the current number inputs on the admin
2020-09-02 12:32:40 +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
8564c8b727 fix: replaced ternary operator with a more readable expression on the
percentage calculation
2020-09-02 12:29:01 +02:00
Liordino Neto
112544fc75 fix: increased width of inputs so they doesn't cut off text
fix: reenabled the cash-out display component with 500 notes max bot and top

fix: fixed repeated import on new-admin config accounts

feat: reenabled the cash-out display component
2020-09-02 12:29:01 +02:00