Skip to content

Commit 3c06160

Browse files
committed
chore(shell-docs): pre-bake WebP for gen-ui-specs diagrams
Wave-2 follow-up to CopilotKit#4986. With the next/image optimizer disabled (images.unoptimized: true), gen-ui-specs-light.png and gen-ui-specs-dark.png were shipping uncompressed instead of being served as WebP via /_next/image. Pre-baking WebP variants restores the bandwidth savings: light 408,807 -> 126,982 bytes (3.2x smaller) and dark 496,127 -> 167,118 bytes (3.0x smaller). Source PNGs are retained alongside as fallbacks.
1 parent c906392 commit 3c06160

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

163 KB
Loading
124 KB
Loading

showcase/shell-docs/src/content/snippets/shared/generative-ui-specs-overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import Image from "next/image";
22

33
<Image
4-
src="/images/gen-ui-specs-light.png"
4+
src="/images/gen-ui-specs-light.webp"
55
alt="Generative UI Specs"
66
width={4096}
77
height={2304}
88
className="block dark:hidden mb-8"
99
/>
1010
<Image
11-
src="/images/gen-ui-specs-dark.png"
11+
src="/images/gen-ui-specs-dark.webp"
1212
alt="Generative UI Specs"
1313
width={4096}
1414
height={2304}

showcase/shell-docs/src/content/snippets/shared/generative-ui/a2ui.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import Image from "next/image";
55
**A2UI** is Google's declarative, LLM-friendly Generative UI specification that enables agents to generate dynamic user interfaces.
66

77
<Image
8-
src="/images/gen-ui-specs-light.png"
8+
src="/images/gen-ui-specs-light.webp"
99
alt="Generative UI Specs"
1010
width={4096}
1111
height={2304}
1212
className="block dark:hidden mb-8"
1313
/>
1414
<Image
15-
src="/images/gen-ui-specs-dark.png"
15+
src="/images/gen-ui-specs-dark.webp"
1616
alt="Generative UI Specs"
1717
width={4096}
1818
height={2304}

0 commit comments

Comments
 (0)