Commit graph

43 commits

Author SHA1 Message Date
Sérgio Salgado
fb4cbfa331 fix: production environment .env file path 2022-05-11 19:14:07 +01:00
Taranto
ebfd3f433a chore: build fixes 2022-05-04 22:24:52 +01:00
Taranto
f5db9352d2 fix: load .env from the correct place 2022-04-28 18:03:29 +01:00
Sérgio Salgado
b2da82453a fix: production env file path 2022-04-22 19:20:56 +01:00
Sérgio Salgado
f4d6b5e454 feat: decouple l-s entrypoint 2022-04-19 22:47:36 +01:00
José Oliveira
68c635ce38 fix: use gql upload lib and remove logs 2021-12-06 19:25:04 +00:00
José Oliveira
9baa16c824 fix: formik bugs and gql upload 2021-12-06 19:25:01 +00:00
Sérgio Salgado
990ab32583 feat: db uses asynclocalstorage set schema
feat: set user input related header in public route requests to identify schema
fix: small fixes
2021-11-16 16:46:46 +00:00
Sérgio Salgado
7135a03654 feat: add operatorId to l-a-s middlewares
fix: make changes to db event handler to receive more complex payloads
feat: machine actions previously on REST now work based on notifications
feat: state middleware now operates based on operatorId as well
chore: remove old localAppRoutes related code
2021-11-16 16:46:45 +00:00
Sérgio Salgado
5a44216547 fix: session middleware order 2021-11-16 16:46:13 +00:00
Sérgio Salgado
c0d1db834b refactor: move apollo server context creator to middleware function 2021-11-16 16:46:12 +00:00
csrapr
cb2e1b3907 Feat: adds async local storage to admin server 2021-11-16 16:46:11 +00:00
Rafael Taranto
1dd8f4ff7e Merge pull request #872 from SiIky/chore/JbtevlHv/log_through_logger
Log through the logger
2021-11-11 18:32:06 +00:00
André Sá
21bdf5f60a chore: use logger for all important logs 2021-10-11 16:24:24 +01:00
José Oliveira
e729de1410 feat: handle T&C photos and UI photos roll 2021-10-07 13:49:43 +01:00
csrapr
7bbf2829de Feat: make lamassu-migrate use async local storage 2021-07-22 12:15:45 +01:00
csrapr
351d170c31 Feat: AsyncLocalStorage for schema changing 2021-07-22 12:15:45 +01:00
José Oliveira
639f264ee3 chore: remove unused packages, update ccxt, argon2, apollo-server-express and express 2021-07-06 16:15:40 +01:00
Sérgio Salgado
bbc37c0202 fix: multiple small fixes across auth 2021-05-03 23:00:41 +01:00
Sérgio Salgado
9fa97725ec feat: auto userdata fetch
fix: gql directives and overall minor fixes
2021-05-03 23:00:41 +01:00
Sérgio Salgado
9b5cf32314 fix: app context and routing 2021-05-03 23:00:41 +01:00
Sérgio Salgado
40974dd501 fix: naming and redundancy issues 2021-05-03 23:00:41 +01:00
Sérgio Salgado
6e7794bfc6 feat: session secret 2021-05-03 23:00:41 +01:00
Sérgio Salgado
6396eb8247 fix: sql casing 2021-05-03 23:00:41 +01:00
Sérgio Salgado
d295acc261 fix: email verification and UX
fix: remove annotations

fix: styles

fix: move directives from schema

chore: rework auth routes

feat: start graphql schema modularization

feat: start directives rework

fix: directive cycle

fix: directive resolve

fix: schema auth directive

feat: migrate auth routes to gql

fix: apollo client

fix: migrate forms to formik

refactor: user resolver

chore: final touches on auth components

fix: routes
2021-05-03 23:00:41 +01:00
Sérgio Salgado
fded22f39a feat: add user management screen
feat: login screen

fix: login routing and layout

feat: add users migration

feat: passport login strategy

fix: users migration

feat: simple authentication

fix: request body

feat: JWT authorization

feat: 2fa step on login

feat: 2fa flow

feat: add rememberme to req body

fix: hide 2fa secret from jwt

fix: block login access to logged in user

fix: rerouting to wizard

refactor: login screen

feat: setup 2fa state on login

feat: 2fa secret qr code

fix: remove jwt from 2fa secret

fix: wizard redirect after login

fix: 2fa setup flow

fix: user id to uuid

feat: user roles

feat: user sessions and db persistence

feat: session saving on DB and cookie

refactor: unused code

feat: cookie auto renew on request

feat: get user data endpoint

fix: repeated requests

feat: react routing

fix: private routes

refactor: auth

feat: sessions aware of ua and ip

feat: sessions on gql

feat: session management screen

feat: replace user_tokens usage for users

feat: user deletion also deletes active sessions

feat: remember me alters session cookie accordingly

feat: last session by all users

fix: login feedback

fix: page loading UX

feat: routes based on user role

feat: header aware of roles

feat: reset password

fix: reset password endpoint

feat: handle password change

feat: reset 2FA

feat: user role on management screen

feat: change user role

fix: user last session query

fix: context

fix: destroy own session

feat: reset password now resets sessions

feat: reset 2fa now resets sessions

refactor: user data

refactor: user management screen

feat: user enable

feat: schema directives

fix: remove schema directive temp

feat: create new users

feat: register endpoint

feat: modals for reset links

fix: directive Date errors

feat: superuser directive

feat: create user url modal

fix: user management layout

feat: confirmation modals

fix: info text

feat: 2fa input component

feat: code input on 2fa state

feat: add button styling

feat: confirmation modal on superuser action

feat: rework 2fa setup screen

feat: rework reset 2fa screen

fix: session management screen

fix: user management screen

fix: blacklist roles

chore: migrate old customer values to new columns

fix: value migration

fix: value migration

refactor: remove old code
2021-05-03 23:00:41 +01:00
Sérgio Salgado
de98ed4c2c feat: add missing types and resolvers 2021-03-17 10:43:41 +00:00
Sérgio Salgado
b0417f8375 fix: route path 2021-03-17 10:43:41 +00:00
Sérgio Salgado
d9e3a9e61f refactor: logic and routing folders on new-admin 2021-03-17 10:43:41 +00:00
Sérgio Salgado
a432d913be fix: override fields update 2020-12-16 17:18:38 +00:00
Sérgio Salgado
839e6aae47 refactor: user agent parsing 2020-11-12 22:03:26 +00:00
Sérgio Salgado
791b275cdf feat: add request data to user_tokens and token filtering 2020-11-12 22:03:26 +00:00
Taranto
f19a2749ec chore: added builded files and compression 2020-10-22 17:03:00 +01:00
Taranto
89bb9a8f25 chore: cleanup, node14 and new admin default 2020-10-20 21:54:58 +02:00
Liordino Neto
c3222362d7 fix: change default port to 3001 2020-08-06 12:37:54 +02:00
Taranto
bf8f1d991c chore: integrate new admin with l-s 2020-05-27 22:43:00 +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
Taranto
b1b8b82260 fix: small admin fixes 2020-03-20 17:28:23 +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
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