Skip to content

fix(screenshots): render light and dark in collapsible per-page sections#448

Merged
vitorvasc merged 4 commits into
open-telemetry:mainfrom
vitorvasc:fix/screenshots-workflow-dual-theme
May 11, 2026
Merged

fix(screenshots): render light and dark in collapsible per-page sections#448
vitorvasc merged 4 commits into
open-telemetry:mainfrom
vitorvasc:fix/screenshots-workflow-dual-theme

Conversation

@vitorvasc
Copy link
Copy Markdown
Member

  • Update screenshots comment builder to include images for light and dark themes. Image URLs now point at {viewport}-{theme}-{slug}.png.
  • Move images to be renderd inside a <details> block per page.
  • screenshots-cleanup.yml is gated by if: false. Closed and merged PRs keep their screenshot folder on otelbot/screenshots, so image links in older PR comments stay alive. Flip the gate to re-enable deletion if needed.

Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
@vitorvasc vitorvasc requested review from a team as code owners May 11, 2026 13:34
@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for otel-ecosystem-explorer ready!

Name Link
🔨 Latest commit f7afdd1
🔍 Latest deploy log https://app.netlify.com/projects/otel-ecosystem-explorer/deploys/6a01e8b02c929e074040e373
😎 Deploy Preview https://deploy-preview-448--otel-ecosystem-explorer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vitorvasc vitorvasc enabled auto-merge (squash) May 11, 2026 13:34
@vitorvasc vitorvasc requested a review from Copilot May 11, 2026 13:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the PR screenshots comment formatting produced by GitHub Actions, aiming to show light/dark variants and to group screenshots into collapsible per-page sections.

Changes:

  • Changes the comment image URL pattern to {viewport}-{theme}-{slug}.png and renders Light/Dark tables per page inside <details> sections.
  • Disables the screenshots cleanup workflow job via if: false to preserve older PR screenshot links.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/screenshots-commit.yml Adjusts PR comment body generation to use per-page <details> sections and separate Light/Dark screenshot tables with theme-specific filenames.
.github/workflows/screenshots-cleanup.yml Disables the cleanup job to avoid deleting PR screenshot folders on the otelbot/screenshots branch.

Comment thread .github/workflows/screenshots-commit.yml
Comment thread .github/workflows/screenshots-commit.yml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/screenshots-commit.yml
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/screenshots-commit.yml
Comment thread .github/workflows/screenshots-cleanup.yml
Signed-off-by: Vitor Vasconcellos <vvasconcellos1@gmail.com>
@vitorvasc vitorvasc force-pushed the fix/screenshots-workflow-dual-theme branch from c1fa9b4 to f7afdd1 Compare May 11, 2026 14:21
@vitorvasc vitorvasc merged commit ff89284 into open-telemetry:main May 11, 2026
18 of 19 checks passed
@vitorvasc vitorvasc deleted the fix/screenshots-workflow-dual-theme branch May 11, 2026 14:46
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.

3 participants