-
-
Notifications
You must be signed in to change notification settings - Fork 266
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(mobile): update FW alert on Home + remote feature flag #16318
base: develop
Are you sure you want to change the base?
Conversation
🚀 Expo preview is ready!
|
cb30b94
to
215e8f9
Compare
215e8f9
to
b512d83
Compare
suite-native/atoms/src/Stack.tsx
Outdated
const AnimatedStack = Animated.createAnimatedComponent(Stack); | ||
AnimatedStack.displayName = 'AnimatedStack'; | ||
export const AnimatedVStack = AnimatedStack; | ||
export const AnimatedHStack = AnimatedStack; |
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.
Is orientation
missing here intentionally? 🤔
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 catch, fixed
b512d83
to
5305247
Compare
5305247
to
6472290
Compare
@@ -25,6 +25,7 @@ export const Feature = { | |||
ethClaim: 'eth.staking.claim', | |||
firmwareRevisionCheck: 'security.firmware.check', | |||
firmwareHashCheck: 'security.firmware.hashCheck', | |||
firmwareUpdate: 'device.firmware.update', |
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'm thinking whether we should indicate somehow, that this feature flag is implemented on mobile only. My initial thought was using mobile
prefix in the id, but since those features can be implemented later on the other platform, I'm not proposing that. We can use comments if needed. Feel free to keep it as it is.
selectIsFeatureEnabled(state, Feature.firmwareUpdate, true), | ||
); | ||
|
||
const isFirmwareUpdateEnabled = localFeatureFlag && remoteFeatureFlag; |
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 way it wouldn't be available on production for users at all, because localFeatureFlag
has default value isDevelopOrDebugEnv()
. And there is no way to enable it locally if it's remotely disabled. I guess OR makes more sense here.
const isFirmwareUpdateEnabled = localFeatureFlag && remoteFeatureFlag; | |
const isFirmwareUpdateEnabled = localFeatureFlag || remoteFeatureFlag; |
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.
Except the wrong condition in useIsFirmwareUpdateFeatureEnabled.tsx
it works and looks good, including possibility to disable via message-system. It's nice that it's animated.
Description
Related Issue
Resolve part of #15584
Screenshots:
screen-20250113-145307.mp4