Skip to content

Conversation

@dtakahashi333
Copy link
Contributor

This patch fixes a potential issue in UIAlert where values were being stringified unexpectedly, by introducing the parseDataValue() function, which attempts to recover the original JavaScript value type.

@jelveh
Copy link
Contributor

jelveh commented Sep 21, 2025

Thanks @dtakahashi333 for this! At first glance, this makes sense; but I need to do some deep testing as a lot of devs depend on UIAlert. If you're testing right now as well, do let me know if something comes up, I'd like to help/discuss it.

@dtakahashi333
Copy link
Contributor Author

@jelveh I understand your concern, and I totally agree with you. Considering the impact of this update, I believe it's fine to leave it as is unless a user reports it as an issue.

Based on my inspection, as long as html_encode() behaves as expected, which returns an empty string for false, I believe the issue @KernelDeimos mentioned will not occur.

Do you have any thoughts on this?

@jelveh
Copy link
Contributor

jelveh commented Sep 21, 2025

This makes sense. The old code (causing the quirk) is not very elegant though and I wish we could just replace it. Let me do more testing and I'll get back to you

@dtakahashi333
Copy link
Contributor Author

dtakahashi333 commented Sep 23, 2025

@jelveh Do you happen to know if the Puter project is planning to use any GUI test automation tools, like Playwright, Cypress, or similar?

@jelveh
Copy link
Contributor

jelveh commented Sep 23, 2025

This is something we'd love to have! Would you be interested in taking a stab at it?

@dtakahashi333
Copy link
Contributor Author

@jelveh Sure, I’d be happy to!

@jelveh
Copy link
Contributor

jelveh commented Sep 24, 2025

Awesome! Could you either open an issue or email me at [email protected] so that I could help you get started on it? Let me know what you will need and how we could plan this. I'd be happy to help in any way I can.

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