From 3be729327bd4cceca1e0573ad44f1350bc076cc7 Mon Sep 17 00:00:00 2001 From: Harkamal Randhawa Date: Sun, 24 May 2026 08:47:48 -0600 Subject: [PATCH] Add inline pet rename, larger header text, and HaBit branding. Let users edit the pet name from PetHabitat with a pencil icon, bump the name and mood header sizing, and rename user-facing Habit Pet copy to HaBit Pet. --- app/(app)/avatar/page.tsx | 2 +- app/auth/sign-up-success/page.tsx | 2 +- app/layout.tsx | 2 +- components/avatar/avatar-page-content.tsx | 10 +- components/landing/landing-pet-preview.tsx | 4 + components/layout/habit-brand.tsx | 2 +- .../onboarding/onboarding-customize-form.tsx | 4 +- .../onboarding/onboarding-quiz-form.tsx | 2 +- components/pet/pet-habitat.tsx | 17 +- components/pet/pet-name-header.tsx | 166 ++++++++++++++++++ .../profile/profile-preferences-form.tsx | 2 +- lib/daily-reminders.ts | 2 +- lib/openrouter.ts | 2 +- lib/reminder-delivery.ts | 2 +- 14 files changed, 201 insertions(+), 18 deletions(-) create mode 100644 components/pet/pet-name-header.tsx diff --git a/app/(app)/avatar/page.tsx b/app/(app)/avatar/page.tsx index 57ca086..9ac08c9 100644 --- a/app/(app)/avatar/page.tsx +++ b/app/(app)/avatar/page.tsx @@ -6,7 +6,7 @@ import { AppShell } from "@/components/layout/app-shell"; export default function AvatarPage() { return (

- Your account is ready. You can sign in and start using Habit Pet. + Your account is ready. You can sign in and start using HaBit Pet.

diff --git a/app/layout.tsx b/app/layout.tsx index 99e3326..7b7e30d 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -12,7 +12,7 @@ const defaultUrl = process.env.VERCEL_URL export const metadata: Metadata = { metadataBase: new URL(defaultUrl), - title: "Habit Pet", + title: "HaBit Pet", description: "Build habits, care for your pixel pet, and track wellness every day.", }; diff --git a/components/avatar/avatar-page-content.tsx b/components/avatar/avatar-page-content.tsx index be9bf63..d8e01c8 100644 --- a/components/avatar/avatar-page-content.tsx +++ b/components/avatar/avatar-page-content.tsx @@ -45,5 +45,13 @@ export function AvatarPageContent() { ); } - return ; + return ( + + setCustomization((current) => ({ ...current, name })) + } + /> + ); } diff --git a/components/landing/landing-pet-preview.tsx b/components/landing/landing-pet-preview.tsx index bf9613b..434dad3 100644 --- a/components/landing/landing-pet-preview.tsx +++ b/components/landing/landing-pet-preview.tsx @@ -131,6 +131,10 @@ export function LandingPetPreview() { customization={customization} className="w-full max-w-sm" showStyleLink={false} + nameEditable={isSignedIn} + onNameChange={(name) => + setCustomization((current) => ({ ...current, name })) + } petScale={petScale} lcdClassName="tamagotchi-lcd-landing" lcdRef={lcdRef} diff --git a/components/layout/habit-brand.tsx b/components/layout/habit-brand.tsx index 6288bbf..7feb1dd 100644 --- a/components/layout/habit-brand.tsx +++ b/components/layout/habit-brand.tsx @@ -41,7 +41,7 @@ export function HabitBrand({ /> ) : (