Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions clients/gallery/contract/SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,88 @@ An image, for its variants (`v` the first of them):
`width` and `height` stay the original's: a thumbnail has the same shape, and the full-size view and its fit rule use
them. The card's link is the original.

## A single screenshot

One screen's image, for a page or a README, from the same manifest: `screenshot(manifest, options)` gives HTML and
`screenshotMarkdown(manifest, options)` gives Markdown (`screenshot_markdown` in Ruby, Python and Rust). It needs no
script or stylesheet. `screenshots/` holds its fixtures: `manifest.json`, then `cases/<name>.json` (options) with the
exact output beside it in `<name>.html` and `<name>.md`, and `errors/<name>.json` (options every renderer refuses with
that manifest) with `<name>.message`.

| Option | Default | Meaning |
| --- | --- | --- |
| `screen` | (required) | The screen's key, as the gallery's `screens` and `order` name it. |
| `group` | the first group that has the screen | The group's name. |
| `theme` | the screen's first | A value of the `theme` dimension. Left out, a reader whose setting is dark sees the dark shot. |
| `size` | the screen's first that has the theme | A value of the `size` dimension. |
| `alt` | the screen's title | The image's alt text. |
| `link` | `false` | `true` links the image to its full-size original. |
| `thumb` | `false` | `true` shows the manifest's small copy, where it has one. |
| `loading` | `"lazy"` | `"lazy"` or `"eager"`. |
| `dimensions`, `groups` | | The gallery's options of those names, so the screen's shots pair as they do in the gallery. |

An option set to `null` is the same as leaving it out.

### Validation

The manifest is checked as the gallery's (Validation, above), then the options must be an object (else
`screenshot options must be an object`), then `dimensions` (with the gallery's message,
`gallery option dimensions is invalid`), then, in
this order, each failing with `screenshot option <name> is invalid`: `screen` (a non-empty string, else
`screenshot option screen is required`), `group` a string, `theme` and `size` a key of a value of their dimension,
`alt` a string, `link` and `thumb` booleans, `loading` `"lazy"` or `"eager"`. Then:

- With `group`: the first manifest group of that name (else `the gallery manifest has no group <group>`), which must
have an item whose name's key (A shot's name) is the screen (else `gallery group <group> has no screen <screen>`).
Without it: the first group that has one (else `the gallery manifest has no screen <screen>`).
- The model (The model, above) of a manifest of that one group (its `name` and `title`) whose items are the group's
items with the screen's key, in order, with the options `dimensions` and `groups`. When every one of those items is
a 2x shot, they're followed by a copy of each: its name with the extension and the last `-2x` removed, its `url`,
its `thumb`, a `width` `W` of `floor((width + 1) / 2)` and a `height` of
`floor((2 * height * W + width) / (2 * width))`. Otherwise the screen is the gallery's, a 2x shot only a 2x copy (an invalid `groups` fails with the gallery's message too,
`gallery option groups is invalid`, as the screenshot passes it to the gallery). So a
screen that has only 2x shots shows them at half their size, and the gallery's errors (a missing combination, an
invalid `groups`) apply to this screen alone. The model's one screen is the screen.

### The image

- The choice `C`, for each dimension in order: the `theme` or `size` option when given; else the value of the
dimension in the screen's first variant whose values match `C`'s so far (else in its first variant). The variant
`v` is the one whose values are `C`'s; when there is none, the error is the gallery's
(`gallery screen billing in group Web has no dark desktop screenshot`), with `C`'s value keys in the dimensions'
order.
- The dark variant `d`: when `theme` isn't given and `C`'s theme isn't `dark`, the variant whose values are `C`'s with
the theme `dark`, when there is one and its `url` or `url2x` differs from `v`'s (a name with no theme stands for
both, with the same image).
- The thumbs are used when `thumb` is true, `v` has one, and `d`, when there is one, has one too (so light and dark
readers see the same size).
- A variant's image: with the thumbs used, the thumb's `url`, `width` and `height` and no 2x; else its
`url`, `width`, `height` and `url2x` (none when it's null or the same as `url`, a 2x shot shown at half its size).
`SRCSET` is the `url`, then, with a 2x, `, ` and the 2x's URL followed by ` 2x`.
- `ALT` is the `alt` option, else the screen's title (Screens, above: for one screen, its key's last part), with
each run of spaces, tabs, `\n` and `\r` as one space and a space at either end removed (a blank line would end a Markdown image, or the HTML block
a `<picture>` is in). `HREF`
is `v`'s `url` (the original, even with `thumb`).

HTML, escaped as the gallery's markup (`IMG` the `<img>` of `v`'s image, `A` and `/A` present only when `link` is
true):

```
IMG: <img src="{url}"[ srcset="{SRCSET}" with a 2x] width="{width}" height="{height}" alt="{ALT}" loading="{loading}" decoding="async">

without d: [<a href="{HREF}">]{IMG}[</a>]
with d: [<a href="{HREF}">]<picture>
<source media="(prefers-color-scheme: dark)" srcset="{d's SRCSET}" width="{d's width}" height="{d's height}">
{IMG}
</picture>[</a>]
```

each ending with `\n`. Markdown has no size, so its image shows at the file's own (a 2x shot at twice the HTML's).
Markdown: with `d`, the HTML (GitHub and most renderers show a `<picture>` as it is);
without, `![{ALT}]({url})`, or with `link` `[![{ALT}]({url})]({HREF})`, then `\n`, where in `ALT` every ASCII
punctuation character (`!` to `/`, `:` to `@`, `[` to `` ` ``, `{` to `~`) gets a `\` before it, and in a URL each
`\`, `(`, `)` and `&` does.

## Behaviour

`hydrate(el)` (the JS library) works from the markup alone:
Expand Down
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/alt-lines.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/billing-light.png" width="1280" height="800" alt="Billing, the plans" loading="lazy" decoding="async">
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/alt-lines.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "billing", "alt": " Billing,\r\n\r\n the plans "}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/alt-lines.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Billing\, the plans](https://app.visualci.com/g/acme/web/billing-light.png)
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/overview-light-1440.png" srcset="https://app.visualci.com/g/acme/web/overview-light-1440.png, https://app.visualci.com/g/acme/web/overview-light-1440-2x.png 2x" width="1440" height="900" alt="Overview" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/overview-light-1440.png" srcset="https://app.visualci.com/g/acme/web/overview-light-1440.png, https://app.visualci.com/g/acme/web/overview-light-1440-2x.png 2x" width="1440" height="900" alt="Overview" loading="lazy" decoding="async">
</picture>
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/dimension.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/intl-dark-en.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/intl-light-en.png" width="1440" height="900" alt="Intl" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/dimension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "intl", "dimensions": [{"key": "lang", "label": "Language", "values": [{"key": "en"}, {"key": "fr"}]}]}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/dimension.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/intl-dark-en.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/intl-light-en.png" width="1440" height="900" alt="Intl" loading="lazy" decoding="async">
</picture>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/dup-light.png" width="1280" height="800" alt="Dup" loading="lazy" decoding="async">
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "dup"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Dup](https://app.visualci.com/g/acme/web/dup-light.png)
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/escaping.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://example.com/shots/quote(1)&amp;x=&#39;y&#39;&quot;z&quot;&lt;w&gt;\v.png"><img src="https://example.com/shots/quote(1)&amp;x=&#39;y&#39;&quot;z&quot;&lt;w&gt;\v.png" width="800" height="600" alt="Quote [1] (beta) *new* &lt;b&gt;&quot;x&quot;&lt;/b&gt; &amp; `y`" loading="lazy" decoding="async"></a>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/escaping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "quote", "alt": "Quote [1]\n\n(beta)\t*new* <b>\"x\"</b> & `y`", "link": true}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/escaping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Quote \[1\] \(beta\) \*new\* \<b\>\"x\"\<\/b\> \& \`y\`](https://example.com/shots/quote\(1\)\&x='y'"z"<w>\\v.png)](https://example.com/shots/quote\(1\)\&x='y'"z"<w>\\v.png)
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/folder.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/ios-sessions-light.png" width="1179" height="2556" alt="Sessions" loading="eager" decoding="async">
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/folder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "ios/sessions", "theme": "light", "loading": "eager"}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/folder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Sessions](https://app.visualci.com/g/acme/web/ios-sessions-light.png)
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/group-size.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/ios-overview-dark.png" width="1179" height="2556">
<img src="https://app.visualci.com/g/acme/web/ios-overview-light.png" width="1179" height="2556" alt="Overview" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/group-size.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "group": "iPhone", "size": "desktop", "groups": {"iPhone": {"size": "desktop"}}}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/group-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/ios-overview-dark.png" width="1179" height="2556">
<img src="https://app.visualci.com/g/acme/web/ios-overview-light.png" width="1179" height="2556" alt="Overview" loading="lazy" decoding="async">
</picture>
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/group.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/ios-overview-dark.png" width="1179" height="2556">
<img src="https://app.visualci.com/g/acme/web/ios-overview-light.png" width="1179" height="2556" alt="The app on an iPhone" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "group": "iPhone", "alt": "The app on an iPhone"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/group.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/ios-overview-dark.png" width="1179" height="2556">
<img src="https://app.visualci.com/g/acme/web/ios-overview-light.png" width="1179" height="2556" alt="The app on an iPhone" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/light-only.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/billing-light.png" width="1280" height="800" alt="Billing" loading="lazy" decoding="async">
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/light-only.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "billing"}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/light-only.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Billing](https://app.visualci.com/g/acme/web/billing-light.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<a href="https://app.visualci.com/g/acme/web/overview-light-1440.png"><picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-1440.thumb.webp" width="640" height="400">
<img src="https://app.visualci.com/g/acme/web/overview-light-1440.thumb.webp" width="640" height="400" alt="Overview" loading="eager" decoding="async">
</picture></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "link": true, "thumb": true, "loading": "eager"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/link-thumb-dark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<a href="https://app.visualci.com/g/acme/web/overview-light-1440.png"><picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-1440.thumb.webp" width="640" height="400">
<img src="https://app.visualci.com/g/acme/web/overview-light-1440.thumb.webp" width="640" height="400" alt="Overview" loading="eager" decoding="async">
</picture></a>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/link-thumb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://app.visualci.com/g/acme/web/overview-light-1440.png"><img src="https://app.visualci.com/g/acme/web/overview-light-1440.thumb.webp" width="640" height="400" alt="Overview" loading="lazy" decoding="async"></a>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/link-thumb.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "theme": "light", "link": true, "thumb": true}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/link-thumb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Overview](https://app.visualci.com/g/acme/web/overview-light-1440.thumb.webp)](https://app.visualci.com/g/acme/web/overview-light-1440.png)
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/mixed-thumb.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/mixed-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/mixed-light-1440.png" width="1440" height="900" alt="Mixed" loading="lazy" decoding="async">
</picture>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "mixed", "thumb": true}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/mixed-thumb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/mixed-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/mixed-light-1440.png" width="1440" height="900" alt="Mixed" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/no-theme.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/plain/1440.png" width="1440" height="900" alt="Plain" loading="lazy" decoding="async">
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/no-theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "plain"}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/no-theme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Plain](https://app.visualci.com/g/acme/web/plain/1440.png)
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/odd-2x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://app.visualci.com/g/acme/web/odd-light-2x.png"><img src="https://app.visualci.com/g/acme/web/odd-light-2x.png" width="641" height="401" alt="Odd" loading="lazy" decoding="async"></a>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/odd-2x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "odd", "link": true}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/odd-2x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Odd](https://app.visualci.com/g/acme/web/odd-light-2x.png)](https://app.visualci.com/g/acme/web/odd-light-2x.png)
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/only-2x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/retina-dark-2x.png" width="1280" height="801">
<img src="https://app.visualci.com/g/acme/web/retina-light-2x.png" width="1280" height="801" alt="Retina" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/only-2x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "retina"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/only-2x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/retina-dark-2x.png" width="1280" height="801">
<img src="https://app.visualci.com/g/acme/web/retina-light-2x.png" width="1280" height="801" alt="Retina" loading="lazy" decoding="async">
</picture>
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/phone.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-390.png" width="390" height="844">
<img src="https://app.visualci.com/g/acme/web/overview-light-390.png" width="390" height="844" alt="Overview" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/phone.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "size": "phone"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/phone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/overview-dark-390.png" width="390" height="844">
<img src="https://app.visualci.com/g/acme/web/overview-light-390.png" width="390" height="844" alt="Overview" loading="lazy" decoding="async">
</picture>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://app.visualci.com/g/acme/web/small-light-2x.png"><img src="https://app.visualci.com/g/acme/web/small-light-2x.thumb.webp" width="640" height="400" alt="Small" loading="lazy" decoding="async"></a>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "small", "thumb": true, "link": true}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/small-thumb.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Small](https://app.visualci.com/g/acme/web/small-light-2x.thumb.webp)](https://app.visualci.com/g/acme/web/small-light-2x.png)
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/stray-2x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/stray-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/stray-light-1440.png" width="1440" height="900" alt="Stray" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/stray-2x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "stray"}
4 changes: 4 additions & 0 deletions clients/gallery/contract/screenshots/cases/stray-2x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://app.visualci.com/g/acme/web/stray-dark-1440.png" width="1440" height="900">
<img src="https://app.visualci.com/g/acme/web/stray-light-1440.png" width="1440" height="900" alt="Stray" loading="lazy" decoding="async">
</picture>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/theme-dark.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<img src="https://app.visualci.com/g/acme/web/overview-dark-1440.png" width="1440" height="900" alt="Overview" loading="lazy" decoding="async">
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/theme-dark.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "theme": "dark"}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/theme-dark.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
![Overview](https://app.visualci.com/g/acme/web/overview-dark-1440.png)
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/wide-2x.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<a href="https://app.visualci.com/g/acme/web/wide-light-390-2x.png"><img src="https://app.visualci.com/g/acme/web/wide-light-390-2x.png" width="390" height="844" alt="Wide" loading="lazy" decoding="async"></a>
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/wide-2x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "wide", "link": true}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/cases/wide-2x.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[![Wide](https://app.visualci.com/g/acme/web/wide-light-390-2x.png)](https://app.visualci.com/g/acme/web/wide-light-390-2x.png)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "alt": 7}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option alt is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "dimensions": {"key": "lang"}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery option dimensions is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "dup", "group": "Web"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery group Web has no screen dup
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "group": 3}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option group is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "billing", "group": "iPhone"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery group iPhone has no screen billing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "groups": {"Web": {"fit": "fill"}}}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery option groups is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "link": "https://acme.example/"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option link is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "loading": "auto"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option loading is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "billing", "size": "phone"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery screen billing in group Web has no light phone screenshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "billing", "theme": "dark"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery screen billing in group Web has no dark desktop screenshot
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/errors/no-group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "group": "Android"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
the gallery manifest has no group Android
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/errors/no-screen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "pricing"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
the gallery manifest has no screen pricing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot options must be an object
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
null
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot options must be an object
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/errors/order.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "loading": "auto", "theme": "sepia"}
1 change: 1 addition & 0 deletions clients/gallery/contract/screenshots/errors/order.message
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option theme is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"theme": "dark"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option screen is required
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": ""}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option screen is required
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "size": "tablet"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option size is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "group": "iPhone", "size": "desktop"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gallery screen overview in group iPhone has no light desktop screenshot
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "theme": "sepia"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option theme is invalid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"screen": "overview", "thumb": "yes"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
screenshot option thumb is invalid
Loading
Loading