Repository navigation
Description
A further part of #5250 (itself part 2 of #4686), split off by the Coder: #5250 (task TALE-330) builds the capture and the serving of phone layouts, and this issue takes the captures themselves.
Summary
With #5250 the screenshot capture takes a second layout of every docs shot whose layout differs by device, and the docs serve it to phones:
bun run docs:screenshots -- --devices phonewrites<section>/<shot>.phone.webpat 390 × 844 (DPR 2, touch) with a"device": "phone"manifest entry;bun run docs:imagesencodes its variants beside the desktop ones;DocsImageserves it below Tale'smdbreakpoint ((max-width: 767px)), and its lightbox opens that capture's full-size file.
That change commits no phone capture. Capturing needs the seeded Docker Compose stack, the platform dev server and Chromium, and the agent worker has none of them. Until the captures land, every page keeps showing the desktop capture on a phone, as it does today.
Proposed change
- Capture the phone layout of the 108 shots below on a machine with the runbook's stack (
services/platform/tests/docs-screenshots/README.md, "Capture the phone layout"):bun run docs:screenshots -- --devices phone, or--only <shot>one shot at a time. ci(docs): capture documentation screenshots in a workflow #5263 adds a workflow that captures without a person's machine. It takes--onlyand--locales, and would need adevicesinput to take phone captures. - Fix each shot whose
prepare,readyWhen,captureorrestorestep does not hold in the phone layout: a sidebar behind a menu button, a table shown as cards, a dialog shown as a sheet. Branch onctx.device. A shot whose page shows it as the wide layout beside a phone shot opts out withphone: { none: '<why>' }, asautomation-editor-canvasdoes. 36 of the shots, marked † below, are element crops of a wide page: a dialog, a panel, a card. One that Tale lays out the same on a phone opts out with that reason, rather than shipping a near-copy. - Review every capture as the runbook's review steps say. Then run
bun run docs:imagesand commit each capture with its variants,manifest.jsonandimage-dimensions.ts. - Review the alt text and caption of each figure that gains a phone capture. One alt and one caption now describe both layouts, so wording that names a desktop-only position ("in the sidebar on the left") needs wording true of both.
- Add a guard that fails when a shot has a phone viewport (
shotViewport(shot, 'phone')is not null) but no phone capture inservices/docs/public/images/manifest.json. The docs guard checks the phone captures that exist, not the ones that should. - Pin the phone branch in
services/docs/tests/e2e/specs/markdown.spec.ts. The spec reads the layout from the page, so it passes without any phone capture. At 390 px the documents page's first figure must serve a phone capture. - Judge the display size between 640 and 767 px. The docs render every screenshot at its width attribute, capped at the column. At 767 px a phone capture fills the 725 px column at about 1.86× its 390 px width, as the shipped
automation-editor-canvas-mobilealready does on a desktop. Keep that house style for phone captures, or cap them at their CSS width.
Acceptance criteria
- Each of the 108 shots below has its phone capture committed, reviewed and encoded, or opts out with its reason.
- A guard fails when a shot that should have a phone capture has none.
-
markdown.spec.tsfails at 390 px when the documents page serves no phone capture. - The alt text and caption of every page that shows a phone capture hold for both layouts.
The phone layout exists only on the feature line until #5250 reaches main with the 0.6 release, so this change goes on the feature line too.
The 108 shots
platform (102): chat-thread-reply, chat-composer †, chat-document-attachment †, project-task-detail †, project-task-repeat, projects-task-board, project-general-tab, project-knowledge-files, project-agents-models, project-dispatch, project-agent-document-skills, project-task-standard-agent †, project-agents-standard, skill-library-list, skill-library-detail †, knowledge-entries-list, knowledge-products-list, websites-add-dialog, chat-shared-view, chat-create-task †, chat-task-tray †, chat-arena-split, chat-reply-files, chat-skill-picker, chat-starters-empty, home-inbox, document-indexing-unsupported †, controlled-document-replace-file †, settings-teams, settings-branding, settings-api-keys-organization †, automations-catalog, automations-upload-dialog, automation-template-catalog †, automation-template-preview †, automation-template-setup †, automation-approval-allowances †, automation-model-swap †, automation-editor-problems, automation-editor-paths, automation-editor-code, automation-editor-node-shape, automation-editor-start, automation-editor-source, automation-general-trigger, automation-trigger-schedule-presets, automation-trigger-schedule-custom-times, automation-trigger-schedule-interval, automation-trigger-skip-reason †, automation-trigger-webhook †, automation-trigger-event, automation-run-input †, automation-run-detail, automation-run-failed, automation-versions, automation-version-compare, automation-version-save-review †, automation-tests, automation-test-setup, automation-test-coverage, automation-try-draft, automation-step-test, automation-run-start-from, automation-run-compare-versions, connectors-add-credential, automation-http-credential †, automation-http-step, automation-knowledge-search-step, automation-knowledge-search-run, automation-save-as-test †, automation-task-create-run, automation-task-list-run, automation-notify-run, automation-notify-bell †, settings-mcp-endpoint, settings-connected-agents, settings-connect-agent †, settings-webdav, settings-account-security, settings-preferences, settings-usage, metrics-usage, metrics-chat-health, governance-content-models †, governance-image-generation †, governance-chat-tools †, governance-standard-agent †, governance-model-endpoints †, governance-policies-limits, governance-budget-project-rule †, governance-skill-sharing †, governance-confidentiality-notice †, settings-sandboxes †, sandbox-workspace-cleanup †, sandbox-infrastructure-capacity †, sandbox-add-device †, governance-guardrails, governance-security-monitoring, governance-audit-logs, governance-legal-hold, governance-data-subject-requests, settings-enterprise-sso
get-started (5): documents-list, org-create-wizard, settings-organization-members, settings-providers, settings-api-keys †
develop (1): settings-api-models
Three shots get no phone capture:
automation-editor-canvasopts out: its page shows it as the wide layout besideautomation-editor-canvas-mobile.automation-editor-canvas-mobile(390 px) andagent-consent(720 px) are narrower than the breakpoint: they already are Tale's phone layout.
Activity
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots
feat(docs): capture and serve the phone layout of docs screenshots