Skip to content

feat: daily workflow to generate conceptual SVG screenshots and audit broken image links#240

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-daily-agentic-workflow
Jul 12, 2026
Merged

feat: daily workflow to generate conceptual SVG screenshots and audit broken image links#240
pelikhan merged 2 commits into
mainfrom
copilot/add-daily-agentic-workflow

Conversation

Copilot AI commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

11 workshop PNG screenshots are referenced in workshop/*.md but don't exist, rendering as broken images for learners. No automation existed to detect or fix this class of gap.

New workflow: workshop-ui-screenshots

Trigger: schedule: daily + workflow_dispatch

What it does:

  • Pre-step (bash): scans all workshop/*.md for ![alt](images/...) references; outputs a JSON manifest of {file, line, alt, path, resolved, exists} records alongside the actual files in workshop/images/
  • Phase 1–2: partitions refs into exists=true vs broken; noops immediately if no broken refs
  • Phase 3: classifies each broken ref as generatable (recognizable GitHub UI element) or not-generatable (real screenshot required); generates conceptual SVGs for the former using GitHub's light-theme design language (nav tab bar, #f6f8fa bg, #0969da active tab, modal panels, dark log panels) and patches the markdown lines from .png.svg in-place
  • Phase 4: files broken-image-labeled issues (deduplicated by title) for anything needing a real screenshot
  • Phase 5: opens a draft PR restricted to workshop/images/*.svg + workshop/*.md

Safe outputs: create-pull-request (allowed-files scoped), create-issue (max 20, dedup by title), noop

Copilot AI and others added 2 commits July 11, 2026 23:35
Adds a daily workflow that scans workshop markdown files for image
references, generates conceptual SVG illustrations for missing GitHub UI
screenshots, and reports remaining broken image links as issues.

- Generates SVGs for missing images (Actions tab, Run workflow button,
  Codespace, fork dialog, schedule badge, skipped step, etc.)
- Updates markdown references from .png to .svg for generated files
- Reports non-generatable broken links as labeled GitHub issues
- Creates a draft PR with all new SVG files + updated markdown refs

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Fix greedy sed regex for image path extraction (use [^)]* not .*)
- Replace Unicode multiplication sign × with ASCII x in canvas dimensions
- Replace hourglass emoji with text description for portability

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title feat: add workshop-ui-screenshots daily agentic workflow feat: daily workflow to generate conceptual SVG screenshots and audit broken image links Jul 11, 2026
Copilot AI requested a review from pelikhan July 11, 2026 23:37
@pelikhan pelikhan marked this pull request as ready for review July 12, 2026 06:57
@pelikhan pelikhan merged commit fe032cc into main Jul 12, 2026
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.

2 participants