Skip to content

Notification: fix choices rendering for INVALID_CHOICE #11190

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

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

humitos
Copy link
Member

@humitos humitos commented Mar 5, 2024

While taking a look at #11189 I found that the rendering was broken. I found the with + yield pattern pretty complex (I have a note about this in the code) and it seems that complexity is confusing enough to make this hard to dealt with.

Anyways, I fixed the problem for now and I added a test case. We can come back to refactoring this in the future with more time.

This PR solves this problem where the choices are not shown in between brackets.

Screenshot_2024-03-05_16-59-44

While taking a look at #11189 I found that the rendering was broken.
I found the `with` + `yield` pattern pretty complex (I have a note about this in
the code) and it seems that complexity is confusing enough to make this hard to
dealt with.

Anyways, I fixed the problem for now and I added a test case. We can come back
to refactoring this in the future with more time.
@humitos humitos requested a review from a team as a code owner March 5, 2024 16:30
@humitos humitos requested a review from stsewd March 5, 2024 16:30
@humitos humitos merged commit 7880e85 into main Mar 6, 2024
@humitos humitos deleted the humitos/notifications-render-choices branch March 6, 2024 11:40
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