You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf: right-size README tiles, social cards and in-app images #5251
Part 3 of #4686. Triage split that issue in three; TALE-112 works part 1, the responsive delivery of the docs images.
Summary
After part 1, the docs screenshots and the marketing images share one width ladder, format policy, byte budget and encoder. The other images Tale ships are still made one at a time:
README tiles. The gallery and tour tiles are straight downscales of the docs shots (bun run readme:assets, services/platform/tests/docs-screenshots/readme-assets.ts, output .github/assets/readme-*.webp).
Social cards. docs, ui-docs and web each ship one public/og.png; packages/ui/src/seo/document-meta.ts writes the tags.
Video posters. The 30 posters under services/docs/public/videos/ are one WebP each.
In-app images. Chat attachments, the document preview and the branding logos get no thumbnails today.
Proposed change
Produce the README tiles, the social cards (for example 1200×630) and the video posters with the shared pipeline of part 1, not by hand or by a separate script.
Audit the in-app images: what each one loads and at what size. Record what you find, and fix or file each oversized image.
Acceptance criteria
The README tiles, the social cards and the video posters come out of the shared encoder and policy, and a test enforces their budget.
The social tags of docs, ui-docs and web point at cards of the documented size.
The in-app audit lists each image, what it loads and its size. Each oversized image is fixed or filed as an issue of its own.
Checked at tale-project/tale24a091dddf6d1d7f81aaaa214cd0523806d8c049 (feature-train), all paths under services/platform/. The platform has no thumbnail, variant or srcset anywhere today: every uploaded image is served as its original through a presigned object-store URL (getFileUrl, backend/domains/files/service.ts, 15-minute links). "Oversized" means wider than twice the CSS size it is shown at (DPR 2).
Branding logo (app/components/logo/tale-logo.tsx:11-18)
20×20
The raw upload, up to 2 MB, no dimension limit (backend/domains/branding/service.ts:89), served no-cache, must-revalidate (server.ts:1003-1025), also in the pre-auth shell
Document preview of an image file (app/features/documents/components/document-preview-image.tsx:62-70)
~790 px pane, zoom up to 5×
The original
Oversized at rest (~2.5× at DPR 2); the original is needed only when zoomed → #5301
Image lightbox and markdown image preview (app/features/shared/markdown/image-preview-dialog.tsx:88)
full size, zoomable
The original
Right-sized: the lightbox exists to show the original
Images inside markdown, DOCX and email bodies (app/features/shared/markdown/markdown-renderer.tsx:104)
content width
Remote images through the image proxy (max-age=3600, up to 10 MB)
Not determinable without the content: their sizes belong to whoever wrote the message; not filed
Assignee avatars (app/features/tasks/components/assignee-avatar.tsx), vendor icons, the platform's own logos (/assets/logo-*.svg)
16-36 px
Small files or SVG
Fine
Also noted, not filed: the shared <Image> primitive loads lazily but sets no decoding attribute; sharp is only a platform devDependency today, so a server-side variant (#5298, #5299, #5300) moves it to dependencies (it is already in the lock files).
Not checked: the ETag behaviour of Bun's static responses, the Cache-Control the object store sends, and the sizes of images sandbox runs produce.
Landed on release/0.6, the 0.6 feature line, with feature train #5329 as 54cc39c (perf(ui): size readme tiles, video posters and the social card); it ships with Tale 0.6.0. GitHub closes issues only for commits on main, so the feature-train role closes this one. Board task: TALE-331.
Activity
tale-code-bot commentedon Nov 2, 2026
In-app image audit (TALE-331, part 3 of #4686)
Checked at
tale-project/tale24a091dddf6d1d7f81aaaa214cd0523806d8c049(feature-train), all paths underservices/platform/. The platform has no thumbnail, variant orsrcsetanywhere today: every uploaded image is served as its original through a presigned object-store URL (getFileUrl,backend/domains/files/service.ts, 15-minute links). "Oversized" means wider than twice the CSS size it is shown at (DPR 2).app/features/chat/components/composer-attachments.tsx:85-89)lib/utils/compress-image.ts:7-12).app/features/chat/components/message-parts.tsx:219-223)app/features/shared/files/file-displays.tsx:206-210)app/features/chat/components/message-artifacts.tsx)app/components/logo/tale-logo.tsx:11-18)backend/domains/branding/service.ts:89), servedno-cache, must-revalidate(server.ts:1003-1025), also in the pre-auth shellbackend/domains/branding/service.ts)app/features/products/components/product-image.tsx:31-55)lib/shared/product-images.ts:4), servedprivate, no-store(backend/domains/products/routes.ts)app/features/documents/components/document-preview-image.tsx:62-70)app/features/shared/markdown/image-preview-dialog.tsx:88)app/features/shared/markdown/markdown-renderer.tsx:104)max-age=3600, up to 10 MB)app/features/tasks/components/assignee-avatar.tsx), vendor icons, the platform's own logos (/assets/logo-*.svg)Also noted, not filed: the shared
<Image>primitive loads lazily but sets nodecodingattribute;sharpis only a platform devDependency today, so a server-side variant (#5298, #5299, #5300) moves it todependencies(it is already in the lock files).Not checked: the ETag behaviour of Bun's static responses, the
Cache-Controlthe object store sends, and the sizes of images sandbox runs produce.perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
tale-code-bot commentedon Nov 2, 2026
Landed on
release/0.6, the 0.6 feature line, with feature train #5329 as 54cc39c (perf(ui): size readme tiles, video posters and the social card); it ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Board task: TALE-331.perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card
perf(ui): size readme tiles, video posters and the social card