Preview
The 📏 Preview results feature renders a human-readable view of the issue list: each issue's markdown-formatted title and notes alongside its screenshot or video thumbnail from Google Drive. The same screen data drives both the narrow sidebar view and the large popup view. A polling endpoint lets the preview follow the user's cursor in the Results sheet.
Preview.js
| Function |
Description |
Facing |
runMenuPreviewReport() |
Menu entry point (Preview results → 📌 Sidebar view). Builds screen data with sidebar = true and opens the preview_results sidebar. |
User-facing (menu) |
getScreenDataForPreviewResults(sidebar = true) |
Reads issues (with hidden rows marked) and scenarios, computes issues_for_preview_results and scenarios_no_ad_hoc, and returns the payload the preview screen renders. Also re-called by the screen to refresh. |
User-facing (sidebar) |
pollActiveRowIssueId() |
Lightweight polling endpoint returning {active_row_issue_id} for the currently selected Results row, so the preview can scroll to and highlight the matching issue. |
User-facing (sidebar poll) |
Preview_helper_functions.js
| Function |
Description |
Facing |
previewOpenLargeView() |
Menu entry point (Preview results → 🖥️ Large view). Builds screen data with sidebar = false and opens the preview in a full-size modal titled "Preview Results". |
User-facing (menu) |
getGoogleDriveFilePreviewURL_(id, width) |
Builds a Google Drive thumbnail URL for the given file id and pixel width. Used by computeIssuesForPreviewResults_ at 300px and 1600px. |
Internal |