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(suite-native): Add coin behind feature flag #11332

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

vytick
Copy link
Contributor

@vytick vytick commented Feb 26, 2024

Hides Add Account functionality by disabling ( + ) button and choosing correct flow on tap

Related Issue

Resolve #11295

@vytick vytick added the mobile Suite Lite issues and PRs label Feb 26, 2024
@vytick vytick requested a review from a team as a code owner February 26, 2024 14:36
Copy link

socket-security bot commented Feb 26, 2024

👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report↗︎

@vytick vytick enabled auto-merge (squash) February 26, 2024 15:03
@vytick vytick disabled auto-merge February 26, 2024 15:09
@juriczech
Copy link
Contributor

Tested on emulator and works as expected.

@vytick
Copy link
Contributor Author

vytick commented Feb 26, 2024

/rebase

Copy link

@vytick vytick force-pushed the feat-native-add-coin-0 branch from 18d2df3 to 1b1854c Compare February 26, 2024 15:28

export const AddAccountButton = () => {
const isSelectedDevicePortfolioTracker = useSelector(selectIsPortfolioTrackerDevice);
const [isAddCoinAccountEnabled] = useFeatureFlag(FeatureFlag.IsAddCoinAccountEnabled);
const [isDeviceConnectEnabled] = useFeatureFlag(FeatureFlag.IsDeviceConnectEnabled);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why you don't use this feature flag inside of isAddCoinAccountEnabled, these two are closely tied and there will never be adding of new account without device

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The way feature flags are written now, I cant use IsDeviceConnectEnabled setting as a base for IsAddCoinAccountEnabled.

And we will probably remove IsAddCoinAccountEnabled flag in next release anyway and only use IsDeviceConnectEnabled.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is there only to hide it for the release and still let qa and us to test it

Copy link
Contributor

Choose a reason for hiding this comment

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

Just simply create hook which will use both of these flags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vytick
Copy link
Contributor Author

vytick commented Feb 26, 2024

@SocketSecurity ignore-all

Copy link
Contributor

@PeKne PeKne left a comment

Choose a reason for hiding this comment

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

👌

@vytick
Copy link
Contributor Author

vytick commented Feb 27, 2024

/rebase

Copy link

@trezor-ci trezor-ci force-pushed the feat-native-add-coin-0 branch from d7ea06e to 96631c5 Compare February 27, 2024 07:48
@vytick
Copy link
Contributor Author

vytick commented Feb 27, 2024

/rebase

Copy link

@trezor-ci trezor-ci force-pushed the feat-native-add-coin-0 branch from 2e309f9 to 9e31005 Compare February 27, 2024 09:35
@vytick vytick merged commit 9386059 into develop Feb 27, 2024
31 of 32 checks passed
@vytick vytick deleted the feat-native-add-coin-0 branch February 27, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Suite Lite issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new coin 0 - guard functionality with feature flag
5 participants