Commit Graph
467 Commits
Author SHA1 Message Date
Catoandfleet-reconciler f8512e94de chore(deps): raise shared package floors to published versions (#157)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 09:11:08 +01:00
CatoandClaude 2d3609c13e feat(auth): stage AccountKit beside Auth.js, switch off (#156)
Petvity moves from Auth.js to @bitbaum/accountkit one reversible step at a
time, as evig and kivvi do. Nothing changes while AUTH_RUNTIME is unset.

- Migration 0008: AccountKit's tables under an `auth_` prefix, plus the
  users <-> auth_users mirror functions, inert until attached.
- scripts/db/accountkit-import.sql: accounts under their own ids, bcrypt
  hashes byte for byte, verification kept, orangecat_sub as an `orangecat`
  account row; refuses collisions, drift or a live shared runtime, then
  attaches the triggers. The rehearsal CLI always rolls back.
- lib/auth/shared/: the runtime (ids: 'uuid', legacy bcrypt, AccountKit
  0.16.0), a session reader re-read from `users` on every request, a bridge
  that answers next-auth/react including "Sign in with OrangeCat", and a
  Petvity row for a person AccountKit creates itself. AccountKit's own
  credential endpoints stay closed; Petvity's writers stay the only ones.
- lib/auth/claims.ts: the ADMIN_EMAILS promotion rule, written once.
- The proxy has one routing function and two session sources.
- browser-smoke.yml runs the account journey once per runtime; the
  AccountKit leg first runs the rehearsal and the real-database journeys.

docs/ACCOUNTKIT-MIGRATION.md records what is left before switching.


Claude-Session: https://claude.ai/code/session_019MDtmud6zcK4rStBGmYSML

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 08:31:55 +01:00
Catoandfleet-reconciler 88c574faf6 chore(deps): raise shared package floors to published versions (#155)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 07:13:14 +01:00
Catoandfleet-reconciler 079f82fff2 chore(deps): raise shared package floors to published versions (#154)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 06:46:56 +01:00
Catoandfleet-reconciler a3a28741bb chore(deps): raise shared package floors to published versions (#153)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-11-01 06:17:28 +01:00
dependabot[bot] bb1d5ef507 chore(deps): bump the minor-and-patch group with 4 updates (#150)
Bumps the minor-and-patch group with 4 updates: [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react), [next](https://github.com/vercel/next.js), [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) and [playwright](https://github.com/microsoft/playwright).


Updates `lucide-react` from 1.61.0 to 1.63.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.63.0/packages/lucide-react)

Updates `next` from 16.4.2 to 16.4.3
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.4.2...v16.4.3)

Updates `eslint-config-next` from 16.4.2 to 16.4.3
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/commits/v16.4.3/packages/eslint-config-next)

Updates `playwright` from 1.63.0 to 1.64.1
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.63.0...v1.64.1)

---
updated-dependencies:
- dependency-name: lucide-react
  dependency-version: 1.63.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: next
  dependency-version: 16.4.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: eslint-config-next
  dependency-version: 16.4.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: playwright
  dependency-version: 1.64.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-31 09:17:14 +01:00
CatoandClaude 33aee0c93f chore(deps): clear dev-toolchain audit findings inside existing ranges (#148)
pnpm audit critical/high (all deps):
  .: 0/2 -> 0/0


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 22:36:44 +01:00
CatoandClaude 5664c79595 fix(db): commit the 0000 baseline and build browser-smoke from migrations (#147)
drizzle/0000_pretty_cammi.sql was in the journal but never committed, and
the objects between it and 0001 (adoption, seller profiles, signal history,
16 indexes) were reconciled with db:push, so the chain could not build an
empty database. The baseline is generated from 0001's snapshot minus what
0001 itself adds, and 0000_snapshot.json now records that state, so every
step's snapshot diff matches its SQL.

Every baseline statement is guarded (CREATE TABLE/INDEX IF NOT EXISTS,
CREATE TYPE and foreign keys in a block that ignores duplicate_object), so
loki apply-schema.sh, which will see 0000_pretty_cammi as pending on prod,
applies it as a no-op there. Checked against a tip-state database with
0001..0007 in its ledger: no error and an identical shape afterwards.

browser-smoke now replays the migrations the way the deploy batches them
(scripts/ci/migrations-replay.sh) and fails when the result differs from
drizzle-kit push.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:35:13 +01:00
CatoandClaude d949035a65 feat(pwa): a Petvity mark and a manifest so phones offer "Install app" (#146)
The tab icon was the create-next-app default (Vercel triangle) and there was no manifest. app/icon.svg is a paw on the fleet dark tile; app/manifest.ts names 192, 512 and maskable 512 PNGs rasterised from it. The default favicon.ico is removed.


Claude-Session: https://claude.ai/code/session_019MDtmreRmsJkmf3AcYy6DS

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:31:32 +01:00
CatoandClaude 202e01fb40 ci(browser-smoke): run the recovery-page check, matched to the one-field reset form (#145)
recovery-browser-check.mjs still filled "Repeat new password", a field
@bitbaum/accountkit removed in 0.9.1: the reset form now asks once, in the
same PasswordField with a show/hide eye as sign-up. The page was right and
the script was stale, unnoticed because no workflow ran it.

The script now checks the password is asked for once and the eye reveals
it, and browser-smoke.yml runs it as its own step so it cannot rot again.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:24:51 +01:00
CatoandClaude f0d9e01cb3 ci(browser-smoke): account journey in Chromium, and sign-out that sticks (#144)
* fix(auth): the proxy no longer re-issues the session cookie

Auth.js's auth() proxy wrapper appends a fresh session cookie to every
response it handles, Link prefetches included. A prefetch that left the
browser before Sign out came back after it and set the old, still-valid
JWT again, so the person stayed signed in. The new browser journey hit
this in about one sign-out in three.

The proxy now drops only the session-token Set-Cookie it would add; the
session still rolls through /api/auth/*, which SessionProvider calls on
every page load.

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

* ci(browser-smoke): register, sign out, sign in and no stray Google button

browser-smoke.yml runs scripts/ci/account-journey.mjs in Chromium against
the production build and a throwaway Postgres 17: register through
/register, see the portal, sign out from the sidebar, a wrong password
refused, the right one accepted, no sideways scroll on /login and
/register at 390px. With no GOOGLE_* pair it checks that no Google
provider is mounted and no Google button is drawn, the guard for the
invalid_client sign-in of 2026-10-30.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 11:13:15 +01:00
Catoandbitbaum-fleet be024025a6 docs(agents): the org rules block, generated from bitbaum/fleet (#143)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-10-30 10:47:53 +01:00
CatoandClaude 2eaccb0498 fix(auth): mount Google only when its client pair is set (#142)
Google was always mounted, so with no GOOGLE_CLIENT_ID on the box a request
to it reached Google as client_id=undefined and failed with invalid_client.
No button shows it, but a provider that cannot sign anyone in should not be
mounted at all. It now mounts only with both keys, like OrangeCat beside it.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 08:46:25 +01:00
CatoandClaude 4a40a03d44 feat(charts): health trends and twin meters on @bitbaum/chartkit 0.7 (#141)
ChartKit 0.7.0 closes both gaps recorded in package-plan.json (#140):
LineChart now labels days on a 30-day span, and Meter takes a tone and
showValue={false}.

- HealthTrendChart renders ChartKit's LineChart on the server: one line
  per metric, the species' normal range as a reference band, the portal
  locale for dates and numbers. A day without a reading is left out of
  that line. The trend charts sit one per row: in the portal's 4xl
  column, three across left each plot about 190px and the day ticks ran
  into each other.
- The twin score and per-metric bars (DigitalTwinCard, public pet page,
  portal dashboard) are ChartKit Meters coloured by the twin state's
  tone, with the figure printed once by the page.
- The twin score block wraps under the state name on a narrow card; at
  390px in German it was clipped ("41 / 1") before this change.
- recharts is removed, with the chart colour config and the tooltip
  shadow that only it used. Both exceptions leave package-plan.json; the
  bindings are recorded instead.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 20:02:23 +01:00
CatoandClaude 174e535641 docs(packages): record why Petvity's charts stay off ChartKit for now (#140)
Reviewed every chart against @bitbaum/chartkit 0.6.0. Two exceptions,
each with the missing capability:

- HealthTrendChart (30-day daily trends): LineChart labels its time axis
  only at month and year starts, so a migrated 30-day chart showed no dates
  on its x axis.
- Digital-twin score bars: Meter has no tone/colour input and always prints
  its own value.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 17:55:27 +01:00
CatoandClaude Opus 5.5 5ea4dab4fa fix(copy): every public claim matches the code — contact, legal, pricing, pros, 9 locales (#106)
* fix(copy): contact mail goes to a mailbox that exists

hello@ and support@petvity.com sat on the footer, every legal page, the
structured data and every email template. petvity.com is not ours (it is a
Netlify site with Zoho MX; lib/config/email.ts already lists it as "not
ours"), so privacy and support mail went to a stranger. APP.email is now
cato@orangecat.ch, the one address on the receiving apex, and supportEmail
is folded into it. lib/config/app.test.ts fails if it leaves the apex.

The pet-edit form also showed "petvity.com/pets/" as the share prefix; it
now derives the host from APP_URL.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(copy): privacy and cookie policies describe the running system

Privacy: Neon was decommissioned in 2026-06 (the database is PostgreSQL on
the same Hetzner box, listening on 127.0.0.1 only), Google sign-in is not
configured in production while OrangeCat sign-in is, groomers and guest
checkout were missing, and "database connections use TLS" did not hold for
a localhost connection.

Cookies: Auth.js v5 sets authjs.* cookies, not next-auth.*, plus PKCE/state
cookies during OrangeCat sign-in; NEXT_LOCALE is a session cookie set on any
locale page, not a one-year cookie set only by the switcher.

Effective dates moved to October 2, 2026.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(copy): marketing pages say only what the product does, in all 9 languages

- pricing: Pro and Clinic cards cut. Their buttons were href="#", neither
  plan is on ROADMAP.md, yet the FAQ called them "next".
- pros: cut vets reading clients' health history and sitters logging health
  during stays (records are owner-scoped; "Vet-facing records" is 0% on the
  roadmap), the unmeasured "growing community" card, and a sitter card that
  repeated its heading. Reviews tie to completed bookings, not confirmed ones.
- features: no refill tracking exists; charts span 30 days, not months; the
  twin is not built from 30 days on the dashboard (7); unverified pros are
  listed; cross-border adoption and "any language" were not true; handle host
  is the live one; groomers added.
- about: the "Behind the project" section was empty in 4 locales and claimed
  "a team of software engineers" in 5; cut.
- ar/ja/ko/tr/zh: the features, pricing, pros and about pages carried an
  older, differently ordered copy (stats swapped, "data export coming soon",
  "VitaReba"); retranslated from the current English.
- CHANGELOG: removed "health metrics that matter per species" (the
  observations config is not wired into any screen) and the Stripe claim;
  added 2026-10-02. ROADMAP: OrangeCat sign-in shipped, Google item dropped.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(copy): close the gaps the verifier found, in all 9 languages

- Cookie policy names both ways NEXT_LOCALE is set: a session cookie per
  page, one year when picked with the language switcher.
- Privacy policy lists the Loki feedback widget as a service provider.
- /pros no longer says owners share pet records or Digital Twin data with
  vets and sitters (a booking shows them only the pet's name): rewrote
  metaDesc, heroDesc, vet/sitter hero copy; cut vb1 ("months of structured
  health history"); dropped 72 unrendered pros keys that still shipped the
  same claims in every page's message payload.
- Cut unmeasured timings: home heroSub ("30-second check-in"),
  benefitTrackDesc ("in 30 seconds"), "set up in minutes", "a few minutes".
- Species guide CTA: a record to show your vet, not one shared with them.
- ROADMAP/CHANGELOG: email+password sign-up still works for new users;
  changelog line lists what was cut instead of claiming all copy is true.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix(copy): privacy names what an OrangeCat sign-in stores; drop a dead features key

- Privacy, "Data we collect": an OrangeCat sign-in also stores the name and
  profile picture from the OrangeCat account (accountkit's orangecatProfile
  maps name and picture onto users.name and users.image), not only the id.
- features.heroSubtitle is rendered nowhere but still shipped in every page's
  message payload, carrying "cross-border adoption" and "in any language" —
  both cut elsewhere in this PR. Removed from all nine locales.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-29 17:45:53 +01:00
CatoandClaude 8ac03c9743 docs(agents): fold CLAUDE.md into AGENTS.md, leave the pointer (#138)
CLAUDE.md now only points at AGENTS.md, the fleet's one agent-file shape
(bitbaum/fleet scripts/ci/agent-rules.mjs). Its runbook, routing rules,
data conventions, SSOT table, cron table and gotchas move into AGENTS.md,
checked against the tree:

- The private API prefix list had drifted (no groomers, sellers,
  availability, uploads); the doc now points at PRIVATE_API_PREFIXES.
- The OrangeCat provider lives in lib/auth/index.ts; there is no
  lib/auth/orangecat.ts. Roles include groomer; the doc points at the enum.
- The signal now has a new-pet grace; described.
- Dropped the schema table inventory (schema.ts is the SSOT), the phase
  history (ROADMAP.md / CHANGELOG.md hold it), the per-variable "set in
  production" status, and the second env-file location
  (.env.selfhost.local), which contradicted /opt/petvity/shared/.env.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 12:45:40 +01:00
Catoandfleet-reconciler 652b2ae312 chore(deps): raise shared package floors to published versions (#139)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 10:48:01 +01:00
Catoandfleet-reconciler 6ef99c6b37 chore(deps): raise shared package floors to published versions (#137)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 10:19:49 +01:00
Catoandfleet-reconciler 210a0dc4fb chore(deps): raise shared package floors to published versions (#136)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 10:00:34 +01:00
Catoandfleet-reconciler 126ff05b4d chore(deps): raise shared package floors to published versions (#135)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 09:26:52 +01:00
Catoandfleet-reconciler 9f7933674b chore(deps): raise shared package floors to published versions (#134)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 08:59:07 +01:00
Catoandfleet-reconciler 5e5f2c3b09 chore(deps): raise shared package floors to published versions (#133)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 08:36:24 +01:00
Catoandfleet-reconciler 5b773ad9cb chore(deps): raise shared package floors to published versions (#132)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 06:54:42 +01:00
Catoandfleet-reconciler 7e739a63b5 chore(deps): raise shared package floors to published versions (#131)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 06:36:12 +01:00
Catoandfleet-reconciler 2e9c4f49bf chore(deps): raise shared package floors to published versions (#130)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-29 06:14:01 +01:00
Catoandfleet-reconciler 7d96a9bc7c chore(deps): raise shared package floors to published versions (#125)
* chore(deps): raise shared package floors to published versions

Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

* fix(deps): exempt AccountKit by package name

---------

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-28 11:20:47 +01:00
Cato 5ed115addc docs(agents): the org rules block sits outside the Next.js agent-rules region (#128) 2026-10-28 03:58:25 +01:00
Cato b9c4899ee7 feat(auth): one password rule from accountkit (non-empty, up to 128); no local minimum or hint text (#123) 2026-10-28 03:53:21 +01:00
Catoandbitbaum-fleet 56e0b7c417 docs(agents): the org rules block, generated from bitbaum/fleet (#127)
Co-authored-by: bitbaum-fleet <fleet@bitbaum.invalid>
2026-10-28 03:17:36 +01:00
Cato 2610e29784 docs(agents): drop the import of a personal ~/.claude file (#126)
A rule that exists only on one person's machine is not a rule of this repository, and a checkout elsewhere (CI, another agent, a new laptop) silently reads less. The org rules are bitbaum/fleet AGENTS.md, which this file already points at. Nothing else changed.
2026-10-28 03:12:42 +01:00
Catoandfleet-reconciler 50ec09601f chore(deps): raise shared package floors to published versions (#124)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-28 02:27:07 +01:00
Cato 6a3044927b feat(auth): password recovery uses the shared accountkit form (#122)
Forgot/reset pages render PasswordRecoveryForm from @bitbaum/accountkit 0.8.1
through a small adapter over Petvity's own routes, so users, bcrypt passwords,
roles and Auth.js sessions are untouched. The hand-written pages could stay
stuck after a network error; the shared form leaves its busy state and says so.
The reset route now answers an invalid link with code INVALID_TOKEN.
2026-10-28 01:29:57 +01:00
Catoandfleet-reconciler 3f28bb9865 chore(deps): raise shared package floors to published versions (#120)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-10-28 01:17:11 +01:00
Cato f52f5ab108 fix(security): patch Sentry tunnel middleware advisory (#121) 2026-10-27 23:40:52 +01:00
dependabot[bot] b64be8c5a4 chore(deps): bump the minor-and-patch group with 7 updates (#117)
Bumps the minor-and-patch group with 7 updates:

| Package | From | To |
| --- | --- | --- |
| [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) | `1.57.0` | `1.61.0` |
| [next](https://github.com/vercel/next.js) | `16.4.0` | `16.4.2` |
| [react](https://github.com/react/react/tree/HEAD/packages/react) | `19.3.0` | `19.3.1` |
| [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) | `19.3.0` | `19.3.1` |
| [eslint](https://github.com/eslint/eslint) | `10.12.0` | `10.13.0` |
| [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) | `16.4.0` | `16.4.2` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `5.0.4` | `5.0.5` |


Updates `lucide-react` from 1.57.0 to 1.61.0
- [Release notes](https://github.com/lucide-icons/lucide/releases)
- [Commits](https://github.com/lucide-icons/lucide/commits/1.61.0/packages/lucide-react)

Updates `next` from 16.4.0 to 16.4.2
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.4.0...v16.4.2)

Updates `react` from 19.3.0 to 19.3.1
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.1/packages/react)

Updates `react-dom` from 19.3.0 to 19.3.1
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.1/packages/react-dom)

Updates `eslint` from 10.12.0 to 10.13.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/compare/v10.12.0...v10.13.0)

Updates `eslint-config-next` from 16.4.0 to 16.4.2
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/commits/v16.4.2/packages/eslint-config-next)

Updates `vitest` from 5.0.4 to 5.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest)

---
updated-dependencies:
- dependency-name: lucide-react
  dependency-version: 1.61.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: next
  dependency-version: 16.4.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: react
  dependency-version: 19.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: react-dom
  dependency-version: 19.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: eslint
  dependency-version: 10.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor-and-patch
- dependency-name: eslint-config-next
  dependency-version: 16.4.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
- dependency-name: vitest
  dependency-version: 5.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: minor-and-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-24 11:25:59 +02:00
Catoandcatomean 2f24d53c44 chore: name runtime secrets in .env.example (bus factor) (#116)
Co-authored-by: catomean <catomean@users.noreply.github.com>
2026-10-21 20:25:59 +02:00
CatoandClaude b664f9d363 docs: archive dated fleet records, point SSOT row at longform.ts (#115)
The three 2026-08-16 fleet measurements/proposals move to docs/archive/ (they named a retired host, a renamed repo and a proposed shop.config.ts). CLAUDE.md's SSOT table named the retired lib/domain/blog-markup.ts; the parser is lib/domain/longform.ts. The investor memo link follows the move.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 13:56:43 +02:00
CatoandClaude f1e98e2ae6 fix(layout): one <html>, so the fonts and the language survive navigation (#114)
The owner walked the site with Loki on 2026-10-18 and said the design was
inconsistent between the home page and the portal. It was, and not by
design: app/[locale]/layout.tsx rendered a second <html> inside the root
one. React keeps one document element and, when that nested <html>
unmounted on a client navigation from the marketing site into /login or
/portal, cleared what it had set on it — lang, dir and the font classes.
Measured on the live site, /de → /login without a reload: lang null,
class "", body font Roboto instead of Plus Jakarta Sans, headings out of
Jost. Loki's checks also kept reporting "the page does not declare its
language", which was true after every such navigation. German pages
were also served as lang="en" (the browser kept the first <html>'s).

- The root layout renders the only <html>, with the request's locale and
  direction (next-intl getLocale: the URL's on the localized site, the
  default elsewhere).
- Each route group keeps document lang/dir right across client
  navigations with a small client component (DocumentLanguage):
  [locale] with the URL's locale, the portal with the user's, auth and
  admin in English.
- lib/i18n/one-html.test.ts: only the root layout renders <html>, and
  every route group says its language.

Checked on a production build: /de, /login and /ar serve one <html> each
with lang de / en / ar and dir rtl for Arabic; /de → /login → /de/features
by client navigation keeps the font classes and the right lang at every
step.


Claude-Session: https://claude.ai/code/session_01TNLstupcdvsPfTjy8yjR67

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-18 08:17:21 +02:00
dependabot[bot] d5c1b6cc1e chore(deps): bump the minor-and-patch group across 1 directory with 24 updates (#112)
Merged by Loki: a breaking package update its owner approved.
2026-10-17 16:57:29 +02:00
CatoandClaude Opus 5.5 c5abcf1b94 fix(home): hero mock and eyebrow text at 14px, not 10–11px (#113)
The check-in mock's labels and trend lines ("↔ stabil", "✓ normal",
"✓ super") were 10px and the hero eyebrow 11px. All are now 14px. The
mock cells lose their uppercase tracking and get tighter padding below
sm so every label fits on one line at 320px in all nine locales.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-17 02:59:27 -07:00
Cato f8444e0bbf docs: point agents at fleet AGENTS.md (#111)
A cloud session has no ~/.claude/CLAUDE.md, so it never saw the org rules.
Those stay in bitbaum/fleet AGENTS.md (packages by default, searchkit,
chatkit, names, identity). This file only points there.
2026-10-14 05:24:22 -07:00
CatoandClaude Sonnet 5.5 9450bc14ed feat(forms): dates read in words — all date fields use @bitbaum/whenkit's DateInput (#109)
Twelve raw <input type="date"> fields (pet birth date, health log,
vaccinations, medications, records, availability, provider search) showed the
browser's bare "tt.mm.jjjj" box. They now render whenkit's DateInput, a
drop-in with the same props and onChange(event): the tag changes and
nothing else. The visible box carries the SAME .form-input class, and in
petvity's real CSS build it takes that look exactly (border, 10px radius,
padding, font); the real input stays on top, so the picker, keyboard and
validation are unchanged.

components/ui/date-input.tsx is the one place petvity imports it from (and
where the stylesheet is imported). Migrated with whenkit's
scripts/migrate-date-inputs.mjs (tag + one import per file). Lockfile
written with petvity's pinned pnpm 11.6.0 so only whenkit's 14 lines change.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 07:37:41 -07:00
CatoandClaude Opus 5.5 3209d7d74b refactor(auth): OrangeCat sign-in through @bitbaum/accountkit; no reset link for an OrangeCat-created account (#108)
lib/auth/orangecat.ts (provider, profile without email, placeholder email,
the sub-keyed adapter wrapper) moves to @bitbaum/accountkit/orangecat v0.2.1,
which took it as one of its sources; its tests went with it. The
ADMIN_EMAILS guard is accountkit's emailEarnsPromotion.

Fixes a gap: forgot-password emailed a reset link to an account OrangeCat
had created. That address came from OrangeCat unverified, so the link would
have given whoever owns it a password on the OrangeCat person's account.
It now gets the same generic answer (mayReceivePasswordReset); a person
with a password of their own can still reset it. Two route tests.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 05:19:24 -07:00
CatoandClaude Opus 5.5 e736e80e58 fix(deps): next 16.3.8 — critical RCE in next/og (GHSA-vcvr-r3jv-pc5j) and SSRF in image optimization (GHSA-cjq9-62q9-8jv4) (#105)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 07:32:59 -07:00
CatoandClaude Opus 5.5 2b7a71cb4f feat(auth): sign in with OrangeCat (#104)
"Sign in with OrangeCat" (OIDC) is now the primary action on /login and
/register; email + password stays behind a disclosure so existing accounts
are not locked out. OrangeCat's own page carries Google, GitHub, email and
open registration.

- Provider: client_secret_post + PKCE + state, scope "openid profile email",
  issuer https://orangecat.ch (ORANGECAT_OAUTH_ISSUER overrides). Absent,
  not broken, until ORANGECAT_OAUTH_CLIENT_ID/SECRET are set.
- Users are keyed ONLY on the new users.orangecat_sub (additive migration
  0007). The provider profile carries no email, so Auth.js never looks a
  user up by email; a new sub always creates a new user. A taken email gets
  an undeliverable @users.invalid placeholder.
- An OrangeCat login never earns ADMIN_EMAILS promotion (email unverified).
- Identity only: no OrangeCat token refresh, tokens not stored.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 05:01:17 -07:00
CatoandClaude cf6912e957 feat(records): public roadmap and changelog, from the repo through the fleet map (#103)
The fleet's building-in-public contract puts each product's record in its
own repository as two markdown files and renders it through Loki's fleet map
via bip-kit. Petvity had neither the files nor the pages.

- ROADMAP.md: Now / Next / Later / Shipped, derived from the phases in
  AGENTS.md and the merged history. Planned work is written as plans.
- CHANGELOG.md: Keep-a-Changelog dialect, user-facing, newest first, from
  merged PRs; today's homepage rewrite is the top entry.
- /[locale]/roadmap and /[locale]/changelog render bip-kit's DevelopmentPage
  inside the marketing nav/footer; the records are English by contract, the
  chrome and metadata stay localized (keys in all 9 locales, footer links).
- lib/config/development.ts is the SSOT for the map URL, slug and profile;
  lib/development/records.ts fetches with revalidate 300 and an 8s ceiling.
- The --bp-* theme scope already mapped for the blog (.pv-longform) covers
  the records; the page title and record name take the editorial faces.
- Vitest covers the data path with a fleet-map fixture, no network.
- Sitemap lists both pages.

Verified at 390px in de/en/ar: no horizontal overflow.


Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 04:09:11 -07:00
CatoandClaude b1fedec17b feat(home): mobile-first homepage — one line, one CTA (#102)
Owner feedback: far too much text; visitors should look and act.
- Hero: short headline + one sub-line + HeroCTA (sign up / demo), CTA above
  the fold at 320-390px
- Three one-line benefit tiles, one compact check-in mock
- 'Free, forever' with three checks and a final CTA
- Removed species strip, feature essays, digital-twin and signal sections,
  ecosystem cards, live proof, how-it-works and the 9-item pricing list
- New keys in all 9 locales; unused home keys dropped
- .btn-editorial-wrap lets long localized CTAs wrap on 320px


Claude-Session: https://claude.ai/code/session_01NJJp6XiUkeEVzjDaBmWjL3

Co-authored-by: Claude <noreply@anthropic.com>
2026-09-28 01:46:58 -07:00
CatoandClaude Opus 5.5 24a39c01f4 fix(nav): every header control is a 44px target; one header for the public detail pages (#100)
The fleet render sweep (nav contract rule 3) counted sub-44px nav controls
in two places:

- MarketingNav: px-3 py-2 links and the Platform button were 36px; the
  Sign-in link 20px. They now carry min-h-11 and trade vertical padding for
  it, so the h-16 header is unchanged. The Platform and mobile-menu toggles
  also gain aria-expanded (rule 2), and the species-guide chips inside the
  Platform menu get the same floor so opening it does not add new ones.
- adopt, adopt/[listingId], find, pets/[handle] and pros/[userId] each
  hand-rolled the same slim header (logo 28px, Sign in 20px, CTA 38px). It is
  now PublicPageNav, once, with every control at 44px; .btn-editorial-sm
  (the nav CTA pill) gets min-height: 44px.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 00:07:44 -07:00
Catoandfleet-reconciler aea239765d chore(deps): raise shared package floors to published versions (#99)
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.

The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.

If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.

Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
2026-09-23 16:45:34 -07:00