Skip to content

companies: a refused company handle is silent, so Create company looks broken #552

Closed

Description

@allisonmahmood

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

  1. added
    bug
    area:server
    area:ui
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:serverarea:uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions