Skip to content

Explain why a link has no preview #689

Open

Description

@HMarzban

Summary

A web link with no preview showed only its host, the same as the click preview. The hovercard now explains why there is no preview, and it warns when a link's text names a different site from the one it opens.

  • Area: apps/webapp/src/components/TipTap/hyperlinkPopovers/ (NoPreviewCard.tsx, noPreviewView.ts, linkTextMismatch.ts) and the link-metadata server
  • Source: maintainer request, boards A, B and C, approved 2026-11-04

Details

  • The server adds miss to a fallback card: blocked (4xx), no-preview (no title) or unreachable (5xx, timeout, error, rate limit).
  • The no-preview card shows the full address, the reason, and a file kind, such as PDF, when the link opens a file.
  • A web card shows a warning line when the link's whole text is an address on another site.
  • Card text from a page drops control and bidi characters.

Built in 85220085b, f07a90ef0 and 1f9d4aaf3 on local main, not pushed yet.

Done when

  • Pushed and deployed.
  • The demo pad shows the no-preview and warning cases (see docs/DEMO.md).

Related

#242, #683

Activity

  1. added this to the v2.3.0 milestone on Nov 4, 2026
  2. added
    enhancement
    Editor
    on Nov 4, 2026
  3. HMarzban commented on Nov 4, 2026

    @HMarzban
    CollaboratorAuthor

    Status, 2026-11-04. The earlier "not pushed yet" note is out of date. The work is on main in 4e1aca058, and deploy run 41854096960 shipped it.

    Left:

  4. modified the milestones: v2.3.0, v2.4.0 on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EditorFeatureUIenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions