mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 10:58:01 +01:00
* feat(projects): a project already built in Loki says so, instead of being sold it
The project page offered its owner "Build it with Loki — Loki asks you a few
questions and puts an AI agent on it" for projects that have been building in
Loki for months. The click was never dangerous (Loki's handoff screen flags an
already-linked project rather than creating a second one), but the CARD was
addressing a stranger: one click away from work already done, on the page its
owner looks at most.
The page now asks (GET /api/orangecat/project-link on Loki, public and cached)
and shows one of two things, never both:
linked "Built in public with Loki" + a link to the build record —
purpose, roadmap, and a dated changelog of what actually shipped.
not linked the existing cross-sell, unchanged, still owner-only.
The record card is shown to EVERYONE, and that is the more valuable half. A
funding page is a set of promises; the one thing that turns promises into
evidence is a dated account of what has been built, kept by the agents doing
the work rather than written for this page. It existed all along and nothing
here pointed at it.
Fails to nothing, deliberately: Loki is a separate product on a separate
deploy, so every error path — non-200, unreachable, slow (2.5s cap), malformed
JSON, or a `linked: true` carrying no destination — collapses to "not linked",
which is the state this page already renders. Eight cases pin that.
The endpoint's path joins the Loki origin in config/ecosystem rather than
sitting in the call site, for the same reason API_ROUTES exists: a neighbour's
route that moves should break in one place.
verify: type-check, eslint (0 errors on the touched files), vitest 8/8.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* refactor(projects): lift the JSON-LD out of the project page
The page reached its size limit (309/300) adding seven lines, and the forty it
can most afford to lose are the schema.org object: it renders nothing, decides
nothing, and is a pure function of the row. Out of the way, the page reads as
the sequence of decisions it is — who is looking, what may they see, what sits
next to this — rather than that sequence with a vocabulary list in the middle.
No behaviour change: same fields, same conditionals, same output. Colocated
beside projectFull.ts, which is the convention this directory already has.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>