feat(website): make prompt pages API-first with static fallback - #1079
Draft
ppapsmoken wants to merge 3 commits into
Draft
ppapsmoken wants to merge 3 commits into
ppapsmoken wants to merge 3 commits into
Conversation
|
ppapsmoken
force-pushed
the
codex/prompt-page-first
branch
from
September 7, 2026 06:54
8bf48a0 to
7d1f572
Compare
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background
The prompt page currently renders from a compile-time registry even though the Go application already exposes the prompt-library public API. We want to finish the Prompt page first, then import and curate the two external prompt catalogs as a separate step.
Scope
Out of scope / production safety
Evidence / design
The Go API already provides
GET /api/prompt-libraryandGET /api/prompt-library/:slug; the website usesAPP_CONSOLE_ORIGINfor server-side API access. API failures fall back to the existing static registry so the page remains available during the transition.Validation
bun run typecheckbun run lint(existing<img>warnings only)bun run buildbun test src/components/model-landing-page.test.tsxDeployment recommendation
Router deploy: not required. This is website-only code and has no effect on
/v1or relay paths. Intended next target isnewapi-webstaging only after review; do not merge tomainfor production yet.