Files
CatoandClaude Opus 5.5 8dc855ce77 fix(ux): the full-path review — share cards for everything, bots as makers, honest deletes, money trust, one name, clean feeds (#1736)
* fix(create): money fields are checked when they lose focus

FormField did not hand onBlur to CurrencyInput, so a negative price or
CHF 0.001 got no message until submit. Blur now runs the schema like every
other field, and a fiat amount finer than its currency's cent says it looks
like a Bitcoin amount. The input carries aria-invalid with the error.

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

* fix(requests): no asking for money without a wallet to receive it

/requests let a person with no wallet send a request; the payer then met
"hasn't added a Bitcoin wallet yet". The screen now runs the same receive
check as payments to them and, without a wallet, shows "Add a wallet to get
paid" with one tap to /receive instead of the form (their lists stay). The
server refuses the same case (requester_cannot_receive) before anyone is
asked or notified. useSellerPaymentMethods no longer answers a new profile
with the previous verdict while it checks.

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

* fix(timeline): the composer's send button stays on screen on a phone

At 390px, opening the timeline composer or an article's comment box widened
the page to 463px and cut the Post / Comment button off: the action row did
not wrap and the three visibility chips sat in a non-wrapping group.

- The action row wraps; the tools group may shrink (min-w-0), the send group
  cannot (shrink-0, ml-auto), so the button drops to its own line instead.
- The visibility chips move to ComposerVisibilityControl: they wrap, keep
  each label on one line ("Only me" no longer breaks), and reach 44px on
  touch screens.
- A reply (a comment under an article or post) no longer offers a visibility
  choice; it follows the post it answers.
- Tests pin the wrapping structure and the reply case.

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

* fix(images): a photo-search outage no longer reads as "No images found"

searchOpenverse returned [] for an error status, a timeout and a network
failure alike, so the cover picker told writers "No images found. Try a
different search term" while the service was down. Checked 2026-11-13: the
request is well-formed (page_size=1 answers 200 in 0.1 s, /v1/ and
/v1/audio/ are up), but anonymous image searches with a larger page answer
504 after 8-15 s. The outage is upstream, not in our request.

- searchOpenverse throws ImageSearchUnavailableError when Openverse does not
  answer, and bounds the wait at 10 s; [] now means a real empty result.
- /api/ai/images/suggest returns what any query found; only when none
  answered does it reply 503 with IMAGE_SEARCH_DOWN_MESSAGE.
- The picker's failure state offers "Try again" and "Upload your own".

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

* fix(community): keep Loki's build updates off the public and newcomer feeds

/community and the dashboard's "From people on OrangeCat" preview were
Loki's CI log ("orangecat: e2e ok — no changes", PR lists, commit hashes),
all posted as external publishes with metadata.source = 'loki'.

- config/external-publish.ts: AUTOMATED_PUBLISH_SOURCES (loki; not ai_app,
  which posts at a person's request), isAutomatedPublish(), and a PostgREST
  .or() filter that excludes them while keeping posts with no source.
- getCommunityFeed applies that filter on the view query.
- The dashboard preview drops other people's automated publishes; the
  viewer's own stay. Everything remains on the project's wall and /timeline.

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

* fix(ecosystem): a Live now tile never links to a project page that is gone

Loki's studio map pointed Bitbaum at an OrangeCat project nobody can open,
so the first tile on the home page and /ecosystem was a 404.
fetchStudioMapForPublicPage checks every /projects/<id> link in the map
against the projects anonymous RLS lets a visitor read (one query per map),
and drops dead ones so projectHref falls back to the product's own site.
If the check fails, links are dropped rather than trusted.

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

* fix(pay): amount fields open empty, or at a round minimum

The tip dialog opened at CHF 5.77, project support at CHF 5.76 and an
investment at CHF 57.78: BTC round numbers turned into unround francs.
Every amount field now opens empty, as /pay does, with the presets in the
payer's currency. Where terms state a minimum it opens there, rounded up to
a whole unit of the payer's currency (CHF 58), never below the minimum or
above the maximum. An empty contribution button says "Enter an amount".

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

* fix(investments): render the terms as Markdown

The section a backer reads before sending irreversible money printed
"## The deal" and "- Pre-revenue" as characters. It now goes through the
app's block Markdown renderer (headings, lists, quotes), as chat replies do.

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

* fix(articles): a minted user_<hex> handle is never printed as a byline

The newest essay on /articles, its page, its article:author and its share
card were all signed `user_df091395b2ca`: the byline fell back to the
auto-generated handle, and the profile editor copies that handle into
`name` when none is given.

- bylineName (src/utils/byline.ts): the profile name, else a handle the
  person chose, else "An OrangeCat member". The byline still links to the
  profile. Every article read (page, list, share card, JSON-LD) goes
  through it.
- Before the first publish, a writer who would be signed anonymously is
  asked "How should your byline read?" in the publish bar. A typed name is
  saved as their profile name; leaving it empty publishes with the neutral
  fallback.

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

* fix(loans): amounts in the viewer's currency, and a new loan is not a refinance

The loan page printed "$500.00" to a franc viewer with no Bitcoin figure.
Its amounts now go through ViewerAmount: converted through Bitcoin at the
live rate to the viewer's preference, marked "≈", with "Listed as USD 500.00
· ₿…" under the headline so the terms stay visible; without a rate the
stored amount shows as stored. A new request reads "Asking for" with no
"Original" line; "Remaining balance" stays for a refinance. The loan type
label is "New loan" (was "Request New Loan"), and JSON-LD defaults to the
platform currency instead of BTC.

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

* fix(pay): the code screen shows the BTC and keeps the "For" note

After "Pay CHF 10.00" the Lightning code screen showed only the franc
figure, while the wallet that opens next shows Bitcoin: the BTC amount now
sits under the headline (a BTC reader is not shown it twice; on-chain keeps
"must arrive in full"). A pay link's "For: Coffee" no longer disappears on
the code step: PayFlow renders noteSlot above the code as on the amount step.

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

* fix(entities): a delete that removes nothing says so; a published event can be taken offline

Deleting a published event returned 200 "Event deleted successfully" and
redirected, while the event stayed live with tickets on sale: RLS only lets an
owner delete a draft event, and the generic delete never checked that a row
was removed.

- createDeleteHandler: refuse with 409 before touching anything when the
  type can only be deleted in some statuses (ENTITY_DELETE_RULES: events as
  drafts, mirroring the RLS policy), and return 409 when the DELETE removes
  zero rows for any entity (`.select('id')` on the delete), with no wallet
  link cleanup and no post-delete hook.
- The owner bar gets Unpublish (or "Cancel event" where draft is not an
  allowed move, e.g. a full event) for a live event; ticket sales stop
  because the ticket functions only open on published/open/full/ongoing.
- Delete on a live event opens a dialog that says it must go offline first
  and offers that move, instead of a Delete that would remove nothing.
- Dashboard delete and bulk delete show the server's reason instead of
  "Please try again", and bulk delete refreshes after a partial failure.

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

* fix(people): Everyone is filtered before it pages, and its search reaches the server

People -> Everyone read the 100 newest profiles and dropped fixtures after
the range, so the page that reached the browser was a set of nameless
`user_…` accounts, and its search filtered those rows in the browser:
"marco" could never find Marco Rossi.

- onlyPublicPeople (src/domain/people/publicPeopleFilter.ts) applies the
  public directory's rules as query filters before the range: fixture
  handles, exact fixture names, fixture display names, and nameless shells
  (a minted `user_<hex>` handle with no display name). A chosen handle with
  no name stays.
- The fixture display-name rule is one pattern read by both JS and
  PostgREST `imatch`, and now also covers "E2E User" and "… Test … User"
  accounts seen in production's list.
- Everyone's search calls /api/profiles?search= (handle or display name);
  the follow lists still filter in the browser. Checked read-only against
  production: 19 people instead of nameless shells, and "marco" finds
  Marco Rossi.

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

* fix(notifications): the bell's filters are categories, not one type each

Payments matched only `payment`, so "Someone tried to tip you Bitcoin"
(tip_dead_end) showed under All and vanished under Payments; Social matched
only `follow`, never a mention, a comment or a group invite.

- NOTIFICATION_TYPE_CATEGORY (config/notification-types.ts) files every
  in-app type under payments / social / messages / other; a Record over the
  type list, so a new type is a build error until it has one. Organization
  invites sit under Social.
- GET /api/notifications takes a category as `filter` and selects every type
  in it; a single type still works.
- A live arrival joins the open list only if that filter would have fetched
  it (matchesNotificationFilter, the API's own rule).
- notificationActionLabel: the words a card shows for where it leads (used
  by the next commit).

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

* fix(notifications): a notification is a button you can Tab to, and says what it opens

The card was a clickable div with no role and no tabindex, so a keyboard
could not open it, and nothing on it said what opening it does. Its icon
buttons were named by `title` only.

- The title and message are a real <button> with a focus ring; its ::after
  covers the card, so a tap anywhere still opens it, and the small actions
  sit above that layer.
- A visible line says where it leads ("Add a wallet" for a tip that found
  no wallet, "Open messages", "See the event"; "Open" otherwise), shown
  only when it leads somewhere.
- Ask the Cat, Mark as read and Delete get aria-labels and focus rings.

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

* feat(events): the host is told when someone takes a free ticket

A guest took a free ticket and the host's page silently said "1 ticket":
notify.ts told only the ticket holder and the crew. A paid ticket already
reaches the seller as a payment; a free one reached nobody.

- notifyHostTicketTaken (domain/events/notify.ts) sends the host an in-app
  `ticket` notification ("Anna is coming to <event>", linking the event
  page, where the door list is), using the existing type, so no schema
  change. A guest is named by the name they gave, an account by its
  profile name; a host taking their own ticket is not told.
- POST /api/events/[id]/ticket calls it after a free ticket (signed in) and
  after a guest ticket, only once the claim succeeded.

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

* fix(events): /events lists upcoming public events before a location is given

"What's on near you" showed nothing until a visitor allowed location or
typed a place, so online events never showed and a visitor who did neither
saw an empty section.

- GET /api/events/nearby with no lat and no lng returns every upcoming
  public event (listUpcomingEvents, domain/events/upcoming.ts): the same
  live statuses and test-row filter as search_events_nearby, the same genre
  match, and "over" by eventHasEnded, the rule the ticket functions share.
  Online first, then by date.
- EventsNearYou loads that list on open; Near me or a place narrows it,
  nearest first, with "Show everywhere" to go back. An online event reads
  "Online" where a distance would be; an empty list says nothing is coming
  up and links to hosting one.

Checked read-only against production: today the only public event is past,
so the list is (correctly) empty.

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

* feat(companions): a public bot can be supported, wears its face, and signs what it makes

- A public companion's page shows the existing support card, "Support <name>",
  paying the wallet its owner chose under "Pay into" through the same
  non-custodial public-support flow other pages use. The registry marks
  ai_assistant supportable with no purchase pattern. Visitors see no card when
  no wallet can be reached; the owner sees how to connect one. Private bots get
  no card, and there is no sticky bar above Talk.
- Creator copy: drop "earn you Bitcoin via Lightning", "portable" and the
  per-message price promise, since no price field exists. Hide the unused
  Compute Provider choice (the column is kept). "Pay into" now says what
  happens to the money. Fix the 95%/5% comment in assistant-charge.
- The bot page shows its face (picture, picked face, or the face its name
  picks) instead of the robot icon, and "Active" only to its owner. The share
  card never carries an SVG face, so generateEntityMetadata falls back to the
  entity card.
- Provenance: a new entity_provenance table (service role only, rollback
  note in the migration). The Cat's executor records the maker of every
  create_<entity type> action: the bot if the action came from one of the
  person's bot conversations, otherwise the Cat. Entity pages show a
  "Made with <bot>" byline that links to a public bot, "Made with Cat" for
  the Cat, or "Made with a bot" for a bot that is private or deleted.

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

* feat(share): every entity and public post gets its own share card

Eight of eleven entity kinds and every wall post shared as the generic
site card or with no image at all (create#2, media#4). A DJ sending his
service page sent an OrangeCat ad.

- /api/og/entity/[type]/[id]: one card for every kind whose page is the
  generic entity page, driven by ENTITY_REGISTRY (kind name, icon). It
  shows the item's own picture (fetched and checked first; WebP, missing
  files and slow hosts fall back to the kind's icon), the title, the
  maker's chosen name (never a minted user_<hex> handle), and one figure:
  price, goal, or date and city. Fiat amounts stay in the maker's
  currency (CHF when none is set). BTC-kept amounts are shown in CHF when
  a rate is available. Amounts raised are never printed.
- /api/og/post/[id]: author and first words of a public post.
- Both read with a sessionless client and the page's own visibility
  rule. A draft, a private, followers-only or inactive item, or an
  unknown type or id gets the plain brand card.
- generateEntityMetadata always points og:image and twitter:image at the
  entity card, with width, height and alt. Post metadata now carries its
  card and uses summary_large_image.

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

* feat(nav): Discover is a top-level sidebar item, and one word everywhere

Signed in, Discover sat under "More" next to About: two clicks away, and on
/discover nothing in the sidebar lit up because its group was collapsed. It
now sits in the primary section right after Home (the phone drawer's top
level too), named from PUBLIC_PAGES. The signed-in phone tab bar stays at
five slots: Create is the only way to create below the header's sm
breakpoint. The visitor tab bar's "Explore" is now "Discover", like the page.

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

* fix(dashboard): one skeleton of the real column, no full-screen spinner

/dashboard showed three loading states in a row (a stats-grid skeleton the
page no longer has, a full-screen "Loading your account" spinner, then the
page), CLS 0.378 on a phone. loading.tsx and the page's pre-account state now
draw the same DashboardSkeleton (greeting, door, setup card, a section). The
setup card holds its place while recommendations load when it is expected,
remembered per account on the device, so it neither pushes the column down
for a new account nor leaves a gap for a finished one.

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

* fix(copy): every kind goes by its registry name — Bot, Organization, Document, Research

The agent kind had five names (Bots, Companions, "AI Assistant Not Found",
"Create a companion", "a being", "My Companions"). ENTITY_REGISTRY.ai_assistant
is now Bot / Bots (ADR-0015, the sidebar, the Talk home) and every visible
label reads it: Discover chip, My Bots, page and 404 titles, Create menu,
form, empty state, Talk home, templates, Cat action, recommendations, and the
API errors a person sees. Type, tables, API path and /companions URLs stay.

Organization, Document and Research get the same treatment: "Start an
organization" (one spelling), the form title and labels, share card, settings
and layout titles read the registry; "Cat Context" / "Create Cat Context" and
"DeSci Research" become Documents / Add a document / Research.

A test pins the names and keeps the retired labels out of src/.

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

* refactor(pay): one hook holds a chosen amount over its opening

PaymentDialog and PublicSupportPanel both held "what the payer chose, else
the rounded opening"; useChosenAmountBtc keeps that once, and brings
PaymentDialog back under the 300-line component limit.

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

* test(nav): the visitor tab bar's Discover slot is called Discover

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

* docs(audit): the full-path review — seven areas, seven questions, 123 findings, what this fixes

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

* fix(articles): the byline prompt reads the account through useAuth

The byline hook imported the auth store directly, which pulled the real
Supabase client into the article-writing browser fixture (it stubs
useAuth, the composer's seam to the account), so the editor never
mounted. One seam: the hook reads profile and updateProfile from useAuth.

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>
2026-11-13 20:12:07 +01:00
..