-
-
Notifications
You must be signed in to change notification settings - Fork 640
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
Add missing capabilities #3966
Comments
presumably all future devices will support these two. we could even do a tutorial for TT, fwiw :)
this is not a capability and in this particular place it just might happen that T3W1 will need different string.
this is plausibly a capability |
So in cases like this you're not adding a capability flag and we catch it in Suite? Acceptable.
Good idea. |
Are you sure TS5 has a tutorial? If it does, Suite skips it. |
#3829 |
😬 This complicates the condition needed in Suite. A flag for |
@komret can this be closed? |
let's not add Tutorial capability and instead assume that it's there. it seems wasteful to do conditional code for a single version of firmware that the vast majority of TS5 owners won't ever install i was thinking about the Rotation capability and it's actually not good as a single-bit capability. All trezor-core models support display orientation, it's just that TS3 only has North and South while TT/TS5 has all four cardinal directions (because square display) If we really want to report this from firmware, we could make: |
It is still and official firmware users can download, and although it is an edge case, I want to avoid a possibility of a user ending up with a blank screen in Suite if they do onboarding on 2.7.2. Another argument for having these capabilities reported by firmware is that we need to maintain inclusive lists in Suite/Connect for features like tutorial. If those lists were exclusive, (e.g. I don't see the full picture, so If this doesn't justify adding the capability flags, let's keep status quo.
Either solution is fine, I prefer C. |
I agree with matejcik. Let's assume that all TS5s have tutorial. Not many users will do the onboarding on 2.7.2. |
Also, why do you want to have the capability of the screen rotation in features?🤔 This can be done based on the model, not the fw version. |
I thought firmware would be the best place to set this Maybe Connect is better. Currently, this logic exists in Suite so it cannot be shared with other frontends. |
Which other frontends? You mean different 3rd party apps? |
Yes, or |
Isn't then Connect a better place for this? cc @mroz22 |
I miss some properties among the device capabilities when working on Suite, which leads to hard-coding device models accross the code base and worse maintainability. I would appreciate adding the following flags among device capabilities.
@trezor/connect
will handle backwards compatibility. The names are just my suggestions, the list might not be exhaustive.Capability_SecureElement
: device has a secure element and an ability to check device authenticity; hardcoded e.g. hereCapability_Tutorial
: device has controls tutorials; hardcoded hereCapability_TouchScreen
: device has a touchscreen as opposed to buttons, hardcoded e.g. hereCapability_DisplayRotation
: device supports display rotation, hardcoded hereThe text was updated successfully, but these errors were encountered: