* Validating or restricting the number of digits after the decimal point that the user can enter and styles for Max button and description with error message
* Use better solution for validation the number of digits on token allowance flow
* fix: Display primaryType in signTyped instead of 'Message' string
* fix: added #17077 to changelog
* fix: remove unused signatureRequest1 message to fix test-lint failure
* Update CHANGELOG.md
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
* test: add assertion for the primaryType to signature-request component test
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
* avatar account housekeeping
* avatar number to the diametere
* fixed lint errors
* converting blockie to number
* updated README
* updated constants for avatar account
* Align custom spending cap Max button in approve screen for multiple languages
* Modify some css styles and adding Box props
* Using ButtonLink component instead of <button/>
Co-authored-by: Brad Decker <bhdecker84@gmail.com>
* dealt with most of the problems in the Create Account dialog
* Fixed "newAccountNumberName" localizations
* In another language, don't allow accounts named, for instance, Cuenta 3
* Editing an account name later now follows the same rules
* Fixing lint errors
* Responding to the review by @adonesky1
* Worked with @montelaidev to alter the RegExp, in order to catch spaces before and after the account name
* Fixed line breaks for eslint
* updated classnames
* updated readme and tests for avatar with badge
* updated constants in root
* replacing BADGE_POSITIONS with AVATAR_WITH_BADGE_BADGE_POSITIONS
* ConfirmToken: fix token balance onboarding v1
this UI/UX should be deprecated following PR#16740, maybe v10.25
* TokenApproval: use precision for token balance
* EditApproval: calc utilizing existing util
* ui: add common constant PASSWORD_MIN_LENGTH=8
* ui: simplify password validation logic
* ui: getPasswordStrengthLabel using t from context
Co-authored-by: Alex Donesky <adonesky@gmail.com>
* added housekeeping for avatar network
* fixed alt
* updated story in Readme
* fixed indentation and added network src
* updated SIZES for avatar network
* updated snapshot
* updated docs and props
* updated name of avatar
* removed comments
* updated avatar network component
* updated readme
* updated story for badge
* added constants to the root
* Recipient name passed to confirm-page-container component should be used if pet name exists for the to address
* Ensure recipient edit/add popup is shown for non-owned accounts
* Ensure contract name is rendered if it exists for recipient address
* Ensure that shortened address is last fallback after account, addressbook, token and ens names
* Onboarding: Set SeedPhraseBackedUp when appropriate
* Dispatch setSeedPhraseBackedUp
* Fix test
* Make call async
* Fix test
* Fix test
* enhance test
Co-authored-by: Alex <adonesky@gmail.com>
* fix issue when navigating back into the onboarding flow after completing onboarding
* disable navigating back into the onboarding flow
* lint
* fix test
* lint
* housekeeping for tag url
* updated docs for tag url
* updated docs for tag url
* updated tag url component
* updated stories
* updated label
* Some small updates
* Updating test to catch failed propType
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
* Privacy - Allow users to set a custom RPC from the onboarding process (#16767)
* Privacy - Allow adding custom IPFS from onboarding (#16782)
* Privacy - Show default selected network after a custom network has been added during onboarding
* WIP: Show dropdown list of networks
* Add network switcher to the onboarding advanced privacy screen
* Fix duplicate imports
* Provide default for networks
* Update ui/helpers/utils/ipfs.js
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
* Fix lint
* Remove unwanted changes
* Fix lint
Co-authored-by: legobeat <109787230+legobeat@users.noreply.github.com>
* Contract addresses to lowercase
* Use case insensitive checks in the shouldEnableDirectWrapping fn
* Remove duplicated functions, move unit tests into the right location
* text housekeeping
* update testing
* Text constant
* TEXT const to story
* format text sizes
* add associated constants to text component
* add all exports to global index.js
* update snapshot
* update text component variants
* Update ui/components/component-library/text/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* update rearrangements
* update text in tests
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Expose transaction origin to transaction insight snaps
* Support multiple icons for each label for a permission
* Add transaction insight origin permission
* Fix fencing
* Fix import and permission crash
* Use function properly for connected accounts
Fix e2e test
Update siteicon for v4 signature type
Code refactor
Code refactor
Remove origin and address in signatrue request
Update e2e tests
Use getNetworkName function
Move header component inline jsx
Update snaps
* Migrate to new controller packages
`@metamask/controllers` is deprecated, and most of the controllers that
lived here are now located in their own package ([1]). This commit
replaces `@metamask/controllers` in `package.json` with references to
these packages and updates `import` lines to match.
[1]: https://github.com/MetaMask/controllers/pull/831
* Support GitHub registry for draft PRs (#16549)
* Add additional allowed host to lockfile linter
* Update LavaMoat policies
* Add policy exception for nanoid
* Add additional nanoid overrides
* Update LavaMoat policies again
* Bump controller packages
* Update lavamoat
* Bump controller packages
* Update packages to v1.0.0
* Expand gitignore comment
* Unpin controller dependencies, using ^ range instead
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* updated background color for picker network
* updated color for pressed state
* fixed linting error
* updated snapshots
* removed borderstyle
* update color
* updated snapshot
* added truncate to the text
* updated snapshot
* Storing the icon name env var as a string and parsing to use with components
* Moving icon env vars to jest specific env.js file
* Updating snapshots
* Add beta home banner to home screen
* Move the beta home notification to the app-header
* Updates to formatting
* Add beta home banner to home screen
* Move the beta home notification to the app-header
* Updates to formatting
* Update ui/components/app/app-header/index.scss
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/app-header/index.scss
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Update ui/components/app/app-header/index.scss
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Move banner to top of page
* Move to own folder, update styles
* Swith to BOX component
* Address feedback
* Add tests
* Update name of component
* Fix tests
* Fix proptype errors
* Fixups
* Remove unrelated changes
* Remove unwanted string changes
* Update beta component name and text
* Update mock data
Co-authored-by: George Marshall <george.marshall@consensys.net>
The controllers package has been updated to v33. The only breaking
change in this release was to rename the term "collectible" to "NFT"
wherever it appeared in the API.
Changes in this PR have been kept minimal; additional renaming can be
done in separate PRs. This PR only updates the controller names,
controller state, controller methods, and any direct references to
these things. NFTs are still called "collectibles" in most places.
* Prevent user from editing a contract interaction created by a dapp
* Code cleanup
* Fix e2e test selector
* Fix e2e test
* Fix e2e test
* Update snapshot
* Updating showClearButton prop name and making component dumber
* Docs update
* Adding missing proptype
* Fixing casing on tests
* Replacing clear button placeholder with ButtonIcon and docs update
* Fixing linting issues
* Adding note about controlled only for showClearButton to work and fixing some tests
* Updating test to include controlled testing setup function for clearButton tests
* Replaced addresses by the address component on SignTypedData v4 signatures
* Fixing signature-request e2e tests
* Modified scss file for signature-request message
* Using address component for rendering the addresses and bold label where hex address is not valid
* Modify the address component
* Added proper BEM syntax for class names and used Box and Typography
* FIxing e2e tests
* Commited requested changes from George and added storybook
* Review requested changes
* Created new component for rendering data in signature-request-message.js
* Fixing proper usage for getAccountName and getMetadataContractName selectors
* Fixing e2e tests
* added tag url file structure
* added tag url component
* updated args in tag url
* updated avatar favicon and button link in Tag url
* updated Text component in Tag URL
* added tests to the tag url component
* fixed typos
* replaced buttonbase with button link
* added lock icon to the tag-url component
* updated typo
* renamed style and prop names
* updated prop name and tests
* fixed name for tag in readme
* fixed test statements
* updated prop names
* updated story
* fixed typo in test file
* updated lock icon rendering and icon color
* updated lock icon prop
* updated README
* updated tests for tag url
* added snapshot testing
* updated Readme for tag url
* updated label as per src
Co-authored-by: Garrett Bear <gwhisten@gmail.com>
* Update TextFieldBase to include InputComponent
* Updating docs
* Adding test
* Update to docs
* Lint fixes
* Small doc fixe to remove some unneded spaces
* BETA - Update logo imagery
* Restore basic metamask rotating fox
* Adding story and updating colors
* Add beta to following logo
* New, square images
* Add 512 icon
Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
* snaps insight error catching and error state
* revert confirm-transaction-base changes
* display empty state if data is null
* add loading state
* reset errors and loading state on call
* update hasNoData
* update length check in component
* Add transaction activity log component
* Remove duplicate tx activity log snapshot.
* Convert Identicon test to tlr.
* Convert Metafoxlogo test to tlr.
* Convert Reveal Seed Phrase test to tlr.
* Consolidate and convert Send Footer test to tlr.
* Convert Settings test to tlr.
* Consolidate and convert security tab test to tlr.
* Convert null selectedOption to empty string, and add test id to Dropdown component.
* Add Send state to mock-state
* Lint mock-state.json
* Show error message if service worker did not load (respond to the UI)
after 1 minute.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Remove console.log
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* New Error message design
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Fix tests
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Use lastTimeStamp instead of keeping track of message ids
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Do not initial channe every second.
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* New logic to check if SW is stuck
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
* Remove 3box feature and delete ThreeBoxController
Lint locale messages
lavamoat policy updates
* Restore 3Box user trait with value `false`
The 3Box user trait has been restored and hard-coded as `false`. This
ensures that users don't get stuck in our metrics as having this trait.
A deprecation comment has been left in various places for this trait.
* Remove unused state
* Remove additional 3box-related things
* Run `yarn-deduplicate`
* Restore migration that was lost while rebasing
* Remove obsolete override
* Remove additional unused resolutions/dependencies
* Update LavaMoat policies
* Remove obsolete security advisory ignore entries
* Remove 3Box fixture builder method
* Update unit tests
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
* Reduce the amount of calls to insight snaps
* Add dep
* Update LavaMoat policies
* Fix selectors and revert changes to hook
* Remove dep
* Revert "Update LavaMoat policies"
This reverts commit 7469c94e0e7c52eb877766a96005cc559c9d8d20.
* Enable "Add Popular Network" feature by default
* Fixing e2e tests
* Attempt to fix e2e tests
* Revert "Attempt to fix e2e tests"
This reverts commit d88e8944b8df8f7c3075753f8d8b3480439f8e30.
* Get e2e tests passing
Co-authored-by: Dan J Miller <danjm.com@gmail.com>
* Setting truncate to true by default
* Updating readOnly to not have a focus state
* Updating focus state to be browser outline default
* Removing default args so storybook doesn't become out of sync with default props
* Updating outline CSS
* Adding TextField component
* Fixing lint issues
* More linting fixes
* Adding more tests
* Adding reference to TextFieldBase props
* Adding reminder todo comment to styles
* Using short hand syntax for conditionally firing event props and removing some css and unused classsNames in favor of box props
* Fixing up my sloppy code
* Removing text base docs update
* More clean up
* Adding more stories and docs
* Adding new stories to mdx docs
* Remove ETH badge from NetworkAccountBalanceHeader when on non-ETH networks
* Network specific icons, or fallback, in the network-account-balance-header
* Update snapshots
* Code cleanup
Co-authored-by: Dan Miller <danjm.com@gmail.com>
* Fix inputs that should allow decimals
* Update e2e test to cover inputting of decimals in advanced fields
* Update e2e test to cover inputting of decimals in advanced fields
* Fix e2e tests
* Add transaction activity log component
* Remove duplicate tx activity log snapshot.
* Convert tx breakdown row to tlr.
* Convert tx status component to tlr.
* Convert User Preferenced Currency Display test to tlr.
* Consolidate and convert user-preferenced-currency-input.test.js to tlr.
* Consolidate and convert user-preferenced-token-input test to tlr.
* new test and changed ui
* added bip32 test
* fixed linting and other errors
* changed description
* Bump test-snaps to latest and fix tests
* Fix error e2e
* Fix confirm e2e
* Remove balance
Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com>
* updated tag component and stashed storyshot update
* updated styling for tags
* updated test component for tag
* updated tag styles as per figma
* updated borderRadius prop for tag
* removed unused import
* updated Tag component with labelProps
* updated README
* updated Typography with Tag
* add button secondary
* revert change to shadow stories
* test and docs update
* Update ui/components/component-library/button-secondary/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
* remove unused fragment
Co-authored-by: George Marshall <george.marshall@consensys.net>
* Adding border radius full and updating border radius sizes for box
* Adding missing XS size
* Updating docs and linting issues
* Updating name from 'full' to 'pill'
* snaps-skunkworks@0.22.0
* Update LavaMoat policies
* Bump execution environment and fix a breaking change
* Fix caveat and permissions
* Fix test
* Exclude keyring endowment for now
* Fix test
* Fix snap_confirm missing title
* Adding TextInputBase component
* Removing keyup and keydown props, tests and docs
* removing showClear from stories
* removing unneeded css
* simplifying uncontrolled vs controlled to work
* Fortifying maxLength test
* Lint fix for test
* Doc, style and prop updates
* Updating constant names with 'base'
* Adding a background color
* Adding a background color to input
* Fix: show whats new to users who created, not imported, a new wallet, but not on their first session
* Fix tests
Hide `Improved token detection is here` & `Scam and security risks` whats new
* Fix unit test
Co-authored-by: PeterYinusa <peter.yinusa@consensys.net>
Add tests for the `block-tracker-inspector` middleware — which makes
sure that the block tracker never has a reference to the latest block
which is less than a block number that shows up in an RPC method's
response — and the Infura middleware — which takes care of sending the
request to Infura, and will retry the request up to 5 times if Infura
sends back a certain type of error.
Note that the `retry-on-empty` middleware is not tested because it
currently has a [bug][1] which is making it ineffective.
[1]: https://github.com/MetaMask/eth-json-rpc-middleware/issues/139
Update ui/components/component-library/icon/README.mdx
Co-authored-by: George Marshall <george.marshall@consensys.net>
Update ui/components/component-library/icon/icon.stories.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
Update ui/helpers/constants/design-system.js
Co-authored-by: George Marshall <george.marshall@consensys.net>
story fix
font size comment
update auto demo and fix inline style