Skip to content

feat(manage-files): add OG screenshots tab#1043

Open
Innei wants to merge 1 commit into
masterfrom
feat/og-screenshots-tab
Open

feat(manage-files): add OG screenshots tab#1043
Innei wants to merge 1 commit into
masterfrom
feat/og-screenshots-tab

Conversation

@Innei
Copy link
Copy Markdown
Member

@Innei Innei commented May 14, 2026

Summary

  • Surface enrichment-captured page screenshots inside the file management page so admins can review what the headless browser pulled for each link card, without leaving the file workflow.
  • Grid view with thumbnail, title/URL, dimensions, bytes; hover actions: copy screenshot URL, open source page, recapture (popconfirm), delete (popconfirm).
  • 24 / page, sorted by `last_accessed desc`; reuses `enrichmentApi.screenshots` and `queryKeys.enrichment.screenshots` so cache invalidates consistently with the existing master-detail screenshots view at `/enrichment?source=screenshots`.
  • Upload header button is suppressed on this tab — screenshots are pipeline-produced, not user-uploaded.

Pairs with mx-space/core#2724 (Open Graph browser-mode hardening).

Test plan

  • `npx tsc --noEmit` — clean
  • `npx biome check` on changed files — clean
  • Visual smoke: open Files page → switch to "OG 截图" tab → grid renders, pagination works, recapture / delete fire correctly

Surfaces the enrichment-captured page screenshots inside the file management
page so admins can review what the headless browser captured for each link
card, without leaving the file workflow.

- Grid view with thumbnail, title/URL, dimensions, and bytes.
- Hover actions: copy screenshot URL, open source page, recapture
  (popconfirm), delete (popconfirm).
- 24 / page, sorted by last_accessed desc; reuses enrichmentApi.screenshots
  and queryKeys.enrichment.screenshots so cache invalidates consistently
  with the existing master-detail screenshots view.
- Upload header button is suppressed on this tab — screenshots are
  pipeline-produced, not user-uploaded.
@safedep
Copy link
Copy Markdown

safedep Bot commented May 14, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

View complete scan results →

This report is generated by SafeDep Github App

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant