lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Community Name requirements not clear

Open jsit opened this issue 1 year ago • 3 comments

Is your proposal related to a problem?

The "Community Name" only allows lowercase letters, numbers, and an underscore. If you try to create a community name with a capital letter, the browser gives you a vague warning that it doesn't match the requirements. These requirements aren't displayed anywhere, so a user may not know what they're doing wrong.

Describe the solution you'd like

Should have some visible text saying what the requirements are for the community name.

jsit avatar Jun 04 '23 19:06 jsit

What browser are you using? This might have been added in a later commit, but I doubt it.

Screenshot_2023-06-04-17-52-44-829_net slions fulguris full fdroid

dessalines avatar Jun 04 '23 21:06 dessalines

Replicated with Safari:

image

jwhitmarsh avatar Jun 05 '23 21:06 jwhitmarsh

Seems this is a quirk of safari, not intelligently writing errors for input patterns like most other browsers: https://www.wufoo.com/html5/pattern-attribute/

If you'd like to write a safari workaround, I'd consider a merge.

dessalines avatar Jun 06 '23 03:06 dessalines

@dessalines Might be adequate to just add something to name_explain translation:

Name – used as the identifier for the community, cannot be changed. Must contain only lowercase letters or underscores.

jsit avatar Jun 14 '23 21:06 jsit