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

REPLAY-1457 Enhance UISwitch element masking #1217

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

ncreated
Copy link
Member

What and why?

📦 This PR enhances masking behaviour for UISwitch elements when .maskAll policy is set. Now, the selected value (ON / OFF) is fully hidden and cannot be inferred:

How?

Added distinct method for "rendering" masked switch.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes

Custom CI job configuration (optional)

  • Run unit tests
  • Run integration tests
  • Run smoke tests

so that selected value cannot be seen if `.maskAll` strategy is set.
@ncreated ncreated requested a review from a team as a code owner March 21, 2023 16:39
@ncreated ncreated self-assigned this Mar 21, 2023
}
}

private func createMasked(with builder: WireframesBuilder) -> [SRWireframe] {
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of adding new method, we could patch the previous one with if isMasked in several places. I tried this, but after all it was less readable and coherent than here.

Copy link
Member

@maciejburda maciejburda left a comment

Choose a reason for hiding this comment

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

LGTM

@ncreated ncreated merged commit ca8e152 into develop Mar 23, 2023
@ncreated ncreated deleted the ncreated/REPLAY-1457-improve-switch-masking branch March 23, 2023 11:30
@ncreated ncreated mentioned this pull request Mar 31, 2023
6 tasks
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.

4 participants