/create_plan…
- User
/create_plan @thoughts/shared/research/2026-04-09-changelog-ogimage-featuredimage-rework.md faetured image
- User
create_plan /create_plan @thoughts/shared/research/2026-04-09-changelog-ogimage-featuredimage-rework.md faetured image
Assistant· claude-opus-4-6
I've read the research document. Let me now gather the current state of all the key files referenced.
Assistant· claude-opus-4-6
Good — the research is now verified against current code. One important correction: the research document (written at commit
c39f4c6d7) says the "Changelog" title + RSS link are inchangelog/layout.tsx:11-24, but the agents found the layout is now just<div className="min-h-screen">— the heading and RSS link already live inchangelog/page.tsx(the listing page only). Let me verify this quickly since the layout file shows as modified in git status.Assistant· claude-opus-4-6
Confirmed: the layout issue (research item 1) is already resolved — the layout is just a
min-h-screenwrapper. The "Changelog" heading + RSS link already live only in the listing page.So the remaining work is focused on separating
featuredImagefromogImage. Let me read the entry pages to see the exact hero image rendering.Assistant· claude-opus-4-6
Now let me check the listing page to see how
ogImageis used there too.Assistant· claude-opus-4-6
Now I have a complete picture. Let me present my understanding and the key design decisions.
Based on the research and my verification of the current codebase, here's what I understand:
Problem:
ogImageserves two unrelated purposes — (1) OG meta tag fallback and (2) in-page hero image. Theopengraph-image.tsxroute handlers already override the meta tag for blog and changelog, making the frontmatterogImageURL redundant for social sharing. Meanwhile, bothchangelog/[slug]/page.tsx:90-101andchangelog/page.tsx:149-160use a hacky string comparison (!== "https://lightfast.ai/images/og-default.png") to decide whether to render the hero.- User
- a)
- a)
- c)
Assistant· claude-opus-4-6
Clear. Let me research the remaining pieces — legal/docs page structure, all MDX files with
ogImage, and the existingopengraph-image.tsxpatterns — so I can write a complete plan.Assistant· claude-opus-4-6
Let me read the feed generators and JSON-LD builders that use
ogImage— these need updating too.Assistant· claude-opus-4-6
Let me check the API reference page and the existing OG image handlers to complete the picture.
Assistant· claude-opus-4-6
Let me check the docs and legal page structures for the OG handlers, plus the API reference.
Assistant· claude-opus-4-6
Good — clear direction. Let me now write the plan.
Here's my proposed structure:
Overview
Separate
ogImagefromfeaturedImage, addopengraph-image.tsxhandlers for legal/docs/api-ref, then removeogImagefrom all schemas.Implementation Phases:
- Additive — Add
featuredImageto schema, create 3 new OG route handlers - Swap — Migrate all consumers from
ogImagetofeaturedImage/ programmatic OG - Cleanup — Remove
ogImagefrom schemas, types, and all 17 MDX files
Does this phasing make sense before I write the full details?
- Additive — Add
- User
yes
Assistant· claude-opus-4-6
Plan created at
thoughts/shared/plans/2026-04-10-featuredimage-ogimage-separation.md.Summary of the 3 phases:
Phase 1 — Additive (zero behavioral change):
- Add
featuredImage: z.string().startsWith("/images/").optional()toContentPageSchema - Create
opengraph-image.tsxfor legal (usingContentLayoutwith "Legal" category), docs (usingDocsLayout), and API reference (usingDocsLayout)
Phase 2 — Swap (migrate all consumers):
- Remove
openGraph.images/twitter.imagesfromseo-bundle.ts— colocated handlers now cover all content types - JSON-LD builders:
data.ogImage→${url}/opengraph-image - Feed generators: same swap
- Blog + changelog page components:
ogImage→featuredImage(eliminating the!== og-default.pnghack)
Phase 3 — Cleanup (remove dead code):
- Add