-
-
Notifications
You must be signed in to change notification settings - Fork 277
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: introduce internal_model UNKNOWN, add support for it in the Suite #15589
Conversation
🚀 Expo preview is ready!
|
bcc39a3
to
f47b629
Compare
f26cd00
to
d964041
Compare
d964041
to
bfd4c4a
Compare
ac3d176
to
0156ea3
Compare
0156ea3
to
d3aec49
Compare
d3aec49
to
2710a33
Compare
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.
✅ LGTM
packages/suite-data/files/images/svg/device-confirm-trezor-t2t1.svg
Outdated
Show resolved
Hide resolved
packages/suite-data/files/images/svg/device_confirm_trezor_unknown.svg
Outdated
Show resolved
Hide resolved
2710a33
to
7488355
Compare
3c2e003
to
f8fa327
Compare
f8fa327
to
f0835f8
Compare
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.
LGTM codewise, though there are still TS errors...
packages/suite/src/views/wallet/staking/components/DeviceButton.tsx
Outdated
Show resolved
Hide resolved
[DeviceModelInternal.UNKNOWN]: 'trezorModelOneFilled', // Just to provide something that wont break UI | ||
}; | ||
|
||
export const mapTrezorModelToIcon: Record<DeviceModelInternal, IconName> = { |
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.
💭 maybe there could be notice that these are deprecated. Otherwise you have to click through IconName
to find out. Perhaps rename to mapTrezorModelToDeprecatedIcon
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.
Good idea, done. thanks 🙇
9852e49
to
a0d9e8b
Compare
|
||
feat.model = 'T'; | ||
// @ts-expect-error | ||
feat.internal_model = 'brambora'; |
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.
😱 again!
a0d9e8b
to
ff51bd3
Compare
Original description:
cc @peter-sanderson
when I hardcode-rewrite incoming features.internal_model to some bogus