Skip to content

feat(web): one loading system — content-shaped placeholders, busy buttons, hand-drawn agent sprites - #1926

Merged
serefyarar merged 7 commits into
devfrom
feat/loading-states
Nov 20, 2026
Merged

serefyarar merged 7 commits into
devfrom
feat/loading-states

Conversation

@serefyarar

@serefyarar serefyarar commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

Loading states in the web app had no discipline: 16 different looks across ~70 call sites (spinners, gray Tailwind pulses, "loading…" in three fonts, a blinking _, a striped bar, orbit rings, a blue splash, a 1.5 MB GIF). This replaces all of them with one system.

Wait Now
Data loading Placeholder.{Rows, Card, Text, Thread, Reply, Window, Form, Count}: the shape of the content that's coming, in a 1-bit dither with a stepped sweep. Fades in after 250 ms; sweep off under reduced motion. No more "loading…" text.
A button was pressed aria-busy on the same button draws moving stripes inside it; labels drop the ellipsis (saving, joining).
The agent is on a long job AgentWorking: the hand-drawn eye (looking: discovery, reading your profile) or leaf (making: setting an intent up).
App start, before auth The eye on white, replacing the blue splash.
Live status The orange square (.live-sq) everywhere.

No blinking _ caret anywhere.

INDEXING toast

The intent toast is back, now labelled INDEXING with the orange square. It had no caller since the clarify/create rewrite (2fcd40d). It now fires after an intent is created from /i/new (not during onboarding) or from the personal agent's new-intent flow. Undo archives the intent and returns to /i/new.

Removed

  • EmptyState's loading tone (loading is always a Placeholder now)
  • Loader2 spinners, Tailwind animate-pulse / animate-ping / animate-spin
  • Unused CSS: radar-sweep, warmup-pulse, classify-throb, intent-think-dot, the typing cursors, index-splash, pl-blink, ih-blink, mac-stripes, mac-orbit, mac-blink
  • loading-eye.gif (1.5 MB), loading-leaf.mp4, and the unused loading-tree.m4v / loading.m4v. They're replaced by public/loading/eye.webp and leaf.webp (~170 KB each, 240 px for retina).

Where each one is used

  • Rows: conversations sidebar, intents list, networks (mine + discover), network intents, home questions and waiting-on-you, people found, negotiations, agents roster, API keys, devices, members, the invite-networks modal, the blog index
  • Card: opportunity cards in chat and the intent radar
  • Text: match write-ups still being written, intent titles, bios and person summaries, blog posts, MCP consent, the invite-message draft
  • Thread / Reply: person chats, personal and intent agent chats, agent-to-agent logs, shared chat; Reply is used when the agent is answering ("working on it", "thinking", "reading that")
  • Window: profile, handle page, network page, intent page, agent detail
  • Form: settings before auth, invite landing
  • Count: sidebar section counts, "in progress" while refreshing

Checks

  • vite build passes (pre-commit too)
  • tsc: no new errors (the 35 existing ones are identical before and after)
  • eslint: 0 errors on changed files
  • vitest: 29 pass. The 3 failures in NetworkWebInviteLanding.test.tsx also fail on origin/dev.
  • The one existing test of the removed loading tone (EmptyState.test.tsx) was deleted.

Added after review

  • Boot eye: bigger (96 to 220px), cropped to the drawing, on pure white, so no faint square shows behind it.
  • Home "in progress": one line per person (avatar, name, headline, status). The row opens the match beside Home.
  • Lists stop at 5, then "show N more" (useShowMore): Home's questions, waiting on you, and in progress; an intent's waiting on you, in progress, and closed; network requests; a network's intents; a profile's shared networks and opportunities.
  • Answers as chips: pick one is a pill with a round dot, pick several is a square chip with a box.
  • Fix: Home no longer lists people you already chat with as "waiting on you". It reuses the radar rule from de10851, which had missed IntentsDataContext.

🤖 Generated with Claude Code

…tons, hand-drawn agent sprites

Every data wait now draws the shape of what's coming instead of a
"loading…" line, spinner or gray pulse:

- Placeholder.{Rows,Card,Text,Thread,Reply,Window,Form,Count}: 1-bit
  dither with a stepped sweep, fades in after 250ms so fast loads don't
  flash, sweep off under reduced motion.
- Buttons: aria-busy draws moving stripes inside the same button; labels
  drop the ellipsis ("saving", "joining").
- AgentWorking: the hand-drawn eye (looking) and leaf (making), re-encoded
  from the 1.5 MB GIF / videos to ~170 KB WebPs. Used for discovery, the
  new-intent reading step, and setting an intent up.
- Boot: the eye on white replaces the blue splash.
- No blinking "_" caret anywhere.

The intent toast is back as INDEXING with the orange live square. It fires
after an intent is created from /i/new or the personal agent; undo archives
it. It had no caller since the clarify/create rewrite.

EmptyState loses its loading tone. Removes Loader2 spinners, Tailwind
animate-pulse/ping/spin, unused loading CSS (radar-sweep, warmup-pulse,
classify-throb, intent-think-dot, typing cursors, index-splash, pl-blink,
ih-blink, mac-stripes, mac-orbit) and the unused loading videos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to Index / loading-states-preview November 17, 2026 23:54 Inactive
Crop the eye sprite to the drawing and clip its off-white background so no
faint square shows behind it. Boot splash 96 -> 220px, discovery 160 -> 220px,
new-intent reading 110 -> 150px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
People in progress need nothing from you, so each is a single row: avatar,
name, headline cut to one line, status. The row opens the match beside Home.
The first 5 show, then "show N more".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to Index / loading-states-preview November 20, 2026 04:02 Inactive
One useShowMore hook folds a list to its first 5 with a "show N more" link.
Used for Home (questions, waiting on you, in progress), an intent's people
(waiting on you, in progress, closed), network requests, a network's intents,
and a profile's shared networks and opportunities. A question opened from a
/q/ link and an opened opportunity stay in view while folded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to Index / loading-states-preview November 20, 2026 04:32 Inactive
Question answers wrap in a row of chips instead of one radio per line, so a
question takes two rows of answers instead of five. Pick one is a pill with a
round dot; pick several is a square-cornered chip with a box. Used on Home's
and an intent's questions, the new intent questions, and onboarding picks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to Index / loading-states-preview November 20, 2026 04:45 Inactive
serefyarar and others added 2 commits November 19, 2026 23:52
…on you

The radar fix on dev (de10851) moved a pending match with an open chat out
of "awaiting you" on the intent page and profiles, but Home's sections come
from IntentsDataContext, which never passed the chat check. Pass it there, so
those people sit in progress as "chat", and drop the waiting card's "open
chat" branch that nothing reaches now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@railway-app
railway-app Bot temporarily deployed to Index / loading-states-preview November 20, 2026 04:53 Inactive
@serefyarar
serefyarar merged commit c79f410 into dev Nov 20, 2026
3 of 4 checks passed
@serefyarar
serefyarar deleted the feat/loading-states branch November 20, 2026 05:02

This branch was previously deployed

1 inactive deployment
Index / loading-states-preview — b0052d3d Deployed Nov 20, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant