Skip to content

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Nov 18, 2025

Fixes #5219

This helps users choosing a valid username by doing three things:

  • automatically lowercase the input. This is not disruptive for the user so I feel like it's a good idea.
  • automatically trim the input on blur. This is so that it doesn't feel like the input is 'not working' when the user tries to put in a space
  • show the invalid username message live if the username doesn't match a regex

The JS for all this is not very pretty and I don't like that it's not React, but it works. Later on we can investigate actually hydrating React components in the templates, but that's a different story.

Since I'm introducing a new frontend entrypoint, I moved all the entrypoints in a dedicated directory and made Vite glob all the files in that directory.

This will make it easier to add new entrypoints in the future without
having to change the vite config
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 18, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f0b408e
Status:🚫  Build failed.

View logs

@sandhose sandhose requested a review from a team as a code owner November 18, 2025 17:42
@sandhose sandhose added the T-Enhancement New feature of request label Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Enhancement New feature of request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Don't force users to type lower case when registering

2 participants