From e04076345400df9e693b80b1f10a58c386fcbd73 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Thu, 20 Aug 2026 11:13:01 +0200 Subject: [PATCH] The engines page leads with the three engines we lead with MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every engine-tagged wiki page landed on the page — the two store engines and the shared warpstore core alongside the frameworks. The wiki now marks the flagship three with a `highlighted` tag next to `engine`; the API already carried tags through, so the list simply asks for that mark. Co-Authored-By: Claude Opus 5 (1M context) --- apps/frontend/src/api/wiki.api.ts | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/apps/frontend/src/api/wiki.api.ts b/apps/frontend/src/api/wiki.api.ts index c91e806..fbfcb47 100644 --- a/apps/frontend/src/api/wiki.api.ts +++ b/apps/frontend/src/api/wiki.api.ts @@ -16,8 +16,13 @@ interface RawWikiPage { createdAt: string locale: string repo?: string | null + tags?: string[] } +// The engines page lists the flagship engines only; the wiki marks those with +// a `highlighted` tag next to `engine`. +const HIGHLIGHTED_TAG = 'highlighted' + async function fetchPages( tag: string, opts: { body?: boolean; limit?: number } = {}, @@ -70,17 +75,19 @@ const getBlogPage = async (slug: string): Promise => { const listEnginePages = async (): Promise => { const pages = await fetchPages('engine', { body: true }) - return pages.map((p): WikiPageWithContent => ({ - id: p.id, - path: p.path, - title: p.title || p.path, - description: p.description ?? '', - content: p.content ?? '', - updatedAt: p.updatedAt, - createdAt: p.createdAt, - locale: p.locale, - repo: p.repo ?? null, - })) + return pages + .filter((p) => (p.tags ?? []).includes(HIGHLIGHTED_TAG)) + .map((p): WikiPageWithContent => ({ + id: p.id, + path: p.path, + title: p.title || p.path, + description: p.description ?? '', + content: p.content ?? '', + updatedAt: p.updatedAt, + createdAt: p.createdAt, + locale: p.locale, + repo: p.repo ?? null, + })) } const listHowtoPages = async (): Promise => {