Files
piik/src/client/ui
T
AAA 5a32e7ac65 feat(entry): a first site connection says when it is another attempt and when it is taking long
The site entry read "Connecting" for the first attempt, for every retry
after a failed one, and for a wait of any length. Neither the socket nor
the join has a deadline of its own, so a handshake that hangs, or a join
that is never answered, left the heading as it was with nothing else on
the page: the connection help appeared only after a failure had been
observed.

- After an attempt has failed, the heading is the room page's own word
  for the same fact, "Reconnecting". The entry already latched that a
  retry was seen; the heading now uses it.
- A wait that outlasts ten seconds adds one line, "This is taking longer
  than usual.", and offers the site check that a failure offers. The line
  belongs to the wait and goes when the attempt ends.

The ten seconds are the limit of attention in the Nielsen Norman Group's
response-time limits, the same rule the watched picture's step already
followed. That rule is now one hook, useLongWait in ui/long-wait.ts, and
the picture's caption uses it in place of its own timer;
SCREEN_STAGE_SLOW_MS is LONG_WAIT_MS there.

The connection help's link to the guide was an unstyled anchor, the
browser's blue on the dark theme's surface. It is drawn as the diagnosis
help draws the same link.

The entry preview gains a retrying sample. Looked at in light and dark at
1360 wide, and after ten seconds at 360.
5a32e7ac65 · 2026-11-29 23:33:06 +08:00
History
..