Commit Graph

3407 Commits

Author SHA1 Message Date
Daniel Sanchez ac920f0361
Fix nonce 0 check (#1941) 2021-02-23 20:06:49 +01:00
Mati Dastugue 9b2dd8141c
Merge pull request #1934 from gnosis/feature/link-help-center 2021-02-23 11:21:17 -03:00
Daniel Sanchez 3b02165449 Fix styles to match design 2021-02-22 20:12:28 +01:00
Mati Dastugue ccc6939ef4 Added link to docs for custom app modal 2021-02-22 12:09:13 -03:00
Mati Dastugue 5a0dc46614 Merge branch 'development' of github.com:gnosis/safe-react into development 2021-02-22 11:13:09 -03:00
Mati Dastugue fe8663530a Set XL to LG text size 2021-02-22 11:12:16 -03:00
Mati Dastugue 750d490e20
Merge branch 'development' into feature/link-help-center 2021-02-22 11:07:33 -03:00
Agustin Pane 38ed173a84
(Fix) - #1707 Cannot use larger numbers in contract interaction (#1863)
* Remove withStyles from TextAreaField and fix name

* Remove any type in handleSubmit from contractInteraction review

* Parses the bignumber value to string
2021-02-22 13:42:42 +01:00
Agustin Pane 5665d69145
(Fix) - #1775 Nonce of cancel transaction calculation (#1886)
* Fix how the nonce of the cancel transaction is calculated

* make use useState to handle nonce state

* fix to prevent "0" being treated as undefined

Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-02-22 11:44:20 +01:00
nicolas 8e52ec5f60
Fix notification re-appears (#1925)
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-02-22 11:09:48 +01:00
Mati Dastugue 45b24e98fd
Removed deprecated wallets (#1922)
* Remove deprecated wallets

* Bump new onboardjs version
2021-02-22 10:01:51 +01:00
Mati Dastugue e3973c8026 Added help center article link to step 2 2021-02-18 14:07:30 -03:00
Mati Dastugue 5839139b1e Merge branch 'development' of github.com:gnosis/safe-react into development 2021-02-18 13:42:01 -03:00
Daniel Sanchez 5e85a3a8f3
Merge pull request #1923 from gnosis/hotfix/v3.0.1
Merge back hotfix v3.0.1 to development
2021-02-17 17:49:03 +01:00
Daniel Sanchez b7a95d366a
Merge branch 'development' into hotfix/v3.0.1 2021-02-17 15:41:31 +01:00
Mati Dastugue 530ba102bf Merge branch 'development' of github.com:gnosis/safe-react into development 2021-02-17 11:11:53 -03:00
Daniel Sanchez a4e3c82ca2
Merge pull request #1920 from gnosis/hotfix/v3.0.1
Hotfix v3.0.1
2021-02-17 14:03:31 +01:00
Daniel Sanchez c9ad4e624c Set v3.0.1 2021-02-17 13:51:35 +01:00
Daniel Sanchez ccb223d6ed
Merge pull request #1910 from gnosis/fix/#1905-threshold-reset-when-edit-tx-parameters
Fix threshold reset when edit tx parameters
2021-02-17 13:51:11 +01:00
Daniel Sanchez 5134c7b475
Merge pull request #1909 from gnosis/release/v3.0.0
Merge back release 3.0.0 to development
2021-02-17 09:27:26 +01:00
Daniel Sanchez bda07eb33d Store threshold value when editing transaction parameters 2021-02-15 20:21:42 +01:00
Daniel Sanchez e4c122ddef
Merge pull request #1877 from gnosis/release/v2.20.0 2021-02-15 20:00:10 +01:00
Daniel Sanchez 1cb21c671f Set v3.0.0 2021-02-15 17:47:25 +01:00
Daniel Sanchez 37f3b30112
Show Multisend information even when there is no details (#1904) 2021-02-15 16:55:33 +01:00
Tobias Schubotz d115e4f532
Fix link in advanced params (#1901) 2021-02-15 15:13:43 +01:00
Daniel Sanchez aaf14e80c7
Fix use of transaction parameters for threshold change transaction (#1903) 2021-02-15 15:12:59 +01:00
Fernando 49cdd2874e
[Transaction List v2] Pending status only if user signs the tx (#1890)
* prevent setting a tx to _pending_ if user didn't signed the tx
2021-02-15 09:56:12 +01:00
Fernando 9800ce78ef
add styles for failed-transaction (#1897) 2021-02-15 09:54:28 +01:00
Daniel Sanchez 0821ff4a04 Set v2.20.0 2021-02-12 16:53:05 +01:00
Agustin Pane b6a167563b
Fix createTransaction nonce usage on removeSelectedModule (#1892) 2021-02-12 16:38:41 +01:00
Daniel Sanchez 906e90c1d0
Parse number|string|undefined for Safe App tx value (#1891) 2021-02-12 16:37:30 +01:00
fernandomg 1e0f8b9b7e fix `[warning] react-hooks/exhaustive-deps` 2021-02-11 19:18:24 -03:00
fernandomg 0e23b8f6d3 fix columns alignment 2021-02-11 19:16:23 -03:00
Fernando ded5e14257
[Transaction List v2] Prevent "Send Again" for ERC721 transfers (#1889) 2021-02-11 18:24:05 -03:00
Agustín Longoni dbf34c759a fix Advanced option style on Execute modal 2021-02-11 15:57:34 -03:00
Agustín Longoni 7a550e3ed3 fix Advanced option style on reject modal 2021-02-11 15:08:32 -03:00
Agustín Longoni 64defa776a fix tree align and paddings 2021-02-11 15:07:49 -03:00
Fernando d3538d2d83
Remove curried function from within `useCallback` hook (#1882) 2021-02-11 09:31:08 +01:00
Fernando 1994f62827
Avoid displaying `UNKNOWN` in owner's list (#1881) 2021-02-11 09:22:27 +01:00
Fernando fa2262f8b0
[Transaction List v2] Action buttons tooltip (#1884)
* fix tooltip for action buttons

* add margin  botton to the tooltip

Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
2021-02-11 09:21:37 +01:00
Fernando e9bc89488f
Group transactions by locale TZ (#1883) 2021-02-11 09:17:56 +01:00
Fernando 43287dd018
[Transaction List v2] - "Send to" action missing (#1879)
* show missing `Send to`s sentences

* remove "Send To", from 'spending limit' transactions details
2021-02-11 09:13:57 +01:00
Fernando 47762701e1
Fix dark block for tx details with empty 2nd row (#1880) 2021-02-10 20:47:02 +01:00
nicolas 4b089f3490
Add relative time in queue lists (#1878)
* Add relative time in queue lists

* Add all date-fns functions to src/utils/date

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-02-10 20:39:18 +01:00
fernandomg 9dd26bbac9 triggering hooks 2021-02-10 16:18:35 -03:00
Mati Dastugue 0bac3a5aab Merge branch 'development' of github.com:gnosis/safe-react into development 2021-02-10 15:56:55 -03:00
Fernando 47d20aa645
Transaction List v2 (#1781)
* Add types for redux actions (#1737)

* solve errors after rebase

- added `isStoredTransaction` to differentiate tx provided to `isCancelTransaction`

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* Add types + loadGateway transactions cosumer

* add client-gateway endpoints to networks configs

* add client-gateway getters

* WIP: consume gateway-client endpoint

- added the history transactions to the store
- updated types to `/queued` and `/history` endpoints

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* add queued transactions to the store

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* add queued transactions selectors

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* WIP: display history transactions

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* WIP: arrange lists queue/history

* prevent loading data from txs-service

* cherry-pick TokenTransferAmount component

* extract queue transactions logic into a hook `useQueueTransactions`

* Add TxType and TokenTransferAmount components

Co-authored-by: fernandomg <fernando.greco@altoros.com>

* wip: history transactions

* wip: use grid to display list content

* wip: use Accordion

* wip: tx history

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: tx details

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: TxInfo

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: TxSummary

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: TxSettingsInfo

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* Wip: style owners list

Co-authored-by: fernandomg <fernando.greco@altoros.com>

* wip: Owners List

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: TxInfoCreation

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: stop using backOff for client-gateway requests

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* refactor

reorganize files and components

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* refactor

- Accordion implementation
- extract summaryContent to a reusable component

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* Fix prettier issue in src/config/index

* add methods names and descriptions to collapsed row

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* wip: split components to render tx-data depending on the tx type

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* add multiSend tx details

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* refactor TxData

- separate into specified components `HexEncodedData`, `MethodDetails` & `MultiSendDetails`

* remove unused imported type

* wip: infinite-scroll

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* refactor `ADD_HISTORY_TRANSACTIONS` reducer

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* implement infinite scroll pagination

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* avoid defining `page_url` param

* refactor InfiniteScroll implementation

- created a wrapper component to simplify interface
- rearranged code

* add `missingSigners` key to `ExecutionInfo` type

* add `lodash.get`

* update `useTransactionStatus` hook to support queued transactions

* use `lodash.get` to access queued objects

* add votes info to TxCollapsed

* add TxQueueCollapsed

- also update the usage of `useTransactionStatus` hook

* split `TxRow` into `TxHistoryRow` and `TxQueueRow`

* use `txLocation` instead of `title` for `QueueTxList` component

* make `TxDetails` generic

* fix queue list elements arrangement

* export `useTransactionDetails` return type

[skip ci]

* wip: group txs by nonce

[skip ci]

* request tx details on demand

[skip ci]

* display cancelling message in queued transactions only

[skip ci]

* wip: implement tree view for grouped transactions

* styled components

- reorganized
- added comments where necessary
- refactored

* refactor QueueTxList

[skip ci]

* update styled-component

[skip ci]

* refactor

- Accordion implementation
- extract summaryContent to a reusable component

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* update safe-react-components

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* update styled-component

[skip ci]

* fix most-recent list of history transactions update

* make queued transactions list scrollable

* make scrollableTarget a const

* styles fixes

- queued grouped transactions styles
- add styles to scrollbar in scrollable areas

* add safe apps info to tx lists

* wip: add action buttons to tx details

* fix column distribution for transactions rows

* display action count for multiSend transactions

* TxExpandedActions

* add action buttons

- also did a slight refactor around grouped vs. not-grouped transactions

* fix txDetails selector

* adapt button to current SRC specs

* wip: action buttons "action"

- TODO: handle the store update -> screen refresh

* fix execution/confirmation conditions

- fixed modals conditions for execution when last confirmation is able to execute

* fix tree view (no <p> as descendant of <p>)

* wip: handle transactions actions through a context provider

* provide txLocation through context

* fix `react-hooks/exhaustive-deps` warnings

* Sort history list

* Add objects utils

* add `lodash.merge` as a dependency

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* update `ADD_QUEUED_TRANSACTIONS` reducer

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* implement pagination for `queued` transactions

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* prevent rendering action modal if `txDetails` is not available

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* pending status for tx execution

* small style-based behavior fixes

* allow to identify txs to be replaced

* redirect to `gatewayTransaction`

* adjust behavior for grouped vs individual transactions

* add help links

* display execute action only when threshold is reached

* make `setActiveHover` required

* prevent `<p />` as child of `<p />`

* fix cards background colors

* revert staging config

* fix linting errors

* prevent using `no-owner` class in history list

* add `PENDING` status to confirmation transactions

This will mark as _pending_ a transaction by its id, the rest of the txs that share same nonce will remain untouched

* unify action buttons status

- created `useActionButtonsHandler` hook
- extracted `CollapsedActions` into `TxCollapsedActions` component

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* fix wording

* fix pending status

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* fix close Action modal

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* extract `addressInList` as a util function

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* fix action buttons' "disabled" status condition

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* provide proper `to` and `value` for `processTransaction` based on Transfer Type (ERC20, ERC721 or ETHER)

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* update queued transactions pointers if we reached the last page

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* use `as string` for `next` pointer

- also fixed typo

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* add JSDocs

* explicitly discard unused client-gateway headers

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* add loading status to the queue transactions list

* fix tx actions after rebase of v2.19.1

* fix issue with safe data update

* fix types issues

* skip `isCancelTransaction` tests

* fix loading status for queue transactions

* Update notifications for tx-list v2 (#1839)

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* use `sameString` to verify `method` value

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* TxDetails refactor cancelTxDetails condition

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* remove unused TxType component

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* remove unused `isReadyToExecute` function

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* Fix eslint

* Update txs details after `PENDING` status update

* remove log

* Fix send transaction because of removed notification message

* Cleanup pending unwanted notifications

* wip: ellipsis actions

* wip: ellipsis actions - fix tokenAmount

* Refactor to txInfoDetails

* refactor `TxInfoDetails`

* remove old `utils.tsx` file

* support SpendingLimit transactions

* fix `isSpendingLimitMethod`

* Fix styles for tx list v2 (#1859)

Co-authored-by: fernandomg <fernando.greco@gmail.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>

* wip: performance enhancement

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* wip: extract data calculation to a hook

* refactor huge ternaries

* fix columns styles for small screens

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* add extra information for `Cancel` transaction identification

* undo custom selector

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>

* undo custom selector

* Pass `action` by prop to TxDetails

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>

* Unify `processTransaction` / `createTransaction` actions

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* Disable send again when the user is offline

* set pending status for the executed tx only (not the group by nonce)

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* Use gatewayTransactions as default transaction list

* fix styles for TxDetails row

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>

* Remove old transactions list legacy code
Move gatewayTransactions within transactions folder

* Remove allTransactions legacy code

* Types

* Fix redirect after createTransaction

* fix performance issue for `ApproveTxModal`

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>

* fix asset icon size

* fix status wording

* add time tooltip

* add _breadcrumb_

* properly identify non existing nonce

* fix open cookie banner types after merge

* add isCancellation flag support

* fix expanded tx styles

Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com>
Co-authored-by: Mati Dastugue <mdastugu@amazon.com>
Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com>
Co-authored-by: Agustin Pane <agustin.pane@gmail.com>
Co-authored-by: nicolas <nicosampler@users.noreply.github.com>
Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com>
2021-02-10 17:43:23 +01:00
Daniel Sanchez 8c50cda0ad
Update balancer pool safe app (#1869) 2021-02-10 15:56:32 +01:00
Germán Martínez aba414ab79
Adapt cookie banner for GDPR (#1814)
* Update cookie banner action and reducer

* Add cookie banner new assets

* Update cookie banner

* Update cookie banner migration

* Disable cookie banner and intercom in desktop app

* Use google analytics hook in Open Safe component

Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm>
2021-02-10 11:51:20 +01:00
Agustin Pane 7caec9c29c
(Fix) - Safe tx gas capped (#1860)
* Enables validation of safeTxGas < gasLimit and enable change of the gasLimit

* - Let the user use a custom safeTxGas for checking if the transaction will fail

* Updates the gas success estimation when the user changes the safeTxGas manually on:
- Approve safeApp transaction

* Send manual parameters (safeTxGas and safeNonce) to safe apps

* Add missing variable to estimateGasForTransactionCreation

* Improve network naming usage for validation
2021-02-10 11:04:32 +01:00