githubnext/chopinPublic

Let's compose rich plans together

Replace the native link prompt with an inline link popover

Adding or editing a link used window.prompt and window.alert. A link
editor now opens under the selection with the current URL prefilled,
inline validation, and Remove/Save actions. A caret on a link (or a
click, for readers) shows a small preview with Open and Edit. Bare
domains and addresses gain https:// or mailto:.

Escape with the selection toolbar showing now collapses the selection
and keeps focus in the editor instead of leaving the toolbar orphaned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C5MAMaggie Appleton and Claude Opus 5.5 authored
efb2a81Patch
Parentedfe0bb
10 files changed+823-91
StackedSplit
e2e/research-child-surface.e2e.ts+5 −2
e2e/toolbar.e2e.ts+93 −12
packages/editor/src/styles.css+5 −0
packages/editor/src/toolbar/bubble.tsx+32 −21
packages/editor/src/toolbar/index.tsx+6 −1
packages/editor/src/toolbar/link.test.ts+76 −0
packages/editor/src/toolbar/link.tsx+490 −0
packages/editor/src/toolbar/url.test.ts+54 −0
packages/editor/src/toolbar/url.ts+62 −13
packages/editor/src/widgets-plugin.tsx+0 −42