1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/components/app
Olusegun Akintayo 143a5c4a53
Increase friction to bypass estimated revert (#12576)
* If a transaction would revert/fail,
    1. hide the gas estimate info.
    2. Disable the confirm button.
    3. All user to enable the confirm button anyways.
    4. Do not show the default Transaction error message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Always return a value for hasSimulationError

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Use primary button of action message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove hasSimulationError from getErrorKey

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move confirm anyways logic to base component.
Change message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Disable edit if there's simulation error

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* hide confirm anyways button once clicked.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move Actionable Primary Action to flex-end

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix unit tests

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix nested ternary lint issues

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* add !confirmAnyways to conditions to show GasDetails.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* ConfirmAnyways should be read from state

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Rename tryAnywayOption

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove await tick

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint issue fix

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes after rebase

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* description should show that it's content being tested.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* If a transaction would revert/fail,
    1. hide the gas estimate info.
    2. Disable the confirm button.
    3. All user to enable the confirm button anyways.
    4. Do not show the default Transaction error message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Always return a value for hasSimulationError

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Use primary button of action message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove hasSimulationError from getErrorKey

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move confirm anyways logic to base component.
Change message

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Disable edit if there's simulation error

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* hide confirm anyways button once clicked.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move Actionable Primary Action to flex-end

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix unit tests

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Fix nested ternary lint issues

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* add !confirmAnyways to conditions to show GasDetails.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* ConfirmAnyways should be read from state

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Rename tryAnywayOption

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Remove await tick

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint issue fix

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Lint fixes after rebase

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* description should show that it's content being tested.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* Move simulation fails message inline with gas details component (#12705)

* Move simulation fails message inline with gas details component

* Remove old unit tests

Co-authored-by: Dan Miller <danjm.com@gmail.com>

* lint fix

* use an XOR operation.

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

* The changes in this file are no longer needed because we hide the edit button now

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>

Co-authored-by: Dan Miller <danjm.com@gmail.com>
2021-11-22 16:13:30 +04:00
..
account-list-item Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
account-menu Support for GridPlus Lattice1 hardware wallet (#12053) 2021-11-08 11:18:41 -03:30
advanced-gas-controls Support for Layer 2 networks with transaction fees on both layers (#12658) 2021-11-11 13:16:45 -03:30
alerts UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
app-header Remove the partially-applied dark mode styles used for beta (#12489) 2021-10-28 17:29:20 -02:30
asset-list Hiding refresh list on non-Mainnet networks (#12210) 2021-09-27 13:42:51 -04:00
asset-list-item Using design system breakpoint values across ui/ 2021-09-11 11:00:46 -07:00
cancel-button UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
collectibles-list Adding new nfts detected notice (#12721) 2021-11-18 11:30:56 -07:00
confirm-page-container Increase friction to bypass estimated revert (#12576) 2021-11-22 16:13:30 +04:00
connected-accounts-list remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
connected-accounts-permissions remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
connected-sites-list remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
connected-status-indicator remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
contact-list Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
dropdowns Don't dispatch hideTestNetMessage (#12748) 2021-11-18 14:14:03 -07:00
edit-gas-display Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
edit-gas-display-education CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
edit-gas-fee-popover Edit gas fee modal more changes (#12660) 2021-11-19 00:38:29 +05:30
edit-gas-popover Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
gas-customization Support for Layer 2 networks with transaction fees on both layers (#12658) 2021-11-11 13:16:45 -03:30
gas-timing Adding edit gas fee modal (#12624) 2021-11-18 23:24:58 +05:30
home-notification UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
import-token-link Hiding refresh list on non-Mainnet networks (#12210) 2021-09-27 13:42:51 -04:00
info-box remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
ledger-instruction-field Check if ledger was successfully able to establish transport on confirm screen mount (#12535) 2021-11-04 15:49:53 -02:30
loading-network-screen UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
menu-bar changed the order of items (#12384) 2021-10-18 12:27:59 -02:30
metamask-template-renderer UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
metamask-translation CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
modal Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
modals Fix/ux papercuts account details issue #12292 (#12399) 2021-11-09 07:28:21 -03:30
multilayer-fee-message Fix copy issues related to layer 2 fee changes (#12667) 2021-11-11 20:45:43 -03:30
multiple-notifications Fixing breakpoint fallthroughs 2021-09-11 11:13:36 -07:00
network-display Implement Network Switcher designs (#12260) 2021-10-28 23:31:05 +04:00
new-collectibles-notice Adding new nfts detected notice (#12721) 2021-11-18 11:30:56 -07:00
permission-page-container Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
permissions-connect-footer Updating dapp learn more link (#12515) 2021-10-28 12:18:48 -07:00
permissions-connect-header remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
recovery-phrase-reminder UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
selected-account Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
signature-request Reject popup confirmations on close (#12643) 2021-11-15 17:13:51 +01:00
signature-request-original Show correct base asset in Signature Request view (#12696) 2021-11-15 10:19:14 -07:00
step-progress-bar Onboarding V2 Cleanups (#12417) 2021-10-20 13:55:59 -05:00
tab-bar Update icons on the settings page (#12359) 2021-10-29 09:25:23 -02:30
token-cell Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
token-list Integrate TokensController (#11552) 2021-09-10 12:37:19 -05:00
transaction-activity-log Support for Layer 2 networks with transaction fees on both layers (#12658) 2021-11-11 13:16:45 -03:30
transaction-breakdown Support for Layer 2 networks with transaction fees on both layers (#12658) 2021-11-11 13:16:45 -03:30
transaction-detail Edit gas fee modal more changes (#12660) 2021-11-19 00:38:29 +05:30
transaction-detail-item Edit transaction screen changes for EIP-1559 V2 (#12493) 2021-11-05 22:53:15 +05:30
transaction-icon Adding method to capture one-time Sentry exceptions (#11553) 2021-07-22 16:13:40 -07:00
transaction-list UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
transaction-list-item UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
transaction-list-item-details Fix/ux papercuts transaction details issue #12295 (#12401) 2021-11-03 12:56:25 -02:30
transaction-status remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
transaction-total-banner CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
user-preferenced-currency-display Add Approval Confirmation Screen component to Storybook (#10998) 2021-05-25 08:20:09 +08:00
user-preferenced-currency-input remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
user-preferenced-token-input remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
wallet-overview Create function for hardware keyring checking (#12457) 2021-10-27 18:54:18 -05:00
whats-new-popup Ledger WebHID What's New popup (#12501) 2021-11-03 20:05:39 -02:30
app-components.scss Adding edit gas fee modal (#12624) 2021-11-18 23:24:58 +05:30
menu-droppo.js remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00