You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by po...@apache.org on 2026/09/17 13:37:22 UTC
(magpie-site) 15/16: docs(preview): stop describing two behaviours that were not built
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/magpie-site.git
commit 33a503e2b7bcbfaec09ad0839320fd39dc96e685
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Thu Sep 17 15:22:57 2026 +0200
docs(preview): stop describing two behaviours that were not built
The failure table promised the blocked-popup toast would carry "the PR link as
a plain anchor to click". say() sets textContent, so it is unclickable text;
the table now says what actually happens.
The testing and vendoring sections both claimed the CI check asserts a
production build contains "neither a preview-only asset nor any
data-magpie-src". It greps for the attribute only. There is no preview-asset
assertion, and there is nothing to assert: those files are written by the
publisher into a preview branch and never enter a production build.
Found by the re-review of the final fix wave. These two are the last of the
design's claims that outran the code.
Generated-by: Claude Opus 5
---
docs/designs/2026-09-17-preview-review-overlay-design.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/designs/2026-09-17-preview-review-overlay-design.md b/docs/designs/2026-09-17-preview-review-overlay-design.md
index b37940c..a08af7f 100644
--- a/docs/designs/2026-09-17-preview-review-overlay-design.md
+++ b/docs/designs/2026-09-17-preview-review-overlay-design.md
@@ -139,7 +139,7 @@ supplies this.
|---|---|
| Clipboard write refused (Safari/Firefox permissions) | The PNG downloads instead, and the toast says to drag the file into the comment box |
| `html2canvas` throws | Toast names the failure; the overlay stays open so the region is not lost |
-| Popup blocked when opening the PR | Toast carries the PR link as a plain anchor to click |
+| Popup blocked when opening the PR | Toast shows the pull request's URL as text, for fifteen seconds, to copy by hand |
| `window.__MAGPIE_PREVIEW__` missing | The button never appears — this is not a preview |
| No annotated ancestor above the marked region | Conversation tab instead of a diff line; the caption says the source was not resolved |
| Source line is outside the diff | Conversation tab; the caption still names the `file:line` |
@@ -184,9 +184,11 @@ are verified by hand against a real preview: mark a region, confirm the PNG
lands on the clipboard, paste it into a comment, confirm the caption is legible
and the dimming shows the right area.
-A build check asserts that a production build contains neither a preview-only
-asset nor any `data-magpie-src` attribute — the one regression that would leak
-preview-only markup to `magpie.apache.org`.
+A build check asserts that a production build contains no `data-magpie-src`
+attribute — the one regression that would leak preview-only markup to
+`magpie.apache.org`. The preview's own assets are written by the publisher into
+a preview branch and never enter a production build, so there is nothing to
+assert about them there.
## Open questions