Skip to content
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

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Nov 26, 2024

image
image
image
image


Original description:

cc @peter-sanderson

when I hardcode-rewrite incoming features.internal_model to some bogus

image

Copy link

github-actions bot commented Nov 26, 2024

🚀 Expo preview is ready!

  • Project → trezor-suite-preview
  • Platforms → android, ios
  • Scheme → trezorsuitelite
  • Runtime Version → 17
  • More info

Learn more about 𝝠 Expo Github Action

@mroz22 mroz22 force-pushed the unkwnon-internal-model branch 3 times, most recently from bcc39a3 to f47b629 Compare December 4, 2024 09:43
@mroz22 mroz22 marked this pull request as ready for review December 5, 2024 13:59
@mroz22 mroz22 force-pushed the unkwnon-internal-model branch 2 times, most recently from f26cd00 to d964041 Compare December 6, 2024 10:31
@peter-sanderson peter-sanderson changed the title [wip] unknown internal model feat: introduce internal_model UNKNOWN, add support for it in the Suite Dec 9, 2024
@peter-sanderson peter-sanderson force-pushed the unkwnon-internal-model branch 2 times, most recently from ac3d176 to 0156ea3 Compare December 9, 2024 14:12
Copy link
Contributor Author

@mroz22 mroz22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

@mroz22 mroz22 force-pushed the unkwnon-internal-model branch from 2710a33 to 7488355 Compare December 9, 2024 15:14
@peter-sanderson peter-sanderson force-pushed the unkwnon-internal-model branch 3 times, most recently from 3c2e003 to f8fa327 Compare December 9, 2024 16:46
@peter-sanderson peter-sanderson requested a review from a team as a code owner December 9, 2024 16:46
Copy link
Contributor

@Lemonexe Lemonexe left a 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...

[DeviceModelInternal.UNKNOWN]: 'trezorModelOneFilled', // Just to provide something that wont break UI
};

export const mapTrezorModelToIcon: Record<DeviceModelInternal, IconName> = {
Copy link
Contributor

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, done. thanks 🙇

@peter-sanderson peter-sanderson force-pushed the unkwnon-internal-model branch 3 times, most recently from 9852e49 to a0d9e8b Compare December 10, 2024 10:43

feat.model = 'T';
// @ts-expect-error
feat.internal_model = 'brambora';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😱 again!

@peter-sanderson peter-sanderson merged commit e6c74f1 into develop Dec 13, 2024
71 checks passed
@peter-sanderson peter-sanderson deleted the unkwnon-internal-model branch December 13, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants