1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/components/ui
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-mismatch-warning remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
actionable-message Increase friction to bypass estimated revert (#12576) 2021-11-22 16:13:30 +04:00
alert Using values from shared/constants/time to represent timing values (#11241) 2021-06-10 12:27:03 -07:00
alert-circle-icon CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
box Adding 'gap' prop to Box (#12611) 2021-11-08 09:26:03 -07:00
breadcrumbs remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
button Docs/12367 Adding storybook essentials addons (#12393) 2021-10-29 07:22:07 -10:00
button-group CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
callout CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
card Updating Card ui component and adding story (#12666) 2021-11-15 13:13:54 -05:00
check-box Onboarding V2 Secure Your Wallet view (#12208) 2021-10-06 13:52:25 -05:00
chip Updating Chip component (#12671) 2021-11-15 13:13:35 -05:00
circle-icon CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
color-indicator CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
confusable remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
currency-display Add Max Fee Per Gas to transaction breakdown (#12042) 2021-09-08 12:06:16 -06:00
currency-input Changed ETH decimal values to have 8 places for sending (#12437) 2021-11-05 07:52:03 -07:00
definition-list CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
dialog remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
dropdown CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
editable-label remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
error-message CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
export-text-container remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
form-field Onboarding v2 e2e test (#12628) 2021-11-10 17:27:10 +00:00
hex-to-decimal remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
i18n-value Edit transaction screen changes for EIP-1559 V2 (#12493) 2021-11-05 22:53:15 +05:30
icon CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
icon-border remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
icon-button remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
icon-with-fallback remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
icon-with-label Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
identicon CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
info-tooltip CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
jazzicon Integrating the TokenListController to Extension (#11398) 2021-09-09 16:56:27 -04:00
list-item Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
loading-heartbeat Improve flashing behaviour for loading gas estimates (on confirm screen) (#11852) 2021-08-16 20:18:24 -02:30
loading-indicator remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
loading-screen remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
lock-icon remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
mascot CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
menu CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
metafox-logo Remove the partially-applied dark mode styles used for beta (#12489) 2021-10-28 17:29:20 -02:30
numeric-input Update NumericInput to remove PropTypes warning (#12446) 2021-10-25 10:19:50 -06:00
page-container Use ternary conditionals instead of && (#12406) 2021-10-21 11:11:31 -05:00
popover Fix/ux papercuts transaction details issue #12295 (#12401) 2021-11-03 12:56:25 -02:30
pulse-loader CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
qr-code Fix/ux papercuts account details issue #12292 (#12399) 2021-11-09 07:28:21 -03:30
radio-group Use gas recommendation constants throughout app (#12461) 2021-11-05 19:59:23 -05:00
readonly-input remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
search-icon remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
sender-to-recipient Fix/ux papercuts transaction details issue #12295 (#12401) 2021-11-03 12:56:25 -02:30
site-icon remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
slider Adding slider component (#12219) 2021-09-28 11:20:21 +05:30
snackbar remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
spinner remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
tabs Adding collectibles feature flag, default NFT tab (#12463) 2021-10-27 09:55:14 -07:00
text-field CI - add metamaskbot comment "highlights" section for showing relevant storybook changes (#12095) 2021-09-15 08:55:48 -10:00
toggle-button Make ToggleButton keyboard accessible (#12727) 2021-11-17 08:38:20 -07:00
token-balance remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
token-currency-display remove the ui/app and ui/lib folders (#10911) 2021-04-28 14:53:59 -05:00
token-input We shouldn't be changing decimal places as user type, we should do that on blur. (#12631) 2021-11-11 22:16:28 +04:00
tooltip Don't show "Unavailable on this network" if Swaps button is enabled (#12513) 2021-10-28 19:36:04 +02:00
truncated-definition-list UX Papercuts Epic: Create a consistent representation of the Buttons (#12096) 2021-10-05 15:20:42 -04:00
typography Edit transaction screen changes for EIP-1559 V2 (#12493) 2021-11-05 22:53:15 +05:30
unit-input We shouldn't be changing decimal places as user type, we should do that on blur. (#12631) 2021-11-11 22:16:28 +04:00
url-icon Adding UrlIcon component to Storybook (#12285) 2021-10-08 11:10:01 -07:00
ui-components.scss Updating Card ui component and adding story (#12666) 2021-11-15 13:13:54 -05:00