Skip to content

TCP check form: empty port field with a value-looking placeholder pushes users to click the spinner up to the port #495

Closed

Description

@fclairamb

Summary

On the TCP check form, the port field starts empty but shows a
placeholder (443, or 53 for UDP) that reads like a pre-filled value. It's a
type="number" input w-24 wide, so the only visible affordance besides
typing is the browser spinner. From empty, the spinner counts up from 1.

Seen in production

A new user creating their first TCP check (target: SSH, port 22) clicked into
the port field and then stepped the spinner one unit at a time. That's
28 change events in about 7 seconds (13:15:28–13:15:35 in PostHog), with 2
$rageclick on the input. During that time the field was in its error state
(border-destructive): empty failed validation. A second TCP check four
minutes later produced one more $rageclick on the same field.
The same session also has about 200 clicks on /checks/new across 20
minutes for 3 simple checks.

Proposed fix

  1. Pre-fill a real default per type instead of a placeholder that looks
    like a value: 443 for TCP, 53 for UDP, etc. The user then edits a number
    instead of building one.
  2. Offer the common ports as one-click chips next to the field: 22 SSH,
    80 HTTP, 443 HTTPS, 3306 MySQL, 5432 PostgreSQL, 6379 Redis, 25/587 SMTP. The
    same pattern as the quick-start chips on the empty dashboard.
  3. Drop the spinner: type="text" inputMode="numeric" pattern="[0-9]*"
    with range validation 1–65535. A port is an identifier, not a quantity, and
    stepping through it is never the right interaction.
  4. Accept host:port pasted into the host field: split it and fill both.
  5. Don't show the field as invalid before the user has had a chance to fill it
    (validate on blur or submit, not while it's still empty).

Acceptance

  • New TCP check: the port shows a real editable default, the chips set it in
    one click, and no spinner is rendered.
  • Pasting example.com:22 into host gives host example.com, port 22.
  • The e2e test for TCP creation covers the chip path.

Activity

  1. added
    bug
    converted-to-spec
    on Oct 8, 2026
  2. fclairamb commented on Oct 8, 2026

    @fclairamb
    OwnerAuthor

    Converted to a spec: specs/todos/2026-10-08-04-port-field-defaults-and-chips.md (sonnet/medium), why: touches six port fields, adds a chip primitive and changes validation-error timing for every check field (cross-cutting, >150 lines). Not implemented yet — closing because the spec is now the tracking artifact; run /implement-todos to implement it. Spec PR: #496.

  3. added a commit that references this issue on Oct 9, 2026
    03be40c
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

    bugconverted-to-spec

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions