Repository navigation
Retake the dashboard screenshots with light and dark versions - #37
Merged
Merged
Conversation
The five dashboard screenshots on the landing page, solution pages and guides are replaced with ones of the current dashboard (Primer 22), each with a dark version. A screenshot follows the reader's system color mode, and a Light / Dark switch above it lets them pick; the choice applies to every screenshot and is remembered. The locking guide now describes the Environment locks menu. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TE7JNLZLd4WFUvgYyHLM3Q
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Koen · project thread
Before: the landing page, the auto-deploy solution page and guides 3, 6, 7, 8 and 10 showed dashboard screenshots from 2019, light only.
After: they show the current dashboard (Primer 22), in light or dark to match the reader's system color mode. A small Light / Dark switch above each screenshot lets the reader pick; the choice applies to every screenshot on the site and is remembered in the browser.
Why
The dashboard was restyled and gained dark mode, so the old screenshots no longer matched what people see after signing in. Showing the dark version on a dark site also looks less jarring.
How
deploy-list,deploy-show,deploy-locked,promote-buttonanddeploy-analyticswith new light versions and added*-dark.pngnext to each. They were taken from a local dashboard with demo data for a made-up repository, at the same 1600 × 1000 size as before.dark_image; screenshots render as<picture class="screenshot">with a dark<source>forprefers-color-scheme: dark, so they work without JavaScript.assets/screenshots.jsadds the switch and overrides the dark source's media query when the reader picks a theme.Not changed:
pr-deploy.png,promoted-check.pnganddeploy-slack.pngshow GitHub or Slack, not the dashboard.Checked with
make build && make test, and in Chromium in both color modes: the switch swaps the images, and the choice carries over between pages.Generated by Claude Code