Link pills: tap opens a popover (name, link, Embed toggle); pill expands into an embed #255

Open
opened 2026-10-14 11:49:07 +00:00 by kayg · 1 comment
Owner

kayg, 2026-10-14, after seeing the link chips (#162):

The pill is not edited inline. A link pill (note, attachment or web) behaves as one piece. The caret goes before or after it, never inside.

Tapping it opens a popover with a bubble tail pointing at the pill. It has two fields:

  1. Name: the text shown in the pill, editable.
  2. Link: where it points: a note, an attachment or a web address. Change it with the search picker (#165), so a linked note can become a linked picture, and so on.

An "Embed" checkbox turns the link into an embed. On closing the popover, the pill expands into the embed card (#172) in place, with the reverse when it's unticked. The markdown flips between [name](<target>) and ![name](<target>).

Motion: every micro-interaction moves subtly, springy and in place:

  • the popover grows from the pill;
  • the fields settle;
  • the pill-to-embed expansion morphs the pill's box into the card;
  • closing shrinks back into the pill.
    Keyboard actions don't animate (TASTE).

Keyboard:

  • with the caret next to a pill, an arrow key selects it, then Enter opens the popover;
  • Esc closes without saving;
  • Tab moves between the fields;
  • ⌘-click or ⌘Enter follows the link instead.

Source mode keeps the raw markdown, fully editable.

Process: mockup first on preview, then the real editor. This supersedes #162's "caret moves through the pill letter by letter".

kayg, 2026-10-14, after seeing the link chips (#162): **The pill is not edited inline.** A link pill (note, attachment or web) behaves as one piece. The caret goes before or after it, never inside. **Tapping it opens a popover** with a bubble tail pointing at the pill. It has two fields: 1. **Name:** the text shown in the pill, editable. 2. **Link:** where it points: a note, an attachment or a web address. Change it with the search picker (#165), so a linked note can become a linked picture, and so on. **An "Embed" checkbox** turns the link into an embed. On closing the popover, the pill **expands into the embed card** (#172) in place, with the reverse when it's unticked. The markdown flips between `[name](<target>)` and `![name](<target>)`. **Motion:** every micro-interaction moves subtly, springy and in place: - the popover grows from the pill; - the fields settle; - the pill-to-embed expansion morphs the pill's box into the card; - closing shrinks back into the pill. Keyboard actions don't animate (TASTE). **Keyboard:** - with the caret next to a pill, an arrow key selects it, then Enter opens the popover; - Esc closes without saving; - Tab moves between the fields; - ⌘-click or ⌘Enter follows the link instead. **Source mode** keeps the raw markdown, fully editable. **Process:** mockup first on preview, then the real editor. This supersedes #162's "caret moves through the pill letter by letter".
Author
Owner

Decided (kayg, G9, 2026-10-14): this replaces the earlier "tap opens the popover".

  • Click or tap a link pill: it opens the link. Following a link is the common case.
  • ⌘-click on desktop, or a long press on a phone: opens the edit popover with its bubble tail.
  • Field names: Name and Link; never "target". The checkbox is "Show in place", never "embed".
  • The popover is shared with link previews (new issue): one bubble-tail component. It places itself where there's room: above, below or to the side, flipping to stay inside the visible screen, keyboard included.
**Decided (kayg, G9, 2026-10-14):** this replaces the earlier "tap opens the popover". - **Click or tap a link pill: it opens the link.** Following a link is the common case. - **⌘-click on desktop, or a long press on a phone: opens the edit popover** with its bubble tail. - **Field names:** **Name** and **Link**; never "target". The checkbox is **"Show in place"**, never "embed". - **The popover is shared** with link previews (new issue): one bubble-tail component. It **places itself where there's room**: above, below or to the side, flipping to stay inside the visible screen, keyboard included.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#255
No description provided.