* 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>
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>
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>
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>
* chore: add a formatter, matching the style this repo already writes
singleQuote=false was chosen by counting this repo's own
imports, not by fleet decree. The fleet is genuinely split and the two repos
that already had a .prettierrc disagreed with each other, so there was no
standard to restore. Quote style does not cross repo boundaries; having a
gate does.
Markdown is ignored for now — prettier rewraps prose, which would bury the
real diff.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* style: format with prettier (252 files)
Mechanical. No behaviour change. This SHA is listed in
.git-blame-ignore-revs so `git blame` skips it.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore: teach git blame to skip the reformat
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
The two-sided answer. 'How do I find a groomer in Zürich?' had no
logged-out answer — the directory lived behind auth. Now /find is a
public, SEO-indexed directory (vets/sitters/groomers tabs, city filter,
ItemList schema, review aggregates, links to public profiles) with a
provider CTA; the megamenu pros pillar and footer point at it.
'If I'm a groomer, how do I find customers?' — your profile IS your
storefront, and the new blog post documents the whole two-sided
proposition honestly (/blog, content SSOT in lib/content/blog.ts,
BlogPosting schema; no invented claims, resident accounts disclosed).
Portal navigation: six entries, no section labels needed — Care, Shop,
and Adopt are hubs whose sibling pages became segmented tabs (HubTabs;
same URLs). Seller/pro upsells moved out of daily nav into a Grow card
in Settings; active sellers get one 'My Store' entry.
Portal design vocabulary (the missing discipline): .page-title/.page-sub,
.badge + tones, .icon-tile(-lg), .modal-overlay/.modal-panel, .hub-tabs —
71 hand-built repetitions of these patterns replaced across portal+admin.
verify + build green; /find (incl. groomers/Zürich), blog, and post pages
render-verified locally.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Header: Platform ▾ · Pricing · ❤️ Adopt + locale/login/CTA. 'How it works'
(anchor), 'For Pros' (now a megamenu pillar), and the header demo link
(hero + login page still carry the demo funnel) are gone; Adopt no longer
appears twice. The megamenu is rebuilt from 9 fake-depth items (all
pointing at /features, hardcoded English) to 4 translated pillars that
link to their real surfaces — Health & Digital Twin, Vets/Sitters/
Groomers, Marketplace, Adoption — plus species guides driven by the
species SSOT instead of a duplicated hardcoded list.
Sidebar: ~10 flat links become four labelled groups (Care team /
Marketplace / Adoption / Your business) — same routes, half the scanning.
Footer: the three dead '#' links (Help Centre, Status, Community) are
gone; Company section (About, Live demo, Contact) replaces them; Shop and
Join-as-groomer added.
Homepage: hero subtitle and Find-a-Pro card repositioned from
health-tracker copy to the full platform (pros incl. groomers,
marketplace, adoption). All copy ×9 locales.
verify + build green; header/megamenu browser-verified.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
- /api/healthz: public DB-pinging healthcheck. /api/health is the auth-gated
pet-data API, so deploys and uptime monitors had nothing honest to probe.
- /demo: signs a visitor into the shared demo account in one click; linked
from the marketing hero ('Try the live demo') and nav across all locales.
Also fixes two hardcoded English strings in HeroCTA.
- Demo seed claims the public handle /pets/luna (when free), so the
public-influencer-profile feature has a live showcase.
- New-pet grace: a profile younger than the 7-day alert window with no data
and nothing overdue reads healthy/'new profile' instead of an alarming
Watch badge seconds after creation. Overdue vaccinations still escalate.
- Digital-twin score is labeled 'Emotional wellness' (9 locales) so it stops
reading as a contradiction of the all-metric wellness % on the health page.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Translate the petvity.com design language onto the marketing pages while
keeping Petvity's own content (pet-signal / digital-twin). Adds an editorial
token layer (warm cream, warm-dark, gold) + Cormorant Garamond display serif
alongside the existing teal/terracotta product palette, plus reusable editorial
classes (.ed-*, .btn-editorial*). Reskins hero, all landing sections, nav and
footer. Removes the off-brand violet digital-twin gradient. Product UI
(portal/admin) intentionally untouched.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Each new species gets a blurb + 5 care tips across all 9 locales (EN/DE/FR/ES/JA/ZH/KO/TR/AR).
generateStaticParams, SPECIES_BLURB_KEY, CARE_TIP_KEYS, sitemap, nav megamenu, and footer updated
to cover all trackable species. Footer now derives its guides list from SPECIES_CONFIG + public
translations rather than hardcoded per-species i18n keys.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The homepage hero CTA was hardcoded "Get started free" → /register.
A returning user clicking it gets bounced through middleware to the
dashboard — works, but the label is misleading and the click is
wasted ("did I sign up? am I logged in?").
- New components/sections/HeroCTA.tsx — small client island that reads
useSession() and renders either "Go to dashboard" (with role-aware
destination: admins → /admin/users) or the original "Get started
free" → /register pair, depending on auth state. During status ===
"loading" it reserves the CTA's height with an aria-hidden div so
the page doesn't shift on hydration.
- app/[locale]/page.tsx: hero block now renders <HeroCTA />; the rest
of the homepage stays a server component / static-friendly.
Other "Get started" buttons further down the page (mid-section CTAs
in feature blocks, pricing tease, footer area) deliberately left
alone — they're aimed at scrolled-deep visitors who haven't engaged
yet, and the middleware redirect for logged-in clicks is acceptable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Returning users on a marketing page (homepage, /features, /pricing,
/about, /pros, /adopt, /legal/*) saw "Log in" / "Get started free"
CTAs unconditionally — clicking "Log in" while already logged in just
bounced through the middleware to the dashboard. Friction + cognitive
mismatch ("did my session expire?").
- MarketingNav now reads useSession(); when status === "authenticated"
it renders a single "Go to dashboard" CTA pointing at the right hub
(/admin/users for admins, /portal/dashboard for everyone else).
- During status === "loading" the auth CTAs render nothing — avoids
flashing "Log in" then swapping to "Dashboard" once the session
resolves on the client.
- Same treatment in the mobile drawer (fewer buttons when logged in,
matches the desktop behavior).
- Added "goToDashboard" translation to all 9 locales (en/de/fr/es/
ja/zh/ko/tr/ar) — next-intl warns on missing keys, and skipping
any locale would degrade that language's UX.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The auth login layout proudly says "GDPR compliant" but the marketing
footer's Privacy / Terms / Cookies links all pointed to "#". Closing
the gap with three honest, plain-language pages — accurate to what
the platform actually does, not boilerplate.
- /[locale]/legal/privacy: data collected by category, third-party
service providers (Vercel, Neon, Resend, Vercel Blob, Google),
user rights with direct pointers to the in-app surfaces shipped
recently — Settings → Your data (GDPR Art. 15) and Settings →
Danger zone (GDPR Art. 17), explicit "no advertising, no AI
training" stance.
- /[locale]/legal/terms: account responsibilities, acceptable use,
the load-bearing veterinary-advice disclaimer (Petvity is NOT a
substitute for a vet — this matters for liability), marketplace
+ adoption + bookings caveats positioning Petvity as facilitator
not party, account-deletion pointer for off-ramp.
- /[locale]/legal/cookies: enumerates the 4 cookies actually set
(3 NextAuth, 1 NEXT_LOCALE) — all strictly-necessary or set by
explicit user action, so no cookie banner needed under ePrivacy.
- Shared LegalPage component for consistent typography + cross-links.
- New .prose-legal CSS utility (h2/h3/p/ul/a/code) keeps long-form
copy readable without polluting markup with classes.
- MarketingFooter: 6 anchor href="#" → real legal URLs (link section
+ bottom bar).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The codebase had 9 locales, 9 message files, RTL handling for Arabic,
cookie-driven portal locale resolution, and i18n-aware date helpers —
but no UI to actually switch language. Users were stuck in whatever
locale the URL accidentally landed them in.
- New components/LocaleSwitcher.tsx: single component for both
contexts. Sets NEXT_LOCALE cookie (1y), then either swaps the
/[locale]/ segment in the URL (marketing) or refreshes (portal),
detected via a regex built from routing.locales.
- Portal sidebar: switcher placed above Settings; layout passes
the resolved locale through.
- Marketing nav: switcher in desktop CTA cluster + mobile drawer,
current locale resolved via useLocale().
Native labels + flags from LOCALE_CONFIG (SSOT, no duplication).
Click-outside to close, escape via outside-click handler, max-height
with scroll for the 9-item list, ARIA listbox.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Add --green-text/#166534, --warn-text/#92400E, --danger-text/#991B1B CSS vars
(dark accessible variants for use on pastel backgrounds — WCAG AA 4.5:1+)
- Update signal-healthy/watch/concern classes and alert-error/success to use -text vars
- Replace all 18 inline text-[var(--green/warn/danger)] usages across 11 files
with the accessible -text counterparts
- Also improves standalone green/warn text on white (green was 3.11:1, warn was 2.98:1 — both failing)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Expand message files (en/de/fr/es/ja/zh/ko/tr/ar) with nav + footer keys
- MarketingNav uses useTranslations('nav') for all labels and CTAs
- MarketingFooter becomes async server component using getTranslations('footer')
- Footer rebuilt as translated section array — sections, links, and bottom bar
- Also updates home.hero copy to match current page content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Professional onboarding was missing a dedicated surface — the footer linked
directly to /register?role=vet but with no explanation of what professionals
get from joining.
The /pros page covers:
- Hero: "Your clients are already tracking their pets. Meet them here."
- Vet section: 6 benefit cards (structured data at appointments, trend context,
verified badge, booking-tied reviews, built-in scheduling, engaged clientele)
- Sitter section: 6 benefit cards (Digital Twin context before first stay,
health logging during stays, verified profile, real reviews, zero setup cost)
- "Clients with data, not just symptoms" section with a mock client health card
showing the energy drop + Digital Twin shift a vet would actually receive
- Dual CTAs: /register?role=vet and /register?role=sitter throughout
Nav + footer updates:
- Desktop nav: "For Pros" link in teal (distinct from pet owner nav items)
- Mobile drawer: "🩺 For professionals" link
- Footer Professionals column: "For vets & sitters" link added above registration CTAs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The "Company" column had Blog/Careers/Press with placeholder # links providing
no value to visitors. Replaced with "Professionals" column containing:
- "Join as a veterinarian" → /register?role=vet
- "Join as a pet sitter" → /register?role=sitter
- "About" (moved from Guides column to keep it contextual)
- "Contact us" (consolidated from Support column)
This surfaces the professional onboarding path at every page's footer, supporting
platform growth without requiring a separate landing page for each role.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Vet/sitter booking, marketplace, and adoption listing pillars now
appear in the Features dropdown (all 9 features visible)
- Replace 'Vet network coming soon' badge with an '❤️ Adopt' shortcut
linking directly to the public adoption browse page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- /[locale]/adopt — SSR grid of available listings, no login required
- /[locale]/adopt/[listingId] — full listing detail with CTA to sign up/apply
- Marketing nav: "❤️ Adopt" link (desktop + mobile)
- Footer: "❤️ Adopt a pet" link in Product section
- Deep-link from listing detail → /register?next=/portal/adopt/[id] so
new users land directly on the apply page after signup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- /[locale]/species/[dog|cat|horse] - per-species health guides using SSOT
- Shows normal health ranges, emotional metrics, common breeds, care tips
- CARE_TIPS and SPECIES_BLURB are the only non-SSOT content (species-specific prose)
- generateStaticParams for dog/cat/horse (other excluded — no useful ranges)
- Marketing nav features megamenu: add Digital Twin, link features to /features, add species guide pills
- Mobile nav: add species guide section
- Footer: add Guides column linking to all 3 species guides
- CLAUDE.md: update Phase 1 to reflect current reality (most items complete)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
All three marketing sub-pages were 404s. Created full-content pages:
- /features: 6 feature pillars + 6 cross-cutting capabilities grid
- /pricing: 3 plan cards (Free/Pro/Clinic) + FAQ section
- /about: mission, values, stats, ecosystem context
Updated MarketingNav (/pricing link) and MarketingFooter
(/features, /pricing, /about links) to point to real pages.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- MarketingNav: sticky header with Features megamenu (6 sub-items with icons),
keyboard/click-outside dismiss, mobile drawer with full feature list
- MarketingFooter: dark 4-column footer (Product, Company, Support, Legal)
- Homepage: hero with ambient blobs + app preview card, species strip,
6-feature grid, wellness signals explainer (healthy/watch/concern),
how-it-works 3-step flow, pricing section, teal CTA band
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>