mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-04 05:17:20 +01:00
main
344
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ee219b3c62 |
docs: PR triage 2026-12-02 (#1870)
Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9323db5e16 |
fix(cat): unify public search and recoverable failure handling (#1423)
* fix(cat): unify public search and recoverable failure handling * fix(search): own items read the user id by selector; keyboard test stubs them On main's merge this PR failed 7 palette keyboard tests: useOwnSearchThings called useAuth(), which reads the whole store without a selector, while the palette (and main's test) read auth through selectors; and the hook's query needs a QueryClient the keyboard test never provides. - useOwnSearchThings reads useAuthStore(state => state.user?.id) only - search-query-safety mocks the store selector instead of useAuth - the keyboard test stubs useOwnSearchThings (it is about the keyboard; search-query-safety covers the items) Verified on this branch merged with main: 21 search + hook test files, 122 tests pass; tsc clean; eslint clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> --------- Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Cato <cato@orangecat.ch> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
b2da8561b7 |
refactor(brand): marks come from @bitbaum/design-tokens/marks (#1584)
* refactor(brand): marks come from @bitbaum/design-tokens/marks Every product's mark now lives in the design-tokens package (1.6.0), so a logo is replaced once and OrangeCat, Solon and Loki follow. The local copies (loki, orangecat, solon) and the source writer are gone; src/config/marks, mark-svg and svg-to-mark re-export the package, so no call site changed. The cat generator stays here and the brand test holds the package's cat equal to it. `brand:import` now prints where to import a mark instead of writing a copy that would drift. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 * docs(brand): name the package's import script without claiming it here Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsX15QgjkDp9MQaQ92 --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Cato <cato@orangecat.ch> |
||
|
|
3857c7ae79 |
docs(agents): one AGENTS.md — fold verified rules in, delete the rest (#1859)
AGENTS.md is now the only repo-specific instruction file. CLAUDE.md and .claude/CLAUDE.md are one-line pointers. Deleted: .claude/rules/* (6 files), .cursor/rules/* (7), docs/api/AGENTS.md (its machine-buyer walkthrough moved into src/app/api/v1/README.md), .claude/README.md (described the deleted layout) and the archived docs/archive/development/guides/AGENTS.md. Every rule kept was checked against the code. The deploy and verify sections no longer describe GitHub Actions (off since 2026-11-15): forge/verify merges, forge-ops on Gitea deploys. Ownership and money lines corrected: owner column from getUserIdField, entity prices in their own currency. Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
88b06e8adc |
Public pictures straight from R2; the box stops resizing them (#1861)
Public pictures still passed through the app box: storage-api answered every supabase.orangecat.ch/storage/v1/object/public/... request, and next/image fetched, resized and cached them there. orangecat-media holds private files too, so it never gets a public domain; public pictures go to the separate public bucket fleet-media under orangecat/<bucket>/<path>, served from MEDIA_PUBLIC_BASE. - src/lib/media/public-url.ts: the one URL helper. Direct address only for objects known to be copied (listing every 10 min + own writes), otherwise the Supabase address. Unset base: unchanged. - New uploads: server-side ones are written to fleet-media as stored; browser uploads ask POST /api/media/mirror. Stored URL is the direct one or, on any failure, the Supabase one. - Background copy from instrumentation: idempotent, throttled (MEDIA_BACKFILL_KBPS, 512), one process at a time under a lease taken with a Postgres advisory lock (new migration). Only buckets declared public in code AND marked public in storage.buckets. Removes copies of deleted originals after a complete scan, capped at a tenth per run. - next/image: with the base set at build, a custom loader draws R2 pictures unoptimized and sends Supabase public pictures to /api/media/object, which redirects to R2 once copied, else to the optimizer as before. - Docs: STORAGE_R2_BACKEND.md (how, switch-on, rollback, the pre-move disk copy an operator may remove), .env.example; three docs that named the removed auto-merge.yml now name the forge merge check. Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e75c9521d8 |
docs(adr): ADR-0016 a generic core and specialised edges (#1852)
OrangeCat stays generic; specialised apps (Causius, Diplodoctor, Heidi) plug in through one account, place codes from Solon's register, and credentials issued by the app that can check them. Organizations own their products, and an existing project can move to one. Signed-off-by: Cato <41178744+catomean@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5ed9228b24 | docs: one handoff for 2026-11-19 — CI blocker, PRs #1843–#1847, QA baseline, next steps (#1848) | ||
|
|
ea7d8a2ed1 |
feat: the Workshop (a room where all your names talk); Show text under voice messages; article (#1832)
* feat(identities): the Workshop, a private room where all your names talk - identity_workshops (service role only) and a trigger that removes an identity from its holder's Workshop when its link is deleted (handed over) or it gets a way in of its own. - domain/identities/workshop.ts: open (made from Writing as, synced with the circle), find, maySpeakAs; GET/POST /api/identities/workshop. - Send: speakAs, allowed only in the caller's Workshop for a name in their circle; written as that account. - Messages: a Speaking-as picker in the Workshop; Writing as opens it. - ADR-0014 D11; roadmap; changelog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * feat(messages): Show text under a voice message (transport.transcribe) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * docs(blog): Who Read It, Who Said It, and Which of You Is Talking Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * chore(deps): @bitbaum/chatkit 0.44.0 (Show text under a voice message) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * chore(deps): @bitbaum/chatkit 0.44.1 (Info leaves agents out) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
9848025e89 |
feat(planner): a calendar of your own, and your bots can use your to-do list (#1747)
"What do I have next week" could only be answered from an outside calendar, which needs that provider's sign-in app, permissions and reconnects. A person's days now have a home here, and the to-do list the Cat already kept is the bots' to use too. - calendar_entries: a private calendar the person, their Cat or a bot writes to (made_by says who). /dashboard/calendar lists the coming days and adds or removes an entry. - One agenda (services/planner/calendar.ts): own entries, tasks and reminders that fall due, and a connected Google calendar, in time order in the person's own clock. calendar_read is that agenda now, for everyone, instead of a read offered only where Google is connected. - New actions calendar_add, calendar_remove, tasks_read. The task bodies moved from the Cat's handlers into services/planner so one body serves the Cat's cards and a bot's work loop. - Bots hold the planner hands, and may run them on their own where the owner says so: what they write is private to the owner and can be taken out again. A write is still checked against the owner's rules. - A plain ask about the to-do list or the calendar is read in code before the model answers. Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
cdad781fc0 |
feat(messages): other people's public bots as contacts, with the price said first; New opens on your bots (#1741)
ADR-0015 build order 5. A seat follows its companion's own door: the owner always, anybody else while it is public and active. Search in New finds public bots after your own and the people; New opens on your own bots (chatkit 0.33.0, transport.suggestions). A bot that charges the viewer says its price above the message box before the first message. Fix: a thread's page carries its conversation without the agent flag, so a bot could be redrawn as a person once its messages loaded. Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
8e7b275042 |
feat(messages): the top of Messages says which of your names you are writing as (#1740)
ADR-0015 build order 4 (D5). Somebody who holds more than one identity sees the one in use above their conversations, the count waiting in the others and a switch that lands back on Messages. Nobody else sees the row. Nothing in a conversation links one name to another. Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
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> |
||
|
|
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> |
||
|
|
c907667a7a |
feat(messages): a bot in a group of people answers when it is named (#1729)
ADR-0015 build order 3. A person's own bots can be put in a group with people. A bot there answers a message that names it (@Name, the bot rooms' matcher; at most three bots per message), for the person who named it. It reads from the moment it joined, every line it is given says who wrote it, and its private memories of the asker stay out of the group. A bot that is not public answers its owner only and says so. A bot's own line is never owed an answer, so bots cannot keep each other talking. Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
52433dec3a |
feat(connectors): a connected GitHub and Google account, read by the Cat and by your own bots (#1727)
* feat(connectors): a connected GitHub and Google account, read by the Cat and by your own bots Three read-only abilities: github_read (repositories, open issues, open pull requests, one file), gmail_read (a search, or one message) and calendar_read (the coming days). They are Cat actions with a card, and hands in a bot's launch set with the same switch per bot; because they only read, a bot may run one on its own, so a routine can open the calendar by itself. - Google connects with two scopes, gmail.readonly and calendar.readonly, through its own OAuth client (GOOGLE_CONNECT_CLIENT_ID/_SECRET); inert until those are set. GitHub uses the GitHub App connection that existed. - Tokens for both sit in one encrypted store (services/connectors/ token-store.ts); cat_connection_tokens now takes provider 'google'. - A hand is offered to a bot only where its account is connected, and what a read returns is handed to the model marked as outside content. - Setup and Google's limits for an unpublished app: docs/operations/ connectors.md. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * fix(migrations): the routines migration gets a version of its own It merged with the same timestamp as the timeline view's migration (20261113160000), which landed minutes before it; check:migration-versions failed on main and nothing deployed. Neither the file's contents nor any applied migration changes: CI on the merge commit was red, so this file was never applied under its old name. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
c9a97b8d2b |
feat(messages): write to your own bots like to a person; the message box and top bar drawn right (#1725)
* feat(messages): write to your own bots like to a person; the message box and top bar drawn right Bots (ADR-0015, build order 1 and 2): a companion gets a seat, an account of its own, the first time its owner opens a conversation with it; it is listed beside people in New conversation; every message to it is answered there by the one function that answers for a companion everywhere. Looks (owner's screenshot, 2026-11-13): the site's focus ring drew a box inside the composer, a link's 44px minimum pushed the name off its subtitle, a photo that is not square was a tall oval, and Sending as sat on the edge. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * fix(migrations): two files no longer share a version, twice over Main has 20261113160000 twice (#1723 and #1724), which fails check:migration-versions on main and on every PR merged with it; neither file has been applied (the site is on the build before both). The routines migration moves to 20261113161000. This branch's own seat migration moves off 20261113170000, which #1723 also took, to 20261113173000. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
be275ad6db |
feat(companions): Talk, several routines per bot, suggestion chips, a group chat's own picture (#1723)
* feat(companions): Talk: a spoken conversation with a bot A "Talk" button in the header of a bot's chat opens chatkit's VoiceMode: listen, send, read the answer aloud, listen again. A spoken turn is the same send as a typed one (useCompanionTalk ask), so it is in the thread with its cards and steps, and what is read aloud is what the thread shows. Held back from #1717 until chatkit carried VoiceMode here; main is on chatkit 0.31.2 since #1718, so it needs no version bump of its own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * feat(companions): a bot can have several routines A bot held one routine per person: a morning brief or a site check, never both. It now holds up to five, each with its own time or interval and its own question. The details sheet shows one row per routine and a last row that adds another; Stop takes the one that is open. The pair (user_id, assistant_id) stops being unique (migration); how many is the store's rule. The route's answers carry the whole list and, as before, the first routine, so a page loaded before the deploy still reads it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * feat(companions): suggestion chips above your own bot's message box One tap writes the start of the sentence into the box ("Check this site and tell me what is broken: ") and the person finishes it. A chip is there only while its ability is switched on for that bot, and a bot still waiting for its job shows its first question instead. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * feat(companions): a group chat can have a picture of its own A group wore the faces of its first two members and nothing else. Its details now have "Change the picture": a shape and a colour, as for a bot, or back to its members' faces. The client sends the two ids and the server writes the face; the list, the header and the sheet draw it. The shape and colour rows are one component now (FacePicker), shared with the new-bot sheet. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * docs(companions): the parity table, the decision record and the changelog say what a bot can do now Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * refactor(companions): the routine list the details read is built in one service The route was over its size limit with the list-builder inline. It moves to services/companions/routines-view.ts, and the own-key pin follows it there. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh * fix(migrations): the routines migration says why lifting the uniqueness rule is safe to deploy Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmwF5V6xdaNTSbg9ouh --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
03f40fd4e9 |
feat(ux): the four open audit decisions — visitors can dictate, one name for organizations, /channel stays, a new loan is not asked what it still owes (#1719)
* feat(ux): the four open audit decisions — visitors can dictate, one name for organizations, /channel stays, a new loan is not asked what it still owes
- /api/cat/transcribe takes a visitor's take on a per-IP budget (12 per
10 minutes, on top of the general limiter) and up to ~4 minutes of audio;
the door, /raise, /feedback and /studio show the same microphone to
everyone, and the browser-only fallback is gone.
- The group kind is named from the registry ("Organization") in the
context switcher, loading screen, list page and join button.
- "Remaining balance" is asked only of a loan being refinanced, as
"Still owed" (optional); a new loan's is set to the loan amount.
- /channel stays: its waitlist is live.
Audit docs and CHANGELOG record each decision and why.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* refactor(api): the dictation budget in its own module, so the route stays thin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn
* fix(groups): the join button says what it joins
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>
|
||
|
|
1fb7f5c26d |
docs(messenger): ADR-0015, one messenger for people and bots; the roadmap's order for it (#1720)
Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
2df62fba59 |
feat(ai): a key saved in Loki answers your bots here, and each model gets its tools in its own format (#1717)
* fix(migrations): the vendor daily cap takes its own version, 20261112202000 #1672 and the members-only groups migration landed on main with the same version, 20261112200000. schema_migrations.version is a primary key, so check:migration-versions and Migration Replay failed on main and the deploy did not run. The cap's migration had not been applied anywhere (its deploy was the one that stopped), so it takes an unused version; nothing else changes. Unit suite locally: 718 files, 5841 tests passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): walk_site, a QA hand that opens a live site in Loki's browser and says what is wrong Cat Bot's first missing row against Grok Bot (docs/PARITY.md, plan step 1): headless browser testing. A bot proposes walk_site with one to three full addresses and, optionally, phrases each page must show. Loki opens each page at phone size in its own guarded browser (bitbaum/loki #1696) and answers per page: it loads, shows what it must, does not scroll sideways, has no broken picture. The thread keeps Loki's own sentences; nothing is filed, and a problem is filed with file_loki_finding. - services/loki/site-walk.ts: the call over the signed rail, the parsing of what a bot names, and the lines the thread keeps. Nothing is opened without a full address or for more than three pages; a refusal is Loki's sentence; an answer that cannot be read is never reported as a walk. - One body in LOKI_HANDS, so the Cat's card and a bot's own work loop run the same thing; read-only, so it can be switched to "on its own". - Registered in cat-actions, the Loki connection, the bot's hands and their labels, and the chat's progress words. - The prompt budget is raised 7,080 -> 7,230 for one clause and two parameter names, with the reason beside it. - docs/PARITY.md: the row is in progress, and step 1 says what is still to do (the picture in the thread; a walk that clicks through a flow). __tests__/unit/cat/loki-site-walk.test.ts. Unit suite: 730 files, 5924 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): use_browser, a browser of its own for every bot; a failed page's picture in the thread Cat Bot's computer use against Grok Bot's (docs/PARITY.md, plan step 2), OrangeCat's half; Loki's is bitbaum/loki #1697. A bot proposes one step at a time: open, click, type, press, scroll, back, look, close. Loki takes the step in that bot's own Chromium (its own cookies, kept out of the private network) and answers with what the page now shows. The thread keeps the picture, the address, what the page says, and what can be clicked or typed into, numbered, so a model that cannot see pictures drives by number. Loki never types a password or a card: that step stops and says the owner does it. - services/loki/browser.ts: the step a bot wrote becomes the step Loki is asked for, or a sentence saying what is missing; nothing is sent for a step that cannot be one. A stopped or failed step is its sentence, never a success; an unreadable answer is never a page. - Whose browser is the server's to say: hands-server stamps bot_id from the bot whose turn it is and drops whatever a model wrote there. The Cat, which is no bot, uses the person's own. - One body in LOKI_HANDS, so a card and a bot working on its own run the same thing. - walk_site now shows the picture of a page that failed. - Prompt budget 7,230 -> 7,440, with the reason beside it. PARITY rows updated. __tests__/unit/cat/loki-browser.test.ts. Unit suite: 731 files, 5935 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a model picker for a bot's chat, from the person's own key Grok Bot has a model picker. A Cat Bot's turn used one fixed model per provider on a person's own key and nobody could change it. - services/ai/own-models.ts: the choices are the provider's own answer for that key (GET /models, which every provider this app calls directly serves), not a table of other companies' model names kept here. Reading it calls no model. An OpenRouter key lists this app's routed table; the shared pool has nothing to choose and says so. - GET /api/ai-assistants/models. - "Model" in a bot's details (ModelRow): chosen per bot on this device and sent with each message; a name that is not a model id never reaches a provider (chosenModel), and a name the provider refuses is its error. - The own-key turn uses the chosen model; "auto" and nothing mean the provider's default, as before. __tests__/unit/ai/own-models.test.ts. Unit suite: 732 files, 5942 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a person can add and correct what a bot remembers about them The memory page could only forget. Now a person tells a bot something to remember, and corrects a line it got wrong. - memory.ts writeCompanionMemory: the new words are stored first (embedded like any other, marked source "owner", never deduplicated), and only then is the line they replace forgotten, so a failed save loses nothing. - POST and PATCH on /api/ai-assistants/[id]/memories, scoped to the caller like the rest of the route. - MemoryList: a field to add one, Edit beside Forget, 44px targets. __tests__/unit/companions/memory.test.ts (three new cases). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a bot's library: the photos, files and links from your chats with it Grok Bot keeps a Library per chat. Nothing new is stored for this one: a stored message already says what went with it (the attachment tags the thread draws its chips from) and a link is in the words. - services/companions/library.ts libraryFrom: pure; photos and files from the person's own lines, links from both sides (each once, its latest), a picture the bot's browser took shown as a picture. A tag in a bot's line is never read. - GET /api/ai-assistants/[id]/library: the caller's own conversations with that bot; a stored photo comes back as a ten-minute link, only from the caller's own folder. - /companions/[id]/library, and "Library" in the bot's details. __tests__/unit/companions/library.test.ts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): your own rules for your bots, checked before a bot acts on its own; your time zone Grok Bot reviews a bot's risky actions against rules the person wrote. - user_ai_preferences gains bot_rules and time_zone (migration 20261113130000), one set per person. - services/companions/rules.ts: the rules are in a bot's prompt on its owner's turn, with the owner's hour. A step a bot would run ON ITS OWN is checked against them first: one short model call that answers ALLOW or ASK. Only a clear ALLOW runs; ASK, anything else, or silence turns the step into the ordinary card with the reason in the thread. A rule can only add a tap. Reads and looks are not checked. - GET/PUT /api/ai-assistants/rules; "Your rules for your bots" in a bot's details (RulesRow), shown to the owner. - Memory writes moved to /memories/write (POST, PATCH): storing a memory embeds its words, and a file a GET lives in may not import that. __tests__/unit/companions/rules.test.ts. Unit suite: 734 files, 5958 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * test(live): the rehearsal sets a model, rules, a memory and reads the library on the live site Case 8 of bots-rehearsal.live.spec.ts, as a brand-new person: the shared pool says it picks the model; rules save as written and a time zone nobody knows is refused; a memory is added, corrected and forgotten; the library answers a list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(migrations): the bot rules constraints are added only when missing, and nothing is dropped safety-lint refused the DROP CONSTRAINT IF EXISTS that made the two ADDs repeatable. A DO block that adds each constraint when it is not there is repeatable too, and drops nothing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(companions): the library's dates and the owner's hour are written in the app's locale check:app-locale refused a browser-locale date in LibraryList and two hard-coded 'en-GB' formats in rules.ts. The date is formatDate, and the hour uses APP_LOCALE. The whole of scripts/verify.mjs passes locally. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(diagnostics): a bot turn's failed links tell our own daily cap apart from a vendor's 429 2026-11-13 06:24 UTC, first hand on the live site: a new person's bot got 502 in 0.7 s. cat-diagnostics showed google 403, groq 429 and openrouter 429 for the hour, and could not say whether those 429s were the vendors' own limits or OrangeCat's daily spending cap, which refuses a call as a 429 so the chain moves on. The summary now marks a cap refusal (cap: true) and the public report prints it as "cap". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): Talk: a spoken conversation with a bot (needs chatkit 0.30.0) A "Talk" button in the header of a bot's chat opens chatkit's VoiceMode (bitbaum/chatkit #89): listen, send, read the answer aloud, listen again. A spoken turn is the same send as a typed one (useCompanionTalk ask), so it is in the thread with its cards and steps, and what is read aloud is what the thread shows. Not complete on its own: the dependency bump to @bitbaum/chatkit 0.30.0 follows in the next commit, once that release is on npm. No pull request until then. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * chore(deps): @bitbaum/chatkit 0.30.0, which carries VoiceMode and the microphone fix Completes the Talk button of the commit before: it type-checks and the whole of scripts/verify.mjs passes (779 files, 6559 tests). 0.30.0 also fixes a microphone that a quick double tap could leave open, in every chat's dictation button. PARITY: the voice row is in progress. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(ai): a key saved in Loki can answer the person's bots here One person, two linked accounts, one key. The key is never copied: Loki keeps it and makes the model call for the linked account over the signed rail. - Settings → AI: 'Use my <provider> key here' / 'Stop using my key', for the signed-in person only; off by default - a bot turn, a group reply and a routine use a switched-on Loki key when no key is saved here; a key saved here still wins - the model row lists the models Loki reads for that key, default the one chosen in Loki Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): each model gets its tools in the format it was trained on A bot offered its hands to every model as prose and read a fenced block back. A model does better with its provider's native function format. - config/model-profiles.ts: what each model takes; unknown means prose - companions/native-tools.ts: hands as functions, earlier proposals as the tool calls and results they were, a tool call back as the same fence, so the card, the thread and the work loop are unchanged - ai/direct-reply.ts: on the person's own key (here or held on Loki) a native model is sent functions; a provider that refuses them is asked once more in prose Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * Revert "chore(deps): @bitbaum/chatkit 0.30.0, which carries VoiceMode and the microphone fix" This reverts commit |
||
|
|
142f21eb1b |
fix(ux): the rest of the UX/UI audit — sign-up, phone navigation, money, listings, settings, create, public pages (#1716)
* fix(design): the rest of the orange; a gate keeps it to Bitcoin and the sign-up action The orange was still decoration and words across signed-in screens: Save buttons in the room, deck and money-route editors, the AI key and onboarding steps, passkeys, the profile wizard, Create Group, Cat memory import; focus rings and borders on inputs, hover colour on article titles, drag-over and selected outlines, AI sparkles and integration icons, the "Your plan" badge. As text it is 2.0-2.3:1 on light surfaces. Those in-app buttons are now variant="primary"; orange ink, borders and rings are ink tokens (text-fg-primary/-secondary, border-fg-primary, ring-ring); hover on titles underlines. Orange stays on Bitcoin (Pay, Fund, invoice, ticket payment) and on the public sign-up / sign-in-to-act buttons. New scripts/check-one-orange.mjs ratchets variant="accent" under src/app/(authenticated) and (text|border|ring)-accent-warm anywhere in src, both at a baseline of 0; registered as check:one-orange in package.json and both verify lists, with a fixture test. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create): open every create page on the form, templates behind a button Ten create pages opened on a template gallery with "Start from scratch" pre-ticked and no Continue, and on a phone that was up to 50 full-height cards before the first field. The project wizard had a template step of its own with Previous, Skip and Next (two of them doing the same thing). Now the form is always first. Where a type has templates, the page header offers "Start from a template", which opens the picker in a dialog; picking one fills only the fields not typed into yet and closes it. The picker shows a check only for a template someone picked, and below sm it is one bordered list of rows instead of cards. The project wizard loses its template step. The create header (single form and wizard alike) is now FormHeader, drawn by PageHeader: breadcrumb, title, subtitle, owner picker and template offer as actions. The palette-coloured type icon and the wizard's own Cancel + h1 row are gone. The wizard's card header that repeated each step's group heading is gone, and the AI prefill bar shows on the first wizard step only instead of above every step. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): one name per public page; Product and About split in the header The header's "Product" menu held the company pages (about, roadmap, docs, governance) and the top-level "Support" opened the page where people fund OrangeCat, not where they get help. The header and footer labelled the same routes independently, so Pricing was "Cat plans" in the footer and Docs was "Documentation". PUBLIC_PAGES in src/config/navigation.ts now holds each public page's name and one-line description, keyed by route, and the header, the visitor menu and the footer are all built from it. Product = How it works, What you can do, Discover, Get paid; Pricing and Blog are top level; About = About & mission, Roadmap, Changelog, Docs, Whitepaper, Governance, Support OrangeCat. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): the search palette finds public pages and stops sending visitors to sign-in buildPages() indexed only the sidebar and the entity lists, so "Pricing" or "Docs" found nothing, and a signed-out visitor's default rows (Cat, Home, My things...) and the Create group all ended at the sign-in form. The palette now also indexes every public page (PUBLIC_PAGES, with keywords such as "plans" for Pricing). Signed out, public pages lead, nothing behind sign-in is offered, the Create group is hidden, and "Search Discover for ..." replaces "Ask your Cat". The empty line reads "No page or listing matches". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(cat-settings): permission rows speak to the person, and say what is really on What was wrong: - Each permission row rendered CatAction.description, which is the tool prompt the model reads: other tool ids, NOT/STARTED in capitals, "the user". - Risk tiles used raw palette classes with no dark value. - A brand-new account (Connect Wallet and Explain Transaction on by default) saw Payments switched on under "Send Bitcoin and fund projects", a bare "2/8", and a warning that something high-risk was enabled. - Presets applied on one tap, replaced every individual choice without asking, never showed which one was active, and the fourth was a ghost link. What it does now: - src/config/cat-action-summaries.ts holds one plain sentence per action; the permissions API sends it instead of the model description. A test fails when an action has no summary or a summary reads like a prompt. - RISK_COLORS use the status tokens. - Categories read "2 of 8 on"; a partly-on category names what is on and starts open. Category names: "My things", "Memory and notes"; Payments is "Wallets, bookings and payments". - The high-risk note names the actions that are on; it is a plain note unless an action that spends Bitcoin (send_payment, fund_project) is on. - Turning on a whole category that would let Cat spend asks first; turning anything off never does. What a permission allows is unchanged. - Presets are one radiogroup of four equal cells (Off, Minimal, Creator, Power) marking the active one ("Custom" otherwise); switching asks first and confirms with a toast. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(cat-settings): spending caps are entered in the person's own currency The two caps were raw number inputs labelled '(BTC)' with an eight-decimal step, so people who see every other amount in CHF had to type a Bitcoin decimal. They now use the shared AmountField (entry in the display currency, the BTC figure always shown, value still stored in BTC), labelled 'Most Cat may pay at once' and 'Most Cat may pay in a day', each with the saved value under it and a 'No cap' button. 'Save caps' stays the card's one button. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(sharing): the share sheet on a phone has one frame and one close button On a phone the share card was rendered, with its own border, shadow and X, inside a dialog that brings its own frame and X: two close buttons, one inside the other. In the dialog the card now drops its frame and its X, so the dialog's are the only ones; as a desktop dropdown it keeps both. The platform grid is four equal cells for the four platforms (a fifth column sat empty from sm up), and the labels are sentence case: 'Copy link', 'Share profile'. The 'Share via…' ink was already fixed in #1634. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): placeholder and duplicate pages lead somewhere real; Builders says it leaves /pages sent a visitor to the signed-in project dashboard, which only bounced them to sign-in; it now redirects to Discover. /technology was an unlinked copy of the Technology Stack section on /docs and now redirects there. /company/about was a second About page; it redirects to /about, which now links its one unique door, the ways in (/company/careers). /channel keeps its waitlist, but Discover People went to the signed-in people dashboard and Share My Profile opened a share sheet for an empty username for a visitor. Discover People now opens Discover's people list, sharing shows only for someone with a profile (as an outline button, not the orange), and "Bitcoin tipping" reads "Bitcoin payments". The footer's Builders link pointed at /builders, which only redirects off-site to bitbaum; it now links there directly, marked external. The e2e route contract lists the three new redirects. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): the header stays put on desktop and comes back for keyboard focus useHeaderScroll hid the header on scroll-down at every width, while from lg up the sidebar is pinned at the header's height, so a hidden header left a 64px empty band above the sidebar. The header now hides only below lg (useIsDesktop). Focus that moves into .app-header also clears the hidden state, so sticky bars pinned below the header move back with it (the CSS already kept a focused header on screen). useMediaQuery returns early where window.matchMedia does not exist (jsdom), so the shell tests that render the header still run. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): the phone drawer's close row is named "Close menu" The close row at the bottom of the signed-in drawer reused the desktop "Collapse sidebar" label as its aria-label, so a screen reader announced a different action than the row shows. It now carries only its visible text, "Close menu". (The drawer already ends above the tab bar via .app-sidebar[data-above-mobile-nav].) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create): one create list for /create, the phone sheet and the header menu The three create choosers had three anatomies (a list, a name-only grid, a flat menu), none of them used the registry's plain copy, and they grouped by an internal category. The phone's Create tab opened the name-only grid. CREATE_OPTIONS now reads each entity's plain.verb and plain.example, keeps the type name as a small trailing label, and groups by plain.intent under the intents' own titles. One CreateOptionList renders the rows; /create, MobileCreateSheet and HeaderCreateButton all use it (the header wraps each row in a menu item so arrow keys still work). "Need money for something?" is the first row and "Not sure which one?" the last in all three. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): closing search, notifications or the Cat returns focus to its button Each overlay is opened from outside state rather than a Radix Dialog.Trigger, so on close Radix had nothing to focus and keyboard focus fell to the top of the page. - palette-store remembers what had focus when the palette opened and gives it back once the dialog lets go (unless something else has taken focus or the element is gone). - The header hands the bell to NotificationCenter (returnFocusRef), which refocuses it in onCloseAutoFocus, as MobileCreateSheet already does. - GlobalCatLauncher keeps its button mounted (invisible) while the panel is open and wraps the panel in FocusLock with returnFocus; the panel is now aria-modal. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): links in running text look like links, and the legal pages end with a way to ask Links inside sentences were styled four ways: the paragraph's own grey with an underline only on hover (roadmap goal records), grey with an underline (changelog, roadmap), a bare underline, or an underline in ink (governance). One class, .oc-text-link in globals.css (ink, underline in border-strong, darker on hover), now styles every one of them. /privacy and /terms rendered every paragraph as a plain string, so the contact address in their Contact sections could not be tapped. Paragraphs and bullets now go through linkify(), which turns email and web addresses into links (unit-tested), and both documents close with "A question about this? Ask the Cat, or write to" the contact address. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(pay): the pay page shows who is paid — face, name and @handle The pay page named the payee by display name alone; the avatar never reached it because the recipient lookup did not select avatar_url, and the face + name + handle block was private to ReceiveCode. A payer could not tell one "Anna" from another on the page that sends her money. The block is now PayeeIdentity, drawn by Receive above the code and by the pay page under its "Pay" eyebrow (the name as the h1, the @handle a 44px link to the public profile). resolveLnurlRecipient selects and returns avatarUrl on both the current-handle and renamed-handle paths. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(money): pay waits for an amount it can pay, says "Pay CHF 20", and owns the one orange - An amount outside the limits showed a red line but left the committing button live: every action tested only `amount <= 0`. One predicate, isAmountInRange (next to the amount field), now gates Pay, "Pay from my wallet", "Show the code", Send's Review and Request's Send request. - The pay page's one action read "Show the code" and sat as a dimmed orange slab under a brighter header "Get Started". It now reads "Pay CHF 20" once an amount is in range and "Enter an amount" before, is accent only when it can act (monochrome disabled otherwise), and getRouteChrome().quietHeaderSignup turns the header's sign-up to outline on /pay/<username> (not on the /pay landing). - The amount plate drew the global focus rectangle around its digits. The input cancels the ring; the plate carries it at AA strength. - In BTC entry the four suggestions read "0.0001 B…": the rung now shows the number alone, with "0.0001 BTC" as its accessible name. Also adds ROUTES.DASHBOARD.WALLETS_FOR_SEND, used by the next commit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(money): one frame on all three tabs; Send leads to the field it needs; Ask works signed out - Frame: Receive's first run built its own column with a raw h1, Send's no-wallet state put its headline in the page title, and all three loading states returned a bare spinner, so title and tabs jumped. Every state now renders inside MoneyPage with the tab's own title; first run and no-wallet use MoneyPrompt (question as an h2, one sentence). Send's subtitle is one line at 390px. - Send with no wallet linked to /dashboard/wallets with no context, in protocol words the page never repeated, to a form titled "Get paid in Bitcoin" with the connection field under "Other ways to get paid (advanced)". It now links to ?for=send, says "connect a Lightning wallet with a wallet connection link", and the wallet form opens with that field visible and focused under "Connect a wallet to send". - Wallet form: toggles read "Add an on-chain address or a wallet connection" and "Name and details" (no "(optional)"/"(advanced)"); a `bare` prop drops the card when /receive hosts it; two actions are two equal cells ("Save wallet" / "Not now" on first run). - Requests: two actions beside the text squeezed the note to "Dinn…"; Pay and Decline now sit under it as two equal cells. The status line lost its stray paragraph margin, and Send request sits in MoneyActionBar like Send's button. Both gate on isAmountInRange. - "Ask" on a way to pay shared on request: signed out, the row says asking needs a free account and the button goes to registration with `from` set; the conversation opens with an 'ask-payment-details' draft instead of an empty composer. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(finances): empty cards lead somewhere; "Add a wallet" opens the wallets page "Add a wallet" pointed at a hardcoded '/wallets' — the public directory, where no wallet can be added. It now goes to ROUTES.DASHBOARD.WALLETS. The "Came in" empty state named its actions as prose; it now has one link, "Get paid by link" to Receive, and the tax card repeats "Declare it" where the estimate needs a place. Stacked paragraphs get mb-0, the section label is the money surface's (text-sm tracking-caps), and the two totals are MoneyFigures. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(wallets): the wallets page reads like the money tabs it is linked from - Header: PageHeading instead of an icon and a raw h1; "Receive" is outline, a way out rather than the page's action. - Empty state: "Add a wallet" is the primary action (was outline, Title Case), body "Add a Bitcoin wallet so people can pay you.", an arrow instead of the external-link glyph on an internal link, and the invalid `bg-surface-raised/40/50` class fixed. - With no wallets the outer card is gone, so the empty state or the add form is the only surface. - Reads ?for=send (from Send's "Connect a wallet") and opens the add form on the wallet connection field. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(settings): split Account into named frames, move preferences out, and recognise an account with no email What was wrong: - Settings → Account was one card titled "Account & Security" holding thirteen sections and three save behaviours, thousands of pixels long. Currency and date format shared one "Save preferences" button; the theme was three large cards; currency was editable in the profile editor too. - An account with no email (anonymous) read "the email address associated with your account" above an empty field, was offered a password it could never sign in with, saw an empty list of ways to sign in, and its profile said "Unknown" and "Not verified". What it does now: - Account is five frames with one header shape: Sign-in (email, password, two-factor, passkeys, ways to sign in, Nostr behind "Connect Nostr"), Devices, Identities, Your data, Delete account. Buttons are 44px and none is filled among peers; section text is max-w-prose. - New Settings → Preferences (/settings/preferences, in SETTINGS_SECTIONS): currency and date format save on change with the notifications page's status line; the theme is a SegmentedControl. The profile editor links to it instead of carrying a second currency picker. - With no email: "Add an email" with the page's one primary button, the password form waits until there is an email, the sign-in list says "This browser only" with a warning that names the fix, the profile shows "None yet" with an "Add an email" link and omits "Email Verified". - "Memories … managed under Memory" (was "in AI settings"). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): the changelog shows each entry's headline and folds older months Every entry is written "**Lead.** The rest." but the fleet map drops the bold, so /changelog printed each one as a single grey paragraph: about fifty phone screens with nothing to scan. Each line now leads with its first sentence as a heading (ink, semibold) and the rest beneath in secondary ink. The rail dot was offset by the wrong amount (it landed 19-23px inside the rail) and was orange as decoration; it now sits on the rail in fg-tertiary. The per-line bullet used bg-strong, which is not a utility, so it rendered only as an indent; it is removed and every line shares one left edge. The newest 30 days stay open; older days are grouped per month in a <details> ("October 2026, 14 changes"). splitLead and groupChangelog live in src/lib/development/changelog-view.ts with unit tests. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): a visitor on Discover gets the site's navigation and footer, not Create On app surfaces (Discover, events, public listings) the header turned the marketing nav off even for nobody signed in, showed the "+" Create button without checking auth, the visitor tab bar raised Create as its loudest slot, and the footer was limited to public surfaces. A visitor had no way to the rest of the site and every loud control led to the sign-in form. - Header: the marketing nav and visitor menu show whenever nobody is signed in (on app surfaces once auth has settled, so it never flashes for a signed-in person); the "+" needs a signed-in user. - Visitor tab bar: Home, Explore, How it works, Sign in; no raised slot. - Footer: also on app surfaces for visitors (showsSiteFooter); the tab-bar clearance moves from main to below the footer there. - A signed-out visitor bounced from a create form lands on the register tab (signInModeFor in the middleware). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(funnel): a first-time visitor who taps Start sees the register form The hero's "Meet your Cat" linked /auth with no mode, and the auth form defaults to sign-in, so a newcomer was greeted with "Welcome back". Every other public Start points at a protected path, and the middleware sent every signed-out visit there to mode=login as well. The hero now links /auth?mode=register (the header's target). The middleware picks the form from the browser: no Supabase cookie means this device has never signed in, so it gets the register form (which offers "Already have an account?"); a browser with one, an expired session, gets sign-in. from= is kept as before. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(profile, civic-split): orange only for Bitcoin and top-of-funnel Profile progress bars used GRADIENTS.progressBitcoin (Bitcoin orange) and the civic split coloured the locality share and the slider thumbs with the warm accent, under a comment saying 'nothing chromatic'. They are ink (bg-fg-primary, accent-fg-primary) now. The settings tab and theme tick were already fixed in #1634. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(funnel): the studio grid shows products, not every entry in the fleet map Home: the "Live now" grid listed every live studio project, the three pillars again included, about 4,100px on a phone. It now shows six products that are not pillars (homeFleetPreview) and links to "All N live products" on /ecosystem. /ecosystem: "Everything built on it" rendered the whole fleet map, prospects, demos and "next" ideas named by sentence-casing their slug, some with no description and no link. It now shows live projects in the studio and client layers that the map describes; the sentence above it says so. The home selection and the hero's live count drop undescribed entries too, so the count still matches what is shown. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(funnel): pricing's one warm action is on the free plan The orange "Add your key" sat on Bring your own key, and the founding band was an orange-tinted card with an orange icon and an orange button, so the page had several warm actions and none on the plan that brings a newcomer in. Free's "Start chatting" is now the accent; every paid or set-up action is outline; the founding band is a neutral surface with a primary button. "Available now" badges get a positive dot. The prose said "two honest ways" over a list of three; it says three. From lg up each card is a four-row subgrid so name, price, bullets and button line up. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(settings): one shape for on/off rows, named by their words On/off rows came in five shapes: a bare checkbox with 'On'/'Off' beside it (notifications), a card around one switch (Cat proactivity, civic split), and privacy rows labelled 'Website' where on meant hidden. A shared SettingToggleRow (src/components/ui) now holds them all: name and one line of detail on the left, the switch on the right, the whole row a 44px label, the switch named by the visible words and described by the detail. Privacy rows say the action: 'Hide website', 'Hide phone number'. Also: - Civic split: 'Declare my split' is the in-app primary (was the warm accent), and while it is disabled a line says what is missing. - Profile tabs: panels claimed role=tabpanel labelled by tab ids nothing had; they are named regions now, matching the nav + aria-current strip. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create): one filled button per create form, and an equal action pair The wallet box inside an entity form rendered a full-width filled "Save" right above "Create Product": two primary buttons, the wider one not the one that finishes the form. Its heading was derived from the button label (`submitLabel === 'Save'`), so the label could not change without changing the heading. WalletForm now takes `title` (default "Get paid in Bitcoin") and `submitVariant`. Inside an entity form the box says "Use this wallet" in an outline button, so the form keeps one filled button. The wallet edit card titles itself "Edit wallet" instead of "Save Changes". FormActions lays Create/Cancel and the wizard's Previous/Next out as a two-column grid of full-width 44px buttons (commit first); Skip is a full-width ghost button under them. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(tasks): say whose tasks these are and give the empty list a way forward The visibility leak itself was closed by the RLS migration 20261113120000 (a task is seen by its creator and whoever is asked). The page still described itself as "Manage and complete team tasks", showed four zero stat cards on an empty list, and its empty state said "Create your first task" with no button. The subtitle now names the scope ("Tasks you made, and tasks someone asked of you"), the stat cards show only when there are tasks, and the empty list is the shared EmptyState with a Create Task action, or Clear filters when filters hide everything. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(funnel): one Cat door with a microphone, and capability cards a thumb can use The public map's "What do you want to do?" was a hand-rolled text input with no microphone, while the signed-in door (DashboardIntent) was chatkit's Composer. TheDoor is now that composer, used on the dashboard, My things and the public map; DashboardIntent is retired. The transcribe route needs a session, so a signed-out visitor's microphone is the browser's recogniser (SIGNED_OUT_VOICE; ChatInput takes a voice prop), and chatkit says in words when a browser has none. Capability cards: "Start" was a 36px text link; it is a 44px outline button. "See yours" was offered to visitors with no account and nothing to see; it now renders only for a signed-in user. The compact variant is gone with its only caller. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(forms): tag input keeps its Add button, task actions in order, ink radios The task form's tag input was flex-1 without min-w-0, so on a phone it kept its intrinsic width and pushed "Add" out of the row. Task actions were Cancel then Save, content-width; they are now the create forms' equal 44px pair with the commit first. Radios and checkboxes in create forms were 13px browser-blue natives; they are 20px with accent-color bound to the ink token, on 44px label rows. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(funnel): one way to end a public page; How it works says how; About says who One action had six names ("Meet your Cat", "Create Free Account", "Get Started Free", "Get Started", ...) and every page closed differently: a gradient card, a near-black band, and /what-you-can-do ended on a link to another product. PublicStartBand is the home band, shared: one sentence, the warm action CTA_LABELS.primaryAction to the register form. Home, How it works, What you can do and About end on it; the header's sign-up button uses the same label and target. CTA_LABELS.createAccount and the "Get Started Free" literal are gone. How it works: the title was "Meet Your Cat" with a hardcoded lede; it is "How it works" with the configured subtitle. Step titles say what the person does, in sentence case. The compact copy of the capability cards is one row per intent, each a link into that section of What you can do (PublicLinkList). Cards that were not links lose their hover styling, and the "Need more help?" buttons are gone. What you can do: the on-page index was a second row of wrapping pills that looked like the example sentences; it is plain text links in one row that scrolls. About: it stated values and stopped. "Who builds it" lists the studio (/company/about, now ROUTES.COMPANY_ABOUT), the MIT source on GitHub (SOURCE_REPO_URL, also used by the footer), the stack and the contact address, rows of one anatomy. The identity value's icon is Lock, as on the home page, not a tree. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): the say-it-in-one-box pages take a voice, and /raise's disabled button is not a faded orange /raise, /feedback and /studio each open on one box to say what you need, and none had a microphone. Each now shows the shared DictationButton beside the box for a signed-in person (the transcription endpoint is signed-in only, so a visitor types, as before); what is said is appended to what is written. /raise's Price it pill faded to 40% orange while empty; it is now a neutral raised pill with tertiary ink until there is a sentence, then the orange. The helper line under the box and the character count on /feedback are in secondary ink. /feedback's Send is primary (with the one-orange sweep). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(profile): edit profile opens on the form on a phone, and Save stays in reach What was wrong (390px): - A completion checklist printed every missing field above a hand-built header, so no field was in the first screen; the bar was Bitcoin orange. - Save sat at the very end of the form, about 3,800px down, not pinned. - The form paid for three nested paddings, so four of the eight 'How can others help?' options were truncated mid-word. - The handle was silently written into Name while completion still counted Name as missing, and the percentage ignored its declared weights. - The avatar picker was a round User icon; the profile shows a rounded square with the cat mark. What it does now: - The page uses EntityListShell ('Edit profile', 'Back to profile'). Completion moves below the form on phones, closed until wanted ('Profile N% complete — see what is missing'). - Cancel / Save profile are two equal 44px cells in a bar that sticks above the mobile tab bar and settles in place from lg up. - The form padding is p-3 on phones; help options wrap to two lines in equal-height cells (still two columns). - Name stays empty until given; completion is weighted. - The avatar picker is a rounded square with DefaultAvatar and a visible 'Add photo' button. DefaultAvatar (shared) sets an inline size only when 'size' is passed, so responsive classes work; every caller passes one. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): hover, open and selected states are visible in light theme; buttons have a pressed state Every chrome state painted bg-surface-raised on the page surface. In light theme that is 96% on a 97% page, so hovering a header button, opening a nav dropdown or moving through the search palette showed nothing; and no button variant had a pressed state. States that sit on the page now use the existing surface-overlay token (94% light, 17% dark): the header rail (HeaderIconButton), header nav and its dropdowns, the visitor menu, the footer buttons, the search trigger and palette rows, the tab bar's press, and the sidebar's hover/active constants and rows. In design-system.ts the ghost, outline and secondary button variants hover to surface-overlay, and every button and icon-button variant has an active: state (overlay for ghost/outline/secondary, muted-strong for primary, accent-warm-hover for accent). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): the notifications panel shows one state, and its filters fit a phone A failed first load drew the raw error message above the filter row and "No notifications found" below it, so the panel said both. The five filters were a hand-built row of flex-1 pills that ran off a 390px screen. A failed load with nothing loaded is now one state: "Could not load your notifications." with an outline "Try again", no filters, no empty state. A failed refresh keeps the list with a short notice. The filters are the shared SegmentedControl (44px segments) in one line that scrolls sideways when five labels do not fit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(dashboards): every empty list ends in its create action, first Wishlists, circles and documents said "create your first one" with no way to do it: their configs had no empty-state action, and each config that did brought its own button with its own colour class. Bookings said "No bookings found" and stopped there. On My Projects the "Open Loki" card sat above an empty list, so on a phone it was the only button on arrival. - emptyStateWithCreate: the dashboard shell adds `Create <name>` (or the page's createButtonLabel) to any entity empty state without its own action; the per-config buttons and their GRADIENTS classes are gone. A tab's own empty state (Favorites) is left as written. - EntityDashboardPage renders headerContent after the list while the list is empty, above it otherwise. - Loans (its own page) uses the same empty state, hides the header Create while "My loans" is empty so the screen has one Create, gives each tab one label at every width, and makes the tabs 44px. - Bookings: each empty tab says bookings appear when someone books one of your services, with "Create a service"; the first tab is "Requests". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): the blog's filters are two rows, not a wall of 71 pills; choice-rows sees them From md up the blog showed every tag and every month as a wrapping pill (about 71) before the first post. The time filter is now a SegmentedControl of four ranges (all time, this year, last 6 months, this month) and the per-month pills are gone; topics are one line that scrolls sideways, limited to topics two or more posts share (sharedTopics, unit-tested; the selected one always stays), each pill 44px tall with aria-pressed. Both rows show at every width, so the phone's "Filter posts" toggle is gone. The /study-bitcoin level filter is a SegmentedControl; the /studio forms are an even two-column grid of radio cells. check:choice-rows only looked for aria-pressed, role="radio" and role="tab", so none of these counted. It now also catches native radios and buttons that set a selection (onClick={() => setSelectedX(...)}), with a fixture test. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(discover): public listing pages give every visitor one way forward What was wrong: - A priced listing whose owner has no wallet showed a price and stock, then a bare "hasn't connected a wallet yet" and no sticky bar on a phone. - Product and service pages kept price and action below the first phone screen; a product had a second, orange "Buy now" beside the pay panel; a service's sticky "Book this service" scrolled to the pay panel; fixed-price listings appended a full support form under the purchase. - PriceDisplay appended "/ hr" after the BTC equivalent, so it wrapped away. - The breadcrumb started at "Home" (the dashboard), which sends a signed-out visitor to the sign-in form. - Descriptions were titled three ways and the raw "active" status was shown to buyers. What it does now: - The no-wallet card says who cannot be paid and offers "Ask how to pay", a message to the owner about the listing through sign-in; the sticky bar becomes that action instead of disappearing. One link builder (lib/navigation/inquiryHref) serves it and the owner card. - Price (and stock / the Book button) lead product and service pages via renderLead; the extra "Buy now" is gone; the service bar leads to #book; the pay bar reads "Buy now · CHF 20.00"; BookEntityButton is primary. - On fixed-price listings support sits behind "Add extra support". - PriceDisplay keeps amount and unit together, the equivalent on its own line. - Breadcrumb takes a root; public listing pages start at Discover. - "About this <kind>" comes from the registry name; product, service and cause show their status to the owner only. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(groups): Join where a visitor lands; the overview is not the owner's settings What was wrong: a group page offered Join only inside the Members tab, so a visitor on the Overview tab had no way in; the Overview and sidebar showed the owner's "Suggested Features", label, visibility and listing flags to everyone; one tab carried an icon; "1 Members"; and the page had no way back to the list it came from. What it does now: GroupJoinButton (one component, used in the header and the Members tab) offers "Join group" to a signed-in non-member of an open group and "Sign in to join" (back to the group) when signed out. Suggested features and the label/visibility/listed rows are owner-only; counts are singular for one; the Events tab has no icon. The header starts with a Discover > <groups> breadcrumb (PageHeader and EntityDetailLayout pass a breadcrumb root through). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(projects): one way back, no "be the first" when nobody can pay, sign-in links that return What was wrong: the project page opened with a Back button (which leaves the site for anyone arriving from a shared link) where every other listing has a breadcrumb; "Created by" took the global paragraph margin; the summary rail said "No contributions yet — be the first." on a project with no wallet; the timeline told a visitor to sign in with nothing to tap; and the project room, deck and own-profile redirects sent `redirect=`, which /auth never reads, so people landed on the dashboard. What it does now: a Discover > Projects breadcrumb; mb-0 on "Created by"; the rail says "Not open for funding yet." when the project is not payable; the timeline's "Sign in" is a link back to the project; the redirects send `from=`. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(discover): a kind's page says which kind, never ends in a wall, and links into it work What was wrong: - /events was an organiser sales page at the events address (accent "Near me", icon-only search, `redirect=` sign-in, an overridden final button). - Cards without a picture were a big letter on a grey plate half the card's height; on a phone two listings fit a screen. Stacked <p>/<h3> kept the global margins. - "QA test…" listings and the "QA Grok A" profile led the live shelf. - A kind's page was headed "Discover"; "1 products"; an empty kind showed nothing; the chosen chip could sit off screen; a failed search call was cached for two minutes as an empty shelf. - /projects and three dashboard buttons sent `?section=`, which Discover ignored; category tiles searched display names that match nothing. - From sm up rails hide cards five to eight, but "See all" only appeared when more existed than were fetched. - The row of kinds wrapped (10 + 3) on desktop. - Card prices were grey mono text, unlike the detail page. - /jobs ended with no link or button, its second line below AA contrast. What it does now: - /events redirects to Discover's events, with "What's on near you" above the grid (outline button, visible "Search" label). - The media plate is 2:1 with a 48px bordered monogram tile; in the phone grid a card is a row with a 96px square face. Card text has mb-0. - QA title patterns and display names are fixtures (SQL filter and isFixtureHit share the list). - Browse mode heads with the kind under a "Discover" link and titles the page "<Kinds> — Discover"; singular counts; "No <kinds> listed yet." with "List the first one" and Just listed; the current chip scrolls into view; the shelf and browse reads are strict, so a failure reaches the error page. - `section` is read as `type`; links use ROUTES.DISCOVER_TYPE; each category group has a searchTerm. - DISCOVER_RAIL_VISIBLE = 4 (mirrors the CSS) decides "See all". - The chip row is one sideways line at every width, thin scrollbar for mice. - Card prices are a MoneyFigure in the listing's own currency. - /jobs offers "Start a group" and "See groups". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create): form copy that does not leak the implementation The product form asked for "-1 for unlimited" stock and had a second "Default Currency" select under the Price field's own currency selector. The project form's hints began "Optional:" and one explained "Currency selector is included in this field". Investment amounts had Bitcoin-scale placeholders (1.0, 0.01, 0.5) in fields that default to francs. - FieldConfig.emptyValue: a number field shows its sentinel as empty and sends it when cleared. Inventory uses it (-1 = unlimited) with the placeholder "Unlimited" and "Leave empty if you can always make more." The product guidance panel says the same. - The product's separate currency select is removed; the selector on Price sets `currency`. - Project hints lose "Optional:" and the selector note; the funding goal says "Leave empty if there is no target." - Investment placeholders are 50000 / 500 / 10000. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create): a failed submit scrolls to and focuses the first field in error Field errors were set and nothing moved: on a phone form thousands of pixels long the person stayed at the button, far from the red. Now the first failing field, in the form's own order and on screen, is scrolled to the middle and focused, both on a wizard step and on the final submit. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(profile): a new owner's profile shows first steps, not a blank panel What was wrong: - Overview always pushed the owner's support card into its list; an element is truthy, so the empty state could never render, while the card itself rendered nothing until a wallet could receive: a blank panel. - The offerings block's filled 'Make offerings public' button published an empty card; the way to fill it was a text-xs link. - The owner saw every tab, empty ones too, with zero passed as a badge; Info carried a second Edit button and inline editor beside the header's. - With no banner the banner area kept its full photo height. What it does now: - The support card is included only when the wallet can receive. An empty owner Overview offers three list rows of one anatomy: add a wallet, add a photo and a bio, create your first project. - With nothing to share, the offerings block shows the empty card with 'Ask Cat to help me figure this out' as the primary button. - Owners get the visitor's has-content tab filter (Overview, Timeline and Info always stay); a zero is not a badge. Info's duplicate editor is gone; editing is the header's 'Edit profile'. - No banner: h-20 sm:h-24; the default avatar sizes by class. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(content): a blog post reads in the same frame as a community article A blog post put its header in a 4xl column and its text in bip-kit's .bp-article, which centres itself at 70ch and adds 1rem of padding on phones, so the title and the first line of text sat on different left edges. It now uses the article frame (/articles/[slug]): one 680px column holds the back link, the header and the body, with the TOC on a rail to the right on xl; both readers drop .bp-article's extra padding so title, byline and text share one edge at 390. The community article title takes the heading face, like the blog's. The end of a post had two buttons to /blog ("Back to Blog" and "Read More Articles") on an orange gradient; it now offers the previous and next posts and one Join button. Dates: the post card printed the raw string and the post used toLocaleDateString; both go through FormattedDate now. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(chrome): one name per signed-in destination; the avatar menu follows the sidebar ROUTES.RECEIVE was "Money" in the sidebar and "Receive" in the tab bar; the tab bar's create slot relabelled itself "Post" on Messages; and the avatar menu hard-coded "Dashboard", "My projects", "Your page" and "Edit profile" for places the sidebar calls Home, My things and Profile. - The tab bar's money slot is "Money", and every slot prints its own name; only where Create leads stays contextual. - The avatar menu is Home, My things, Profile, Settings, taken from the sidebar's entries (getAccountMenuPlaces) with their names and icons. - Its Appearance row is hidden from md up, where the header has its own theme toggle. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(auth): one orange button per side, the mode switch under the title, errors under their fields Sign-in showed two orange buttons, and the first one ("Start instantly") created a new anonymous account for someone who came back to sign in. The switch between signing in and creating an account was a 24px text link below the provider buttons, and every failure, an empty field included, landed in one banner with a "Try Again" that could only fail the same way. Now: - One accent per side. Signing in: only "Sign in"; the no-email way in sits at the foot as an outline "Try it without an account". Creating an account: only "Start instantly"; "Create account", the emailed-code buttons and "Send reset email" are primary. The anonymous button has its own loading flag, so the spinner shows on the button that was pressed. - A SegmentedControl ("Sign in" / "Create account") under the title, kept in step with ?mode=; the bottom switch is gone. - Provider buttons keep their names unless four share the row, take the default border, and are labelled only when they are icons alone. - The form is noValidate: each field says what is wrong under itself (authErrors.ts). The banner offers "Try again" only for timeouts and server or connection failures; credentials, unconfirmed email, an existing account and callback errors do not. Timeout copy is plain; the loader says "Opening OrangeCat…" instead of "Welcome back!" to a new account. - The auth column is bg-surface-page in both themes (it was a 40% raised tint in light); the anonymous help line is text-fg-secondary. - Password and anonymous sign-in decide where to land through one rule (lib/auth/landing.ts): an own-origin `from`, else the Cat welcome for a new account and the dashboard for a returning one. Findings auth-firstrun #0, #1 (client half), #4, #7 (auth half), #8, #9, #10. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(auth): every way in lands on the same first screen A new person's first screen depended on which button they used: password and anonymous sign-in went to /dashboard, Google/GitHub and the email confirmation to the Cat welcome, and "/" sent anyone not yet onboarded to the onboarding form, on every visit, logo included. The callback and the confirmation also greeted a returning person as new, because "new" was read from the URL. Now the Google/GitHub callback and the email confirmation decide through the same rule as the sign-in form (landingForSession → landingAfterSignIn): an own-origin `next`, else the Cat welcome for an anonymous or not-yet- onboarded account and the dashboard for a returning one. "/" sends a not-yet-onboarded person to the Cat welcome; the onboarding form is linked from there (next commit), not forced. Finding auth-firstrun #1. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(auth): password recovery in the sign-in page's own frame The three recovery screens each had their own frame: a Card with an icon tile, Title Case headings ("Enter Your Reset Code", "Reset Link Invalid", "Password Updated Successfully"), buttons at a different height from /auth, an unpadded "Back to Login" next to the sign-in page's "Sign in", and the tab title "Account". Now every step uses the same AuthTitle block and centred column as /auth (AuthStepPage): no card, no icon tile, sentence case ("Enter your reset code", "Choose a new password", "Password updated"), 48px fields and buttons, "Send a new reset email", and one 44px "Back to sign in" link (BackToSignIn). The reset page has its own title, "Reset password". The MFA step says "Back to sign in" as well. Finding auth-firstrun #13 (the field labels were already added by #1656). Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(onboarding): a full-width description field, whole examples, no orange on in-app actions The onboarding description field was 241px wide in a 462px column: Textarea wraps itself in a block div, which sat in a flex row without flex-1 and shrink-wrapped to the browser's default 20 columns. The examples were six wrapping pills clamped to two lines, under a grey "Examples" label below AA. The main button was the warm accent, disabled orange on arrival, and so were each offer's button, the pay step's retry and "Create" on My things. Now the field's wrapper is `min-w-0 flex-1`; three examples show as whole sentences, one full-width 44px row each, under a text-fg-secondary label. In-app actions are primary: "See what Cat suggests", the pay retry, "Create" on My things (the shared Button), and the first offer (the others are outline, one primary per screen). A unit test keeps `variant="accent"` and the solid accent fill out of the signed-in pages and onboarding. Findings auth-firstrun #2 and #7. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(dashboard): first-run copy and a setup checklist with one row per destination The first dashboard spoke to someone who already had things: "No pending Cat approvals." under the greeting, a feed titled "Recent activity" that was mostly other people's, and a filled "Share" inviting friends to a profile still called "User". The setup checklist showed three rows that opened the same profile form, sorted the Cat's "Set me up" row last (out of the two shown), drew a border per row inside its card, and its row titles, as bare h4s, outranked the card's own title. Now: - The status line says nothing to a named account with nothing waiting; to a person not yet named it says "Say what you want to do. Your Cat drafts it and asks before anything goes live." - The feed is titled "From people on OrangeCat". - The invite card is hidden while the name is a placeholder, and its Share is outline. - "Let your Cat set you up" leads the high rows; bio and photo are one row, "Add a bio and a photo" → "Edit profile", held back while the name row (same form) shows. Titles and labels are sentence case. - Rows are a divide-y list, titles text-sm. The percentage the finding also named was already replaced by a count (#1653). Findings auth-firstrun #3 and #6. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(cat): a new person is offered the door's own sentences, and told what to say The Cat's first-run starters were built from entity-registry nouns ("Help me create my first product"), and the dashboard door showed no examples at all, so a new person met a greeting, an empty box and the names of tables. Now getStarterChips() returns the first three DOOR_EXAMPLES, the same sentences the "What do you want to do?" box offers; the dashboard door shows them while the person has no projects or drafts; and the Cat's welcome adds one line under its title ("Say it in a sentence. Cat drafts it and asks before anything goes live.") and a 44px link to the "who are you" form, which "/" no longer forces on anyone. Finding auth-firstrun #5. Not done here: the starter list's wrapping layout lives in @bitbaum/chatkit (.ck-starters-list) and needs a package release. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(what-you-can-do): keep the app shell and the app's door for a signed-in person "What you can do" is in the app's navigation, but its route is public, so a signed-in person who opened it lost the sidebar and the tab bar, and met the native signed-out door with no microphone. Its section pills were 30px tall in a wrapping box. Now getShellSurface(pathname, signedIn) (src/config/routes.ts) treats that page as 'app' for a signed-in person; AppShell and MobileBottomNav read it. The page's door is DashboardIntent (chatkit composer, dictation) when signed in and TheDoor's no-JavaScript GET form otherwise (WhatYouCanDoDoor). The section links are 44px and one row that scrolls sideways. Finding auth-firstrun #12. The shared DoorExamples component and 44px chips had already landed. Not done: a microphone on the signed-out door, since transcription is behind sign-in. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(app-shell): sidebar drawer, collapsed rail and one name per place The phone drawer stayed open after picking a destination (AppShell never passed onNavigate) and was saved to localStorage, so it reopened over the page after every reload. It now closes on navigation and on any path change, and is never persisted; a value written by an older build is cleared on load. Only the desktop collapse is a saved preference. Visiting the Cat wrote "collapsed" into that saved preference, so one visit collapsed the sidebar everywhere and hid the People, Work and More groups. A focus route now shows the rail collapsed without writing anything (expanding there lasts until the next page), and a collapsed rail that hides groups ends with a "More" button that expands it. Navigation vocabulary: Profile, Settings and Help leave the sidebar for the account menu (config/navigation accountNavItems, also read by the palette so "setings" still finds Settings); the account menu drops Dashboard and My projects, which the sidebar calls Home and My things. The sidebar regroups as People (People, Timeline, Community, Collaborate, Set up for someone), Money and work (Finances, Deals, Civic split, Tasks, Bookings, Analytics) and More (Bots, Discover, About); Deals no longer wears Collaborate's handshake, Explore is named Discover after its page, and each row is one line without the description under it. Active state: a nav item can own other paths (activeFor). Money is lit on Receive, Send and Requests in the sidebar and the tab bar, whose slot is now called Money too; My things is lit on every type's own list. Signed in, the logo leads to the dashboard rather than "/", which only redirects a member to the Cat. The context switcher's chevron and menu rows are 44px; the search shortcut hint uses secondary text. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(app-shell): one Create, in plain verbs, on every page The header's plus and the phone's sheet listed seventeen entity nouns ("Product", "Organization") while the command palette said the same things in plain verbs. Create options now take the registry's plain copy (verb and one line); the noun stays as `kind`, which the Cat's editor links match on. Both surfaces draw one row shape (CreateOptionRow: icon tile, verb, one line, 44px), grouped under the existing category labels, and both end with the link to "What you can do". The sheet is no longer a grid of bare nouns. The tab bar's plus changed its name and behaviour from page to page: it read "Product" on the store and jumped to a form, and on Messages it opened the public post composer. It is now always "Create" and always opens the sheet; the page's own kind (a group, on Groups) is the first, highlighted row inside it. contextual-create now only answers which kind a page is about, matching a base path and its sub-paths, not a prefix. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(manage): one header frame and one name per type on create and list pages Project Analytics hand-built its breadcrumb and a smaller title in all three of its states; it now renders through EntityListShell (PageHeader), with the time range as a SegmentedControl and a 44px project select in the header actions. My Companions now says what a companion is ("Beings with their own voice that remember whoever talks to them") instead of "Build and monetize autonomous AI services". The organisation form took the name "Group" while the chooser and the registry say "Organization"; it now reads the registry's name and plain description, and the organisations list (GroupsDashboard) says the same word, with its in-app Create as the primary button instead of the orange accent. The loan form is "Create Loan", not "Create Loan Listing". Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(dashboard): first run leads with the door, not a checklist A new account's dashboard opened on "No pending Cat approvals." and two profile chores in Title Case, with an empty "Your projects" box that singled out one of the many kinds. Now: - with no projects, the door shows its examples (as My things does) and the line under the greeting explains it: "Say what you want to do. Your Cat drafts it and asks before anything goes out." With nothing waiting and something owned, the line is simply absent; - the empty "Your projects" section is gone; the door covers starting one; - "Let your Cat set you up" leads the recommended tasks (a `leads` flag sorted ahead of priority), so the visible pair is not two chores; - every task title is sentence case. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(app-shell): social surfaces share one frame, one primary, honest states Feeds: "Home", "My Timeline" and "Community" were three pages showing the same feed under different names, and /home was linked from nowhere. Signed in, each now carries one pick-one row (All · Following · Everyone, the shared SegmentedControl) under one title, "Timeline"; each view keeps its own address. An empty Following feed says "Nobody you follow has posted yet." with one primary "Find people". The Timeline header's second "Share Update" is gone; the composer is the first thing on the page. One primary per screen, never orange inside the app: - My things and Collaborate use the shared PageHeader with a primary action, in the dashboard's single column (Collaborate's title had its own size, typeface and an icon); - Groups' header action is primary and appears only once the list has something; the empty state owns the one button; - Messages keeps the header's New as its one primary: the list's "Start New Conversation" became a line, the empty pane's two buttons are outline and say "New"; - People keeps "Discover people" in the header only. - A search match is underlined in ink, not the warm accent. People at 390px: the invite card is two equal cells, Copy link and Share (the third button ran "Copy Link" off the screen), and the three tabs are the shared SegmentedControl, the count under it. A failed load now reads "People could not be loaded." with Try again (fetchFollowListOrNull tells a failure from an empty list) instead of "No connections yet". Notifications: the five filters are five equal 44px cells that fit a phone, and a failed load shows only the error and Retry, not the error over "No notifications found". Discover's shelf with nothing in it says nothing could be loaded, with Try again, instead of "That's everything". PageHeading's page size now matches .oc-page-title (no md:text-4xl), so a signed-in page's name is one size everywhere. The feed's end line and Collaborate's helper text use secondary text, not the tertiary token. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * test(create): match the phone sheet's Article and Post rows by their start The rows now carry a one-line description, so their accessible names are "Article…" and "Post…" rather than the bare word. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * refactor: six components back under the 300-line limit Merging the audit fixes pushed six components a few lines over the component size limit. Each now moves one cohesive piece into a sibling file (task header actions, the select and choice fields, the signed-out purchase card, two send states, the share platform list, the wallet goal block). No behaviour, markup or copy changes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * test(nav): the account menu test names the places it now holds Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(discover, a11y): a failed count no longer takes Discover down; two controls named and sized - Discover's chip counts are read strictly so a failure is not cached as zero, then caught: the page draws without numbers instead of falling to the error page. The listings themselves still go to the error page with Try again. Test: view-counts-degrade.test.ts. - The currency picker beside a price has an accessible name (axe select-name on the create form). - The xpub help toggle on Wallets is a 44px target (it was 16px tall). - Docs: the audit gains the fourth batch, every finding's status, and the remaining work; CHANGELOG has 2026-11-13. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(create, cat): keep the product form's fixes after merging main; summaries for the two new Cat actions Main brought the product form's separate currency field back on purpose (so Fill with AI can set a price in BTC); it stays, and the test that asked for one currency control is dropped. The inventory field still shows unlimited as empty, and the hints no longer explain the implementation. walk_site and use_browser arrived on main without the plain-language summary the permissions page now shows for every action. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * test(search): palette tests fit main's palette - The visitor check skips pages the public footer also links (Community). - "Settings is found from the palette" asks as a signed-in person. - The store-focus test of the replaced palette store is dropped; main's command-palette-keyboard test covers returning focus. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * test(create): spell out the hint checks instead of a mis-anchored regex CodeQL (js/regex/missing-regexp-anchor): in /^Optional:|-1|selector is included/ the ^ anchors only the first alternative. The test meant exactly that, but three explicit checks say it without the ambiguity. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(auth): a protected page asks a signed-out visitor to sign in; only the Cat and create forms start on sign-up The merged rule sent any browser without a session cookie to the sign-up form, so /dashboard, /settings or /messages opened on a new device showed "Create account" to a returning person, and the route contract (tests/e2e/route-contract.spec.ts) failed on all five protected pages. Sign-up is now the default only where a newcomer is the likely visitor: a create form, and the Cat (where the public "What do you want to do?" box sends its sentence) when this browser has never held a session. Everything else asks to sign in. A middleware test pins the five-page case. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * test(e2e): sign in through the form's own button, not the Sign in / Create account switch The sign-in page now has a segmented switch whose first option is also named "Sign in", so a role lookup for that button matched the switch and the form was never submitted. 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> |
||
|
|
d0b9c8dc96 |
feat(companions): model picker, your own rules, memory you can write and correct, and a library, for every bot (#1706)
* fix(migrations): the vendor daily cap takes its own version, 20261112202000 #1672 and the members-only groups migration landed on main with the same version, 20261112200000. schema_migrations.version is a primary key, so check:migration-versions and Migration Replay failed on main and the deploy did not run. The cap's migration had not been applied anywhere (its deploy was the one that stopped), so it takes an unused version; nothing else changes. Unit suite locally: 718 files, 5841 tests passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): walk_site, a QA hand that opens a live site in Loki's browser and says what is wrong Cat Bot's first missing row against Grok Bot (docs/PARITY.md, plan step 1): headless browser testing. A bot proposes walk_site with one to three full addresses and, optionally, phrases each page must show. Loki opens each page at phone size in its own guarded browser (bitbaum/loki #1696) and answers per page: it loads, shows what it must, does not scroll sideways, has no broken picture. The thread keeps Loki's own sentences; nothing is filed, and a problem is filed with file_loki_finding. - services/loki/site-walk.ts: the call over the signed rail, the parsing of what a bot names, and the lines the thread keeps. Nothing is opened without a full address or for more than three pages; a refusal is Loki's sentence; an answer that cannot be read is never reported as a walk. - One body in LOKI_HANDS, so the Cat's card and a bot's own work loop run the same thing; read-only, so it can be switched to "on its own". - Registered in cat-actions, the Loki connection, the bot's hands and their labels, and the chat's progress words. - The prompt budget is raised 7,080 -> 7,230 for one clause and two parameter names, with the reason beside it. - docs/PARITY.md: the row is in progress, and step 1 says what is still to do (the picture in the thread; a walk that clicks through a flow). __tests__/unit/cat/loki-site-walk.test.ts. Unit suite: 730 files, 5924 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): use_browser, a browser of its own for every bot; a failed page's picture in the thread Cat Bot's computer use against Grok Bot's (docs/PARITY.md, plan step 2), OrangeCat's half; Loki's is bitbaum/loki #1697. A bot proposes one step at a time: open, click, type, press, scroll, back, look, close. Loki takes the step in that bot's own Chromium (its own cookies, kept out of the private network) and answers with what the page now shows. The thread keeps the picture, the address, what the page says, and what can be clicked or typed into, numbered, so a model that cannot see pictures drives by number. Loki never types a password or a card: that step stops and says the owner does it. - services/loki/browser.ts: the step a bot wrote becomes the step Loki is asked for, or a sentence saying what is missing; nothing is sent for a step that cannot be one. A stopped or failed step is its sentence, never a success; an unreadable answer is never a page. - Whose browser is the server's to say: hands-server stamps bot_id from the bot whose turn it is and drops whatever a model wrote there. The Cat, which is no bot, uses the person's own. - One body in LOKI_HANDS, so a card and a bot working on its own run the same thing. - walk_site now shows the picture of a page that failed. - Prompt budget 7,230 -> 7,440, with the reason beside it. PARITY rows updated. __tests__/unit/cat/loki-browser.test.ts. Unit suite: 731 files, 5935 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a model picker for a bot's chat, from the person's own key Grok Bot has a model picker. A Cat Bot's turn used one fixed model per provider on a person's own key and nobody could change it. - services/ai/own-models.ts: the choices are the provider's own answer for that key (GET /models, which every provider this app calls directly serves), not a table of other companies' model names kept here. Reading it calls no model. An OpenRouter key lists this app's routed table; the shared pool has nothing to choose and says so. - GET /api/ai-assistants/models. - "Model" in a bot's details (ModelRow): chosen per bot on this device and sent with each message; a name that is not a model id never reaches a provider (chosenModel), and a name the provider refuses is its error. - The own-key turn uses the chosen model; "auto" and nothing mean the provider's default, as before. __tests__/unit/ai/own-models.test.ts. Unit suite: 732 files, 5942 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a person can add and correct what a bot remembers about them The memory page could only forget. Now a person tells a bot something to remember, and corrects a line it got wrong. - memory.ts writeCompanionMemory: the new words are stored first (embedded like any other, marked source "owner", never deduplicated), and only then is the line they replace forgotten, so a failed save loses nothing. - POST and PATCH on /api/ai-assistants/[id]/memories, scoped to the caller like the rest of the route. - MemoryList: a field to add one, Edit beside Forget, 44px targets. __tests__/unit/companions/memory.test.ts (three new cases). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): a bot's library: the photos, files and links from your chats with it Grok Bot keeps a Library per chat. Nothing new is stored for this one: a stored message already says what went with it (the attachment tags the thread draws its chips from) and a link is in the words. - services/companions/library.ts libraryFrom: pure; photos and files from the person's own lines, links from both sides (each once, its latest), a picture the bot's browser took shown as a picture. A tag in a bot's line is never read. - GET /api/ai-assistants/[id]/library: the caller's own conversations with that bot; a stored photo comes back as a ten-minute link, only from the caller's own folder. - /companions/[id]/library, and "Library" in the bot's details. __tests__/unit/companions/library.test.ts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): your own rules for your bots, checked before a bot acts on its own; your time zone Grok Bot reviews a bot's risky actions against rules the person wrote. - user_ai_preferences gains bot_rules and time_zone (migration 20261113130000), one set per person. - services/companions/rules.ts: the rules are in a bot's prompt on its owner's turn, with the owner's hour. A step a bot would run ON ITS OWN is checked against them first: one short model call that answers ALLOW or ASK. Only a clear ALLOW runs; ASK, anything else, or silence turns the step into the ordinary card with the reason in the thread. A rule can only add a tap. Reads and looks are not checked. - GET/PUT /api/ai-assistants/rules; "Your rules for your bots" in a bot's details (RulesRow), shown to the owner. - Memory writes moved to /memories/write (POST, PATCH): storing a memory embeds its words, and a file a GET lives in may not import that. __tests__/unit/companions/rules.test.ts. Unit suite: 734 files, 5958 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * test(live): the rehearsal sets a model, rules, a memory and reads the library on the live site Case 8 of bots-rehearsal.live.spec.ts, as a brand-new person: the shared pool says it picks the model; rules save as written and a time zone nobody knows is refused; a memory is added, corrected and forgotten; the library answers a list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(migrations): the bot rules constraints are added only when missing, and nothing is dropped safety-lint refused the DROP CONSTRAINT IF EXISTS that made the two ADDs repeatable. A DO block that adds each constraint when it is not there is repeatable too, and drops nothing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(companions): the library's dates and the owner's hour are written in the app's locale check:app-locale refused a browser-locale date in LibraryList and two hard-coded 'en-GB' formats in rules.ts. The date is formatDate, and the hour uses APP_LOCALE. The whole of scripts/verify.mjs passes locally. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * fix(diagnostics): a bot turn's failed links tell our own daily cap apart from a vendor's 429 2026-11-13 06:24 UTC, first hand on the live site: a new person's bot got 502 in 0.7 s. cat-diagnostics showed google 403, groq 429 and openrouter 429 for the hour, and could not say whether those 429s were the vendors' own limits or OrangeCat's daily spending cap, which refuses a call as a 429 so the chain moves on. The summary now marks a cap refusal (cap: true) and the public report prints it as "cap". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6ce2f2d1fd |
fix(settings): Export my data holds what it promises, and settings copy says what the product does (#1703)
Measured on orangecat.ch (2026-11-12): - "Export my data" promised "the data we store about you". GET /api/account/export returned ten tables (profile, Cat history, credits, preferences, sent messages) and nothing the person made: no pages, wallets, posts, follows, memberships, payments or notifications. - "Delete all Cat conversations" sent people to "AI settings" for memories. Memories live on the Memory tab, and /settings/ai has no memory controls. - The public contact email said "Defaults to your registration email". Since #1589 it is never pre-filled. - Integrations told developers to verify webhooks with @orangecat/sdk, which is not published (npm answers 404). Now: - The export is gathered in src/domain/account/exportAccount.ts. It adds every page the person owns, found through ENTITY_REGISTRY by each type's owner column, so a new type is exported without touching it. Wallets are read through WALLET_CLIENT_COLUMNS, without the connection secret. It also adds posts (under the user id or an actor), follows both ways, group memberships, payment requests and orders where the person is a party, notifications and Cat interest topics. Embedding vectors stay out. A failed read still fails the whole export rather than handing over a partial file. The route is a thin wrapper. - The export copy names what the file holds and what it leaves out. - The memories sentence links to the Memory tab. - The contact email help says it stays empty unless filled in and that the sign-in email is never shown. The guidance tip claiming a default is gone. - Integrations states the signing scheme (X-OrangeCat-Signature, HMAC-SHA-256 of `${t}.${raw body}`, five-minute tolerance), and the API conventions doc says the SDK is not published. Claude-Session: https://claude.ai/code/session_019MDtmw3MnN44QwEv4M52CS Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
24820f09e2 |
feat(companions): walk_site and use_browser: a QA walk, and a browser of its own for every bot, through Loki (#1697)
* fix(migrations): the vendor daily cap takes its own version, 20261112202000 #1672 and the members-only groups migration landed on main with the same version, 20261112200000. schema_migrations.version is a primary key, so check:migration-versions and Migration Replay failed on main and the deploy did not run. The cap's migration had not been applied anywhere (its deploy was the one that stopped), so it takes an unused version; nothing else changes. Unit suite locally: 718 files, 5841 tests passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): walk_site, a QA hand that opens a live site in Loki's browser and says what is wrong Cat Bot's first missing row against Grok Bot (docs/PARITY.md, plan step 1): headless browser testing. A bot proposes walk_site with one to three full addresses and, optionally, phrases each page must show. Loki opens each page at phone size in its own guarded browser (bitbaum/loki #1696) and answers per page: it loads, shows what it must, does not scroll sideways, has no broken picture. The thread keeps Loki's own sentences; nothing is filed, and a problem is filed with file_loki_finding. - services/loki/site-walk.ts: the call over the signed rail, the parsing of what a bot names, and the lines the thread keeps. Nothing is opened without a full address or for more than three pages; a refusal is Loki's sentence; an answer that cannot be read is never reported as a walk. - One body in LOKI_HANDS, so the Cat's card and a bot's own work loop run the same thing; read-only, so it can be switched to "on its own". - Registered in cat-actions, the Loki connection, the bot's hands and their labels, and the chat's progress words. - The prompt budget is raised 7,080 -> 7,230 for one clause and two parameter names, with the reason beside it. - docs/PARITY.md: the row is in progress, and step 1 says what is still to do (the picture in the thread; a walk that clicks through a flow). __tests__/unit/cat/loki-site-walk.test.ts. Unit suite: 730 files, 5924 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi * feat(companions): use_browser, a browser of its own for every bot; a failed page's picture in the thread Cat Bot's computer use against Grok Bot's (docs/PARITY.md, plan step 2), OrangeCat's half; Loki's is bitbaum/loki #1697. A bot proposes one step at a time: open, click, type, press, scroll, back, look, close. Loki takes the step in that bot's own Chromium (its own cookies, kept out of the private network) and answers with what the page now shows. The thread keeps the picture, the address, what the page says, and what can be clicked or typed into, numbered, so a model that cannot see pictures drives by number. Loki never types a password or a card: that step stops and says the owner does it. - services/loki/browser.ts: the step a bot wrote becomes the step Loki is asked for, or a sentence saying what is missing; nothing is sent for a step that cannot be one. A stopped or failed step is its sentence, never a success; an unreadable answer is never a page. - Whose browser is the server's to say: hands-server stamps bot_id from the bot whose turn it is and drops whatever a model wrote there. The Cat, which is no bot, uses the person's own. - One body in LOKI_HANDS, so a card and a bot working on its own run the same thing. - walk_site now shows the picture of a page that failed. - Prompt budget 7,230 -> 7,440, with the reason beside it. PARITY rows updated. __tests__/unit/cat/loki-browser.test.ts. Unit suite: 731 files, 5935 tests. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmt4p1jMfJnbJtpeNhi --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
26c35499d6 |
feat(messages): the packaged Messenger — files on messages, and a Cat nobody mistakes for a person (#1688)
* feat(messages): the packaged Messenger, with files and a Cat nobody mistakes for a person /messages is now @bitbaum/chatkit/messenger: OrangeCat keeps the transport (routes, storage, realtime) and the words; the screen is the package's. - The Cat is marked as an agent, with whom it answered for; the top bar says it is in the conversation. - The conversation fills the phone screen: no blank band under the box. - Photos, videos and files on a message: private bucket on R2, signed upload and read URLs, one policy (config/message-attachments.ts) checked in the browser, the route and the bucket; 1 GB a person; unsent uploads and the files of deleted messages are swept daily. - Unread counts are real, and the badge follows them. The chatkit dependency moves to the published release in the next commit, once the package is out. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * chore(type-scale): hold the ground the Messenger took (7 arbitrary sizes) Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * fix(migrations): messages_can_carry_files takes an unused timestamp Main's identity-handover migration took 20261112120000 first. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * fix(migrations): messages_can_carry_files moves to 20261112235900 Main's members-only-groups migration took 20261112200000. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * fix: leave main's members-only references on their own migration The timestamp rename caught two files that name main's migration 20261112200000_members_only_groups_hide_their_members. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 * test(messages): a link to an old conversation keeps the inbox, on the Messenger's reducer main's #1682 test drove useConversations, which this branch deletes. The same rule is checked where it now lives: the package's reducer adds the linked conversation and keeps the list. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsmMXvM981mcszxEA6 --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
2f5346cac5 |
fix(tasks, cat, home): the five owner decisions from the UX/UI audit (#1695)
The owner handed the audit's five decisions over on 2026-11-12. Each is decided here, except the token values, which go to the package itself (bitbaum/design-tokens#64). - Tasks are seen and changed by their creator and by the person a request names. Any signed-in account could read and update every non-archived task, read every completion and flag, and read requests sent to "everyone". Migration 20261113120000 scopes tasks, completions, flags and requests; SECURITY DEFINER helpers keep the two tables' policies from recursing. Tested against Postgres 16 as creator, person asked and stranger. - A request names one person, picked with the money screens' people picker. The request and flag routes no longer notify every account on the platform; the broadcast helper is removed. PeoplePicker passes the person as a second argument to onPick. - Saving a Cat spending cap keeps the payments row's on/off state (or the category default, off). It wrote granted: true, so Send Payment and five more moved from Off to "Ask first" on accounts that never chose. The new test fails on the old code. - Migration 20261113121000 marks the three hand-made QA listings as test data by id; nothing is deleted. - The home page shows "What it solves" before the studio. Docs: the audit's decisions section records what was decided; CHANGELOG. Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
45d3f8d0fc |
feat(public): every public page opens with one header; the visitor menu lists the header's links and a way to sign in (#1689)
* fix(nav): the visitor menu on a phone lists the header's links and a way to sign in On a phone the public menu showed "Blog" and "Support", dropped the Product and Ecosystem groups (items with children and no href rendered nothing), listed the whole footer in their place (27 links, 1,681px in a 780px panel) and offered no Sign in anywhere in the public chrome. It was a plain div: no dialog role, no close control, and the button that opened it did not say it was open. - The menu lists the header's own destinations in their groups, each with the line that says what it is; Blog and Support get that line in the config. A hairline separates a group from the plain links after it. - It ends with Sign In and Get Started as two equal cells. The footer is not repeated; it is on the page. - It is a modal dialog: a close button, a dimmed page behind it, focus kept inside while it is open and returned to the menu button after. The menu button carries aria-expanded and aria-controls, and closes the menu too. - HeaderNavigation keeps only the desktop bar and is under its size limit, so its exemption is removed. Measured at 390px in both themes with the menu open: no axe violation. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * feat(public): every public page opens with one header Thirty public pages each built their own first screen: titles from 24px to 60px, centred on some and left on others, an icon above one title, a pill above another, a raised band behind a third, and six content widths. Fleet rule "One shape per kind": siblings share one frame. - PublicPageHeader (src/components/layout/PublicPageHeader.tsx) owns the title scale (30/36/48px), the lead line, the space above and below, and the alignment: centred for a page about OrangeCat, start-aligned for a document read top to bottom. An optional label above the title, small print under the lead line, and a slot for buttons or a short form. No icon, pill or band, on purpose. - PUBLIC_PAGE_WIDTH gives a page one of two widths, reading (768px) and wide (1152px), in place of six. - 26 pages and the legal document renderer use it. Titles and lead lines are unchanged. The shield, cat, briefcase and play icons, the bitbaum logo above its title and three pills are removed; "Founding supporters" and "Open source · MIT" stay as the label. - Articles, a blog post and "What do you need?" set their title in the heading face. - check:public-frame (in verify) fails a page under src/app/(public) that writes its own h1, uses PageHeading directly or wraps itself in PageLayout; five pages are exempt by name with the reason. - The code samples on "Sign in with OrangeCat" and the command on "Steal the cat" take focus, so a keyboard can scroll them. The first section heading on How it works is one step smaller than the page title. Measured on 30 pages at 390px and 1440px in light and 390px in dark: no sideways scroll, one h1 each, no axe violation. Docs: the audit gains a "Second batch" section with before and after images; CHANGELOG and AGENTS.md name the frame and the gate. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(nav): the visitor menu's id lives with the header constants #1663 added a test that replaces MobileMenu with a stub. Header imported VISITOR_MENU_ID from MobileMenu, so the stub took the id away and the header threw while rendering a 404 (11 tests, after main was merged into this branch). The id now lives in src/constants/header.ts beside the other header constants; MobileMenu and Header both read it from there. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
cc129cd945 |
fix(identities): a hand-over to a taken address is refused before anything changes (#1693)
The live hand-over walk found that accepting a link with an address that already has an account answered 500. acceptHandover learned an address was taken only from the auth server's refusal at the last step, after the link was cut and the identity's ways in removed, and it read the refusal's wording to tell taken from failed. On orangecat.ch the wording did not read as taken. - New service-role function auth_user_id_for_email. Acceptance asks it right after the offer is spent, and refuses a taken address with the link, the ways in and the offer untouched. - When the auth server still refuses the address (taken in the moment), the check is asked again; the wording and the email_exists code are only a fallback. Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
7cb13a5843 |
fix(identities): an account in a circle can be deleted (#1687)
* fix(identities): an account in a circle can be deleted The first live walk of identities (ADR-0014) found Settings -> Delete account answering 500 for anyone who held an identity, and for the identity itself; a plain account deleted fine. identity_handovers_end_with_the_link removes an identity's open hand-over offer when its link goes, so it fires on every identity_links delete, including the cascade from auth.users. GoTrue deletes as supabase_auth_admin, the trigger ran as that role, and that role may not touch identity_handovers (service-role only). Every such deletion failed with "permission denied for table identity_handovers", offer or not. - New migration: the function is SECURITY DEFINER with an empty search_path, and nobody may EXECUTE it directly. It only deletes the offer for the identity whose link is going. - Migration replay now deletes a holder and its identity (with an open offer) through GoTrue's admin API, as production does. The replay only counted tables, and a superuser DELETE cannot see a trigger the auth role may not run. - The accept page rendered a second <main> inside the layout's; it is a div now. Its "link no longer works" state offers a way back home. Reproduced on a local Postgres with every migration, deleting as supabase_auth_admin: before, both deletes fail on identity_handovers; after, the identity (with an offer) and the holder delete, and no link or offer is left. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * fix(migrations): the vendor daily cap gets a version of its own #1661 and #1672 each shipped a migration numbered 20261112200000. Each PR passed alone; together they break every from-scratch replay (schema_migrations_pkey) and fail migrations-unique-version.test.ts on main. The vendor cap, the later of the two, is now 20261112200500, its content unchanged. Production tracks migrations by filename, so the deploy applies it once more under the new name. Every statement in it is idempotent (CREATE TABLE IF NOT EXISTS, ENABLE ROW LEVEL SECURITY, REVOKE, CREATE OR REPLACE FUNCTION, GRANT), so that second run changes nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
1d29cb4c47 |
fix(a11y): text that reads in both themes, ink that follows its fill, 44px targets, Send's button above the tab bar (#1634)
* docs(agents): keep the Next.js agent-rules block as next dev writes it next dev regenerates the block between the nextjs-agent-rules markers and now writes its heading one level down. Committing it keeps the tree clean, as the block itself asks. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(a11y): text that reads in both themes, ink that follows its fill, 44px targets A measured audit (99 pages, 390 and 1440, dark and light) found 1,729 elements under 4.5:1, text that was invisible in the default dark theme, and 1,438 tap targets under 44px on a phone. This fixes the causes rather than the instances, and adds a gate for each class. Colour - Text ramp: secondary and tertiary now clear 4.5:1 on every surface in both themes (tertiary alone caused 81% of the failures). Primary is unchanged. check:token-contrast holds 124 pairs. - Status colours are tuned to be read as words; `bg-status-*` paints new fill tokens, so a danger button stays red and a warning bar stays amber. - `text-on-public` for the band that is near-black in both themes: the closing banner on About, Docs, Security and Domains showed only its button in dark. - Fills that flip with the theme carry `text-fg-inverted`, not white: the step badges on How it works, the share sheet label, the wallet stats header. Orange fills carry `text-on-accent`. - `text-fg-muted` and resting alpha on copy are gone (65 lines). check:accent-ink now holds six ink rules, across multi-line cn() calls. - Article and FAQ links are ink with a full-strength underline. Structure and touch - Footer: 44px links on touch, two columns on a phone, no duplicated bottom bar. check:tap-targets holds every compact height. - Switch: 44x44 hit area, off is an outline and on is a fill; the Cat permission switches and expanders are named. - One h1 on sign-in, the Cat chat, the 404 and route errors; no nested <main>; one home link in the header; progress bars announce a value. - The 404 names the failed address (read in the browser only, since the build prerenders it once), and offers search, home and Discover. - Entity list tabs that pointed at panels which do not exist are a segmented control; its selected cell has an edge in dark. Motion and focus - A focus outline in forced-colours mode (the ring is a box-shadow). - Smooth scrolling only without prefers-reduced-motion, in CSS and at every scripted scroll (src/lib/scroll-behavior.ts). Also - Headings no longer auto-hyphenate ("permission-less"). - The status page drops a hard-coded "Bitcoin Integration" row that drew as an outage, and its headline follows the worst row shown. - 10px text on phones is 12px. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(a11y): say only what is held; menu rows and the last in-app orange in touched files Review of the previous commit: - The changelog said every text colour clears 4.5:1. Grey text and the status colours do, and a gate holds them; orange words elsewhere do not yet. The entry says the former, and keyboard and screen-reader work has its own line. - AGENTS.md and the frontend rules said a status fill takes text-fg-inverted; the warning fill is amber in both themes and takes text-warning-foreground, which is what the gate enforces. - Dropdown menu rows are 44px on touch, as select rows are. - Pricing: the plan card and its badge are neutral; orange is the action. - Profile claims, the Loki chip, "Read article" and the model picker's unlock lines are ink: they are in-app, and as text the orange is 2.1:1 in light. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(send): the committing button stays above the phone tab bar MoneyActionBar stuck to the bottom of the viewport, which is where the fixed tab bar is drawn, at a higher z-index. After choosing a person and an amount, "Review payment" sat at y 787-831 of 844 under the bar (763-844) and its centre hit-tested to the bar's Receive button; the same at 390x667 and 320x568. It now sticks at the tab bar's clearance. While the software keyboard is up the tab bar is not rendered, so the bar returns to the bottom edge and takes the home-indicator inset itself. Measured after, field blurred: button 707-751, bar 763-844, hit = button, at all three sizes; keyboard open: button at the bottom edge, hit = button. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(ci): check:broken-words opens the pages it did before build-and-smoke was cancelled at its 25-minute limit on this branch. The step that never finished was check:broken-words: this branch had added seven public pages to it, 39 screens in place of 18, and it ran for 20 minutes without output before the job was stopped. The page list is main's again. What the extra pages were there to hold, that headings do not auto-hyphenate, is pinned by the unit test on globals.css. AGENTS.md records the budget so the next addition is made with it in mind. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn * fix(a11y): the hand-over page does not nest a second main landmark The identity hand-over page (#1609) wraps its content in <main>, and the app shell already renders <main id="main-content"> around every route, so the page had two. Its wrapper is a div; the heading and layout are unchanged. Caught by the page-structure test this branch adds. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmvT2nQyPBK4EfWf3Rn --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
a343b91af2 |
feat(identities): shared account menu, hand-over, unread counts, person tags, operator circle (#1609)
* refactor(menu): the account menu is accountkit's AccountMenu OrangeCat ran its own account menu (UserProfileDropdown, its panel, a dropdown hook) while every other product uses @bitbaum/accountkit's AccountMenu. The identity switcher was then added to the local one, which is the copy the fleet rules say not to write. The switcher now lives in accountkit 0.28.0, and OrangeCat mounts the shared menu. - AccountMenuControl supplies what is OrangeCat's: the person, the places, the other identities (ADR-0014) and what a tap does. Layout, keyboard handling and the sign-out and switch failure states are the package's. - A failed sign-out or switch is passed on as a rejection, which is how the menu knows to stay open and say so. The toasts are gone. - Appearance stays reachable from the menu, for phones. - --acct-line maps to the default border: the subtle border is the same shade as the overlay the menu sits on, so in light mode its groups ran together. - Removed: UserProfileDropdown, UserProfileDropdownPanel, IdentitySwitcherRows, ThemeModeRow, useDropdown. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * feat(identities): an identity can be handed over (ADR-0014 D9) The holder creates a hand-over link for one identity. Whoever opens it gives an email address and accepts; the identity is then an ordinary account on that address, with everything it owns, and that browser is signed in to it. The former holder can no longer switch to it. - The link is the credential, as a claim link is (ADR-0004). It is shown once and only the SHA-256 of its token is stored (identity_handovers, service-role only). One open offer per identity, seven days, withdrawable. - Reading the accept page spends nothing; only the form's submit accepts. - The order of acceptance is the safety property: the link to the holder is deleted BEFORE the identity is given its address. If the address is taken, the link and the offer are put back and nothing has changed. - The former holder's sessions in the identity are ended on acceptance. - The accept endpoint is public by design (the person accepting has no session in the account yet), rate limited per IP, and recorded with its reason in the route-guard allowlist. - The link is built from the site's public address, not the request's. Also: the consent screen no longer promises an app 'Read your email address' for an identity, which has none to share. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * feat(identities): one person is one tag to an app (ADR-0014 D7) An app that gives every account a say (Solon) gives a person with several identities several. To refuse the second seat it must learn that two accounts are one person, and nothing else. POST /oauth/person-tags answers a confidential client OrangeCat trusts with a tag per account: two accounts share a tag exactly when one person holds both. The tag is HMAC-SHA256(key, client || scope || holder), so it differs per app and per scope the app names, and cannot be computed or reversed without the key. - The key is generated by the database when the migration is applied. It is never in the repository or an environment file, no API role can read it (not the service role either), and it does not leave the database: identity_person_tags() does the keyed step. One row, written once, because changing it would unmatch every tag an app has stored. - A self-registered app cannot ask at all. - An account with no tag could not be told apart; it is not someone else. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * feat(identities): see what waits in your other identities; an operator can resolve a circle D8. GET /api/identities gives each other member the unread count the bell shows, read on the service role and only ever for the caller's own circle. The menu shows it on that identity's row and as a dot on the avatar (@bitbaum/accountkit 0.29.0, waiting on an account); Settings shows it on the row. A count that cannot be read is left out, not shown as zero. D10a. identity_circle_of(handle) returns the holder and every identity it holds, for any handle in the circle. Service role only, so it adds no way for one user to learn another's identities. It reads; it does not act. OrangeCat has no suspension mechanism today, so a circle-wide ban has nothing to switch on yet; when it does, it starts here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * test(identities): the person-tags route decides who may ask POST /oauth/person-tags had tests for the function it calls and for the database function behind it, but none for the route, which is where the decision about who may ask is made. Pinned here: - a trusted confidential client gets its tags, with no-store, and the registered client id is what is passed on; - an unknown app, a public app and a wrong secret get one identical 401, and none of them reaches a lookup; - a client that authenticates but is not trusted gets 403 before a lookup; - rate limited before anything is read; - a failed lookup is 503 and never an empty set of tags. The suite-wide next/server mock stubs NextResponse.json to return nothing, so this file gives it a real one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * fix(identities): close the boundaries an adversarial review found Critical: an identity entered with a way in of its own (a password or passkey given in its own settings, its login handed to someone) could regain the whole circle. Its withheld circle still listed itself, and no switch path but the API route refused a switch to yourself: calling the consent screen's 'Continue as' with its own id minted a fresh one-time-code session, which the gate then read as a switch. mintSwitchCode now refuses a withheld caller and a switch to yourself, in the one function every switch goes through. - Losing the circle is permanent: the first change to an identity's email or password stamps identity_links.lost_circle_at (trigger on auth.users), and a stamped identity never has its circle again. Before, setting an unreachable address back let it in. - A handed-over identity keeps no way in. Acceptance now spends the offer atomically (two people opening one link: one gets through; a withdrawn link finds nothing), cuts the link, removes every way in the former holder could have put on it (identity_strip_ways_in: every GoTrue table tied to the user, found from the catalog, plus linked providers; the connected apps' tokens and consents; the password, replaced by one nobody knows), and sets the new address last. Any failure before that puts the link and the offer back. An address error the auth server applied anyway is counted as done, not relinked. - Person tags are answered only for accounts that granted the asking app: a trusted app could otherwise map every circle on the platform. - getCircle throws on a failed read instead of reading it as 'no identities' (which let account deletion orphan identities). - The handle check escapes LIKE wildcards ('_' is allowed in a handle). - The identity limit holds when creates race: a create past the limit in creation order gives way. - Switching moved to src/domain/identities/switching.ts (the service passed the 500-line limit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * fix(identities): interface and mail after review - Mail for an identity reaches the person: one recipient rule (recipientEmail.ts) for the email service, dispatcher and seller notification; an identity's mail goes to the account that holds it, never to its undeliverable address. - Wishlist proofs accept any actor the caller holds (userHoldsActor). - The account menu reloads identities when they change (event + tab focus) and reports a failed switch; settings show a retry when the list fails, and say plainly when an identity cannot manage the circle. - Hand-over: "Not now", a new link for an open offer, and an accept page that ends on "It is yours" with sign-in instead of a silent redirect. - Settings for an identity explain it has no email or password of its own; the delete dialog says what deleting removes. - Consent "Continue as" says when the switch did not happen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
202badacd5 |
docs(cat-bot): PARITY.md — Cat Bot against Grok Bot, the Developer + QA pair, and computer use (#1664)
Names the bot platform Cat Bot, scores it against Grok Bot row by row, and writes the plan for the Developer + QA pair. Computer use is step 2: every Cat Bot gets its own headless Chromium on the Loki runner (screenshot, click, type, navigate), isolated per bot and watched live from the app, built on step 1's Playwright-on-runner QA tool. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
69cef759c7 |
fix(companions): a bot follows the run it started to its answer, and every step is checked and logged (#1622)
* fix(companions): a reply the output cap cut is continued once and never stored mid-sentence A bot's answer ended "If you treat me…". Its cap was 1,000 tokens, a reasoning model spends part of that thinking, and the vendor's finish_reason=length was stored as if the answer were whole. - the owner's turn with their own bot gets room for 3,000 tokens (a creator's own setting still stands for anyone else, whose price is per token); Groq keeps its measured 1,024, whose per-minute budget counts reserved output - a reply cut by the cap is continued once on the model that wrote it, and the halves are joined - one that is still cut, or whose continuation fails, goes back to its last finished sentence and says how to get the rest; an open code fence is closed Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * perf(companions): a bot reads its owner's grants once, and each turn logs where its time went A bot took a long time to answer "Hi". Before the model was asked, the turn checked every hand with its own read of the person's grants, one after another: a dozen database round trips, growing with each hand added. Memory recall waited for those to finish, and nothing recorded which step was slow. - handsFor reads the grants once and checks every hand against that copy, at the same time (checkPermission takes the stored grants) - memory recall and hands are read together - every turn logs 'companion turn timing': checks, context, model and store in milliseconds, with the model, output tokens and prompt size. The reply is not streamed, so the model phase is the time to the first word Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * feat(companions): a bot works on its own in its owner's Loki, with a switch per ability A bot could propose one step and then waited for a tap, so it could not do a job: start an agent session, wait, read the answer, report it. Every bot of a person was also offered the same hands. - companion_hand_grants: per bot and per hand, the owner sets off, ask me or on its own. The row 'What it can do' in the bot's details is the switch - only the hands that work in the owner's Loki can run on their own. Anything a bot makes on OrangeCat still waits for a tap, so nothing told to a bot in confidence is published unseen - the work loop: an on-its-own hand runs at once, its result is written into the thread and handed back to the bot, and the bot takes the next step, up to six steps or two and a half minutes a turn - a task it sends is followed in code: the run is waited for and the session's conversation read, so the bot reports the agent's answer - routines run the same turn, so a scheduled bot can do a job unattended - the Loki hand bodies moved to services/loki/hands.ts, one body for the Cat's card and the bot's own step. A step never goes through the Cat's executor or handlers: the import-boundary test is unchanged and passes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * feat(companions): filing a finding and reading it back can run on their own too The finding hands landed on main (#1613). Their bodies join the shared Loki hands, so a bot whose owner switched them on can file what it found on a live app and read the report's status as steps of a job. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * feat(companions): a bot reads how every project is doing, and can ask a one-off in a fresh session - project_status: every Loki project of the owner in one read. What it is doing and what waits in its inbox (Loki's actor status), its latest run and pull request (Loki's sessions), and whether its live site answers right now (a request made here: never to a private address, never following a redirect). A site that was not asked reads 'not checked', never 'up' - fresh_session on send_task_to_loki: a busy project starts a separate agent session for a one-off question instead of refusing it or folding it into the open run (Loki's separateSession, bitbaum/loki#1646) Both are Loki abilities, so a bot's owner can switch them to run on their own. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * fix(companions): a bot follows the run it started to its answer, and every step is checked and logged Following a run: - the follow reads THAT run, not the project's latest open run: its first poll asks Loki to watch the run's session for the whole wait, and the last read is the run's own session (bitbaum/loki#1658) - the agent's handoff is shown and handed to the bot ("The agent reported: ..."), so a one-off session that closed still has its answer - an older copy of a conversation is said to be one - a run read back while it is still going is followed too Steps a bot runs on its own: - the owner's Cat permission is checked for every step (a daily limit holds across a job), and every step is a row in the action log - a step proposed to run on its own that the turn could not run becomes the ordinary card instead of being dropped; one that ran is never queued again From review: - project_status reads Loki now, not the Cat's five-minute copy, and its live-site check can only connect to a public address on the default port (the lookup is the connection's own, so DNS rebinding cannot reach inside); a name that does not resolve is down, not 'not checked' - a finding carries a retry key: the same finding filed again the same day is the same report, and a timeout says a retry is safe - a task is signed with issuedAt so Loki can refuse a replayed one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * fix(companions): a follower polls lightly, and the words say what the code does From review: - the follow's polls ask Loki for the run's own facts only (poll: true), so following a run every six seconds never spends the owner's GitHub budget - the line a person reads after a task is sent no longer carries the bot's tool instructions - hands.ts and ADR-0013 D10 now say what happens: a high-risk hand waits for a tap unless the owner switched it on for that bot, and a step already started can run past the two and a half minutes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
67fb153499 |
fix(privacy): no owner email, password or email-derived handle in public pages or the repo (#1621)
This repository is public, and it carried the owner's sign-in email in nine ad-hoc test scripts, an e2e spec and three docs, with the account password beside it in most of them. The scripts and the spec now read E2E_USER_EMAIL / E2E_USER_PASSWORD (the names the CI secrets already use); the browser-console script prompts; the docs say where the credentials live instead of what they are. Removing them from the tree does not remove them from history: the password has to be changed. Two old handles that were plus-addressed aliases of the owner's email were also quoted in code comments and test fixtures (now neutral examples), and in the text of a public project update on the OrangeCat project, where the mention renderer linked one to a profile that 404s. A migration rewrites any `<local part>+ocauth<N>` alias in timeline titles and descriptions to "an old test account". It matches the shape, never a name; run twice against a scratch Postgres 16 it changed only those rows, left ordinary plus-addresses alone, and was a no-op the second time. Applied migrations and .mailmap are untouched: migrations are immutable once applied, and .mailmap is what makes git show those commit emails as Cato. Claude-Session: https://claude.ai/code/session_019MDtmw3MnN44QwEv4M52CS Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
931d180f0d |
feat(companions): a bot works on its own in its owner's Loki, with a switch per ability (#1615)
* fix(companions): a reply the output cap cut is continued once and never stored mid-sentence A bot's answer ended "If you treat me…". Its cap was 1,000 tokens, a reasoning model spends part of that thinking, and the vendor's finish_reason=length was stored as if the answer were whole. - the owner's turn with their own bot gets room for 3,000 tokens (a creator's own setting still stands for anyone else, whose price is per token); Groq keeps its measured 1,024, whose per-minute budget counts reserved output - a reply cut by the cap is continued once on the model that wrote it, and the halves are joined - one that is still cut, or whose continuation fails, goes back to its last finished sentence and says how to get the rest; an open code fence is closed Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * perf(companions): a bot reads its owner's grants once, and each turn logs where its time went A bot took a long time to answer "Hi". Before the model was asked, the turn checked every hand with its own read of the person's grants, one after another: a dozen database round trips, growing with each hand added. Memory recall waited for those to finish, and nothing recorded which step was slow. - handsFor reads the grants once and checks every hand against that copy, at the same time (checkPermission takes the stored grants) - memory recall and hands are read together - every turn logs 'companion turn timing': checks, context, model and store in milliseconds, with the model, output tokens and prompt size. The reply is not streamed, so the model phase is the time to the first word Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * feat(companions): a bot works on its own in its owner's Loki, with a switch per ability A bot could propose one step and then waited for a tap, so it could not do a job: start an agent session, wait, read the answer, report it. Every bot of a person was also offered the same hands. - companion_hand_grants: per bot and per hand, the owner sets off, ask me or on its own. The row 'What it can do' in the bot's details is the switch - only the hands that work in the owner's Loki can run on their own. Anything a bot makes on OrangeCat still waits for a tap, so nothing told to a bot in confidence is published unseen - the work loop: an on-its-own hand runs at once, its result is written into the thread and handed back to the bot, and the bot takes the next step, up to six steps or two and a half minutes a turn - a task it sends is followed in code: the run is waited for and the session's conversation read, so the bot reports the agent's answer - routines run the same turn, so a scheduled bot can do a job unattended - the Loki hand bodies moved to services/loki/hands.ts, one body for the Cat's card and the bot's own step. A step never goes through the Cat's executor or handlers: the import-boundary test is unchanged and passes Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU * feat(companions): filing a finding and reading it back can run on their own too The finding hands landed on main (#1613). Their bodies join the shared Loki hands, so a bot whose owner switched them on can file what it found on a live app and read the report's status as steps of a job. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmsQh5BSKKaJXnf4KjU --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
129130b542 |
feat(identities): choose which identity signs in to an app (#1607)
When Loki, Solon or another app sends a person to OrangeCat to sign in, the consent screen said 'Signed in as …' and offered only 'Not you?', which signs out completely. It now lists the person's other identities under 'Or continue as'. Choosing one switches and reloads the same authorize request as that identity; nothing is granted by the choice. - switchSessionTo is the one function that changes a session: the API route and the consent screen both call it, so neither can skip the circle check or exchange a code on its own. - The identity is a bound argument of the server action. React replaces the name and value of a button that carries a server action, so a field on the button never reaches the server; a test pins the binding. - The consent screen shows no address for an identity: it has none a person can read. Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
6fea306678 |
feat(identities): switch from the user menu; the identity row reads on a phone (#1606)
* fix(identities): the identity row keeps its name, its face and its label on a phone Walked on the live site at 390px after #1605 deployed: - The face was an empty broken ring. The avatar component always renders an image element, and with no picture that draws a broken frame and squeezes the initial out of the circle. The image is rendered only when there is one. - The name was cut to 'Alberto C…' because Delete and Switch shared its row. A row now has one action; deleting is its own line underneath, where the confirmation also appears. - 'Main account' was truncated off the end of a long handle. The label leads. Row extracted to IdentityRow.tsx. Checked at 390px and 320px: no sideways scroll, every button 44px tall. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * docs(adr-0014): record what the live walks verified Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * docs(adr-0014): the escalation gate holds on the live site Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * feat(identities): switch identity from the user menu The other members of a person's circle are rows of the menu under their picture; one tap switches. Nothing is rendered for a person with a single identity, so the menu is unchanged for everyone who has not added one. - src/lib/identities/client.ts holds the list and switch calls, used by both the menu and the settings section. - The menu no longer shows an identity's unreachable address under its name: a made-up mailbox where an email belongs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
e5481369ea |
feat(identities): a person can hold more than one name (ADR-0014) (#1605)
* fix(actors): a person with several actors keeps their counts, their voice and their own wishlist Nothing makes a user's actor unique, and six places still read that as impossible: - listingCounts, the messaging actor picker and the Cat's runtime context used maybeSingle() on user_id. For a person with duplicate actors that errors, which read as 'no actor': listing counts of zero, no way to write as yourself, no current actor for the Cat. - bookings picked the customer actor with an unordered limit(1), so the 'cannot book your own listing' check could miss. - three wishlist owner checks compared wishlists.actor_id to the auth user id. An actor id is never a user id, so the owner could rate their own wishlist and never saw 'add proof'. - claim_placeholder_actor chose the claimer's actor with an unordered SELECT INTO; a claim could land on an actor every reader ignores. All now follow the one rule (oldest actor is primary) through src/domain/actors, with userHoldsActor for 'is this actor mine'. The guard test is widened to the shape these copies shared. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * feat(identities): a person can hold more than one name (ADR-0014) An identity is a whole account of its own: its own profile, page, wallet, timeline, inbox and sign-in to Loki and Solon. What makes it one of a person's identities is one private row naming the account that holds it. Nothing an identity owns points at its holder, so two identities of one person cannot be joined from any public row. - identity_links: service-role only (RLS on, no policy). One level, written once, a database ceiling behind the product limit. - /api/identities: list, create, delete. /api/identities/switch replaces the session with one for another member of the caller's circle, using the same generate-then-verify mechanism as sign-in by emailed code. Cookie session only. - An identity sits on an unreachable address with no password; the holder needs a real address first. Apps are not handed the address. - Sign out everywhere ends every member's sessions and connected apps; deleting the holder deletes its identities first. - Settings gains the section to add, switch and delete. Rejected: more user actors under one login. 44 RLS policies and a NOT NULL user_id on eight entity tables key on the login, so a second actor either cannot act or publishes its holder on every row. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy * fix(identities): an identity with a way in of its own loses the circle An identity can be given a password, a passkey or a real address from its own settings, and its login can then be handed to someone else. Without a gate that person is one request away from the holder's main account and every other identity. An identity may now use its circle only while it is still the holder's alone: its address is still unreachable AND its session came from a switch (the amr method of the verified access token). Otherwise it stands alone: it cannot switch, list, create, delete or sign the others out. The holder is never gated. The session methods are an allowlist, so a sign-in method nobody thought of fails closed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmubu4vMeqp2pdae1Zy --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
d2dbb21ccc |
Unify article drafting and edits with WritingKit (#1565)
* fix(articles): unify drafting and edits with WritingKit * fix(articles): use secure randomness for draft operation identities |
||
|
|
0e410b3097 |
feat(writing): extract revision-safe content operation core (#1563)
* feat(writing): extract revision-safe content operation core * docs(writingkit): make verification instructions portable |
||
|
|
961b7893f5 |
Keep temporary Cat chats from writing durable memory through tools (#1562)
* fix(cat): refuse durable memory tools in temporary chats * fix(cat): include durable context documents in temporary privacy gate |
||
|
|
0b970d0f18 |
Protect learned offerings and keep Cat recovery controls usable (#1558)
* Require owner consent before publishing learned economic offerings * Honor the feedback host hiding contract in chats and overlays * Wait for authenticated DOM before responsive layout checks * Report safe sign-in lifecycle metadata when responsive checks fail * Consolidate the remaining Cat privacy and recovery release handoff * Prevent caching of the owner-only offerings response * Use and verify the actual no-store policy for private offerings * Reload sharing state safely after an uncertain write result |
||
|
|
34a96adedc | Keep paired Cat questions before replies when timestamps tie (#1559) | ||
|
|
a8023c4f9e | Resolve the live free catalogue before building Cat fallback chains (#1557) | ||
|
|
ce4c1e64d2 | Honor temporary chat and memory consent for economic learning (#1556) | ||
|
|
702d5593de | fix(cat): preserve failed turns and expose safe diagnostics (#1543) | ||
|
|
830fdf2d5a |
docs: site audit matrix + 2026-11-04 handoff (#1550)
* docs: living site audit (works/broken matrix) * docs: handoff for 2026-11-04 site-fix sweep * docs: handoff status after #1544/#1545/#1547 verified live --------- Co-authored-by: catomean <catomean@users.noreply.github.com> |
||
|
|
c3ffe478ea | fix(cat): make permissions atomic and recovery reflect availability (#1542) | ||
|
|
8172121e7d | Enable Cat to manage project investor rooms (#1538) | ||
|
|
39bf29f158 |
test(bots): the rehearsal retries a gateway error once (#1516)
* feat(bots): a bot writes first, on the person's own key A person can tell one of their bots to write first, every day at a time they pick, with a prompt they wrote. The run happens on the person's own OpenRouter key only; without a key the routine is kept, shown as waiting, and skipped with the reason, so no platform key is ever spent by a timer (fleet standing rule 2026-09-25). - companion_routines table (one per person per bot, owner-only RLS), routines-store (time validation, next run in the person's zone) and the runner behind a cron route + 15-minute systemd timer, registered as a person-asked timer in the no-background-ai gate with a marker check. - GET/PUT/DELETE /api/ai-assistants/[id]/routine for the owner. - RoutineRow in a bot's own chat: "Writes first, every day", time and prompt inline, a line to Settings when a key is missing. - Hands: the proposal line names what will be set up, never only "Sure"; a created event's outcome carries its link. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): a bot can ask Loki, as the person — the first connector ask_loki: a Cat action (communication, low risk, confirmed) in the hands launch set. The bot relays a question over the signed OrangeCat → Loki rail to Loki's POST /api/orangecat/ask, which runs a read-only turn as the Loki user linked to the actor; Loki's own sentence is the outcome the person reads, and a refusal (no linked account, a spent budget) is relayed as written. A relayed question can never dispatch, approve or spend: that stays with send_task_to_loki, and the two verbs name each other so a question is never dispatched as a task. ADR-0013: D6 first connector and D7 recorded as shipped. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the routine's day-in-zone comes from the timezone helper check:app-locale (new on main) refuses a literal locale handed to Intl; the routine's next-run computation now takes the day in the person's zone from instantToWallTime, the one rendering the app already trusts. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): the chip knows the verb of ask_loki The tool-label table of leading verbs gains ask → Asking / Asked, so the chip for a bot's question to Loki never falls back to the generic label. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(cat): a failed "Do it?" card shows the server's sentence, not [object Object] The confirm and reject hook handed the API's error envelope (an object) to new Error(), so every failed action read "[object Object]". Seen live the first time a bot asked Loki for an account not linked to Loki: Loki's sentence naming the one step was on the action row and lost on the card. The hook, the memory import and the interests list now read the message through apiErrorMessage, the reader written for exactly this. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a bot keeps offering its hands on a repeat ask Live on 2026-11-01 the second "Ask Loki" in one thread came back as "I can ask Loki for you." with no fence and no "Do it?" card. The proposal fence is taken off a reply before it is stored, so the model saw its own earlier offers as plain sentences and copied them. - The queued proposal is kept in the assistant message's metadata. - The history given to the model writes the fence back onto those turns (withProposal), so a proposal in the history looks like one. - proposeFromReply returns the proposal as queued; hands tests cover the round trip and metadata reading. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(companions): a proposal is a worked example, and a bare block still becomes a card Live on 2026-11-01 a fresh bot's first "Ask Loki" came back as "Here's the query I'll send to Loki:" over a json fence holding {"question": "..."}: the free-tier model copied the template's inner half and left out the action, so the person saw code and no card. - The hands section ends with a complete block for a real offered action, required fields filled with their own names, instead of a template with <id> and {...}; it says the block is the proposal itself and to write no other code block. - extractProposal reads a propose, json or untagged fence at the end; a block with fields but no "action" names the one offered action that owns every field and has its required ones present; a propose fence that said nothing usable comes off so it is never shown as code. - Tests for the example, the lenient read, the inference and its refusals. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * fix(bots): a failed "Do it?" card is finished, a second card starts clean, no empty bubble Seen live on 2026-11-01 (fresh thread, two asks of Loki): - a card whose action ran and failed kept Confirm/Reject under the reason; the reason is now the outcome line, as a success would be - the second card in the thread showed the first card's failure line inside it: the card is keyed by its action - a model that wrote only the block left an empty bubble above the card: the card's description stands in for the words, and ask_loki is described as the question ("Ask Loki: ...") rather than "Execute Ask Loki" Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the five demos as one live rehearsal, run by a person tests/e2e/bots-rehearsal.live.spec.ts walks the live site as a brand-new person (a pseudonymous account minted at the start, no fixture secret): one door, the shelf and a real letter, a group with two specialists in their lanes, an event proposed and created from a "Do it?" card, Loki asked twice with an honest outcome and a clean second card, a routine set and stopped, and the API edges. Every assertion names the value it protects. The Live rehearsal workflow runs it on workflow_dispatch only and keeps the screenshots; it has no schedule, because a free-tier key is spent only when a person asks (fleet rule 2026-09-25). docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * feat(bots): what a bot did stays in the thread A "Do it?" card's outcome lived only in the slot above the composer: it left the screen when a second card arrived and was gone on reload (seen live 2026-11-01). The confirm route now records the outcome as a line of the bot conversation the card came from (services/companions/outcomes.ts): the handler's own sentence with its page, or the reason it failed. The chat re-reads the thread after the tap, so the line shows where it was asked for, and the bot's next turn knows what happened. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et * test(bots): the rehearsal retries a gateway error once Seen 2026-11-01 at 16:50Z: the first post-deploy rehearsal passed six of seven and failed the routine step on one PUT that answered 502, because another merge (#1515) was rolling out at that second; the same call answered 400 a minute later. An API call in the rehearsal now retries once after five seconds on 502/503/504 and logs that it did; two in a row stay a failure. Documented in docs/testing/live-rehearsal.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019MDtmrXvMqAqZtbpQ4x3et --------- Co-authored-by: Claude <noreply@anthropic.com> |