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

Allow to prevent dialog item selection through listener #139

Conversation

rosenpin
Copy link
Contributor

@rosenpin rosenpin commented Jul 6, 2023

This will allow users to prevent click on specific dialog items

Example:

Screen.Recording.2023-07-06.at.23.37.14.mov

Example use case: make certain items premium only and instead of allowing users to tap them, show a premium upgrade dialog

TODO:

  • Update and test multi choice selections

@rosenpin rosenpin changed the title [WIP] Allow override on item click to prevent click [WIP] Allow override on item click to prevent click and added badge for selection items Jul 6, 2023
Copy link
Owner

@Maxr1998 Maxr1998 left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution! I left some comments already to look at. If possible, I'd prefer this PR to be split into two, so one for the badge, and one for the selection handling.

@rosenpin rosenpin force-pushed the feature/override-on-item-click-for-singlechoice branch from 005196d to 5f150a5 Compare July 18, 2023 21:13
@rosenpin rosenpin changed the title [WIP] Allow override on item click to prevent click and added badge for selection items Allow override on item click to prevent click and added badge for selection items Jul 18, 2023
@rosenpin
Copy link
Contributor Author

Fixed CR issues and split into 2 separated PRs

removed badge related changes
@rosenpin rosenpin force-pushed the feature/override-on-item-click-for-singlechoice branch from 933d753 to 56b26b0 Compare July 18, 2023 21:17
@rosenpin rosenpin changed the title Allow override on item click to prevent click and added badge for selection items Allow override on item click to prevent click Jul 20, 2023
@rosenpin
Copy link
Contributor Author

Any news about this?

@Maxr1998
Copy link
Owner

Apologies, the last few weeks were rather eventful. I'll review this immediately.

Copy link
Owner

@Maxr1998 Maxr1998 left a comment

Choose a reason for hiding this comment

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

The new shouldSelect handling looks much better, just a few nitpicks remaining. Otherwise, it's perfect.

@rosenpin
Copy link
Contributor Author

All good 😃
Thanks for the CR
I fixed the remaining issues

Copy link
Owner

@Maxr1998 Maxr1998 left a comment

Choose a reason for hiding this comment

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

Thanks, looking good now!

@Maxr1998 Maxr1998 enabled auto-merge (squash) August 27, 2023 16:19
@Maxr1998 Maxr1998 disabled auto-merge August 27, 2023 16:19
@Maxr1998 Maxr1998 changed the title Allow override on item click to prevent click Allow to prevent dialog item selection through listener Aug 27, 2023
@Maxr1998 Maxr1998 enabled auto-merge (squash) August 27, 2023 16:20
@Maxr1998
Copy link
Owner

Seems like the API schema needs to be updated, I'll do that in a few minutes.

@Maxr1998 Maxr1998 merged commit be1a0e6 into Maxr1998:master Aug 27, 2023
4 checks passed
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.

2 participants