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(mobile): make feature flags more dummy proof #16269

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

Nodonisko
Copy link
Contributor

Description

Make feature flag more dummy proof so it is not possible to have always truthy condition then. We only need to read FF value anyway and write it only in single place.

QA: Please test that all FF works correctly 😄

Related Issue

Resolve

Screenshots:

@Nodonisko Nodonisko added the mobile Suite Lite issues and PRs label Jan 8, 2025
@Nodonisko Nodonisko requested a review from a team as a code owner January 8, 2025 14:46
Copy link
Contributor

@yanascz yanascz left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

@matejkriz
Copy link
Member

Do you think the hooks are worth it? Wouldn't it be easier to just use a selector or dispatch toggle action everywhere?

@PeKne
Copy link
Contributor

PeKne commented Jan 9, 2025

Rebase to make e2e tests passing again: #16276

Copy link
Member

@matejkriz matejkriz left a comment

Choose a reason for hiding this comment

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

After the internal discussion, I'm ok with keeping it wrapped in simple hooks 👌

@Nodonisko
Copy link
Contributor Author

/rebase

Copy link

@trezor-ci trezor-ci force-pushed the feat/change-feature-flag-api branch from f7cfe41 to fc49b33 Compare January 11, 2025 14:43
Copy link

🚀 Expo preview is ready!

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

Learn more about 𝝠 Expo Github Action

@Nodonisko Nodonisko merged commit d429e22 into develop Jan 12, 2025
16 checks passed
@Nodonisko Nodonisko deleted the feat/change-feature-flag-api branch January 12, 2025 20:31
@STew790
Copy link
Contributor

STew790 commented Jan 20, 2025

QA OK
All FF works correctly.
Info
25.1.2 59e12ce

@STew790 STew790 added the QA OK Issue passed QA without any blocker label Jan 20, 2025
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 QA OK Issue passed QA without any blocker
Projects
Status: ✅ Approved
Development

Successfully merging this pull request may close these issues.

5 participants