Skip to content
13 changes: 13 additions & 0 deletions .impeccable/surfaces/booking-product.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# weapp-booking product page

Mode: Persuade. Routes: `/products/weapp-booking/` and `/en/products/weapp-booking/` in `apps/web` only.

Help a local-business owner or implementation team determine whether appointments and event registration fit their workflow, understand private deployment and licensing scope, and arrange a guided demo through the existing contact page.

Inherit the current commercial site's Geist typography, neutral light/dark surfaces, green actions, shared page shell, and spacious section rhythm. The incumbent visual reference is `docs/design/web-introduction.webp`, checked against the current shared styles. No new design tokens, product screenshots, customer evidence, or decorative media are introduced.

The page opens with the product purpose and pending external acceptance status. An ordered visit workflow explains the product, followed by semantic description lists for capabilities, delivery, deployment prerequisites, and licensing. One main action leads to the localized `/pricing/#contact` entry. Content is fully static and bilingual. The homepage and services page introduce the product through the same concise entry component.

Implementation and real-database checks are distinct from real WeChat/provider acceptance. The page must state that the product is not commercially released, and must not offer invented prices, online purchases, downloads, a public live demo, or active SaaS subscriptions.

Build and source isolation checks belong to this change. Browser, mobile, theme, and accessibility evidence are collected by the root task's designated browser owner; this implementation agent does not open a browser.
12 changes: 10 additions & 2 deletions apps/open-source/scripts/validate-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const expectedFiles = [
]
const retiredDocsHosts = ['tw.icebreaker.top', 'vite.icebreaker.top']
const errors: string[] = []
const openSourceForbiddenCopy = /\bsponsors?(?:ship)?\b|\b(?:donations?|donate|funds?)\b|paid services?|engineering services?|migration and training|cloud[ -]build|business partnerships?|赞助|基金|分账|捐赠|打赏|付费服务|迁移与培训|服务报价|云构建|企业合作|[¥¥$€]\s*\d/i
const openSourceForbiddenCopy = /weapp-booking|\bsponsors?(?:ship)?\b|\b(?:donations?|donate|funds?)\b|paid services?|engineering services?|migration and training|cloud[ -]build|business partnerships?|赞助|基金|分账|捐赠|打赏|付费服务|迁移与培训|服务报价|云构建|企业合作|[¥¥$€]\s*\d/i

async function collectHtml(directory: string): Promise<string[]> {
const entries = await readdir(directory, { withFileTypes: true })
Expand Down Expand Up @@ -89,6 +89,11 @@ catch {
}

const htmlFiles = await collectHtml(dist)
for (const file of htmlFiles) {
if (relative(dist, file).includes('weapp-booking')) {
errors.push('Commercial booking product routes must not be emitted by the open-source application')
}
}
for (const file of htmlFiles) {
const label = relative(dist, file)
if (/^baidu_verify_[^/]+\.html$/.test(label)) {
Expand Down Expand Up @@ -187,6 +192,9 @@ for (const file of htmlFiles) {
continue
}
const targetUrl = new URL(href, `${site.origin}${pagePath}`)
if (targetUrl.pathname.includes('/products/weapp-booking')) {
errors.push(`${label}: open-source navigation links to a commercial booking product`)
}
if (['https://weapp.dev', 'https://weapp.js.org'].includes(targetUrl.origin) && isRetiredOpenSourcePath(targetUrl.pathname)) {
errors.push(`${label}: normal navigation links to retired financial page ${href}`)
}
Expand Down Expand Up @@ -226,7 +234,7 @@ for (const file of [...sitemapFiles, 'robots.txt', 'llms.txt', 'llms-full.txt',
}
for (const value of urls) {
const url = new URL(value)
if (url.origin !== site.origin || /\/404(?:\.html|\/|$)/.test(url.pathname) || (isRetiredOpenSourcePath(url.pathname))) {
if (url.origin !== site.origin || /\/404(?:\.html|\/|$)/.test(url.pathname) || url.pathname.includes('/products/weapp-booking') || (isRetiredOpenSourcePath(url.pathname))) {
errors.push(`${file}: unexpected sitemap URL ${value}`)
}
try {
Expand Down
4 changes: 4 additions & 0 deletions apps/web/PRODUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Developers discovering mini-app tools and teams evaluating migration, training,

Preserve the original particle wordmark, orbiting project marks, toolchain demos and complete project references. Introduce the independent weapp.js.org portal, then present deliverable services, implementation scope, and a direct consultation path. Keep sponsorship and contributor funding separate from service purchases. Preserve all existing routes and prices.

The commercial application also describes weapp-booking at `/products/weapp-booking/` and its English counterpart. It is an independent private appointment and event-registration product with customer interfaces, management, and an API. Implementation and database tests exist; real provider integration acceptance is pending and the product is not commercially released. Guided demos, private deployment, customization, and source licensing are discussed through the existing contact entry. Do not publish a price, purchase/download flow, public live demo, production acceptance claim, or SaaS subscription without confirmed evidence. Product source remains in its separate private repository.

## Constraints

Inherit the factual, bilingual, static-first, and accessibility requirements in the root PRODUCT.md. This application owns its pages and localization, consumes the neutral project catalog and explicit site-ui exports, and builds and deploys independently. Documentation domains remain unchanged.

Booking product copy, routes, and navigation belong only to this application. They must not enter `apps/open-source`, the neutral project catalog, or shared UI exports.
15 changes: 15 additions & 0 deletions apps/web/scripts/validate-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const projectIds = (await readdir(projectsDirectory)).filter(file => file.endsWi
const expectedFiles = [
...['', 'en/'].flatMap(prefix => [
`${prefix}index.html`,
`${prefix}products/weapp-booking/index.html`,
...['projects', 'pricing', 'privacy', 'contributors', 'sponsors'].map(route => `${prefix}${route}/index.html`),
...projectIds.map(id => `${prefix}projects/${id}/index.html`),
]),
Expand Down Expand Up @@ -223,6 +224,20 @@ for (const file of [...sitemapFiles, 'robots.txt', 'llms.txt', 'llms-full.txt',
for (const prefix of ['', 'en/']) {
const home = parse(await readFile(resolve(dist, `${prefix}index.html`), 'utf8'))
const pricing = parse(await readFile(resolve(dist, `${prefix}pricing/index.html`), 'utf8'))
const booking = parse(await readFile(resolve(dist, `${prefix}products/weapp-booking/index.html`), 'utf8'))
for (const [name, page] of [['home', home], ['pricing', pricing]] as const) {
if (!page.querySelector(`[data-booking-entry] a[href="/${prefix}products/weapp-booking/"]`)) {
errors.push(`${prefix}${name}: missing booking product entry`)
}
}
for (const id of ['scope', 'delivery', 'deployment', 'license', 'consultation']) {
if (!booking.querySelector(`#${id}`)) {
errors.push(`${prefix}products/weapp-booking/: missing #${id}`)
}
}
if (!booking.querySelector(`main a[href="/${prefix}pricing/#contact"]`)) {
errors.push(`${prefix}products/weapp-booking/: missing manual consultation link`)
}
const sponsorTiers = pricing.querySelectorAll('.pricing-sponsor-tier h3').map(node => node.text)
const expectedTiers = prefix ? ['Supporter', 'Bronze sponsor', 'Silver sponsor'] : ['普通支持', '铜牌赞助', '银牌赞助']
if (JSON.stringify(sponsorTiers.slice(0, 3)) !== JSON.stringify(expectedTiers) || sponsorTiers.length !== 4) {
Expand Down
19 changes: 19 additions & 0 deletions apps/web/src/components/BookingProductEntry.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
import { ArrowRight } from '@lucide/astro'
import type { Locale } from '../types/project'
import { bookingPage } from '../lib/booking'
import { buttonSecondary } from '../styles/classes'
interface Props { locale: Locale }
const copy = bookingPage(Astro.props.locale)
---
<article class="booking-entry" data-booking-entry>
<div><h3>{copy.entryTitle}</h3><p>{copy.entryBody}</p><p class="booking-entry-status">{copy.status}</p></div>
<a class={buttonSecondary} href={copy.path} data-analytics-event="navigate_page" data-analytics-page="weapp_booking">{copy.entryAction}<ArrowRight size={18} aria-hidden="true" /></a>
</article>
<style>
.booking-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 2rem; margin-top: 3rem; border-radius: 20px; background: var(--surface-soft); }
.booking-entry h3 { margin-bottom: .75rem; font-size: 1.5rem; font-weight: 650; }
.booking-entry p { margin-bottom: 0; max-width: 65ch; color: var(--muted); }
.booking-entry .booking-entry-status { margin-top: .75rem; font-size: .875rem; }
@media (max-width: 850px) { .booking-entry { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; } .booking-entry a { justify-self: start; } }
</style>
102 changes: 102 additions & 0 deletions apps/web/src/components/BookingProductPage.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
import { ArrowRight, CalendarDays } from '@lucide/astro'
import type { Locale } from '../types/project'
import { bookingPage } from '../lib/booking'
import { buttonPrimary, buttonSecondary, pageTitle, section, sectionTitle, shell } from '../styles/classes'

interface Props { locale: Locale }
const { locale } = Astro.props
const copy = bookingPage(locale)
---

<main id="main-content" class="booking-product">
<section class:list={[section, shell, 'booking-hero']} aria-labelledby="booking-title">
<div>
<h1 id="booking-title" class={pageTitle}>weapp-booking</h1>
<p class="booking-tagline">{copy.heading}</p>
<p class="booking-lead">{copy.lead}</p>
<div class="mt-8 flex flex-wrap gap-3">
<a class={buttonPrimary} href={copy.contactPath} data-analytics-event="navigate_section" data-analytics-section="booking_contact">{copy.action}<ArrowRight size={18} aria-hidden="true" /></a>
<a class={buttonSecondary} href="#scope">{copy.scopeAction}</a>
</div>
</div>
<aside class="booking-status" aria-labelledby="booking-status-title">
<CalendarDays class="text-brand" size={32} stroke-width={1.6} aria-hidden="true" />
<h2 id="booking-status-title">{copy.status}</h2>
<p>{copy.statusDetail}</p>
</aside>
</section>

<section class="bg-panel" aria-labelledby="workflow-title">
<div class:list={[section, shell]}>
<h2 id="workflow-title" class={sectionTitle}>{copy.workflowTitle}</h2>
<p class="booking-lead">{copy.workflowLead}</p>
<ol class="booking-workflow">
{copy.workflow.map(step => <li><h3>{step.title}</h3><p>{step.body}</p></li>)}
</ol>
</div>
</section>

<section class:list={[section, shell]} id="scope" aria-labelledby="scope-title">
<div class="booking-section-intro"><h2 id="scope-title" class={sectionTitle}>{copy.scopeTitle}</h2><p>{copy.scopeLead}</p></div>
<dl class="booking-details">
{copy.capabilities.map(item => <div><dt>{item.title}</dt><dd>{item.body}</dd></div>)}
</dl>
</section>

<section class="bg-panel-soft" id="delivery" aria-labelledby="delivery-title">
<div class:list={[section, shell]}>
<h2 id="delivery-title" class={sectionTitle}>{copy.deliveryTitle}</h2>
<dl class="booking-details">
{copy.delivery.map(item => <div><dt>{item.title}</dt><dd>{item.body}</dd></div>)}
</dl>
</div>
</section>

<section class:list={[section, shell]} id="deployment" aria-labelledby="deployment-title">
<h2 id="deployment-title" class={sectionTitle}>{copy.deploymentTitle}</h2>
<dl class="booking-details">
{copy.deployment.map(item => <div><dt>{item.title}</dt><dd>{item.body}</dd></div>)}
</dl>
<aside class="booking-acceptance" aria-labelledby="acceptance-title"><h3 id="acceptance-title">{copy.acceptanceTitle}</h3><p>{copy.acceptanceBody}</p></aside>
</section>

<section class="bg-panel" id="license" aria-labelledby="license-title">
<div class:list={[section, shell]}>
<h2 id="license-title" class={sectionTitle}>{copy.licenseTitle}</h2>
<dl class="booking-details">
{copy.license.map(item => <div><dt>{item.title}</dt><dd>{item.body}</dd></div>)}
</dl>
<div class="booking-future"><h3>{copy.futureTitle}</h3><p>{copy.futureBody}</p></div>
</div>
</section>

<section class:list={[section, shell]} id="consultation" aria-labelledby="consultation-title">
<h2 id="consultation-title" class={sectionTitle}>{copy.contactTitle}</h2>
<p class="booking-lead">{copy.contactBody}</p>
<a class:list={[buttonPrimary, 'mt-8']} href={copy.contactPath} data-analytics-event="navigate_section" data-analytics-section="booking_contact">{copy.action}<ArrowRight size={18} aria-hidden="true" /></a>
</section>
</main>

<style>
.booking-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr); gap: 4rem; align-items: center; }
.booking-tagline { margin-block: 1.5rem; max-width: 22ch; font-size: clamp(1.75rem, 3vw, 2.6rem); font-weight: 600; line-height: 1.28; text-wrap: balance; }
.booking-lead { max-width: 70ch; margin-bottom: 0; color: var(--muted); font-size: 1.125rem; line-height: 1.7; }
.booking-status { padding: 2rem; border-radius: 20px; background: var(--surface-soft); }
.booking-status h2 { margin-block: 1.5rem .75rem; font-size: 1.35rem; font-weight: 650; line-height: 1.4; }
.booking-status p, .booking-workflow p, .booking-details dd, .booking-section-intro p, .booking-acceptance p, .booking-future p { margin-bottom: 0; color: var(--muted); line-height: 1.75; }
.booking-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; padding-left: 1.5rem; }
.booking-workflow li { padding-left: .4rem; }
.booking-workflow li::marker { color: var(--accent); font-weight: 650; }
.booking-workflow h3, .booking-acceptance h3, .booking-future h3 { margin-bottom: .75rem; font-size: 1.35rem; font-weight: 650; }
.booking-section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.booking-details { margin-top: 3rem; margin-bottom: 0; }
.booking-details > div { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 3rem; padding-block: 2rem; border-top: 1px solid var(--border); }
.booking-details dt { font-size: 1.35rem; font-weight: 650; }
.booking-details dd { max-width: 70ch; margin-left: 0; }
.booking-acceptance { margin-top: 2rem; padding: 2rem; border-radius: 20px; background: var(--surface-soft); }
.booking-acceptance p, .booking-future p { max-width: 75ch; }
.booking-future { margin-top: 2rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .booking-hero { grid-template-columns: 1fr; gap: 2.5rem; } .booking-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .booking-status { max-width: 70ch; } }
@media (max-width: 720px) { .booking-section-intro, .booking-details > div { grid-template-columns: 1fr; gap: .75rem; } .booking-workflow { grid-template-columns: 1fr; } .booking-section-intro { gap: 0; } .booking-status, .booking-acceptance { padding: 1.5rem; } .booking-lead { font-size: 1rem; } }
</style>
4 changes: 3 additions & 1 deletion apps/web/src/components/CommercialSections.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ArrowRight } from '@lucide/astro'
import { getSiteCopy, localizePath } from '../i18n/ui'
import { section, shell, sectionTitle } from '../styles/classes'
import ContactMethods from './ContactMethods.astro'
import BookingProductEntry from './BookingProductEntry.astro'
interface Props { locale: Locale }
const { locale } = Astro.props
const zh = locale === 'zh-CN'
Expand All @@ -25,6 +26,7 @@ const steps = zh ? [
<div class:list={[section, shell]}>
<h2 class={sectionTitle}>{zh ? '当前可以一起完成的事' : 'Work we can deliver today'}</h2>
<div class="service-list mt-10">{pricing.services.map(service => <article><h3>{service.name}</h3><p>{service.body}</p><strong>{service.price}</strong></article>)}</div>
<BookingProductEntry locale={locale} />
<a class="mt-7 inline-flex min-h-11 items-center gap-2 font-semibold text-brand" href={pricingPath + '#services'}>{zh ? '查看服务与报价' : 'Explore services and pricing'}<ArrowRight size={17} aria-hidden="true" /></a>
</div>
</section>
Expand All @@ -34,7 +36,7 @@ const steps = zh ? [
</section>
<section class:list={[section, shell]} id="roadmap">
<h2 class={sectionTitle}>{zh ? '正在建设,尚未开放' : 'In development, not yet available'}</h2>
<p class="mt-6 max-w-[680px] text-lg text-copy-muted">{zh ? '云构建、官方模板与私有组件仓库仍在规划或建设中。当前不提供订阅、购买入口或上线时间承诺。' : 'Cloud builds, official templates, and private component registries remain planned or in development. Subscriptions, purchases, and launch dates are not offered yet.'}</p>
<p class="mt-6 max-w-[680px] text-lg text-copy-muted">{zh ? '云构建、更多业务模板与私有组件仓库仍在规划或建设中。当前不提供订阅、购买入口或上线时间承诺。预约与报名产品的当前进展见 weapp-booking 产品页。' : 'Cloud builds, additional business templates, and private component registries remain planned or in development. Subscriptions, purchases, and launch dates are not offered yet. The weapp-booking product page describes the current appointment and registration product.'}</p>
</section>
<section class="bg-panel" id="contact">
<div class:list={[section, shell, 'service-contact']}><div><h2 class={sectionTitle}>{zh ? '聊聊你的项目' : 'Tell us about your project'}</h2>
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/components/PricingPage.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import ContactMethods from './ContactMethods.astro'
import BookingProductEntry from './BookingProductEntry.astro'
import DonationGuidance from './DonationGuidance.astro'
import { donationCopy } from '../i18n/donation'
import '../styles/support.css'
Expand Down Expand Up @@ -63,6 +64,7 @@ const hero = { eyebrow: pricing.eyebrow, title: pricing.title, description: pric
</article>
))}
</div>
<BookingProductEntry locale={locale} />
<p class="mt-7 mb-0 max-w-[720px] text-xs leading-[1.7] text-copy-muted">{locale === 'zh-CN' ? '服务只围绕工具链交付,不承接与产品无关的业务外包。服务收入连续两个月超过总收入 50% 时,将停止接收新单。' : 'Services stay tied to the toolchain and do not become unrelated product outsourcing. New work pauses if services exceed 50% of total revenue for two consecutive months.'}</p>
</div>
</section>
Expand Down
26 changes: 26 additions & 0 deletions apps/web/src/lib/booking.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { describe, expect, it } from 'vitest'
import { bookingCopy, bookingPage } from './booking'
import { getSiteProfile } from './deployment'

describe('booking product publishing contract', () => {
it('keeps bilingual scope and license content aligned with an existing contact route', () => {
expect(Object.keys(bookingCopy.en)).toEqual(Object.keys(bookingCopy['zh-CN']))
for (const field of ['workflow', 'capabilities', 'delivery', 'deployment', 'license'] as const) {
expect(bookingCopy.en[field]).toHaveLength(bookingCopy['zh-CN'][field].length)
}
expect(JSON.stringify(bookingCopy.en)).not.toMatch(/\p{Script=Han}/u)
expect(bookingPage('zh-CN').path).toBe('/products/weapp-booking/')
expect(bookingPage('en').path).toBe('/en/products/weapp-booking/')
expect(bookingPage('zh-CN').contactPath).toBe('/pricing/#contact')
expect(bookingPage('en').contactPath).toBe('/en/pricing/#contact')
expect(getSiteProfile().navigation.find(item => item.id === 'booking')?.path).toBe(bookingPage('zh-CN').path)
})

it('keeps provider acceptance and commercial release pending without offers or invented prices', () => {
expect(bookingCopy['zh-CN'].status).toContain('待验收')
expect(bookingCopy['zh-CN'].statusDetail).toContain('尚未正式商业发布')
expect(bookingCopy.en.status).toContain('acceptance pending')
expect(bookingCopy.en.statusDetail).toContain('Not yet commercially released')
expect(JSON.stringify(bookingCopy)).not.toMatch(/[¥¥$€]\s*\d|demo\.[a-z]|downloadUrl|purchaseUrl|checkoutUrl/)
})
})
Loading
Loading