Commit graph

848 commits

Author SHA1 Message Date
Liordino Neto
2a1356d192 fix: customers without transactions are now returned on the gql query
style: added stripes as bg to table rows

feat: created the stripped lines pattern for null values in tables

style: center objects vertically in the tables

fix: removed the vertical alignment on the Td component (broke some
tables)

fix: coalesce the last_active customer property to it's own creation
when there's no tx associated

fix: check for null values in the customer properties

fix: fix the ordering of the customers table

style: centered td contents vertically
2020-05-04 13:04:03 +02:00
Taranto
1f6d272aa0 fix: rework wallet screen 2020-04-23 18:38:29 +02:00
Taranto
ffa8713ee4 feat: notifications rework 2020-04-23 18:38:29 +02:00
Luis Félix
b6e7d98b72 feat: notifications page 2020-04-23 18:38:29 +02:00
Taranto
2b71c08444 feat: create add machine page 2020-04-15 19:23:27 +02:00
Taranto
b1b8b82260 fix: small admin fixes 2020-03-20 17:28:23 +01:00
Taranto
84ba74926c fix: make t&c changes backwards compatible 2020-03-20 15:41:50 +01:00
Liordino Neto
507027cdee 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
2020-02-17 22:47:39 +01:00
Liordino Neto
b37a672157 feat: created the base skeleton for the Coin ATM Radar Setup screen (#355)
For now it doesn't have any functionality, CSS styling, or tables

feat: added tables to the Coin ATM Radar screen

No styles or icons yet.

feat: added Edit links to the Coin ATM Radar Setup screen

chore: added some TODOs to the Coin ATM Radar Setup screen

refactor: make a function to render both Coin ATM Radar Setup tables

feat: toggle function on table (not working on table content yet)

feat: added toggle state to the Share Information switch

feat: make the Share Information toggle change the tables contents

feat: added a 'Help' link

Later will be replaced by a '?' button with a pop-up help text.

feat: added radio groups when in editing mode of Coin ATM Radar screen

chore: replaced edit and help placeholders with proper buttons

style: defined some CSS styles

feat: added a help popper

feat: enable radio change events, so they can be selected

style: defined row styles for the radio button groups

For now the help popper contains only a placeholder text, which must be
replaced.

refactor: replaced help and edit Links with Buttons

fix: fixed the margin spacing for buttons

style: added more spacing between before the share information Switch

refactor: made a function to check a table element boolean value

fix: changed some typography styles for titles (from TL2 to H4)

style: added the alternating row style to the information tables

style: added true and false table icons replacing the placeholder texts

style: fixed the radio groups right margin

refactor: renamed everything from CoinATMRadarSetup to CoinATMRadar

feat: integrate share information switch with graphql api

Still needs to finish the tables api integration.

refactor: rename properties from 'show' to 'send'

feat: integrate tables with graphql api

feat: updated the coinatmradar module with the new config properties

feat: added logic to show only currently available CAR config properties

feat: disable the edit button when 'Share Information' is set to 'No'

chore: replaced the lorem ipsum with the correct text on the help popup

fix: fixed some css styling errors

chore: added link to the CAR page on the corresponding button

refactor: refactored the information table to make a component out of it

refactor: changed the name of the 'active' property of the properties
table to 'disabled' and inverted it's logic

refactor: created a component from the boolean property table

refactor: delete repeated styling code on the car page and it's table

style: update styles to be in accordance with the guidelines

refactor: rename properties to make them more concise

fix: readded the old coinatmradar module and renamed the current one

refactor: replaced ternary if with a coalescing operator

fix: make the info table always visible, and it's values not dependent
on the disabled status

fix: move link style to jss

refactor: simplify the use of car properties, and remove currently
unused ones

fix: put hooks on their correct places

fix: when changing the value of the switch, update only it's own config

fix: rename booleanPropertiesTable file so it starts with a capital
letter.

chore: readd removed properties on the car settings (all commented out)

chore: integrated CAR settings page into Operator Info page

fix: replaced broken white and disabled versions of the edit icon
2020-02-04 21:13:20 +01:00
Mauricio Navarro Miranda
fdf18b60ad feat: add machine status page (#344)
* feat: add confirm-dialog component

* feat: add MachineStatus to router

* feat: add machine details to api endpoints

* feat: add machine-status expandabletable

* fix: add missing property to TextInput on story

* style: minor style fixes

* feat: useAxios to unpair and reboot specific machinees

* fix: style fixes
use shutdown instead of reboot
use named colors

* fix: use new ExpTable

* fix: class instead of sttyles, use named colors

* feat: use ConfirmDialog to confirm unpair action

* chore: eslint fix

* refactor: use gql, new ExpTable and ramda on machine-status

* fix: 'fallback' status instead of the 'all good' one

* fix: makeStyles instead of withStyles

* refactor: simplify StatusChip

* fix: css spacing instead of nbsp

* fix: move makeStyles outside component

* refactor: makeStyles instead of withStyles

* refactor: adapting based props for Status

* refactor: moar simple Status chip

* feat: use graphql mutation instead of rest for machine action
feat: use graphql instead of rest on MachineDetailsCard

* fix: Dialog close must be handled outside

* fix: just pass down onDissmissed and onConfirmed to the component
https://github.com/lamassu/lamassu-server/pull/344#discussion_r370136028

* refactor: machineAction on separate file and 404 handling

* feat: basic handling of graphql exceptions on machineAction
2020-02-04 21:12:44 +01:00
Taranto
f1edea4e8a feat: only refetch t&c on config change 2020-01-24 14:32:04 +01:00
Taranto
9ccdd7d6f9 feat: add compression to l-s 2020-01-24 14:32:04 +01:00
Luis Félix
b9d2341cd1 feat: add services page
fix: change styles, fix hook trigger, add ux

feat: setup custom error messages

refactor: conform to new style guide

refactor: migrate to graphql

refactor: migrate to Ramda

fix: update state on mutation

refactor: migrate error ux to graphql

fix: change structure of accounts config

fix: use absolute imports

fix: move makeStyles out of components

fix: correct Strike behaviour
2020-01-20 18:04:26 +01:00
naconner
1dba321052 chore: change ETH language 2020-01-20 17:37:38 +01:00
Taranto
85954e479e fix: add cors to register endpoint 2020-01-20 17:37:15 +01:00
Rafael Taranto
b8e0c2175b feat: add graphql support (#349)
* fix: eslint warnings

* refactor: use ramda + sanctuary instead of lodash

* refactor: use prettier-standard for formatting

* feat: enable security

* feat: add graphql

* chore: remove trailing commas from linter

* docs: new scripts on react and new-admin-server

* feat: handle authentication on graphql

* fix: perf improvement to date picker

* chore: add insecure-dev script to run servers
2019-12-24 15:36:41 +01:00
Rafael Taranto
8334bd274f feat: transactions page (#342)
* feat: transactions page

* fix: remove unused txHash function

* refactor: rewrite transactions sql queries

* fix: use left instead of inner join on txs

* fix: change expandable table logic

* fix: add other coins

* refactor: move log download function to component

* refactor: use name values in RadioGroup

* fix: assorted fixes

* feat: virtualize expandable table

* fix: clean up imports

* fix: remove border radius

* fix: move formatting out of CopyToClipboard

And use CSS instead of JS to format.

* fix: remove customer's last name formatting

This was using lodash's string case functions, which produce unwanted
results if, for instance, a user has a double-barrel last name.
2019-12-12 13:55:52 +00:00
Rafael Taranto
f590dbe49c Merge remote-tracking branch 'upstream/new-lamassu-admin' into dev 2019-11-28 22:18:40 +00:00
Rafael Taranto
05a95485f7 fix: pass down settings to coinatmradar module 2019-11-20 18:56:32 +00:00
naconner
07f4bdfb66 Fix ETH sending following miner fee logging 2019-11-19 16:25:06 +00:00
naconner
ae39a87244 Update Zcash filepath 2019-11-19 16:24:24 +00:00
naconner
e77d031fa7 Update crypto node versions 2019-11-19 16:24:24 +00:00
naconner
5ad3a1f86e Add Coinbase ticker to Dash in admin 2019-11-19 16:24:24 +00:00
naconner
c7dec82f38 Add DASH to Coinbase ticker 2019-11-19 16:24:24 +00:00
Luis Félix
703c5d7c91 feat: add new server log page 2019-11-12 11:20:57 +00:00
Rafael Taranto
fc1951c4b2 Lamassu admin server initial commit 2019-10-31 12:28:51 +00:00
Neal Conner
52ccea0e5f Update Bitstamp to new Bitpay api version 2019-10-16 19:43:04 +02:00
Rafael Taranto
d083ae5a40 perf - Cache settings on router.js 2019-10-01 16:55:07 +02:00
Neal Conner
08635ca833 ZEC node security update 2019-09-27 20:16:24 +02:00
Rafael Taranto
1fb35d107b Fix notify operator call 2019-09-27 20:15:24 +02:00
Rafael Taranto
1153c6af6a Merge cc into dd (#317)
* Fix ETH fee fetching (#303)

* v7.3.3 (#304)

* Throttle clock skew and fetch logs

* PR Fixes

* Reduce throttle time

* Remove old endpoint

* Fix standard styles and improve readability

* Simplify throttling

* Small fixes

* Bump version
2019-09-20 12:33:00 +01:00
Neal Conner
2e675f738f Update BTC, ZEC, BCH, ETH 2019-09-19 16:53:20 +01:00
Neal Conner
0eddea751d Add itBit for ETH 2019-09-09 18:00:03 +01:00
Taranto
8a43d4ee7c Update to new bitpay api version 2019-09-04 18:29:17 +02:00
Neal Conner
96e0c0198d Add ZEC to coinbase.js 2019-09-04 18:25:16 +02:00
Neal Conner
b11271f5cc Add Coinbase for ZEC 2019-09-04 18:25:16 +02:00
Neal Conner
b4d28d1a9b Delete quadrigacx.js 2019-08-31 17:50:13 +02:00
Neal Conner
fe1878129b Delete quadrigacx.js 2019-08-31 17:50:13 +02:00
Neal Conner
a1901dff50 Delete quadrigacx.js 2019-08-31 17:50:13 +02:00
Neal Conner
c67942c3e7 Update zcashd & dashd 2019-08-31 17:48:20 +02:00
Neal Conner
3f38444043 Change connections to maxconnections
Otherwise, bitcoincashd errors out with: `Error reading configuration file: Invalid configuration value connections`
2019-08-31 17:48:20 +02:00
Neal Conner
6349b9568a Update BCH for Nov HF 2019-08-31 17:48:20 +02:00
Rafael Taranto
5125601e56 Only block reused address if option is on 2019-08-19 10:59:00 +03:00
Rafael Taranto
fb42fc54a0 Handle spammy logs for removed l-a-s options 2019-08-19 10:56:09 +03:00
Taranto
91fc4e7cc2 Fix ETH fee fetching 2019-08-06 20:47:50 +01:00
Neal Conner
bb9adafeec Update bitcoind & litecoind 2019-08-06 20:43:24 +01:00
Neal Conner
e795537f2b litecoind 0.17 getbalance compatibility change 2019-08-06 20:43:04 +01:00
Michael Hampton
def5a16ad4 bitcoind 0.17/0.18 getbalance compatibility change
Because of bitcoind deprecating its internal account system, the getbalance RPC call now has a dummy argument as the first argument. The help says it can be omitted or changed to '*', so we change it to '*', both for backward compatibility and because in testing I found that omitting the argument was broken. Using '*' has the same semantics as omitting the argument, if accounts were not used in the previous version of bitcoind.
2019-08-06 20:42:44 +01:00
Rafael Taranto
1a53ce5fa1 Take machineid into account for coinatmradar rates (#301)
* Take machineid into account for coinatmradar rates

* Remove test leftovers
2019-08-06 20:37:46 +01:00
Rafael Taranto
98cc3b18b7 Prevent address reuse option 2019-07-31 18:12:16 +01:00