Commit Graph

55 Commits

Author SHA1 Message Date
Gabriel Rodríguez Alsina 6df5e72135
(Fix) Enforce linting and formatting (#564)
* (remove) unused / old packages / linting script

* (add) eslint / prettier packages and plugins

* (fix) eslint / prettier config

* (add) prettier / eslint scripts

* (fix) linting and formatting problems

* (remove) unused files

* (fix) linting problem that needed to be addressed manually

* (add) pre commit hooks

* (fix) lint-staged config

* (fix) config

* (fix) config

* (check) if pre config formatting works

* Add nvmrc and update yarn.lock

* Update `yarn.lock`

* Make jsx-a11y/no-autofocus report as warn

* Apply lint:fix to project

Co-authored-by: Fernando <fernando.greco@gmail.com>
2020-02-17 19:20:43 -03:00
Fernando f64ebf99a1 Fix #381: notification shown after loading safe (#402)
* Prevent notifications from showing after loading safe

* Make a safe-based sessionStorage control

* Show notifications for new Safes and prevent displaying oldest incoming tx for newly loaded Safe

* Create `currentSession` state

* Add `currentSession` to the Store

* Initialize `currentSession`

* Use `currentSession` to handle notifications for incoming Transactions

* Remove `updateUserStatus`

* Move the load of the current session from storage to app startup

* Fix duplicated reducer id

* Adapt notificationsMiddleware
2020-01-16 18:28:28 +01:00
Agustin Pane 2d282c511b Bug #348: Safelist entries get removed (#358)
* Fix balances saved to localStorage not in format [tokenAdd, balance] but [balance]

* Updates localStorage version value
2019-12-17 12:09:09 +04:00
Fernando d69e5fca7f (Feature) Incoming transactions (#333)
* Add `blockNumber` to transactions model

* Create `incomingTransaction` node in store and load it along with `transactions`

* Add incoming transfers to the Transactions table

* Rename `transactionHash` to `executionTxHash` for better incoming/outgoing txs unification in Transactions table

* Add incoming transactions details

* Add transaction type icon in table row

* Add snackbar notification for incoming txs

* Make incoming transaction snackbar to show on any tab

* Use makeStyles hooks

* Fix incoming amounts conversion from wei

* Make concurrent promise calls

* Use date to calculate transactions ids

* Prevent repeating messages

- also move logic to display snack bar into the notifications middleware

* Merge transactions and incomingTxs to the transactions selector

* Show 'Multiple incoming transfers' if they are more than 3

* Prevent incoming transactions snack bar for first-timer users

* Set ID as the default order

* Use constant for _incoming_ type
2019-12-13 17:45:28 +04:00
Mikhail Mikheev bc7d5836f6
Feature #180: Predict transaction nonce (#293)
* Dep bump

* Fetch transactions when safe view is mounted

* eslint fix

* Calculate new tx nonce from latest tx in service

* Fix tx cancellation, allow passing nonce to createTransaction

* dep bump

* Refactor createTransaction/processTransaction to use object as argument

* Adopting transactions table to new send tx flow with predicted nonces

* dep bump, disable esModule in file-loader options after new v5 release

* Don't show older tx annotation for already executed txs

* sort tx by nonce

* get new safe nonce after tx execution

* Bugfixes

* remove whitespace for showOlderTxAnnotation
2019-12-12 12:30:27 +04:00
Mikhail Mikheev 87a7796a84
set anonymizeIp to true (#335) 2019-12-12 12:29:29 +04:00
Agustin Pane 85ff11796e Feature #272: Google Analytics (#299)
* Adds google analytics tracking for every route

* Adds cookies acceptance check before tracking

* Fix react-ga dependency

* Fix cookieStore deletion

* Merge with #189-cookie-banner

* Fixs react ga version
Refactored HOC with hooks

* Fix TYPO

* Fix path for cookies utils

* Fix imports

* remove flow type definition for polish

* Add GA ID log

* Fix load GA After cookies acceptance
2019-12-05 12:54:42 +04:00
Agustin Pane 434e12edd1 Feature #169: Intercom (#301)
* Implements intercom
Adds REACT_APP_INTERCOM_ID_MAINNET and REACT_APP_INTERCOM_ID_RINKEBY env vars

* Adds .env.example

* Adds intercom env vars

* Updates env vars
Replaces "rinkeby" and "mainnet" with "non-production" and "production"

* Now loads intercom after the user accepted the analytics

* Add env variable for production intercom id

* Update .env.example

* Removes react-intercom
Fixs getIntercomId with default dev appID
Now loads intercom as script

* Renegerate flow-types
2019-12-04 17:19:13 +04:00
Mikhail Mikheev a15a8bf3c3 Use polyfill instead of navigator.clipboard because it doesn't work in safari 2019-11-15 18:29:55 +04:00
Mikhail Mikheev da1353be72 use network in storage prefix key 2019-09-30 13:24:44 +04:00
Germán Martínez 85177d3ddd Refactor error messages 2019-09-27 12:35:13 +02:00
Germán Martínez 5fc9fa6431 Format code 2019-09-12 17:39:55 +02:00
Germán Martínez 9d689a8f48 Remove Safe owners from storage 2019-05-22 12:56:11 +02:00
Mikhail Mikheev 0f7d68b575 eslint fix 2019-04-08 11:46:05 +04:00
Mikhail Mikheev 6e9799bd17 remove cookie store and session storage 2019-04-08 11:19:39 +04:00
Mikhail Mikheev e33c90c230 load safes from localstorage on app load 2019-04-04 17:35:32 +04:00
Mikhail Mikheev 01baabc7cb add loadFromStorage funC 2019-04-03 17:43:49 +04:00
Mikhail Mikheev 76bf32ec16 fix load function for storage 2019-04-01 18:02:27 +04:00
Mikhail Mikheev 1c0917d25a move safe storage logic to logic folder, refactor generic storage logic to use immortaldb 2019-04-01 17:50:56 +04:00
Mikhail Mikheev 633f8738b6 save active tokens via immortaldb 2019-03-27 19:30:32 +04:00
Mikhail Mikheev 7e150a2ff3 immortaldb wip 2019-03-26 19:18:36 +04:00
Mikhail Mikheev c62271bcb8 wip commit: removing side effects from tokens reducer to actions 2019-03-22 19:27:18 +04:00
Mikhail Mikheev 5c8dcb1d8f move token-related localstorage logic to toknes folder 2019-03-22 18:27:47 +04:00
Mikhail Mikheev 745bb06962 move tokens stuff to logic folder because in the new mockups their functionality moved to safe page 2019-03-20 19:13:53 +04:00
Mikhail Mikheev 2b968d53da minor eslint fixes 2019-03-19 18:34:17 +04:00
Mikhail Mikheev 5c358764d1 add a todo comment 2019-03-19 14:49:06 +04:00
mmv d4c6fda203 fetch tokens from relay api: fix tests, token model and other minor stuff 2019-03-13 20:00:25 +04:00
mmv 91c3c9fa91 Fix funds.toNumber is not a function 2019-03-13 15:01:02 +04:00
mmv f2dedc4ad2 add click to copy feature on safe page 2019-03-12 17:46:35 +04:00
apanizo b43aa2feaa #73 Update fetchTransaction action. Fetching info by safe address 2018-10-26 15:11:00 +02:00
apanizo 6bcc351fa2 Creating a log boundaries utility for wrapping react errors 2018-09-03 15:56:19 +02:00
apanizo 1b2504a6e2 Improve upperFirst method 2018-08-28 14:10:14 +02:00
apanizo 6c7b487724 WA-521 Mock signatures service in localstorage 2018-08-22 13:39:08 +02:00
apanizo be9bdd25c1 WA-521 Refactor ethereum modules under logic folder 2018-08-13 18:37:48 +02:00
apanizo 1518521dba WA-521 Improved enhancedFetch returning error and data in a promise 2018-08-10 17:37:05 +02:00
apanizo 3f51574497 Use stored tx subjects when fetching them 2018-08-03 12:18:31 +02:00
apanizo 45fda62e19 Store transaction subject function 2018-08-03 10:15:01 +02:00
apanizo fdf32fcdbb WA-232 remove token from localStorage 2018-07-26 13:22:44 +02:00
apanizo 84c8bc7230 WA-232 Fix being available just added custom tokens after reloading 2018-07-25 13:28:28 +02:00
apanizo fa857fc21a WA-232 Refactor AddToken test 2018-07-24 10:18:03 +02:00
apanizo 69ef967481 WA-232 Fixing tests 2018-07-19 11:04:04 +02:00
apanizo da6345b1cc WA-232 fetching balance of activated custom tokens 2018-07-18 12:14:38 +02:00
apanizo be9bfe0df9 WA-232 Using custom fetch and active tokens extractor 2018-07-11 13:01:08 +02:00
apanizo 0f4d5cb33a WA-232 Created localStorage tokens utility class 2018-07-11 12:59:50 +02:00
apanizo 3afefea0a7 WA-232 Displaying safe's token in settings route 2018-07-10 16:48:20 +02:00
apanizo 70140df4db WA-234 Adding log errors when saving data in localstorage 2018-06-08 11:02:02 +02:00
apanizo 577d7e8749 WA-238 Decoupling storage of names in a separate step in local host 2018-06-08 10:26:01 +02:00
apanizo 302fc13613 WA-238 Refactor localStorage class allowing load data by key 2018-05-21 16:10:05 +02:00
apanizo ec9c78b88b WA-238 Deploying contracts with Daily limit and ProxyFactory 2018-04-30 14:10:24 +02:00
apanizo e33077b752 WA-230 moving ensureOnce util function to singleton.js 2018-04-16 14:44:09 +02:00