Repository navigation
Tell agents to ship screenshots with a new app - #512
Draft
jonathanlaib wants to merge 2 commits into
Draft
jonathanlaib wants to merge 2 commits into
jonathanlaib wants to merge 2 commits into
Conversation
jonathanlaib
added a commit
that referenced
this pull request
Nov 30, 2026
## Problem Every app has a page with an icon, a description and a longer text (#350). Agents that build and deploy an app leave it empty: the `widefleet` skill, the starter `AGENTS.md` files and the docs never mention `widefleet catalog describe` or `catalog about`. Colleagues then see an app with no explanation of what it is for. ## Changes - **Applications guide:** a section *Show what the app is for*: where each part of the page comes from, `widefleet catalog describe` and `catalog about`, and how to check the result with `widefleet catalog show`. - **Skill and starter `AGENTS.md`:** a new web app is finished only when its page says what it is for. The agent sets the description with `deployment.appId` from `deploy --json` and checks that `catalog show` lists a `description`. No CLI or server change: the commands are released. Screenshots follow in #512, stacked on this PR. ## Verification - Commands, limits (200 / 2,000 characters) and the `deploy --json` and `catalog show` fields checked against `catalog.rs`, `deploy.rs` and `packages/contracts`. - `catalog show` answers for unpublished apps their managers can see (`listing` in `apps.ts`). - `oxfmt --check` passes on the changed files; `blume validate` finds no broken links. - Not yet checked: an agent run with the new skill against a real deployment.
An app's page shows up to three screenshots from its static assets, but agents are not told where they go or how to take them. - Applications guide: screenshot paths in each starter, accepted types and size, and how catalog show reports them. - Skill and starter AGENTS.md: take a screenshot of the local app with demo data before the first deploy, and treat the app as finished only when catalog show lists at least one screenshot.
jonathanlaib
force-pushed
the
docs/app-screenshots-for-agents
branch
from
November 30, 2026 11:46
2a98fc1 to
5169147
Compare
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 35eb69c | Nov 30 2026, 12:28 PM |
jonathanlaib
marked this pull request as draft
November 30, 2026 12:26
jonathanlaib
marked this pull request as ready for review
November 30, 2026 12:27
jonathanlaib
marked this pull request as draft
November 30, 2026 12:28
jonathanlaib
added a commit
that referenced
this pull request
Nov 30, 2026
## Problem An app's page shows at most three screenshots, which is too few to show an app on desktop, on a phone and in dark mode. The row of screenshots scrolls with a visible horizontal scrollbar, and clicking a screenshot opens the raw image in a new tab, so the reader leaves the app's page. ## Changes - **Up to ten screenshots:** `/screenshots/1` to `/screenshots/10` among an app's static assets. The contract, the page listing, the API route, its OpenAPI description and the hint for app managers follow the new limit. - **Paging instead of a scrollbar:** the scrollbar is hidden; round arrow buttons appear on the side where more screenshots lie and page by most of the visible width. Touch and trackpad scrolling keep working. - **Lightbox:** clicking a screenshot opens it large in a dialog on the same page, with a counter. Arrow keys, the arrow buttons or a swipe move between screenshots; Escape, the close button or a click beside the picture closes it. The gallery lives in a new `ScreenshotGallery` component; `AppAbout` passes it the image URLs. Public documentation of the screenshot convention is in #512, which will name the new limit. ## Screenshots Desktop, light, before and after: the scrollbar gives way to an arrow on the side with more screenshots. <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/before-1280-light.png" width="640"> <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/after-1280-light.png" width="640"> Desktop, dark, before and after: <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/before-1280-dark.png" width="640"> <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/after-1280-dark.png" width="640"> Phone, before and after: <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/before-390-light.png" width="260"> <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/after-390-light.png" width="260"> The lightbox on a desktop in light and dark, and on a phone: <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/lightbox-1280-light.png" width="640"> <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/lightbox-1280-dark.png" width="640"> <img src="https://gist.githubusercontent.com/jonathanlaib/c1a5dcf5243670cb1b188e65fb42a4dd/raw/c568a1fa00001dfdbb6b0a17e1cc886789f93525/lightbox-390-light.png" width="260"> ## Verification - `app-screenshots.test.ts` covers slot 10 and rejects slot 11; the platform integration test now expects 400 for slot 11 instead of 4. The integration suite was not run locally; CI runs it. - `svelte-check` reports no errors in the changed files (the remaining errors come from the unbuilt `@platform/app-runtime` package in a fresh checkout). Oxlint and Oxfmt pass on the changed files. - Rendered the gallery with the real styles and five synthetic screenshots at 1280×760 in light and dark themes and on a 393 px phone viewport. Checked: arrows show only where more screenshots lie, paging, opening with a click and with Enter, focus moving into the dialog, arrow keys, buttons, swipe, Escape and click-outside closing, no console errors. - Fixed during review: the button's pressed state (`translate-y-px`) overrode a transform-based centering and made the arrow jump; arrows are now centered without a transform and opaque in dark mode. - Not checked: the full signed-in app page in a running installation, and a screenshot that fails to load inside the lightbox (it is left out of the row and the lightbox as before).
This branch has not been deployed
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.
Stacked on #480. Documents the limit of ten screenshots from #514; publish only after #514 is released.
Problem
An app's page shows up to three screenshots from the app's static assets (#350). Agents are not told where the files go, so new apps ship without them.
Changes
static/screenshots/) and a TanStack Start app (public/screenshots/), accepted types (.png,.jpg,.webp) and size (2 MiB), and howcatalog showreports them inscreenshots.AGENTS.md: before the first deploy, the agent saves a screenshot of the app running withpnpm devand demo data. The app is finished only whencatalog showlists a description and at least one screenshot.Screenshots come from the local app so they show demo data, not real records. No CLI or server change; the limit of ten screenshots depends on #514.
Verification
app-screenshots.tsandapps.ts; starter asset folders checked instarters/.oxfmt --checkpasses on the changed files;blume validatefinds no broken links.