Files
CatoandClaude Opus 5.5 a772acefdf fix(ux): close the UX audit and the UI/UX handoff — Studio drafts in every form, pay, sharing, groups, events (#1722)
* feat(ux): chatkit 0.31.3 and accountkit 0.30.0 — starters in one column, the Appearance row only on phones

- chatkit 0.31.3: the Cat's empty-state starters are one column at every
  width, not a wrapping row of pills (auth-firstrun#5).
- accountkit 0.30.0: the account menu's Appearance row is `shown: 'narrow'`,
  hidden by the package stylesheet from 768px up where the header carries
  its own theme toggle. The useMediaQuery width read, wrong on the server
  render and flashing on load, is gone.

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

* docs(audit): the package fixes are released — starters, the Appearance row and the feedback tab

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

* docs(audit): close the audit — triage of the eight findings left partly fixed

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

* fix(pay): paying someone on-chain shows their address and the BTC that must arrive, and Copy copies the address

On production, /pay/Penguin (receive-info says on-chain) at 390px, dark and
light, and at 1366px: after choosing CHF 10 the code screen read only
"CHF 9.98 / On-chain Bitcoin · no deadline / Open in wallet / Copy invoice".
No BTC figure and no address anywhere in the text; on a phone the only place
the address exists is the QR, behind a second tap. "Copy invoice" put
`bitcoin:bc1q…?amount=0.00016314&label=Tip+for+Penguin` on the clipboard, which
an exchange's or a bare-address wallet's send field does not take. On-chain
detection needs the full amount to arrive (mempool.ts), so a payer who converts
the CHF headline and rounds down is never seen. (The invoice request was
answered in the browser, so nothing was minted.)

PaymentQRCode, the one code screen behind /pay, the support panel and the
payment dialog, now reads the BIP21 URI with @bitbaum/paykit's settledRail.
When it is on-chain it says "0.00016314 BTC must arrive in full" under the
headline (displayBTC), shows the address in mono under the buttons, and the
button is "Copy address" and copies the bare address. Open in wallet keeps the
whole URI. Lightning is unchanged.

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

* fix(notifications): on a phone the item actions show and the words get the full width

Each notification held Ask the Cat, Mark as read and Delete at opacity 0.
Tailwind keeps group-hover behind @media (hover: hover), so a phone never
showed them, yet each was a live 44px target beside the unread dot, and their
140px squeezed the title and message into a narrow column.

The actions now sit on the time's line under the message, so the words use
the card's full width. They are hidden only for a fine pointer, shown on hover
there and while one has keyboard focus. The filter row was already fixed on
main; the test pins both.

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

* fix(events): an event that is over says so and sells no more tickets

Measured on orangecat.ch on 2026-11-12 (390px, light and dark, signed out
and signed in): the one public event, dated Sunday, September 13, 2026,
still showed "Free entry", a name field and "Get a free ticket", and
nothing on the page said it was over. The ticket box, the sticky "Buy a
ticket" bar and the pay panel decided from status alone, and nothing ever
moves a past event to 'completed'. claim_free_ticket and
claim_guest_ticket checked status alone too, and checkout for a paid
ticket never looked at the date.

- eventHasEnded (src/domain/events/time.ts): over once its end has
  passed (its start when it has none; an all-day event at midnight after
  its last day on the venue's clock), or once marked completed.
- Event page: the ticket box says "This event has ended." and offers no
  free or paid ticket; visitors see an "Ended" badge; no pay panel and no
  sticky "Buy a ticket". A ticket someone holds stays, without "show this
  at the door" or give-it-back. The organizer is told nobody can get a
  ticket instead of being handed the invite link.
- Checkout (initiatePayment, initiateGuestTicketPurchase) refuses an
  ended event before an invoice exists; the payment routes answer "This
  event has ended." instead of a generic failure.
- Migration 20261113163700: public.event_has_ended(event) holds the same
  rule; claim_free_ticket and claim_guest_ticket refuse with P0002. The
  paid issuers are left alone on purpose: they run at settlement, after
  the money has moved. Applied twice to a scratch Postgres 16 after the
  three ticket migrations and exercised as anon, authenticated and
  service_role.

Re-applied on current main; the migration is re-timestamped after the
newest one there.

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

* fix(assets): a rental's minimum and maximum period read "1 day", not "1 Per Day"

On orangecat.ch, the Availability card of a studio rented by the day read
"Minimum Period 1 Per Day" (390px and 1366px, dark and light). The rows
glued the count to the form select's cadence label, so a two-day maximum
would have read "2 Per Days", and the price row read "/ Per Day".

RENTAL_PERIODS now carries the unit each cadence is counted in (hour, day,
week, month) next to its select label. The asset page counts periods in
that unit ("1 day", "2 days", "3 weeks") and prices "/ day". An unknown
cadence still reads "period".

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

* fix(pay): the pay button says what it does; invoices say "Payment to"

Measured on orangecat.ch (2026-11-12, iPhone 13 390px, light and dark):
the button beside "Pay from my wallet" read "Show the code" and the
article Tip dialog's "Show tip QR", while a phone is shown Open in wallet
first and the code behind a second tap; /pay said the link and
your-name@orangecat.ch "are the same door", though the address refuses an
on-chain-only wallet; the article Tip button was 34px tall; every payment
from /pay, the Tip dialog and Receive was minted as "Tip for <name>".

Now:
- "Pay with a Bitcoin wallet" / "Tip with a Bitcoin wallet", and
  "Pay/Tip from another wallet" beside "Pay from my wallet". /pay's single
  action keeps main's "Pay CHF 20" / "Enter an amount".
- /pay's first point is "Two ways in".
- TipButton is min-h-11.
- The description is "Payment to <name>", plus ": <note>" when the payment
  answers an open request; a Lightning-address callback gets a comment no
  longer than the provider's commentAllowed.

Already on main, so not repeated here: both actions disabled outside
TIP_MIN/MAX (PayFlow amountReady), and the tertiary-text contrast
(--text-tertiary is now 42% light, 5.3:1 on white).

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

* fix(pay): your own pay page without a wallet shows where to add one, not a message to yourself

On orangecat.ch (2026-11-12, iPhone 13 390px, dark and light), signed in
as an account with no wallet, /pay/<own handle> showed the payer's dead
end: "<handle> hasn't added a Bitcoin wallet yet, so a payment has nowhere
to land. Nothing was charged." and one link, "Message <handle> to suggest
adding one", whose href was /messages?to=<the viewer's own profile
id>&draft=add-wallet. Nothing led to /receive, where a wallet is added.

PayPageClient now reads the viewer with useAuth(). When the viewer is the
recipient and the page has no way to pay, it shows an owner line ("This is
your pay page. Nobody can pay you here yet. Add a wallet and payments land
in it.") with an "Add a wallet" button to /receive. Every other visitor,
signed in or out, still gets the nudge. The words live in PAY_COPY.

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

* fix(share): a shared page says its own title, shows an image, and X says the same

The root layout's openGraph/twitter carried the homepage's title,
description and URL, so pages without their own shared as the homepage;
pages that set an openGraph dropped the root card image; descriptions of
entities, profiles, groups, articles and posts went out untrimmed.

- root layout keeps only type/locale/siteName and card; the homepage sets
  its own title, og:url and canonical
- pageMetadata() in src/lib/seo/metadata.ts: canonical, feed link, og and
  twitter in one shape, with the root card unless a page names one and
  descriptions cut by metaDescription(); generateEntityMetadata uses it
- /pay, /pay/<name>, /blog, /steal, /ecosystem, /community use it;
  profile, group, article and post descriptions are trimmed and X uses the
  same title as og:title

Re-applied from claude/orangecat-page-share-metadata (#1649) on current
main; /technology is now a redirect to /docs, so it needs no metadata.

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

* fix(groups): Discover counts the groups it lists; dashboard shows real member counts

Re-applies the closed #1675 on current main:
- fixture group names live once (FIXTURE_GROUP_NAME_PATTERNS) and travel to
  search_public / public_counts / public_search_text as p_exclude_group_names
  (new migration 20261113160000, rollback note inside), so count, total and
  rows agree;
- browse "Show more" only when rows lie past what the page asked for;
- the dashboard's groups queries drop fixture groups (imatch) and embed
  member_count; GroupCard says "1 member"/"N members", never "0 members".

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

* fix(profile): the Cat's profile leads to its chat, not a direct message it would not answer

/profiles/cat showed "Message", linked to /messages?to=<the Cat's id>. A
direct message to the Cat's account is answered only when it tags @cat, so an
ordinary question there got no reply and no error. The button now reads
"Talk to Cat" and opens the Cat's own chat, until a one-to-one with a bot
answers every message (ADR-0015 D3).

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

* fix(design): Bitcoin-orange words clear 4.5:1 in light (text-bitcoin-text)

#f7931a as text measured 2.01-2.30:1 on every light surface and
1.95-2.12:1 on the bitcoinOrange/10 chips, so BTC amounts, "Primary"
chips and Bitcoin labels were unreadable in the light theme.

- globals.css mirrors @bitbaum/design-tokens --bitcoin-orange-text
  (Unreleased, after 1.7.1): #9d5906 in light (4.75-5.43:1 on surfaces,
  4.61-5.01:1 on the orange/10 chip), the true orange in dark (6.14-8.17:1).
- tailwind maps it as `bitcoin-text`, the package preset's name.
- The 15 places that draw orange WORDS switch to text-bitcoin-text;
  icons, fills and borders keep bitcoinOrange.
- check:token-contrast measures the new token on all six surfaces and on
  the orange/10 chip in both themes (142 pairs, was 124), and requires
  .dark to set it.

Positive green already passes (light 145 60% 29%: 4.91-5.61:1; dark
145 55% 50%: 6.36-8.46:1), so it is unchanged.

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

* fix(a11y): Discover's focus rings show whole; the unread badge carries no label of its own

Re-applies the part of the closed Discover/badge contrast fix that main
still lacks. The chip counts (no more opacity-60) and the badge's ink
(text-fg-inverted) already shipped with the UX audit.

Measured on orangecat.ch, 2026-11-13: tabbing Discover, every chip and
every rail card had its 4px focus ring cut by the row that scrolls (54
of 54 at 390px, 13 of 13 at 1280px, light and dark); overflow-x: auto
clips overflow-y too, and since the chips now scroll at every width the
first chip lost its left edge from sm as well.

- .oc-discover-chips keeps 4px of padding on every side the ring reaches
  and gives it back in margin (-mb-1 mt-4 py-1, sm:-mx-1 sm:px-1); the
  mouse scrollbar's bottom padding keeps its old net spacing.
- .oc-discover-rail-track keeps 4px above its cards on a phone (-mt-1
  pt-1); from sm it is a grid and clips nothing.
- NotificationBadge drops aria-label: not allowed on a plain span, and
  the bell and tab already say "(3 unread)" in their own names.

With this branch's compiled CSS swapped into production /discover: 0
rings clipped at 390px and 1280px in both themes; the first chip and
first card sit at the same y as before.

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

* fix(cat): Cat settings checks for local runtimes only when asked

Re-applies the closed fix on current main. LocalRuntimePanel probed
http://localhost:11434 and http://localhost:1234 on mount, so every visit
to Cat settings (every phone included) made two refused connections and
logged two console errors, and a public site reaching for localhost is
what Chrome gates behind a local-network permission prompt.

- Nothing is probed until "Check this computer" is pressed; until then
  each runtime shows its install link and start command. After a check
  the button reads "Check again" and the result line is announced
  (aria-live). The check and Copy buttons are 44px on touch.
- The Cat page already has its h1 on main; it now takes the name from
  CAT_HUB_COPY.title instead of a literal.

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

* fix(groups): a public group's Events and Activity tabs answer a signed-out visitor

Re-applies the closed #1678 on current main. GET events and activities use
withOptionalAuth (row policies decide what is listed); activities tells a
non-member membersOnly: true without reading the table, and the feed says
"Activity is visible to members", with a Sign in link back to the group
when signed out, instead of "Could not load" or a false "No activity yet".

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

* fix(share): share cards only say what is true, and X fits one post

- project card draws "Back it in Bitcoin" only when the page's own wallet
  check (resolveSellerReceiveInfo) finds somewhere to receive; on no
  wallet or a failed lookup the line is left off
- profile and group cards use shareLine() instead of .slice(0, 180), so
  bios no longer stop mid-word
- a profile or group name with no row gets brandOnlyCard(), not a branded
  card built from the URL; the group card drops the "/<slug>" pill that
  pointed at a 404 (StatPill had no other user)
- xPostText() builds title + shareLine() + hashtags and drops hashtags,
  then the line, until the post fits 280 next to the link, counting CJK
  and emoji as X does; the X share target uses it

Re-applied from claude/orangecat-share-cards-and-sheet (#1650) on current
main. The sheet's dark-theme contrast and double close button were
already fixed on main (GRADIENTS ink fills carry text-fg-inverted; the
card hides its close inside the Dialog); the sheet test now guards them.

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

* fix(community): the footer's Community feed opens for signed-out visitors

The footer links "Community" from every public page, but signed out
/community showed only "Please sign in / You need to be signed in to view
this page" (orangecat.ch, 390px and 1440px, 2026-11-13). The feed's view,
community_timeline_no_duplicates, holds public posts only
(visibility = 'public') and is granted to anon: the data was public, only
the page refused to read it.

The community feed now loads signed out, and the composer's place shows the
"Sign in to post" prompt that profile and project timelines already use,
extracted into SignInToPost so it is one shape. Its sign-in returns to the
page (/auth?from=/community). The reader's own feeds (timeline, following)
still need a reader.

Re-applied from claude/orangecat-community-feed-signed-out onto current main.

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

* fix(public-copy): say which settings and payments are really public

- /faq ("Who can see my activity?") and /docs ("Visibility control") said
  every entity has a public / followers-only / private setting. Listings
  have "Show on Public Profile"; that three-way choice exists for posts and
  articles. Both pages now show one wording, ENTITY_VISIBILITY_SUMMARY in
  src/config/public-visibility.ts (faq.md takes it as a placeholder).
- /how-it-works and /security said every transaction is publicly
  verifiable on the Bitcoin blockchain. Lightning settles off-chain (the
  privacy policy in legal-content.ts says so). Both now show
  SETTLEMENT_TRANSPARENCY_CLAIM, kept next to FEE_CLAIMS.

The step-mark contrast half of the original branch is already fixed on
main (#1634 moved the steps to oc-icon-tile and a token pill; 7.8:1 in
both themes on orangecat.ch), and /technology is now a redirect to /docs,
so neither is carried over.

Re-applied from claude/orangecat-public-copy-truth onto current main.

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

* fix(groups,circles): no multisig promise; an empty kind says what it is

Re-applies what is still open from the closed #1680 on current main (the
Discover zero state, singular counts and the dashboard create button
already landed in #1716):
- the create panel no longer offers "multi-signature Bitcoin wallets";
  the treasury is the organization's own addresses, shown to its members,
  and multisig stays only as advice; the panel names the kind from
  ENTITY_REGISTRY ("Why organizations?") instead of "Group";
- Discover's empty kind adds the kind's plain verb and definition;
- the circles empty state says what a circle is;
- the dashboard adds its create button to the empty state only while the
  header's Create is hidden, so a screen never shows two.

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

* fix(ux): Loki on a phone, the model menu inside the panel, Bitcoin icons coloured; bip-kit 0.8.2; record the handoff

- The Loki chip shows on phones as its hammer alone (44px, named "Loki").
- The model menu opened upward hangs from the trigger's right edge.
- Five icons used text-bitcoin-orange, which is no class; they now use
  text-bitcoinOrange.
- @bitbaum/bip-kit ^0.8.2: readable Mermaid labels and a gutter that counts
  from the screen edge.
- The audit records the handoff of 19 closed PRs, item by item.

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

* docs(changelog): claim only the community feed

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

* fix(migrations): one version per migration — the groups count and the timeline view move off 20261113160000

Three files shared 20261113160000, which the Supabase ledger keys on. Both
renamed migrations are safe to run again (a guarded constraint drop / a view
option with its own check), and the deploy ledger keys on filename.

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

* fix(studio): every form drafts, not only music; visitors can create

On production every Studio form but music failed with "could not finish"
in about 350ms: the prompt shows a score example, so a poem came back with
"score": null and the strict schema discarded the whole draft. The route now
reads a draft the way the Studio means it (readCreativeDraft: a score for
music only, lines joined, the work under its form's name) and tries once
more on an unusable answer.

A visitor's draft no longer ends at a sign-in wall in a new tab: drafts run
on the per-IP budgets (general, then 6 per 10 minutes), the same shape as
dictation, now shared as visitorOrUserBudget.

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

* test(studio): the route test mocks the optional sign-in and the visitor budgets

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

* refactor(studio): the one retry is a bounded loop, not a repeated expression

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

* chore(deps): keep chatkit 0.31.2 and bip-kit 0.6.1 until the rollout gate clears them

The fleet's shared-package rollout gate holds a PR that moves to a package
version not yet proven in its canary product (bitbaum/kivvi), and it held
this one on chatkit 0.31.3 and bip-kit 0.8.2. The Studio, pay, sharing,
groups and event fixes here do not depend on either; the two bumps follow
on their own once the gate clears them. accountkit 0.30.0 is not held.

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 17:58:09 +01:00
..