-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add OneKey on device selection screen #29610
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [e9a1c9c]
Page Load Metrics (1941 ± 134 ms)
|
e9a1c9c
to
ab9e7c2
Compare
Builds ready [ab9e7c2]
Page Load Metrics (1589 ± 52 ms)
|
Builds ready [ab9e7c2]
Page Load Metrics (1589 ± 52 ms)
|
Builds ready [31e7a91]
Page Load Metrics (1703 ± 45 ms)
|
Builds ready [70c0d6f]
Page Load Metrics (1679 ± 46 ms)
|
Builds ready [70c0d6f]
Page Load Metrics (1679 ± 46 ms)
|
0edd747
to
fa990f1
Compare
Builds ready [fa990f1]
Page Load Metrics (1752 ± 115 ms)
|
fa990f1
to
d96856f
Compare
Builds ready [d96856f]
Page Load Metrics (1708 ± 90 ms)
|
Builds ready [d96856f]
Page Load Metrics (1708 ± 90 ms)
|
Builds ready [b3f66f0]
Page Load Metrics (1602 ± 73 ms)
|
b3f66f0
to
efa40a4
Compare
Builds ready [efa40a4]
Page Load Metrics (1768 ± 101 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
@@ -309,7 +304,7 @@ class ConnectHardwareForm extends Component { | |||
event: MetaMetricsEventName.AccountAdded, | |||
properties: { | |||
account_type: MetaMetricsEventAccountType.Hardware, | |||
account_hardware_type: metricDeviceName, | |||
account_hardware_type: deviceName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be deviceName but hardware type here. But, as discussed with MetaMask PM, to prevent issues in metrics, we'll cover this one through a different issue #29777
Builds ready [f9e9fc8]
Page Load Metrics (2554 ± 505 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [a0a95c2]
Page Load Metrics (1683 ± 63 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [de3f4bc]
Page Load Metrics (1765 ± 87 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't finished reviewing it, will continue tomorrow
<svg | ||
width={width} | ||
fill={color} | ||
className={className} | ||
aria-label={ariaLabel} | ||
viewBox="60 0 520 288" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path d="M272.329 177.513C266.429 177.513 261.011 176.119 256.074 173.331C251.137 170.542 247.224 166.693 244.335 161.783C241.445 156.812 240 151.205 240 144.961C240 138.778 241.445 133.232 244.335 128.321C247.224 123.351 251.137 119.471 256.074 116.683C261.011 113.894 266.429 112.5 272.329 112.5C278.289 112.5 283.707 113.894 288.584 116.683C293.52 119.471 297.403 123.351 300.233 128.321C303.122 133.232 304.567 138.778 304.567 144.961C304.567 151.205 303.122 156.812 300.233 161.783C297.403 166.693 293.52 170.542 288.584 173.331C283.647 176.119 278.229 177.513 272.329 177.513ZM272.329 166.147C276.122 166.147 279.463 165.299 282.353 163.601C285.242 161.844 287.5 159.358 289.125 156.145C290.751 152.933 291.564 149.205 291.564 144.961C291.564 140.718 290.751 137.02 289.125 133.868C287.5 130.655 285.242 128.2 282.353 126.503C279.463 124.806 276.122 123.957 272.329 123.957C268.536 123.957 265.165 124.806 262.215 126.503C259.325 128.2 257.067 130.655 255.442 133.868C253.816 137.02 253.004 140.718 253.004 144.961C253.004 149.205 253.816 152.933 255.442 156.145C257.067 159.358 259.325 161.844 262.215 163.601C265.165 165.299 268.536 166.147 272.329 166.147Z"></path> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved into a .svg
file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to import directly the svg file as a react component, but for some reason it fails (need to declare svg module for typescript and even after it fails standardEntryPoints script).
I'd propose to try again on a separate PR and open a dedicated issue for this? (as multiple logos could use external svg files)
Description
Adding OneKey to the list of hardware devices on device selection page. Also, account label is now named "OneKey via Trezor".
Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/762
Manual testing steps
Screenshots/Recordings
Before
Enregistrement.de.l.ecran.2025-01-13.a.15.20.49.mp4
After
Enregistrement.de.l.ecran.2025-01-13.a.15.36.08.mp4
Pre-merge author checklist
Pre-merge reviewer checklist