Files
e8dc1c87c2 feat(articles): cover pictures, charts and writing suggestions you accept or reject (#1780)
* fix(community): a QA run's posts and listings stay off the public shelves

Live after #1736, /community opened with "QA test post from A" by
"QA Grok A", and Discover's first product, "Old Road Bike", was that QA
account's too, its share card reading "by QA Grok A".

- The community feed drops posts whose author's display name is a fixture
  name (NOT_A_FIXTURE_AUTHOR, the People directory's rule on the view's
  actor_data); checked read-only against production.
- 20261113201500 marks the QA account's remaining products, services,
  projects and causes is_test (matched by id and its QA name; nothing
  deleted; rollback in the file).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(timeline): sign every post author through one byline helper

A minted user_<hex> handle was still printed as name and @handle on
/community, in quotes, reposts, the reply placeholder and the post's
share text. postAuthor() (src/utils/byline.ts) is now the one rule:
chosen name, else chosen handle, else the neutral phrase; no @line for
a minted handle; the avatar plate shows a person glyph, not its letter.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(companions): no bot face is orange; check:one-orange covers the pigments

orange and amber are replaced in place by two shared map-scale token
values (indigo, steel), so every other name keeps the face it had. A
stored face URL with hue=orange/amber resolves to its replacement.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(cat): one face for the Cat, used everywhere it is drawn

CatAvatar draws the brand icon tile; CAT_AVATAR_PATH is the same drawing
for slots that only take a URL. Feed, quotes, the answering row, the
mention menu, the profile, follow lists, Messages (list, picker, thread)
and the profile share card all use it. The answering row's AI chip is
neutral like the post header's, not orange.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(not-found): one not-found page for every kind

components/ui/NotFound.tsx is the only 404 design: 'This {kind} isn't
here', one sentence, a search that goes to Discover, the kind's own
shelf and Home. Every public detail route has a not-found.tsx naming
its kind (products, services, events and others fell through to 'Page
Not Found'), wallets no longer have their own layout, and tab titles
come from notFoundTitle() in sentence case with registry names.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* refactor(cat): name the Cat's picture a src, not a path

audit:routes reads a *_PATH string constant as a page link and failed on
the static icon. It is an image source.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(legal): read the operator from one unset constant

LEGAL_OPERATOR (src/config/legal.ts) is null: the legal entity is not
known and is not guessed. While null, /terms and /privacy say what they
said before and stay marked Draft. Once filled in, the opening sentence
and Contact section of both carry the legal name, address and contact.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* style(projects): merge a duplicate import to stay inside the size limit

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* test(ci): cover the bot-face check in the one-orange gate fixtures

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(cat): one real answer for a visitor, and a pay-link name check

POST /api/cat/first-answer answers a visitor's own sentence before they
have an account, on the visitor budget (general per-IP, then 3 an hour of
its own), for the page's own origin only. Nothing is stored.
GET /api/pay/name says whether a pay-link name is free to claim.
The door helpers carry a typed sentence through sign-up to the Cat.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(faq): say about Cat Credits what the pricing card says

The FAQ offered credits as open while /pricing badged them "Not open
yet". Both sentences are now built in cat-plans.ts from
CAT_CREDITS_ON_SALE. The free plan no longer calls Gemini open-source.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(home): the home page sells the outcome, in one promise

The hero is the promise and one action: claim orangecat.ch/pay/<name>,
with the page that name makes shown as it is typed. Under it, Discover's
own "Just listed" rows instead of the studio grid and the small counts,
then the Cat's door, which answers a visitor's sentence once and invites
them to sign up with the sentence kept (the account screen shows it).

The promise is written once in config/brand.ts and read by the hero, the
titles and descriptions, the share card, the sign-in panel, About and the
footer. /pricing opens on "0% to sell"; the Cat plans follow.
The start action is named for what you get: "Get your page".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(entities): one cover picture for every kind, in every create and edit form

ENTITY_COVER (src/config/entity-cover.ts) names each kind's cover column
once. base-config-factory puts the same picture field under the description
of every form (and into the wizard step that shows the description), the
schemas accept it, creates write it through coverColumn and updates through
coverFieldMapping, which also lets a removed picture clear the column.

Five kinds had no column to keep a picture in (service, cause, asset, loan,
research): one migration adds a nullable cover_image_url to each and makes
public_documents() read every kind's cover first, so Discover and search
show it. Rollback is in the migration.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(discover): the cover is the hero, the card and the share picture; no picture shows the kind's icon

The public page's hero, the Discover and search card, the dashboard card, a
profile's shelves and the share card all read the kind's cover through
entityCoverImages. Without a picture a listing shows its kind's icon on a
token surface (EntityCoverPlaceholder) on every list, replacing three
different letter plates; a bot wears the face its name picks and a person
keeps a round initial.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* docs(changelog): home sells the outcome, a picture for every kind, one byline

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(messages): the Cat answers every message in a conversation with only the Cat

A one-to-one with the Cat stayed silent unless the message tagged @cat: only
a tag queued a reply. Alone with it there is nobody else a message could be
for, so a message there is owed an answer without a tag. In company the Cat
still waits to be tagged.

- isAloneWithCat(): one person and the Cat, asked by the write path and by
  the reply.
- The reply is worded for it (nothing was tagged) and carries no
  requested_by: there is nobody else it answered for.
- A message of only files asks nothing.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(messages): New opens on the Cat, your bots, recent people and people you follow

The New message sheet opened on the viewer's own bots only, so for anyone
without a bot it was empty until they typed. It now offers the Cat first, then
their bots, the people of their latest one-to-one conversations and the people
they follow (eight people at most, nobody twice, no unnamed placeholder
accounts). Typing still replaces the list with the search.

- The Cat found by search is shown as an agent, with its own face.
- Alone with the Cat, a sent message shows it writing and looks for its
  answer, as with a bot.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(payments): one payment flow, purchases as orders, services booked first

One flow. Paying a person, supporting a page, investing, buying and paying a
booking now share /pay's words, steps and receipt:
- src/config/payment-flow.ts and pay-words.ts are the one vocabulary (the verb
  and the figure, "Waiting for the payment…", "Change amount", "Paid").
- PaySteps draws the code, the claim, expired and failed once; PayFlow, the
  support card, the purchase dialog, the ticket card and the booking use it.
- Every success is MoneyReceipt (To / For / When). "Tip" becomes "Support".

A purchase is an order. A signed-out buyer was shown the seller's bare address
and typed the price by hand; nothing recorded the sale. Now they give a name
and get a code for the price, minted on the seller's wallet, with an order row
(buyer_id NULL). Orders have a page (/dashboard/orders) for seller and buyer.

A service is booked first. The service page has no purchase; once the provider
accepts, the booking asks for the payment through the same flow, and settlement
marks the booking paid (orders.booking_id). No escrow: the money goes straight
to the provider's wallet.

Who is paid and what is charged are unchanged: resolveSellerWallet and
resolveAmount (the booking's own price_btc for a booking).

Migration 20261114091700: orders.buyer_id nullable, orders.booking_id.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(bookings): a booking's money is server-written, paid once, and never "paid" by the customer's own hand

- Migration 20261114104100: clients lose INSERT and table-wide UPDATE on
  bookings and keep UPDATE on the five columns confirm/reject/complete/cancel
  write; the customer's policy only allows cancelling. createBooking inserts
  through the service role.
- Paying a booking reads the price with the service role and what is paid
  from the booking's paid orders, never from the client-visible row.
- One live invoice: an open request is checked against its rail and handed
  back instead of minting a second; nothing is minted while a claim or an
  on-chain confirmation is pending.
- Settlement recomputes total_paid_btc from the paid orders (no read-then-add).
  A payment landing on a cancelled, declined or no-show booking is recorded on
  the order, not applied to the booking, and both sides are told.
- An unpaid booking can still be paid after it is marked complete.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(payments): a pass is not sold without an account

A Supporter or Loki pass is granted to the buyer's account at settlement; a
guest has none, so the money arrived and nothing was granted. The guest
purchase refuses such products before any invoice, and the page offers
sign-in in place of the guest panel, saying why.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(payments): booked-first holds on the server; a guest buyer is named; a request never made is not a failed payment

- POST /api/payments refuses a service and points to the booking; so does
  /api/v1/payments for a person's session. A key or OIDC caller keeps it:
  Loki pays a builder booked on its own side through a service.
- The seller's email names a buyer without an account instead of looking a
  profile up by a null id; a claimed purchase is "a buyer", not "a supporter".
- An initiation error (no wallet, nothing left to pay) is titled "This could
  not be started", not "This payment did not go through".

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* docs(changelog): one way to pay, guest orders, booked first, the Cat alone

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(migrations): say why dropping NOT NULL on orders.buyer_id is rollback-safe

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(messages): suggestions read the follow list through the shared reader

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(discover): a person's card never prints a minted handle

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* fix(listings): the seller card never prints a minted handle

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(share): one look for an article everywhere it is shared

The same article looked two ways on the timeline: the publish post was an
ARTICLE card, the post made by "Post on OrangeCat" was its title above a
bare "orangecat.ch/articles/scythia-notes-towa...". Sharing that post to X
sent the post URL, not the article's, with "Cato: “...”" in front of Cato's
own words.

- Links to our own pages unfurl from our own data: /api/unfurl resolves
  articles, posts, profiles, pay links, projects, groups and every entity
  with a public page (sessionless read, each page's public rule) into one
  LinkCard. The publish post and any post linking to the article draw the
  same card; a post that only restates the title shows just the card.
  External links print as host + path, cut at a boundary.
- The share intent no longer types out the title of one of our pages above
  its link (the card shows it).
- Share on a post: an article post (or a post that is only a link to one of
  our pages) shares that page's URL with its title and one line; your own
  post goes out as your words, someone else's quoted and credited.
- /post/<id> of an article post previews as the article (title, dek,
  canonical, /api/og/article card); /api/og/post draws it as an article.
- The article share card carries the dek, the author's face and name, and
  the cover picture beside the words when the article has one.
- Share cards read the image format from the bytes: our storage serves
  avatars as application/octet-stream, which dropped every face from every
  card.
- ShareRow passes `text` through to @bitbaum/bip-kit (used from 0.10.0,
  ignored by the pinned 0.9.1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* docs(changelog): one look for an article everywhere it is shared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* feat(articles): cover pictures up front, charts drawn by chartkit, and Cat's writing help as suggestions

- Editor: "Add a cover picture" sits under the title (search, generate or
  upload in one picker); picture and chart buttons lead the toolbar (one row
  that scrolls on a phone); inline pictures land as figures with their credit
- Charts: a ```chart block (writingkit's spec, JSON or CSV) is drawn by
  @bitbaum/chartkit on the article page and in Preview; the fence is renamed
  before bip-kit parses it, so a block a person typed can no longer throw and
  take the article page down; a broken block tells the writer why
- Ask Cat proposes, the writer decides: every answer (improve, tighten,
  clearer, grammar, tone, continue, outline, draft, title + summary) is a
  suggestion shown as what changes, with Use this / Keep mine; accepting
  after the text moved on is refused, not applied
- New: "Make it clearer", "Suggest a title and summary", "Suggest a picture
  or chart" (a chart only from the writer's own numbers, checked; otherwise
  an illustration with search terms and a generation prompt that seed the
  picker), "Outline it" from one sentence
- Share card: /api/og/article/<slug> draws the cover beside the title
  (fetched through the pinned public-only GET, cropped by sharp); the
  article's og:image is always that card
- deriveExcerpt skips a leading chart or lone picture
- src/lib/writing-next/ carries writingkit 0.3.0's new core until it is
  published (then delete it and import from @bitbaum/writingkit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

* docs(changelog): article pictures, charts and writing suggestions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Cato <cato@orangecat.ch>
2026-12-02 07:03:00 +01:00
..