Dan J Miller
c3623ab729
Remove change from cb77f94
that breaks ens inputs in send flow ( #15069 )
2022-06-28 17:06:55 -02:30
Dan J Miller
cb77f94bc5
Ensure that addresses are properly hex-prefixed in the generate ERC token transfer functions ( #15064 )
...
* Ensure that addresses are properly hex-prefixed in the generate ERC token transfer functions
* Ensure hex-prefixed addresses in send input
* Update unit tests
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
2022-06-28 14:21:09 -02:30
Alex Donesky
5290402181
Fix tokenIds larger than MAX_SAFE_INTEGER converted to scientific notation and failing to import ( #15016 )
...
* fix tokenIds larger than MAX_SAFE_INTEGER breaking
* add tests
2022-06-27 19:31:25 -05:00
Daniel
5fa88bebce
Show how much a cancellation of a smart transaction will cost ( #15011 )
2022-06-22 18:58:51 +02:00
George Marshall
051254dffd
Fixing tooltip theming by enforcing default theme ( #14992 )
...
* Fixing tooltip theming by enforcing background color
* Removing wide prop
2022-06-21 09:50:44 -07:00
daniba
085126d275
Move search icon and add to storybook ( #14940 )
...
* move search icon || update imports || add to story
* Optimized svg path, updated icon api and updating colors
* update other icons
* update snapshot
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
2022-06-21 10:18:35 -05:00
ricky
3d74d06f93
Add missing subtitles for secret recovery phrase ( #14943 )
...
* add missing subtitles
* Update subtitles map
* update subtitle map in onboarding v2 flow
Co-authored-by: Alex <adonesky@gmail.com>
2022-06-17 14:55:04 -04:00
George Marshall
fdf3e9d2d7
Fix/14856 network settings page ( #14857 )
...
* Removing other features code
* Improving acccessibility of check icon
* Fixing add network button footer in popover view
* Fixing unit tests
2022-06-15 13:16:53 -07:00
Daniel
ebf967562b
Remove experimental gas editing for Swaps ( #14942 )
2022-06-15 21:08:13 +02:00
Jordon
f5c6d0054f
Convert knobs and actions to controls/args for MainQuoteSummary ( #14758 )
...
Co-authored-by: George Marshall <georgewrmarshall@gmail.com>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-06-15 10:43:26 -05:00
Ariella Vu
ede801e143
MetaMetrics: fix onCancel trackEvent ( #14935 )
...
should mirror first-time-flow/metametrics-opt-in logic
2022-06-14 11:00:11 -05:00
VSaric
136218893b
Fix contact address pet name ( #14613 )
...
* The contact pet name isn't replaced by the recipients address
* Create getEnsResolutionByAddress selector and use it in the codebase
* Modified the getRecipient selector such that it returns an ens resolution as the nickname if a nickname isn't present but a ens resolution is.
* Update ui/ducks/send/send.js
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
* Checked if ens resolution is present in the getRecipient selector
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
2022-06-13 11:18:33 -05:00
Alex Donesky
b170211700
Fix to infinite loading on approve screen ( #14756 )
2022-06-11 12:55:35 -05:00
ryanml
496d9d81c3
Fix Enhanced Gas Fee toggle setting metrics event ( #14874 )
2022-06-10 16:05:25 -07:00
Zachary Belford
d882835cae
Added PR feedback changes
2022-06-08 14:24:50 -07:00
Zachary Belford
8b09f84502
Linting fixups
2022-06-08 14:24:50 -07:00
Zachary Belford
93ee67eb01
Update pr based on review feedback
2022-06-08 14:24:50 -07:00
Zachary Belford
0f7bb16b9b
Update ui/pages/settings/settings.component.js
...
Remove the extra route
Co-authored-by: Ariella Vu <20778143+digiwand@users.noreply.github.com>
2022-06-08 14:24:50 -07:00
Zachary Belford
5e049aabff
Remove junk from previous ticket
2022-06-08 14:24:49 -07:00
Zachary Belford
c2d5bd01c4
Changed networks tab to explicitly pass in false and fix implicit type casting
2022-06-08 14:24:36 -07:00
Zachary Belford
b76943ea18
Changed custom nonce min to a number from a string
2022-06-08 14:24:36 -07:00
Zachary Belford
29d87343fa
Changed update nickname popover to remove proptype errors
2022-06-08 14:24:35 -07:00
Zachary Belford
3665c3718d
Changed seedPhraseBackedUp to always a boolean
2022-06-08 14:24:35 -07:00
Zachary Belford
5c93ca44da
Changed asset option prop type requirements
2022-06-08 14:24:34 -07:00
Daniel
b0557daa05
Handle an RPC provider delay in Swaps ( #14821 )
...
* Return an estimated amount for a completed swap if an RPC provider has a delay
* Create a recursive function for updating post tx balance
* Add a few tests for the "getSwapsTokensReceivedFromTxMeta" fn
* Trigger Build
2022-06-08 16:32:04 +02:00
Daniel
9705531671
Reduce the default slippage from 3% to 2% ( #14863 )
2022-06-07 18:28:59 +02:00
Daniel
bd5d47993d
Make content changes for the STX status page, remove old content ( #14805 )
2022-06-07 15:42:25 +02:00
Thomas Huang
18e4af7690
Unit test proptype ( #14868 )
...
* Add missing props to advanced tab component test.
* Add icon size prop to site icon test
* Add hardwareWalletRequiresConnection prop to signature request test as a boolean
* Add setShowDetectedTokens prop to detect token test
* Set Setting description prop to be either object or string.
2022-06-06 19:30:07 -07:00
ryanml
250b3d5499
Fixing add recipient flow issue with contact list/recent recipients ( #14771 )
2022-06-03 15:41:05 -07:00
Frederik Bolding
239f5f7fa6
Include snap version in pill ( #14803 )
...
* Include snap version in pill
* snaps authorship styling
* styling
* Fix linting
* Fix linting
Co-authored-by: eriknson <eriks@mail.se>
2022-06-02 11:38:39 +02:00
Guillaume Roux
b599035a12
Snap notifications integration ( #14605 )
...
* begin controller implentation
* add NotificationController
* create selectors and actions
* update actions tu use forceUpdateMetamaskState
* Basic notification UI
* fix typo and remove console.log
* lint
* more css
* add notifications scroll
* add translations and fix some css
* Fix rebase and edit colors
* add flask tags
* add flask tag to routes component
* add missing flask tags
* add tests
* fix tests
* store notification expiration delay in constant
* address requested changes
* rename to unreadNotificationsCount
* add missing flask tag
2022-06-01 19:09:13 +02:00
Daniel
6dbb2c4ded
Migrate the "estimateGas" API call to "getFees" for STX ( #14767 )
2022-05-26 19:56:28 +02:00
Frederik Bolding
5b8a69c721
Remove site origin on snap install ( #14752 )
...
* Remove site origin on snap install
* Fix linting + storybook
* Update local snap icon
* Fix storybook build
2022-05-25 18:19:02 +02:00
George Marshall
8fcbebc546
Update design tokens library from 1.5 to 1.6 WIP ( #14732 )
...
* Updating account menu icon color
* Updating design-tokens and making appropriate updates to extension styles
* Adding more deprecated tags to colors
* Adding spinner and removing todo comment
* Remove comment
* Updates
* Updating snapshots
* More color and ui updates
* reverting transition change
2022-05-25 08:35:36 -07:00
Daniel
f6576801d4
Fix an edge case with missing top assets in Swaps ( #14688 )
...
* If there is no array of top assets in a response, use an empty array
* Set a default empty array for 2 functions, remove an unnecessary condition
* Redirect a user from Swaps to the homepage if they switch to a chain that is not supported in Swaps
* Fix errors in the UI Console when it's not a swaps chain
2022-05-24 18:30:46 +02:00
Alex Donesky
634cf70a71
Enhance reusable SiteOrigin component ( #14720 )
...
* extend and reuse SiteOrigin component
2022-05-20 09:35:18 -05:00
Thomas Huang
11831c6ae5
Add hideEstimatedGasFee prop to sort-list and select-quote-popover tests ( #14725 )
2022-05-19 10:43:31 -07:00
VSaric
a5e07b0f18
Chain ID field use the same color pattern as the currency symbol field warning message below ( #14644 )
2022-05-19 10:52:17 -05:00
Ariella Vu
9d058007cc
NetworksTab: make footer buttons nowrap ( #14733 )
2022-05-17 19:44:32 -05:00
dragana8
d01a2ad7e5
Overall CSS #13441 ( #13902 )
...
* styling updates
Co-authored-by: Alex Donesky <adonesky@gmail.com>
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-05-16 13:38:04 -05:00
Daniel
d305dcba9d
Change styles for the high price impact notification in Swaps ( #14697 )
2022-05-12 19:57:05 +02:00
Niranjana Binoy
6c757ab5e0
Event tracking for Token Detection V2 ( #14441 )
2022-05-11 16:27:58 -04:00
Erik Marks
4b2cd0ef7a
Fix Snaps view search ( #14693 )
...
Closes #14687
Snap IDs were not properly encoded (and decoded) as URI components in the Snaps view search implementation. This ensures that they are.
2022-05-11 13:14:53 -07:00
Daniel
9a153d2388
Remove gas editing in Swaps ( #14673 )
...
* Remove gas editing in Swaps
* Remove "extraApprovalGas"
2022-05-11 20:30:03 +02:00
PeterYinusa
f47d02b72a
Auto lock e2e ( #14624 )
...
* add auto lock e2e test
* fix console errors
2022-05-10 17:57:11 +01:00
Niranjana Binoy
0a10b425ea
Add New Tokens Found page ( #14366 )
2022-05-09 13:47:06 -04:00
Daniel
2bd7127433
Swaps / STX improvements ( #14622 )
2022-05-09 18:48:14 +02:00
Frederik Bolding
9e401b14bf
Simplify removeSnap functionality after snaps-skunkworks update ( #14646 )
2022-05-09 18:19:34 +02:00
Brad Decker
564ad2f81b
Track send flow history on txMeta ( #14510 )
2022-05-04 11:54:46 -05:00
David Walsh
8a71f0f008
Add search information for Theme dropdown ( #14476 )
2022-05-04 09:57:01 -05:00
Daniel
9daab6aa59
Disable STX if a regular tx is in progress ( #14554 )
...
* Disable STX if a regular tx is in progress
* disableStxIfRegularTxInProgress : early return
* Fix UTs
* Trigger Build
2022-05-03 17:55:41 +02:00
Alex Donesky
12a088e638
Fix browser.tab.get call ( #14550 )
...
* update to expect promise from browser api polyfill rather than pass callback
2022-04-29 09:21:06 -05:00
George Marshall
ad1abaaef4
Updating text/muted to text/alternative for select text on home screen ( #14553 )
2022-04-28 06:03:12 -07:00
Guillaume Roux
6309d53650
Dark Mode : Add OS option in theme selection dropdown ( #14379 )
2022-04-28 14:36:28 +02:00
Frederik Bolding
27ad7279cd
Rename NotificationController to AnnouncementController ( #14389 )
...
* Rename NotificationController to AnnouncementController
* Fix test
* Add test for missing NotificationController state
* Bump controllers
* Move test to correct file
* Rename config key
* Add migration 71 to list of migrations
* Fix selector after migration
2022-04-27 10:36:32 +02:00
Guillaume Roux
7a9662b88e
Add token standard to custom token details ( #14506 )
...
* use getTokenStandardAndDetails to get token standard
* remove console.log and fix test
* remove console.log
2022-04-26 12:08:14 -07:00
ryanml
0c49bc14d4
Fixing 'Learn more' casing on import token screen ( #14529 )
2022-04-26 10:25:07 -07:00
Alex Donesky
cf2c6a3164
show token approval details on confirm approve screen by default ( #14523 )
2022-04-26 10:21:52 -05:00
amerkadicE
8fef9fd8df
Update display of switching current network ( #13450 )
...
Co-authored-by: Amer Kadic <amerkadic@Amers-MacBook-Pro.local>
Co-authored-by: George Marshall <george.marshall@consensys.net>
2022-04-25 13:28:52 -05:00
Ariella Vu
78f4684b2a
MetaMetrics: Add EVENT.CATEGORIES const ( #14474 )
...
* MetaMetrics: add EVENT.CATEGORIES const
* MetaMetrics: add EVENT.CATEGORIES.INPAGE_PROVIDER
* MetaMetrics: add EVENT.CATEGORIES.AUTH
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 1
* MetaMetrics: add EVENT.CATEGORIES.ACCOUNTS pt. 2
confirm we want to use 'Accounts' instead of 'Account'
* MetaMetrics: add EVENT.CATEGORIES.MESSAGES
* MetaMetrics: add EVENT.CATEGORIES.RETENTION const
* MetaMetrics: add EVENT.CATEGORIES.SETTINGS
* MetaMask: add missing EVENT.CATEGORIES.SNAPS
* MetaMetrics: add EVENT.CATEGORIES.WALLET const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING const
* MetaMetrics: add EVENT.CATEGORIES.ONBOARDING
& EVENT.CATEGORIES.TRANSACTIONS consts
* MetaMetrics: use EVENT.CATEGORIES
* ducks/swaps: revert slice name
* MetaMetrics: add missing EVENT.CATEGORIES.NETWORK
2022-04-22 13:09:10 -03:00
Alex Donesky
fbeae57247
Add testnet name as prefix for native currency of preloaded testnets ( #14454 )
...
* add testnet name as prefix for native currency of preloaded testnets
2022-04-21 14:09:41 -05:00
Olusegun Akintayo
095cc94ed0
Add new token added event (duplicating the existing event structure) when collectible is manually added ( #14279 )
...
* Add new token added event (duplicating the existing event structure) when auto detection occurs for NFTs
Set source property to detected on the new token added event,
2022-04-21 13:29:39 -05:00
Dan J Miller
3ecc04e42d
Fix the alerts toggles in settings ( #14498 )
2022-04-21 09:48:03 -07:00
Hassan Malik
308c6e4fe3
Add snaps view search ( #14419 )
...
* add snaps view search
* add snaps view search
* fix to add in settings constants
* removed spread
* remove unused import
* add fencing
* more fencing
* ternary refactor, updated settings tests
* refactor
2022-04-19 11:08:09 -04:00
VSaric
e702da2194
Modify import SRP page ( #14425 )
...
* Modify Import SRP page
2022-04-18 15:12:16 -05:00
David Walsh
bcdd52f55a
Dark Mode: Implement Metrics ( #14455 )
2022-04-18 11:31:44 -05:00
Daniel
eed6ae2b8c
Swaps: Sort "token_from" dropdown tokens by their fiat value first and "token_to" by top tokens ( #14436 )
2022-04-15 14:57:58 +02:00
Dan J Miller
e768119dd0
Remove duplicate gas simulation error messages ( #14409 )
...
* Remove duplicate gas simulation error messages
* Fixing locales
* Fixing unit tests
* Fixing e2e
Co-authored-by: ryanml <ryanlanese@gmail.com>
2022-04-13 08:00:10 -07:00
Frederik Bolding
637a960d3c
Use correct casing for "learn more" ( #14412 )
2022-04-08 18:21:41 +02:00
Niranjana Binoy
89ce0cee85
Updating info ActionableMessage type to default ( #14385 )
2022-04-07 13:11:42 -04:00
George Marshall
9ce966ba1d
Storybook housekeeping 🧹 ( #14331 )
...
* Removing argTypes that are related to static props and don't have anything to do with the component. Also some general house keeping
* updates
2022-04-07 08:14:22 -07:00
Hassan Malik
e0e466490e
Settings search refactor ( #14350 )
...
* removed unnecessary eslint disable and removed key prop from SettingsSearchList
* removed unnecessary function, refactored settings pages to use only handleSettingsRefs
* simplified utils, removed unnecessary test
* updated usage of util functions
* fixed type error, allow for ampersand in search input
* removed unnecessary var
* fixed test
* fixes per comments
* fixed var name
* fixed property name
* changed some properties in SETTINGS_CONSTANTS to accept t param
* redid util functions
* changed from multiline comment to single line
* replace empty descriptions
* updated util logic
* fix undefined issue
2022-04-06 16:27:08 -04:00
Niranjana Binoy
07231e42b2
Update token detection logic to only control auto-detection ( #14251 )
2022-04-06 13:59:16 -04:00
Thomas Huang
2cd1472e3a
Fix imported component name and change size proptype type to string ( #14237 )
...
* Fix imported component name and change size proptype type to string
* Change IconTokenSearch size prop back to number and change usage to number
2022-04-05 10:48:03 -07:00
Frederik Bolding
0556feb142
Add snap version to details page ( #14110 )
...
* Start to add snap version to details page
* Show install date
* Clean up
* Address PR comments
2022-04-04 19:40:24 +02:00
ryanml
7e7b97d7c9
Improving identicon settings accessibility ( #13760 )
...
* Improving identicon settings accessibility
* Make settings keyboard accessible
2022-04-04 10:36:56 -07:00
Daniel
fc17fbe1ad
Swaps timer improvements, optional refresh rates and fix for a notification UI ( #14300 )
...
* Set up correct timer value for fetching new quotes
* Show red timer in Swaps if quotes fetching will happen in less than 10s (previously it was 30s)
* Fix a UI issue with the notification close button
* Make stx refresh rates optional, since not every network supports them
2022-04-04 15:14:50 +02:00
George Marshall
dfd3e233e8
color fix for hover on swaps quote ( #14334 )
2022-04-02 06:40:33 -07:00
filipsekulic
8cb1f4af2e
Renamed metametrics.new.js to metametrics.js ( #14327 )
2022-04-01 14:11:12 -05:00
George Marshall
e62678464c
Fix/14302 about fox logo ( #14308 )
2022-04-01 07:00:33 -07:00
George Marshall
8edeb9a281
Fix/14230 dark mode fixes ( #14305 )
...
* Dark mode fixes
* removing unused icon svg
2022-03-31 13:11:06 -07:00
Pieter Tolsma
cb1890d928
Convert knobs and actions to controls/args for CountdownTimer ( #14222 )
...
Co-authored-by: Pieter Tolsma <pietertolsma@Pieters-MacBook-Air.local>
2022-03-31 13:31:31 -05:00
filipsekulic
59131f5da5
Deleted the old metametrics.js ( #14292 )
2022-03-31 12:10:19 -05:00
VSaric
8184b150cb
Redesign screen/page "List of networks" ( #13560 )
...
Co-authored-by: George Marshall <george.marshall@consensys.net>
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
2022-03-31 09:41:39 -05:00
Niranjana Binoy
8174aaa6b5
Adjusting the padding in Alert / error state ( #13819 )
2022-03-31 10:02:47 -04:00
George Marshall
4bb2582200
Swaps select quote highlight fix ( #14270 )
2022-03-31 08:58:09 -05:00
Niranjana Binoy
9f7c4eb658
Enable Token search functionality on supported networks ( #14034 )
2022-03-31 09:48:05 -04:00
Olusegun Akintayo
3c2e4e9c9e
Add asset_type to 'Tokens Added' event. ( #14252 )
...
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-03-31 11:43:26 +04:00
David Walsh
00025afe4c
Dark Mode: Remove unwanted background for price quote ( #14278 )
2022-03-30 15:42:18 -07:00
David Walsh
9d7f4d2005
Ensure proper color for swaps edit link ( #14273 )
2022-03-30 14:54:25 -07:00
Olusegun Akintayo
4ac0f82125
Add token standard to Token Added event. ( #14253 )
...
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
2022-03-31 00:25:49 +04:00
ryanml
085c9753de
Ensure Metafox follows cursor on Fetching quotes screen ( #14261 )
2022-03-30 10:54:01 -07:00
BoxedFruits
950de390b3
GasModalPageContainer story: convert knobs and actions to controls / args ( #13516 )
2022-03-30 08:46:37 -05:00
Daniel
69d7c51c56
Show STX switch for wrapping / unwrapping ( #14225 )
2022-03-30 10:02:55 +02:00
jesseharte
4f1cee4b87
Change over ImportToken stories to use controls instead of knobs, update props in stories ( #14246 )
2022-03-29 15:20:19 -07:00
Jurriaan Den Toonder
1521e63913
Change over FeeCard stories to use controls instead of knobs, update props in stories ( #13766 )
...
This PR changes over the deprecated knobs and actions in `fee-card.stories.js` to controls.
I attempted to create a `README.mdx`, but unfortunately the `<ArgsTable of={FeeCard} />` refused to render out any of the documentation comments I added to the `FeeCard.propTypes`, thus that has not been included (and no documentation has been added to the propTypes of FeeCard).
_Please note:_ currently nested arg types are not possible in StoryBook, but discussions are open: https://github.com/storybookjs/storybook/issues/11486 . This means that the StoryBook shows `primaryFee`, `primaryMaxFee`, `secondaryFee` and `secondaryMaxFee`, but these are mapped to the 2 `primaryFee` and `secondaryFee` props of the component. This is visible if the developer clicks on the `Show code` button at the docs page in StoryBook.
Signed-off-by: Jurriaan Den Toonder <1493561+Fastjur@users.noreply.github.com>
2022-03-29 16:13:00 -06:00
Dan J Miller
09512c7148
Improvements for multi-layer fee UX ( #13547 )
...
* Show fiat on confirm screen on multilayer-fee network
* Disable gas editing on optimism
* Fix send max mode on optimism
* Represent layer 2 gas fee as a single value
* Hide gas fee edit UI on optimism
* Improvement multilayer-fee-message styling
* Lint fix
* Fix locales
* Remove unnecessary code change
Co-authored-by: David Walsh <davidwalsh83@gmail.com>
2022-03-29 16:51:45 -02:30
Daniel
7cb22bd883
metaMetricsEvent -> trackEvent ( #14249 )
2022-03-29 19:19:40 +02:00
filipsekulic
ee89eddb82
Removed metrics event ( #14042 )
2022-03-29 08:46:24 -05:00
Guillaume Roux
a3ab204d11
Dark Mode: Fix some colors ( #14228 )
...
* fix some colors
* fix test and address requested changes
* address requested changes
2022-03-28 10:23:27 -07:00