-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Riot should accept mixed-case group IDs and handle them as lowercase #5434
Comments
Agreed; if group names are case insensitve, then loading +MATRIX:Matrix.org should always 'just work' (whilst making sure never to show anything but the canonical lower case +matrix:matrix.org in any UX)
I wonder what's the right UX for this? It would be good for people camel-casing their group name to know as quickly as possible that that isn't going to be persisted (to avoid pen island fun). Would it be offensive to style the textbox to show only lower case? With a warning perhaps? What does: http://jsfiddle.net/5ocu2cqk/2/ feel like? |
Showing the mixed case ID might hint that mixed case IDs are possible. It might be better to just correct the user, so instead of +MATRIX they see +matrix in the group views (the message would remain unchanged though, unless it gets pilled 😇) The fiddle feels a bit intrusive and distracting; I found that I stopped typing to read the prompt, which is good, but it had me think (briefly) about what I was trying to type before the prompt. Maybe a post-entry prompt is suitable? ie: "Only lowercase letters are allowed for group IDs, is +mygroup:matrix.org okay? [yes] [no]". Clicking 'no' would probably bring you back to where you can fix the group ID. This isn't to say the prompt isn't bad though, it could use a little bit more time being open (possibly just persist), and it doesn't handle caps lock. |
Yeah, I got into making it handle capslock (surprisingly hard - the js event seems to give you every bit of keyboard state, apart from capslock) and then realised I was spending too long on a throwaway illustration :D I think you're right - post-entry substitution and confirmation sounds good to me. |
On the other hand - if you forget the prompt and just leave it as auto-styling everything to lower case, how invasive does that feel? |
The user may feel disappointed that their pen island got clobbered, but they'd always have the option to abandon the group and create a new one. Chances are this would only happen on initial setup anyways, so they shouldn't be too broken hearted about it. |
OKAY so I dived into this a little too deeply perhaps and came up with: http://jsfiddle.net/5ocu2cqk/6/ You have to click 'Run' on the fiddle to get the headers to have the right styling for some reason. |
aaaaaand I've just learned that we (currently) don't allow dashes in group ids! Client side (server side it is allowed). Maybe we could change that.. |
That feels much better overall :D A timeout on the shake could probably help, to avoid the constant shaking when capslock. |
matrix-org/matrix-react-sdk#1558 will make Riot use the same validation as the server. |
Spaces are now in beta |
Description
Creating groups for instance results in a server-generated error. It should probably be tolerant of mixed case and just convert it to lowercase.
Further, it should handle mixed case mentions of group IDs to avoid screens like this:
Version information
The text was updated successfully, but these errors were encountered: