Commit graph

1455 commits

Author SHA1 Message Date
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
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
37ea3a04c3 fix: replaced the 'info card enabled' radio group with a switch
fix: increased width of inputs

fix: avoid formik fields wiggling

fix: avoid content bellow form to wiggle when editing

fix: fixed the wiggling on the fields labels

fix: add ellipsis on text overflow on the contact info form

fix: validate phone number, considering locale country if no country
code is provided

fix: contact info can now be edited independent of the "info card
enabled" switch state

fix: removed unused style
2020-07-31 00:29:51 +02:00
Liordino Neto
78f3cfd5c1 fix: added missing lodash dependency to accounts lib
fix: made the properties table editable even when the receipt printing
is off

fix: change company registration to company number on the
receipt printing page

fix: refetch config after saving

fix: set fixed height for the editable property row

fix: remove debug log

fix: placed the options of the BooleanPropertiesTable in a TableCell to
avoid raising an error caused by having an <svg> inside a <td>

fix: change the receipt options to a switch

fix: copied style instead of importing from other component
2020-07-31 00:09:55 +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
Josh Harvey
1bcc87757b Merge pull request #400 from lamassu/fix/flat-schema
WIP: New admin integration
2020-06-09 17:19:46 +00: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
Taranto
bf8f1d991c chore: integrate new admin with l-s 2020-05-27 22:43:00 +01:00
Josh Harvey
b52652486c Merge pull request #399 from naconner/wallets-2
chore: update BCH, ZEC, ETH
2020-05-23 16:15:15 +02:00
Taranto
6e9feb6be4 fix: rename fudge factor and change value 2020-05-23 16:03:44 +02:00
naconner
2ecd4946ac Merge branch 'defiant-dingirma' into wallets-2 2020-05-20 12:57:19 -04:00
naconner
278c977763 chore: update BCH, ZEC, ETH 2020-05-20 12:54:44 -04:00
Taranto
6b3db134e7 fix: make accounts a object 2020-05-09 20:14:46 +01:00
Taranto
ec73f0b022 fix: flat schema on operator info pages 2020-05-09 20:14:43 +01:00
Rafael Taranto
d65482958a Merge pull request #398 from liordino/feature/create-receipt-printing-page
feat: create receipt printing page
2020-05-09 19:58:14 +01:00
Rafael Taranto
d23067f679 Merge pull request #389 from mautematico/feat-add-cash-out-screen
feat: add cash out screen
2020-05-09 19:57:59 +01:00
Rafael Taranto
d7ff61d83f Merge pull request #373 from mautematico/feat-add-cashboxes-screen
feat: add cashboxes screen
2020-05-09 19:57:41 +01:00
Liordino Neto
c808ca3be9 feat: added the compliance/customers route
feat: added customers list page

feat: created the Customer type on the gql server and consume it

Currently only with the 'name' property

feat: added query on gql to get the customers list with the needed props

feat: added the currently available props to the front end table

fix: consider only sent txs for the aggregations on the customers list

fix: replace ExpTable with a non-expandable one

fix: remove unused properties from gql and front-end

fix: fixed the customers list columns width

fix: the last active table column was reading the wrong property

chore: remove debug logging

fix: use the correct table columns to check for txs that should be
considered on the customers list page

fix: use the international format for phone numbers

feat: added the search box

fix: remove ordering from the gql customers list query and moved it to
the front-end)

fix: removed the search box

chore: refactor the customers list table into a new component

chore: cleanup code

fix: fixed styles from customer list page header

feat: created customer profile page and started a transition feature
from the customer list

refactor: make components out of customers list table and profile page

feat: selecting a customer now transitions to its profile page

feat: added the customer transactions list table

fix: fix tx class button margins

fix: fix tx class icon margins on the customer list

fix: fixed crypto value

style: fixed the table column widths

feat: added the requirements column (no data yet, though)

feat: added the header with the customer details (no image yet, though)

feat: created the skeleton for the properties cards

feat: create the breadcrumb on the customer profile page (no link yet)

feat: added the children container in the property card

feat: added block customer action button

feat: added action buttons to the property cards

feat: added a children prop to the property card component

feat: added extra properties to the customer gql query

feat: added override fields to the customers gql query

style: added conditional styles to the property card component

feat: added children to the customer property cards

feat: create the edit button function on the property card

feat: add error properties to the txs (from gql)

style: fix action left editing action button and right property card
margins

feat: created a mutation to update a customer

feat: added the customer auth override state to the gql query

feat: fix the routing to the individual customer profile pages

feat: made the 'Customers' label on the breadcrumb work as a link

style: fixed the breadcrumb separator

style: fixed the customer name style

feat: made the action to block and authorize a customer as a toggle

feat: removed the 'Super user' switch (left for v2)

style: added the crossed camera icon on the photo

style: fixed the rejected icons

refactor: refactored some styles that were repetitive

refactor: created constants for the override possible states

feat: created functions for the authorization and blocking of overrides

refactor: renamed setOverride to updateCustomer

fix: remove current unused features

feat: make the property cards fields read-only

feat: setup id card photo and front camera photo image servers

feat: add id card photo on the corresponding property card

feat: add front camera photo on the customer profile header

feat: added gql cache to update the front-end after any mutation

style: added the crossed camera icon when there's no id card photo

refactor: extracted the PropertyCard component to another file

fix: deactivated the cache for the transactions (no need for it)

refactor: removed unused styles

fix: fixed front-camera-photo img path

fix: changed gql local data updates from cache to query refetch

refactor: move override status constants to the property card class

refactor: make the image servers URI a const dependent on the build

fix: remove requirements column from customer tx table (left for future
version)

fix: add aliases to gql query to correctly show errors on tx table

style: fix the transaction errors styles

feat: add terms and conditions page

feat: add modal preview

feat: remove preview

fix: increase space between switch and fields

feat: added the compliance/customers route

feat: added customers list page

feat: created the Customer type on the gql server and consume it

Currently only with the 'name' property

feat: added query on gql to get the customers list with the needed props

feat: added the currently available props to the front end table

fix: consider only sent txs for the aggregations on the customers list

fix: replace ExpTable with a non-expandable one

fix: remove unused properties from gql and front-end

fix: fixed the customers list columns width

fix: the last active table column was reading the wrong property

chore: remove debug logging

fix: use the correct table columns to check for txs that should be
considered on the customers list page

fix: use the international format for phone numbers

feat: added the search box

fix: remove ordering from the gql customers list query and moved it to
the front-end)

fix: removed the search box

chore: refactor the customers list table into a new component

chore: cleanup code

fix: fixed styles from customer list page header

fix: removed unused code

refactor: move transactions to a custom resolver in the customer's query

refactor: break the CustomerProfile component into several smaller ones

style: changed the table row error color from red to no change and the
error text from tomato to comet

fix: removed repeated function (wrong merge)

fix: make the updateCustomer function updates only what's explicitly
told so

style: return with the table row error style

refactor: create a function to test if a value is null prior to passing
it through another function

fix: make t&c changes backwards compatible

chore: bump eslint import library to activate rule

fix: stop showing object on empty column

fix: get machine logs page up-to-date

fix: small admin fixes

feat: add terms and conditions page

feat: add modal preview

feat: remove preview

fix: increase space between switch and fields

feat: added the compliance/customers route

feat: added customers list page

feat: created the Customer type on the gql server and consume it

Currently only with the 'name' property

feat: added query on gql to get the customers list with the needed props

feat: added the currently available props to the front end table

fix: consider only sent txs for the aggregations on the customers list

fix: replace ExpTable with a non-expandable one

fix: remove unused properties from gql and front-end

fix: fixed the customers list columns width

fix: the last active table column was reading the wrong property

chore: remove debug logging

fix: use the correct table columns to check for txs that should be
considered on the customers list page

fix: use the international format for phone numbers

feat: added the search box

fix: remove ordering from the gql customers list query and moved it to
the front-end)

fix: removed the search box

chore: refactor the customers list table into a new component

chore: cleanup code

fix: fixed styles from customer list page header

fix: make t&c changes backwards compatible

fix: stop showing object on empty column

fix: get machine logs page up-to-date

feat: add terms and conditions page

feat: add modal preview

feat: remove preview

fix: increase space between switch and fields

feat: added the compliance/customers route

feat: added customers list page

feat: created the Customer type on the gql server and consume it

Currently only with the 'name' property

feat: added query on gql to get the customers list with the needed props

feat: added the currently available props to the front end table

fix: consider only sent txs for the aggregations on the customers list

fix: replace ExpTable with a non-expandable one

fix: remove unused properties from gql and front-end

fix: fixed the customers list columns width

fix: the last active table column was reading the wrong property

chore: remove debug logging

fix: use the correct table columns to check for txs that should be
considered on the customers list page

fix: use the international format for phone numbers

feat: added the search box

fix: remove ordering from the gql customers list query and moved it to
the front-end)

fix: removed the search box

chore: refactor the customers list table into a new component

chore: cleanup code

fix: fixed styles from customer list page header

fix: make t&c changes backwards compatible

fix: stop showing object on empty column

fix: get machine logs page up-to-date

fix: small admin fixes

feat: create add machine page

feat: add terms and conditions page

feat: add modal preview

feat: remove preview

fix: increase space between switch and fields

feat: added the compliance/customers route

feat: added customers list page

feat: created the Customer type on the gql server and consume it

Currently only with the 'name' property

feat: added query on gql to get the customers list with the needed props

feat: added the currently available props to the front end table

fix: consider only sent txs for the aggregations on the customers list

fix: replace ExpTable with a non-expandable one

fix: remove unused properties from gql and front-end

fix: fixed the customers list columns width

fix: the last active table column was reading the wrong property

chore: remove debug logging

fix: use the correct table columns to check for txs that should be
considered on the customers list page

fix: use the international format for phone numbers

feat: added the search box

fix: remove ordering from the gql customers list query and moved it to
the front-end)

fix: removed the search box

chore: refactor the customers list table into a new component

chore: cleanup code

fix: fixed styles from customer list page header

fix: make t&c changes backwards compatible

fix: stop showing object on empty column

fix: get machine logs page up-to-date

feat: create add machine page

fix: fixed wrong merging

fix: more fixes from last merge

fix: export needed functions that wasn't exported from the customers
module

fix: removed the customer profile route from the header

fix: replaced old dataTable with new component

feat: added onClick event to new DataTable
2020-05-09 18:19:20 +01:00
Liordino dos Santos Rocha Neto
5256301eff feat: added an editable option for the receipt printing active status
feat: create an EditableProperty component

feat: added boolean properties table and missing properties

chore: integrated receipt printing page on op info page

fix: fixed style issues in the boolean properties table

feat: added a custom prefixText on the editable property component

chore: commented out currently unused features

fix: fixed boolean properties table color

chore: removed debug logs

fix: boolean properties table cancel button was saving instead of
canceling

fix: receipt printing properties where wrong (customText currently isn't
used, and customerNameOrPhoneNumber was using the wrong property)
2020-05-08 22:40:20 -03:00
Mauricio Navarro Miranda
1cf4168294 feat: use Namespaced table and wizard on Cashout 2020-05-05 23:14:32 -05:00
Mauricio Navarro Miranda
af95a366c6 feat: add cash-out screen
feat: add cash-out route

feat: add cash-out table component

feat: add cash-out page

feat: add wizard splash for enable cashout

feat: wizard component for enable cash-out

feat: use wizard to enable cash-out

fix: denominations are numbers

feat: update cashout denominations config on gql

feat: refetch cashout infos after config save

fix: use default table for cashout table

fix: move cashout table closer to parent
2020-05-05 03:44:04 -05:00
Mauricio Navarro Miranda
01e330ae98 feat: felix's wizard base components 2020-05-05 03:44:04 -05:00
Mauricio Navarro Miranda
a73b49ef29 fix: reads denominations config on flat style 2020-05-05 03:40:14 -05:00
Mauricio Navarro Miranda
0adecf02f0 fix: simplify layout by using TitleSection 2020-05-05 02:30:31 -05:00
Mauricio Navarro Miranda
bba2427de6 fix: editableTable needs id to be set and uniq 2020-05-05 02:30:31 -05:00
Mauricio Navarro Miranda
e255ba211e feat: use the newest editableTable options
fix: new editableTable takes care of setEditing()
fix: new save() parameters in use
2020-05-05 02:30:31 -05:00
Mauricio Navarro Miranda
7cf82a407e fix: wip use flat config 2020-05-05 02:30:30 -05:00