Skip to content

Clean-room rewrite of the six ex-React Bits components, IDFPR credit, own favicon, no Cal.com screenshots - #157

Merged
itennell merged 1 commit into
claude/agpl-licensefrom
claude/clean-room-ui
Nov 4, 2026
Merged

itennell merged 1 commit into
claude/agpl-licensefrom
claude/clean-room-ui

Conversation

@itennell

@itennell itennell commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #156 (AGPL license). Do not merge before it.

What and why

Six components had been adapted from React Bits, whose license is MIT plus the Commons Clause ("no redistribution ... as a ported version"). That clause conflicts with the AGPL and with a public repo. This PR rewrites all six from scratch as original Practice-OS code, clean room: the old file bodies and the React Bits source were not opened. The rewrite used only each file's exported names and props, the call sites, the unit tests and e2e specs, AGENTS.md and docs/ui-elements.md. Same exported names and props, so no call site changed.

File New implementation
components/agent-blob/blob-canvas.tsx Raw WebGL2, own fragment shader: 2D signed-distance blob (breathing circle, travelling edge waves, smooth-union droplets), dome normal, studio reflection tinted with the agent's stops (chrome / liquid / jelly), eyes that blink, squint through a splash and scan while working. Own spring for the splash. Pauses off screen or in a hidden tab, settles a pending splash when nothing is drawing, frees the context after unmount, shows the still orb until the first frame. No dark horizon line across the face (it read as a mouth).
components/shared/prompt-bar.tsx Form with one focus ring, autosizing textarea (one row when empty), Enter sends / Shift+Enter newline, Send becomes Stop while busy, words put back if onSend rejects, dictation through the Voice Pill into the box (never sent), controls slot, box and pill shapes.
components/shared/voice-pill.tsx Mic toggle, recording pill with a live level trace and timer, Cancel and Escape discard, stops and hands over at MAX_DICTATION_MS (3 min), releases the mic and hands nothing over if unmounted mid-recording (including while the browser is still asking). Still trace under reduced motion.
components/shared/spring-check.tsx role="checkbox" button, motion spring driven through the existing springReadings() (fill, swell, tick, cross-out). Jumps under reduced motion.
components/shared/status-mark.tsx Distinct shape per status (dotted ring, turning arc or filling ring, ticked / crossed / dashed disc), draws in on change, holds still under reduced motion. StatusPill on the status tokens.
components/shared/thought-line.tsx Breathing orb + glinting label while working, timer, settle label, foldable task list with Status Marks, polite status region. Uses the existing thought-line-steps and thought-line-time helpers.

Every "React Bits" / "(MIT)" attribution comment in those files is gone. Old React Bits-era CSS (pill-open, thought-shimmer) replaced with own utilities.

Also

  • IDFPR credit: the referral sources line now says "Illinois Department of Financial and Professional Regulation (IDFPR), via data.illinois.gov, ODbL 1.0".
  • app/favicon.ico (Next.js "N") replaced with Aeon's orb drawn in code (scripts/make-icon.ts, sharp); new app/icon.png (512px), excluded from the demo-password proxy like the favicon.
  • Removed the 22 Cal.com screenshots in docs/research/calcom-ui-study/; the written notes stay, with the image note updated.
  • THIRD_PARTY_NOTICES.md: open issues 1, 3, 5 and 6 marked resolved; the six files moved out of "adapted code" (rewritten 2026-11-04); IDFPR, favicon and Cal.com rows updated; React Bits license text entry dropped. liquid-ether.tsx stays [UNCONFIRMED].
  • docs/ui-elements.md: UI-010/011/013/014/015/017 marked as own code (rewritten 2026-11-04).
  • e2e baselines refreshed for prompt-bar, spring-check-still and status-mark-still (new look).

Checks

  • Unit: npm test on the built-in DB (DATABASE_URL unset, SUPABASE_PROJECT_REF=local): 4540 passed, 1 failed (tests/referrals-debrief.test.ts "drops" case under full-suite load; the file passes 18/18 alone; lib only, not touched here).
  • eslint clean, tsc --noEmit clean (after next typegen), next build OK.
  • e2e on a prod build, built-in DB: ui-lab aeon / prompt-bar / spring-check / status / thought-line (56/56, both projects), chat, referrals-debrief, website-chat, credentialing-edit, insurance, calm-shell, approvals (88 passed, 44 skipped by the specs themselves; reason not checked), onboarding 10/10 (needs DATABASE_URL pointed at the built-in DB for its truncate helper).
  • Looked at: Home chat, onboarding (live blob), Referrals Ask Aeon bar at 1440 and 390, light and dark; /ui-lab/aeon resting, working and splash.

Not changed (flag for Isaiah): AGENTS.md still says "React Bits only for the pieces listed there"; components/shared/liquid-ether.tsx still credits the React Bits idea and has not been compared.

🤖 Generated with Claude Code

… own favicon, drop Cal.com screenshots

React Bits is MIT + Commons Clause, which conflicts with the AGPL. Rewrote
blob-canvas, prompt-bar, spring-check, status-mark, thought-line and
voice-pill from scratch (same exports and props, no call-site changes),
without opening the old bodies or the React Bits source.

- Sources line credits "Illinois Department of Financial and Professional
  Regulation (IDFPR), via data.illinois.gov, ODbL 1.0"
- favicon.ico and new icon.png are Aeon's orb drawn by scripts/make-icon.ts
- Removed docs/research/calcom-ui-study/ images; notes kept
- THIRD_PARTY_NOTICES, ui-elements, BUILD_LOG updated; e2e baselines refreshed

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@itennell
itennell merged commit 63b7c34 into claude/agpl-license Nov 4, 2026
4 checks passed
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