From 2f7d3854785eabbcdefdca91060399dd60017db9 Mon Sep 17 00:00:00 2001 From: Jon Froehlich Date: Mon, 22 Jun 2026 12:34:08 -0700 Subject: [PATCH] feat(publications): poster/talk preview popover with download actions (#840) Hovering or clicking a publication's "Poster"/"Talk" link now opens a Cite-style card showing the artifact thumbnail plus download actions (PDF, the raw file e.g. PPTX, and the editable Source link), each with file size. The card opens on hover (mouse) and on click/Enter/tap, moves focus in and traps Tab while open, and closes on Escape/outside-click, so it works for mouse, keyboard, and touch alike. It degrades to the plain direct-to-PDF link when the artifact has no thumbnail. Also adds safe pdf_file_size/raw_file_size properties on Artifact: the size is read from storage at render time, which raises FileNotFoundError when a file is missing on disk. The card renders that size for every entry on a listing, so a single missing file used to 500 the whole /publications/ page; it now degrades to "no size shown" instead. - snippets/artifact_preview_link.html: reusable trigger + inert