Introducing a new way to review your PRs.

Read the announcement

calicastle / cali.so

Personal website for Cali Castle

View on GitHub

21 documents · Updated Sep 21, 2026

docs / calibaby-product-experience

CaliBaby product experience

CaliBaby is a separate public product surface for the Cali site. It gives the app a clear product identity, serves Chinese and English visitors through paired routes, and leads visitors from a short product story to the App Store, support, and legal information.

Product surface

The CaliBaby surface presents a focused app experience instead of the main Cali Castle site. Its public goal is to help a person understand the app, see how it supports pregnancy and daily baby care, and decide whether to download it.

Product role

CaliBaby is a baby-care tracking app for iPhone and Apple Watch. The public page describes one connected care record that covers pregnancy, feeding, sleep, diapers, growth, quick entry, and shared care with authorized family members. The product facts also state the supported Apple platforms, language support, free download model, and optional Cali Baby Pro offer. lib/calibaby-public-content.ts• L32-89

References: lib/calibaby-public-content.ts• L32-89 lib/projects.ts• L12-21

Entry points

The main projects page is an entry point to CaliBaby. It keeps the link inside the visitor’s current language, so an English visitor goes to /en/calibaby and a Chinese visitor goes to /calibaby without leaving the site’s internal navigation. lib/projects.ts• L12-21

References: lib/projects.ts• L12-21 tests/…/navigation.spec.ts• L58-71

Localized routing

A locale is the language and regional presentation selected for a route. CaliBaby keeps one product surface in two route families: Chinese uses the unprefixed path and English adds the /en prefix.

Route families

The landing page and its public information pages use matching paths in both locales. The landing pages are /calibaby and /en/calibaby; the support, privacy, and terms pages add the same suffix to each route family.

flowchart LR
    A[Project link or direct visit] --> B{Locale}
    B -->|中文| C[/calibaby]
    B -->|English| D[/en/calibaby]
    C --> E[Chinese CaliBaby surface]
    D --> F[English CaliBaby surface]
    E --> G[Localized landing and public information]
    F --> G
    G --> H[App Store download]

Each locale has its own route entry, but both entries use the same product views. This keeps the route contract clear while allowing the page text, labels, screenshots, metadata, and document language to follow the selected locale. app/…/page.tsx• L1-8 app/…/page.tsx• L1-8

References: app/…/page.tsx• L1-8 app/…/page.tsx• L1-8 lib/locale-route.ts• L58-85

Locale continuity

The language switch keeps the same CaliBaby page while changing only its locale. The header and footer use the paired route for the current destination, so a visitor can move between Chinese and English without returning to the product home page. app/…/calibaby-landing.tsx• L54-84 app/…/calibaby-pages.tsx• L126-151

References: app/…/calibaby-landing.tsx• L54-84 app/…/calibaby-pages.tsx• L126-151 lib/locale-route.ts• L75-85

Brand shell

The CaliBaby brand shell gives every product route the same document identity and visual setting. It separates the product from the wider site while keeping shared site services such as theme support and analytics available.

Document identity

The product document sets the page language to zh-CN or en, exposes the locale for the page, and uses the CaliBaby app icon as the site and Apple icon. It also gives the surface its own application name and applies product fonts before the page content renders. app/…/calibaby-document.tsx• L13-65 app/fonts.ts• L30-59

This shell wraps both locale families. As a result, the landing page and the support and legal pages share the same language setting, icon, theme context, and product-level identity. app/…/layout.tsx• L1-15 app/…/layout.tsx• L1-15

References: app/…/calibaby-document.tsx• L13-65 app/…/layout.tsx• L1-15 app/…/layout.tsx• L1-15 app/fonts.ts• L30-59

Visual language

The surface uses a calm light or dark palette with a neutral page background, soft cards, clear text levels, and small accent colors for support links. The layout favors wide breathing room on the landing page and a narrow reading width for support and legal content. app/…/calibaby-pages.module.css• L1-40 app/…/calibaby-landing.module.css• L1-18

The app icon and product name anchor the header. The same icon appears in the landing hero and in the social image, which makes the product recognizable across the page, browser metadata, and shared links. app/…/calibaby-landing.tsx• L58-70 lib/og-image.tsx• L121-201

References: app/…/calibaby-pages.module.css• L1-40 app/…/calibaby-landing.module.css• L1-18 app/…/calibaby-landing.tsx• L58-70 lib/og-image.tsx• L121-201

Public presentation

The public experience follows a simple path: identify the app, explain its value, show real app screens, summarize its main capabilities, and offer a download link. Secondary pages then provide help and the product’s legal information in the same locale.

Landing journey

The landing page opens with the localized product name, a short promise, and a description of shared baby care. It then presents a locale-specific App Store badge, a carousel of app screens, and a feature summary. The feature summary groups the product around pregnancy, daily care, quick entry, and care together. app/…/calibaby-landing.tsx• L89-166

The screenshot gallery supports both languages and shows the same product areas in the selected locale. It covers daily care, family sharing, voice and bottle entry, feeding, sleep, growth, supplies, vaccination, and Apple Watch or widget use. Its controls, slide labels, image descriptions, and app screens change with the locale, so the gallery gives localized visual proof and remains usable for visitors who navigate it with assistive technology. app/…/calibaby-screenshot-carousel.tsx• L18-118 app/…/calibaby-screenshot-carousel.tsx• L128-193

References: app/…/calibaby-landing.tsx• L89-176 app/…/calibaby-screenshot-carousel.tsx• L18-118 app/…/calibaby-screenshot-carousel.tsx• L128-193

Public information pages

The landing page links to help, privacy, and terms pages in the current locale. Those pages use a shared product page view, while the support page adds quick links and contact choices and the legal pages use a focused reading layout. The detailed content model and the Chinese and English copy are described in CaliBaby localized content. app/…/calibaby-landing.tsx• L169-175 app/…/calibaby-pages.tsx• L260-325

The support and legal routes are public destinations, but their metadata marks them as not for search indexing while the source copy remains subject to publication gates. This lets the product expose the page structure and links without presenting draft policy content as indexed product material. lib/calibaby-public-content.ts• L169-185 docs/calibaby-public-copy.md• L7-21

References: app/…/calibaby-landing.tsx• L169-175 app/…/calibaby-pages.tsx• L260-325 lib/calibaby-public-content.ts• L169-185 docs/calibaby-public-copy.md• L7-21

Discovery and sharing

CaliBaby uses the same locale pair for page discovery, search metadata, and social sharing. This makes the Chinese and English pages distinct public representations of one product rather than two unrelated pages.

Page metadata

Each landing page has a localized title and description. Its metadata names the matching canonical URL, points to the other language through alternate links, identifies the App Store app, and provides a product-specific Open Graph and Twitter image. The page also publishes structured data as a mobile application with its supported devices, free access, features, and App Store link. lib/calibaby-public-content.ts• L188-230 lib/calibaby-public-content.ts• L233-280

References: lib/calibaby-public-content.ts• L188-230 lib/calibaby-public-content.ts• L233-280 lib/locale-metadata.ts• L26-39

Public discovery

The landing route is included in the sitemap for both locales and carries language alternates. The support, privacy, and terms routes are intentionally left out of that sitemap while their page metadata keeps them out of search results. CaliBaby paths also have a dedicated social-image route, so shared links use the product icon, product name, and locale-specific App Store badge. app/sitemap.ts• L12-30 app/seo-routes.test.ts• L45-89 app/…/route.ts• L16-52

References: app/sitemap.ts• L12-30 app/seo-routes.test.ts• L45-89 app/…/route.ts• L16-52 lib/og-image.tsx• L121-201

Change checklist

When these files or sections are changed, remember to consider these:

  • When a CaliBaby route is added or renamed, update both locale route families, its locale pair, its social-image allowlist, and its sitemap policy.
  • When landing copy or features change, keep the visible page copy, page metadata, structured data, App Store badge, and screenshot descriptions aligned in both locales.
  • When the product icon or brand name changes, check the document icons, landing header and hero, project entry, and social image together.
  • When support or legal copy changes, check the publication gates, noindex behavior, route links, and the child page on localized content.
  • When the project registry changes, keep the link internal and preserve the visitor’s current locale.

Important failure modes

TriggerConsequenceGuard
A route exists in only one locale familyOne language has a missing product page or a broken language switchAdd the matching Chinese and English route entries and verify the shared unlocalized path.
A new public path is not added to the social-image path setShared links for that page return no CaliBaby imageKeep the social-image route list aligned with the public CaliBaby route set.
Landing text changes without matching metadata or structured dataThe page and its search or social preview describe different productsUpdate the locale copy, metadata, and application data as one product message.
A screenshot, slide label, or control text uses the wrong localeA visitor sees or hears product content in a language different from the pageKeep each screenshot’s asset, alt text, slide label, and control copy paired for Chinese and English.
Draft support or legal copy is exposed to indexingUnapproved policy content can appear in search resultsKeep the publication gates and noindex metadata in force until the copy is approved.

Key files

FileWhy to read it
app/…/page.tsx and app/…/page.tsxShow the two landing route entry points and their locale choice.
app/…/layout.tsx and app/…/layout.tsxShow how both route families receive the CaliBaby document shell.
app/…/calibaby-document.tsxDefines the product-level language, icon, theme, font, and shared document identity.
app/…/calibaby-landing.tsxShows the main visitor journey from product message to download, gallery, feature summary, and public links.
app/…/calibaby-screenshot-carousel.tsxShows how the product gallery presents localized app screens, labels, and accessible controls.
lib/calibaby-public-content.tsConnects localized product facts and metadata with support and legal page content.
app/…/calibaby-pages.tsxShows the shared presentation for support, privacy, and terms destinations.
docs/calibaby-public-copy.mdHolds the public support and legal source copy plus its publication gates.
lib/locale-route.ts and lib/locale-metadata.tsDefine the route pair and the canonical and alternate links used by both locales.
app/sitemap.ts and app/…/route.tsShow which product pages are discoverable and how CaliBaby social images are selected.