You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
companies: a refused company handle is silent, so Create company looks broken #552
A new user typed Brightline as their company handle, clicked Create company, and nothing happened.
Why
The handle input carries an HTML pattern. A capital fails it, so the browser blocks the submit with its own bubble ("Match the requested format" in Safari, "Please match the requested format." in Chrome). The bubble doesn't say which format, and Safari hides it after a moment. The request never reaches the server, so Patchy's message never shows.
When the server does refuse (taken, reserved, malformed), the message is a note-warn above Company name, away from the handle. The handle isn't marked invalid and focus doesn't return to it.
The hint says "Pre-filled from the company name", but the page runs no script: the handle is derived once from the default name (<first name>'s company), and renaming the company never updates it.
Decision
From the design options (C with B's callout):
The handle field shows the address it opens as a fixed prefix (cloud.patchyhq.com/ + the editable handle), so the lowercase rule explains itself.
While typing, the hint and border turn red when the value breaks the field's own constraints. CSS only; the page stays a plain form.
The form is novalidate, so Patchy decides. A refused submit puts a note-refused callout under the field at fault in place of the hint, naming the broken rule and a fix where one exists ("Handles are lowercase. Try brightline."), with aria-invalid, aria-describedby and focus on the field. The company name gets the same treatment.
Handles stay lowercase-only; capitals are refused visibly, not silently converted.
Out of scope
The connection-handle field on Connections has the same native-bubble problem; it's a separate page.
Activity