ctm / mb2-doc

Mb2, poker software
https://devctm.com
7 stars 2 forks source link

Provide bad Nick feedback #1366

Closed ctm closed 2 months ago

ctm commented 3 months ago

Have the client explain why a nickname is disallowed, rather than silently erasing it.

This is something I meant to do as part of disallowing Zalgoed (and other inappropriate) usernames, but I wound up deploying before putting it in.

ctm commented 2 months ago

I did not get to this today, but I did the heavy lifting for it, before running out of time.

ctm commented 2 months ago

So of course I deployed the new Nick code without the feedback and that caused ODB Phat Mack and GamboMouse to fly blind. Live and learn.

FWIW, adding a tooltip to the Enter button is unlikely to be of much help, per-se, but it will at least demonstrate that enough information is being passed about for someone with UX skills to do an acceptable job.

ctm commented 2 months ago

Unfortunately, changing the tooltip doesn't work. My guess is yew either doesn't even change the element or changes the element in a way that UIKit doesn't notice. FWIW, It's recommended not to use UIKit with Yew.

For now, I'm going to make it so that the correct tooltip is created and updated and once that's done I'll figure out a way to display it.

ctm commented 2 months ago

Changing the tooltip does work if I attach it to the Enter button, which was my original plan. So, that's what I've done and I'm deploying now.