Commit Graph

2917 Commits

Author SHA1 Message Date
Mikhail Mikheev 66c5ae7f8e
Safe apps: return safe tx hash (#1245)
* apps refactoring wip

* apps refactoring wip

* type fixes

* add useLegalConsent hook in apps

* useAppList hook wip

* dep nump

* useAppList hook wip

* fix selecting first app

* Remove console.log

* dep bump

* update persisting app logic

* update saveToStorage type

* fix crash on apps tab

* add appframe comp

* add handleIframeLoad func

* reuse selectedApp variable in hook

* remove initialAppSelected

* yarn regenration

* useIframeCommunicator wip

* add types for apps component

* dep bump

* fix history types

* yarn regenration

* extract useIframeMessenger hook

* fix safe-react-components version

* useIframeMessageHandler wip

* fix types

* send safe info on handshake

* fix naming/types for url utils

* remove operations

* update safe-apps-sdk

* wip

* update safe-apps-sdk

* requestId wip

* cta snackbar usage fixes

* notifications refactor wip

* notifications refactor: use dispatch

* tsc fixes

* extract confirm transaction modal

* Extract confirmation modal to a separate component

* dep bump

* ConfirmTransactionModal component

* Return safeTxHash after user confirmed transaction

* fix address validator, close modal when user confirms the tx

* close modal after confirmation

* update imports

* update imports [2]

* update imports [3]

* update imports [4]

* remove console.log in createTransaction

* update safe-apps-sdk

* yarn.lock

* EditOwnerModal types
2020-08-26 13:05:34 +04:00
Daniel Sanchez 067dbb9e74
Merge pull request #1273 from gnosis/hotfix/app-crashes-via-link
(Hotfix) Fix crashing app when loading
2020-08-26 09:36:50 +02:00
Daniel Sanchez c267e30d0a Set v2.10.2 2020-08-26 09:18:16 +02:00
Daniel Sanchez f8565f4662 Bug/safe crash when accessing from link (#1209)
* use updateSafeAction for adding modules

* Fix address parameter naming issue

Add comment to ADD_SAFE_MODULE behaviour

* fetchSafe batch everything to updateSafe

* remove addSafeModules action

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-08-26 09:16:52 +02:00
Daniel Sanchez b965b5c712
Merge branch 'master' into hotfix/app-crashes-via-link 2020-08-26 09:04:16 +02:00
nicolas 4dc28942c0
Allow to remove a Safe-app added manually (#1260)
* partial imp

* Delete safe apps added manually

* Fix and review changes

* remove unnecesary exports

* Fix deleteApp and sort in modal list
2020-08-25 17:19:01 -03:00
Daniel Sanchez af0f303fe0
Fix windows directory issue on yarn install (#1275)
* Update yarn.lock file to match integrity

* Restore network-concurrency flag
2020-08-25 20:06:37 +02:00
Daniel Sanchez b337737d5d
Merge pull request #1270 from gnosis/fix/build-windows-app-production
Add fix for windows desktop app build (#1254)
2020-08-25 17:21:19 +02:00
Agustin Pane dcde716151 Revert version 2020-08-25 12:15:55 -03:00
Daniel Sanchez 3ceb1f219a Roll back version change as it wasn't published yet 2020-08-25 17:09:03 +02:00
Agustin Pane 78071d7b71 Update package version 2020-08-25 12:08:17 -03:00
Agustin Pane c12774205c Replaces addSafeModules with updateSafe 2020-08-25 11:44:07 -03:00
Daniel Sanchez 74d5cde6f7 Set v2.10.2 2020-08-25 13:38:51 +02:00
Daniel Sanchez 5a8b3e248b Fix desktop app build (#1254)
* Change generate-types routes

* Use cross-env in generate-types script

* Update desktop build to Node 12

* Rollback to Node 10

* Remove cross-env

* Disable yarncache steps

* Enable yarn cache clear

* Cleanup yarn.lock file

* Restore yarn install step

* Set release action when merge to master
2020-08-25 13:35:28 +02:00
Fernando 2f688a2488
Merge pull request #1267 from gnosis/hot-fix/#1262-update-balancerPool-sApp
(Hotfix) Update Balancer Pool IPFS URL
2020-08-24 17:13:34 -03:00
fernandomg 0f777d070a fix: update balancerPool IPFS url
- also set the Safe's version to `2.10.1`
2020-08-24 14:36:51 -03:00
Mati Dastugue 50995c3f0c
Etherscan link broken (#1255)
* Add default type

* update deps

* Rename variables

* Update link

* hardcode link type

* remove optional type prop for etherscanlink

Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
2020-08-20 23:15:38 +04:00
Daniel Sanchez 8a13d333d2
Fix desktop app build (#1254)
* Change generate-types routes

* Use cross-env in generate-types script

* Update desktop build to Node 12

* Rollback to Node 10

* Remove cross-env

* Disable yarncache steps

* Enable yarn cache clear

* Cleanup yarn.lock file

* Restore yarn install step

* Set release action when merge to master
2020-08-20 00:52:36 +04:00
Daniel Sanchez 251a41e26f
Merge pull request #1252 from gnosis/v2.10.0-backmerge
V2.10.0 backmerge
2020-08-18 11:28:04 +02:00
Mikhail Mikheev 32748c4b15 Merge branch 'master' of github.com:gnosis/safe-react into v2.10.0-backmerge 2020-08-17 16:09:43 +04:00
Mikhail Mikheev 296e1c3cc4
Merge pull request #1251 from gnosis/v2.10.0-openzeppelin-app
V2.10.0: OpenZeppelin app
2020-08-17 15:36:09 +04:00
Mikhail Mikheev 6b648d0908 v2.10.0: Add Openzeppelin app 2020-08-17 15:18:47 +04:00
Mikhail Mikheev 78f832f7dd Add openzeppelin app 2020-08-17 15:18:41 +04:00
nicolas 691ef98048
new TXs tab (#1089)
* new TXs tab

* Removes coverage folder from git

* Adds getAllTxServiceUriTo
Adds types on fetchTransactions

* Adds loadAllTransactions method

* Adds types for allTransactions

* Adds types to loadAllTransactions
Adds urlParams to fetchAllTransactions

* Adds transactionsNew store

* Fetch all transactions endpoint and updates newTransactions store

* Updates transactions types

* Adds newTransactionsHelpers.ts

* Remove white spaces

* Removes immutableJS usage in NewTransactionsState

* Renames getAllTxServiceUriTo to getNewTransactionsServiceUriFrom

* Renames reducer TRANSACTIONS_NEW to TRANSACTIONS

* Removes newTransactions from fetchTransactions.ts

* Adds useFetchNewTransactions hook
Adds uriParams as parameter for loadAllTransactions

* Updates default state

* Adds newTransactionsSelector
Updates newTxsTab behaviour

* Renames eTag to responseEtag

* Fix missing Map type Import in AppReduxState

* Remove generic types

* Adds offset and limit to the NewTransactionsState
Adds currentPageSelector
Adds getNewTransactionsState

* Moves addNewTransactions action to actions/TransactionsNew

* Implements setPreviousPage, setNextPage

* Adds safeNewTransactionsSelector
Adds newTransactionsCurrentPageSelector

* Implements basic pagination on tabs layout

* Remove offset and limit from ADD_NEW_TRANSACTIONS action
Fixs ADD_NEW_TRANSACTIONS reducer implementation

* Improves useFetchNewTransactions usage to avoid re renders

* Fix newTransactionsCurrentPageSelector page calculation

* Fixs newTransactionsCurrentPageSelector
Adds loader state on newTxsTab

* Implements etags by page

* Implements pagination restrictions

* Fix import

* Reduce any's usage

* Replaces JSX.Element with ReactElement

* Fixs types

* Moves all the pagination actions to pagination.ts

* Simplify loadAllTransactions return values

* Replaces limit 100 to 50

* Rename actions

* Fix types

* Add TODO

* Replaces count/transactionsCount to totalTransactionsAmount

* Renames getNewTransactionsServiceUriFrom to getAllTransactionsUriFrom
Add types

* Rename newTxs to Transactions

* Add types to CopyBtn

* Replaces /transactionsNew with /all-transactions

* Replace btn handlers usage

* Uses hash as key

* Replaces redux with params

* Types

* Improves enum types

* Replaces is with boolean

* Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new

# Conflicts:
#	src/store/index.ts

* Types

* Enums

* Remove tabsValue()

* Moves store from ui to logic folder

* Fix imports

* Add type for new transactions

* Add Gnosis CLA (#1188)

* replace newTransactions with allTransactions

* bring back src/store

* bring back src/store 2

* Fix match type usage

* Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new

# Conflicts:
#	src/logic/addressBook/store/selectors/index.ts
#	src/logic/safe/transactions/send.ts

* Fix key null warning

* Removes limit and offset from allTransactions State

* Simplify allTransactions state

* Renames transactionsNew folder to allTransactions

* v2.9.0

* bump node in travis to 12

* add overflow hidden to iframe container in safe apps

* Merge branch 'development' of https://github.com/gnosis/safe-react into transactions_new

# Conflicts:
#	src/logic/safe/store/actions/__tests__/utils.test.ts
#	src/logic/safe/store/actions/addSafeModules.ts
#	src/logic/safe/store/reducer/safe.ts
#	src/logic/safe/store/reducer/types/safe.d.ts
#	src/routes/safe/components/Apps/index.tsx
#	src/routes/safe/components/Layout/Tabs/index.tsx
#	src/routes/safe/components/Settings/Advanced/dataFetcher.ts
#	src/routes/safe/components/Transactions/TxsTable/ExpandedTx/OwnersColumn/index.tsx
#	src/routes/safe/components/Transactions/TxsTable/ExpandedTx/TxDescription/CustomDescription.tsx
#	src/routes/safe/container/hooks/useFetchTokens.tsx
#	src/routes/safe/container/hooks/useLoadSafe.tsx
#	src/routes/safe/store/reducer/types/safe.d.ts
#	src/routes/safe/store/reducer/types/safe.ts

* Fix offchain signing

* fix crash when opening a mocked transaction

* Add Balancer Pool and Exchange Apps.

* Feedback, absolute imports

* Types

* Refactor all transactions, adds totalTransactionsAmount on redux

* Absolute path

Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
2020-08-14 12:15:09 -03:00
Mikhail Mikheev 7a4773511c
Safe apps: Extract Iframe messenger to a hook (#1219)
* add useLegalConsent hook in apps

* useAppList hook wip

* fix selecting first app

* update persisting app logic

* update saveToStorage type

* fix crash on apps tab

* add appframe comp

* add handleIframeLoad func

* reuse selectedApp variable in hook

* remove initialAppSelected

* add types for apps component

* fix history types

* extract useIframeMessenger hook

* fix safe-react-components version

* useIframeMessageHandler

* update safe-apps-sdk

* Fix alignment between app list and app iframe

* send safe info on handshake

* fix naming/types for url utils

* fix types and code cleanup

* remove operations

* dep bump

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2020-08-13 13:37:34 +02:00
Mati Dastugue 883111f9b9
Merge pull request #1232 from gnosis/fix/fullValue
Result of "call" is cut off
2020-08-12 18:15:04 -03:00
Mati Dastugue 8ad1abde82 Merge branch 'fix/fullValue' of github.com:gnosis/safe-react into fix/fullValue 2020-08-12 12:08:18 -03:00
Mati Dastugue aeaf3c4ee6 Remove styles hook and change styles change 2020-08-12 12:07:45 -03:00
Mati Dastugue 2d79ac9c7b Merge branch 'development' of github.com:gnosis/safe-react into fix/fullValue 2020-08-12 11:59:01 -03:00
nicosampler c4a412ae09 Add Balancer Pool and Exchange Apps. 2020-08-12 15:04:12 +04:00
Mikhail Mikheev db103065da fix crash when opening a mocked transaction 2020-08-12 15:04:12 +04:00
Mikhail Mikheev 168dcc9f6d Fix offchain signing 2020-08-12 15:04:12 +04:00
Mikhail Mikheev 70a1c523d4 add overflow hidden to iframe container in safe apps 2020-08-12 15:04:12 +04:00
Mikhail Mikheev e7ba2b12c6 bump node in travis to 12 2020-08-12 15:04:12 +04:00
Mikhail Mikheev 29c2e500b2 v2.9.0 2020-08-12 15:04:12 +04:00
Mati Dastugue bb991ae45f
Merge branch 'development' into fix/fullValue 2020-08-11 15:03:05 -03:00
nicolas f11981357f
Merge pull request #1174 from gnosis/issue-1144
Fix: Display abbreviated addresses consistently
2020-08-11 14:58:45 -03:00
nicolas 529ed68dd6
Merge pull request #1220 from gnosis/release-2.9.0
Release: v2.9.0
2020-08-11 13:43:39 -03:00
Mati Dastugue 4666272cdd Merge with dev 2020-08-11 13:35:53 -03:00
Mikhail Mikheev 7685de5b20
Merge pull request #1231 from gnosis/issue-1197
Add Balancer Pool and Exchange Apps.
2020-08-11 19:44:51 +04:00
Daniel Sanchez 425a38b2d9
Merge branch 'development' into issue-1144 2020-08-11 17:26:10 +02:00
nicosampler c42ce0f261 Add Balancer Pool and Exchange Apps. 2020-08-11 12:09:27 -03:00
Mikhail Mikheev 41059c1e8e fix crash when opening a mocked transaction 2020-08-11 14:59:28 +04:00
Mikhail Mikheev 94de33aa5d Fix offchain signing 2020-08-11 13:12:24 +04:00
Mikhail Mikheev a84c8765c0 add overflow hidden to iframe container in safe apps 2020-08-10 14:25:53 +04:00
Mati Dastugue 77149ff7db
Merge pull request #1217 from gnosis/fix/desktop-CI
Fix - Desktop CI
2020-08-07 14:48:06 -03:00
Mikhail Mikheev afd06d4579 bump node in travis to 12 2020-08-07 20:02:06 +04:00
Mati Dastugue 6d70d5958e
Merge branch 'development' into fix/desktop-CI 2020-08-07 12:50:13 -03:00
Mikhail Mikheev 5c760aad89 Merge branch 'master' of github.com:gnosis/safe-react into release-2.9.0 2020-08-07 19:01:20 +04:00
Mikhail Mikheev 1a202e5eb5 v2.9.0 2020-08-07 18:50:07 +04:00