diff --git a/.impeccable/surfaces/booking-product.md b/.impeccable/surfaces/booking-product.md new file mode 100644 index 0000000..c448c36 --- /dev/null +++ b/.impeccable/surfaces/booking-product.md @@ -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. diff --git a/apps/open-source/scripts/validate-build.ts b/apps/open-source/scripts/validate-build.ts index c95acef..b21fe5d 100644 --- a/apps/open-source/scripts/validate-build.ts +++ b/apps/open-source/scripts/validate-build.ts @@ -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 { const entries = await readdir(directory, { withFileTypes: true }) @@ -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)) { @@ -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}`) } @@ -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 { diff --git a/apps/web/PRODUCT.md b/apps/web/PRODUCT.md index ea4cbac..add385e 100644 --- a/apps/web/PRODUCT.md +++ b/apps/web/PRODUCT.md @@ -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. diff --git a/apps/web/scripts/validate-build.ts b/apps/web/scripts/validate-build.ts index 358af7c..cff9d61 100644 --- a/apps/web/scripts/validate-build.ts +++ b/apps/web/scripts/validate-build.ts @@ -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`), ]), @@ -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) { diff --git a/apps/web/src/components/BookingProductEntry.astro b/apps/web/src/components/BookingProductEntry.astro new file mode 100644 index 0000000..a7bd3bf --- /dev/null +++ b/apps/web/src/components/BookingProductEntry.astro @@ -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) +--- +
+

{copy.entryTitle}

{copy.entryBody}

{copy.status}

+ {copy.entryAction} +
+ diff --git a/apps/web/src/components/BookingProductPage.astro b/apps/web/src/components/BookingProductPage.astro new file mode 100644 index 0000000..8d52100 --- /dev/null +++ b/apps/web/src/components/BookingProductPage.astro @@ -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) +--- + +
+
+
+

weapp-booking

+

{copy.heading}

+

{copy.lead}

+ +
+ +
+ +
+
+

{copy.workflowTitle}

+

{copy.workflowLead}

+
    + {copy.workflow.map(step =>
  1. {step.title}

    {step.body}

  2. )} +
+
+
+ +
+

{copy.scopeTitle}

{copy.scopeLead}

+
+ {copy.capabilities.map(item =>
{item.title}
{item.body}
)} +
+
+ +
+
+

{copy.deliveryTitle}

+
+ {copy.delivery.map(item =>
{item.title}
{item.body}
)} +
+
+
+ +
+

{copy.deploymentTitle}

+
+ {copy.deployment.map(item =>
{item.title}
{item.body}
)} +
+ +
+ +
+
+

{copy.licenseTitle}

+
+ {copy.license.map(item =>
{item.title}
{item.body}
)} +
+

{copy.futureTitle}

{copy.futureBody}

+
+
+ +
+

{copy.contactTitle}

+

{copy.contactBody}

+ {copy.action} +
+
+ + diff --git a/apps/web/src/components/CommercialSections.astro b/apps/web/src/components/CommercialSections.astro index 19d0f20..bf347cb 100644 --- a/apps/web/src/components/CommercialSections.astro +++ b/apps/web/src/components/CommercialSections.astro @@ -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' @@ -25,6 +26,7 @@ const steps = zh ? [

{zh ? '当前可以一起完成的事' : 'Work we can deliver today'}

{pricing.services.map(service =>

{service.name}

{service.body}

{service.price}
)}
+ {zh ? '查看服务与报价' : 'Explore services and pricing'}
@@ -34,7 +36,7 @@ const steps = zh ? [

{zh ? '正在建设,尚未开放' : 'In development, not yet available'}

-

{zh ? '云构建、官方模板与私有组件仓库仍在规划或建设中。当前不提供订阅、购买入口或上线时间承诺。' : 'Cloud builds, official templates, and private component registries remain planned or in development. Subscriptions, purchases, and launch dates are not offered yet.'}

+

{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.'}

{zh ? '聊聊你的项目' : 'Tell us about your project'}

diff --git a/apps/web/src/components/PricingPage.astro b/apps/web/src/components/PricingPage.astro index 38970a9..1f687c9 100644 --- a/apps/web/src/components/PricingPage.astro +++ b/apps/web/src/components/PricingPage.astro @@ -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' @@ -63,6 +64,7 @@ const hero = { eyebrow: pricing.eyebrow, title: pricing.title, description: pric ))}
+

{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.'}

diff --git a/apps/web/src/lib/booking.test.ts b/apps/web/src/lib/booking.test.ts new file mode 100644 index 0000000..ad1e126 --- /dev/null +++ b/apps/web/src/lib/booking.test.ts @@ -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/) + }) +}) diff --git a/apps/web/src/lib/booking.ts b/apps/web/src/lib/booking.ts new file mode 100644 index 0000000..f896ed9 --- /dev/null +++ b/apps/web/src/lib/booking.ts @@ -0,0 +1,127 @@ +import type { Locale } from '../types/project' +import { localizePath } from '../i18n/ui' + +// Public product facts only. Implementation and delivery assets live in the private product repository. +export const bookingProductPath = '/products/weapp-booking/' +export const bookingContactPath = '/pricing/#contact' + +export const bookingCopy = { + 'zh-CN': { + title: 'weapp-booking 预约与活动报名', + description: '面向门店与活动主办方的预约、报名、订单与核销产品。支持独立私有部署,可沟通品牌定制与源码授权;外部联调待验收,尚未正式商业发布。', + heading: '把预约、报名和到店服务,接在一起。', + lead: 'weapp-booking 为按时间、资源和名额经营的业务准备。从客户选择体验,到门店处理订单与核销,让一条服务流程有清楚的记录。', + status: '已实现,外部联调待验收', + statusDetail: '可预约人工演示,尚未正式商业发布。微信真实身份、支付退款和消息投递需在实际账号与部署环境中完成验收。', + action: '预约演示与咨询', + scopeAction: '查看交付范围', + entryTitle: '预约与报名,从一个产品开始', + entryBody: 'weapp-booking 已实现预约、活动报名、订单、核销与基础客户管理,可沟通私有部署、品牌定制和源码授权。', + entryAction: '了解 weapp-booking', + workflowTitle: '围绕一次真实到店,完成业务闭环', + workflowLead: '适合摄影工作室、手作体验、按时段提供服务的门店,以及需要票种、名额和签到的线下活动。', + workflow: [ + { title: '预约或报名', body: '选择门店、服务资源和可约时段,或按票种填写多位参与人的资料。' }, + { title: '确认订单', body: '按服务端价格与容量生成订单,保留待付款名额并记录付款结果。' }, + { title: '到店核销', body: '每位参与人使用独立凭证,员工按门店权限完成核销与纠错。' }, + { title: '售后与客户', body: '处理改期、取消和退款申请,查看订单记录与基础客户资料。' }, + ], + scopeTitle: '交付围绕完整应用,而非单张页面', + scopeLead: '客户入口、经营后台和服务端围绕同一套订单数据协作。具体交付版本、模块与验收清单在沟通后书面确认。', + capabilities: [ + { title: '客户小程序与 H5', body: '服务与活动展示、登录、动态报名表单、预约与多人报名、订单详情、改期、退款申请和到店凭证。微信消费者端采用 Wevu、weapp-vite 与 weapp-tailwindcss。' }, + { title: '门店经营后台', body: '门店、资源、服务、活动和票种管理,订单、退款及核销,员工角色与门店权限。可完整翻阅客户、审计、通知与历史退款记录,按门店、处理状态和订单关键词定位退款;重试原退款任务后保留浏览位置,到账结果仍需核实。可导出当前筛选下的全部订单;所有者、管理员及授权店长可为未开始的预约人工改期,并记录原因。' }, + { title: '支付待核实跟进', body: '所有者、管理员、授权店长及财务可按门店权限查看支付待核实列表,填写原因请求重新核对。受理只表示核对请求已接收,不代表款项到账。缺少支付配置,或渠道返回退款、撤销等仍需核实的结果时,保留记录供人工核对,不标为支付成功。' }, + { title: '临时停约与跟进', body: '员工请假或场地维修时,可为单个人员或场地设置指定日期内的停约时段。所有者、管理员及授权店长按门店权限创建和撤销;已确认和待付款预约保持原状,可查看重叠预约并人工跟进。' }, + { title: '复制服务与活动草稿', body: '在同一门店,将服务或活动复制为未发布草稿,复用介绍、图片、表单和业务配置。复制活动时需重新填写开始、结束及报名截止时间,并一并复制全部票种配置;检查草稿并发布后才向顾客开放。' }, + { title: '新实例配置模板', body: '所有者和管理员可将已保存的品牌、业务规则及所选目录导出为配置模板,复用于新的独立实例。图片在目标实例补充,活动时间按目标时区重设;导入前核对配置变化,导入后门店与资源停用、服务与活动为草稿。客户交易、员工账号和渠道密钥不随模板迁移,公开联系信息与文案需在分发前检查。' }, + { title: '服务端与数据', body: '预约容量、临时占位、幂等下单、支付与退款状态、后台任务、审计记录和持久化数据。金额与权限由服务端校验。' }, + { title: '品牌与表单配置', body: '调整品牌名称、主题色、介绍、联系方式、服务与活动内容,以及报名字段。多人编辑设置时,过期保存会被拒绝并保留本地草稿,可核对服务器设置后明确重新载入。基础会员能力以客户资料和订单记录为主。' }, + ], + deliveryTitle: '按你的团队,约定交付方式', + delivery: [ + { title: '源码授权', body: '适合有开发能力的团队。沟通交付模块、源码范围、二次开发权利和版本维护方式,按照书面授权使用。' }, + { title: '私有部署', body: '适合需要独立运行环境的业务。评估服务器、域名、数据库、备份和外部服务配置,约定部署、联调与交接范围。' }, + { title: '品牌与业务定制', body: '在现有预约和报名流程上评估品牌、表单、业务规则及系统对接。普通设置保存可保留已有品牌顶层扩展字段,以及标识不变的表单字段扩展;无法安全合并的定制结构会明确拒绝。具体扩展与升级边界见交付文档,新增能力单独确认范围、费用与验收标准。' }, + ], + deploymentTitle: '部署之前,先准备好业务环境', + deployment: [ + { title: '你的运行环境', body: '准备独立服务器、HTTPS 域名、数据库与备份策略,明确日常运维负责人。可用性和数据恢复要求在部署方案中确认。' }, + { title: '你的微信与支付账号', body: '小程序 AppID、合法域名、隐私声明及微信支付商户能力需按实际业务开通。短信和订阅消息使用客户自己的服务配置。' }, + { title: '共同完成外部验收', body: '在客户环境验证真实登录、支付取消与查单、退款到账、二维码核销和消息投递,再按约定清单确认上线。' }, + ], + acceptanceTitle: '当前已验证什么', + acceptanceBody: '已完成构建、类型检查、消费者 API 联调,以及分页、筛选导出、人工改期、临时停约、复制草稿、配置模板、设置并发保存、支付待核实跟进和历史退款安全重试的真实数据库业务测试;包含既有扩展字段保留,以及模板的实例与图片隔离、过期预览和重复导入请求。后台关键流程通过桌面与移动浏览器验证,包含设置冲突后的草稿保留、核对与明确重新载入,以及支付重新核对的受理、丢失响应重试和过期操作冲突。历史退款流程验证分页、筛选、失败读取恢复和切换页面后的操作结果归属。生产账号与供应商链路的外部验收仍待完成,小程序真机验收单独跟踪,开发模拟支付不代表真实扣款验证。', + licenseTitle: '授权和服务范围,提前说清楚', + license: [ + { title: '独立商业产品', body: 'weapp-booking 的产品源码在独立私有仓库维护。官网展示产品说明;源码和部署材料的交付以书面约定为准。' }, + { title: '明确使用范围', body: '部署主体、实例数量、客户项目交付、二次开发、再分发与转售范围,以及升级维护期限,均需在授权与服务协议中确认。' }, + { title: '分别确认费用', body: '当前没有公开标准售价。源码授权、部署实施、定制开发和持续维护按实际范围沟通;服务器、域名、短信及支付等第三方费用另行确认。' }, + ], + futureTitle: '先做好独立部署,再评估托管服务', + futureBody: '当前以独立部署和人工交付为主。多租户 SaaS、在线自助订阅与自动开通仍是后续方向,尚未开放,也没有承诺上线日期。', + contactTitle: '带着你的业务,来聊一次具体方案', + contactBody: '请准备业务类型、门店与员工规模、预约或报名流程、需要的小程序/H5 入口,以及已有账号和部署环境。我们据此安排演示、确认适配范围和下一步。', + }, + 'en': { + title: 'weapp-booking appointments and event registration', + description: 'Appointments, event registration, orders, and check-in for local businesses. Discuss private deployment, brand customization, and source licensing. External integration acceptance is pending; not commercially released.', + heading: 'Connect bookings, registration, and the visit itself.', + lead: 'weapp-booking is built for businesses that manage time, resources, and capacity. From choosing an experience to handling orders and check-in, each step of the visit has a clear record.', + status: 'Implemented; external integration acceptance pending', + statusDetail: 'Guided demos can be arranged. Not yet commercially released. Real WeChat identity, payments, refunds, and message delivery still require acceptance with actual accounts and deployment environments.', + action: 'Arrange a demo and consultation', + scopeAction: 'Explore delivery scope', + entryTitle: 'A product for appointments and registration', + entryBody: 'weapp-booking implements bookings, event registration, orders, check-in, and basic customer management. Discuss private deployment, brand customization, and source licensing.', + entryAction: 'Explore weapp-booking', + workflowTitle: 'Follow the whole journey of a visit', + workflowLead: 'For photography studios, craft workshops, businesses that offer timed services, and in-person events that need ticket types, capacity limits, and check-in.', + workflow: [ + { title: 'Book or register', body: 'Choose a location, service resource, and available time, or select a ticket type and enter details for multiple attendees.' }, + { title: 'Confirm the order', body: 'Create an order with server-controlled pricing and capacity, hold unpaid places temporarily, and record the payment outcome.' }, + { title: 'Check in', body: 'Each attendee has a separate credential. Staff check visitors in and correct mistakes within their location permissions.' }, + { title: 'Handle follow-up', body: 'Manage rescheduling, cancellation, and refund requests, with order history and basic customer records.' }, + ], + scopeTitle: 'Delivery covers a complete application', + scopeLead: 'Customer interfaces, the management console, and the API share one order system. The delivery version, modules, and acceptance checklist are agreed in writing after assessment.', + capabilities: [ + { title: 'Customer mini-program and H5', body: 'Services and events, sign-in, configurable forms, bookings and group registration, order details, rescheduling, refund requests, and check-in credentials. The WeChat app uses Wevu, weapp-vite, and weapp-tailwindcss.' }, + { title: 'Business management', body: 'Manage locations, resources, services, events, tickets, orders, refunds, check-in, staff roles, and location permissions. Browse all customer, audit, notification, and historical refund records. Find refunds by location, handling status, or order keywords, and keep the browsing context after retrying the original refund task; settlement still needs verification. Export every order matching the current filters. Owners, administrators, and authorized managers can reschedule appointments that have not started, with a recorded reason.' }, + { title: 'Payments awaiting verification', body: 'Owners, administrators, authorized location managers, and finance staff can review payments awaiting verification within their location permissions and request another check with a required reason. Acceptance confirms receipt of the request, not receipt of funds. Missing payment configuration or channel results that still need verification, including refunds or reversals, leave records for manual review without marking payment as successful.' }, + { title: 'Temporary unavailability', body: 'Set a period of unavailability within a day for one staff member or venue when someone is away or a space needs maintenance. Owners, administrators, and authorized managers create or revoke these periods within their location permissions. Existing confirmed and unpaid bookings stay in place and can be reviewed for manual follow-up.' }, + { title: 'Copy services and events as drafts', body: 'Within the same location, copy a service or event into an unpublished draft, reusing its description, image, form, and business settings. For events, enter new start, end, and registration deadline times; all ticket configurations are copied too. Review and publish the draft before customers can book.' }, + { title: 'Configuration templates for new instances', body: 'Owners and administrators can export saved branding, business rules, and selected catalog entries for a new independent instance. Add images in the target instance and set new event times in its timezone. Review changes before importing; locations and resources remain disabled, and services and events remain drafts. Customer transactions, staff accounts, and provider secrets are excluded. Review retained public contact details and text before sharing.' }, + { title: 'API and persistent data', body: 'Capacity, temporary holds, idempotent orders, payment and refund states, background jobs, audit records, and persistent storage. The server validates amounts and permissions.' }, + { title: 'Brand and form settings', body: 'Configure the brand name, color, introduction, contact details, services, events, and registration fields. When settings are edited concurrently, stale saves are rejected and the local draft is kept for review before an explicit reload. Basic membership covers customer profiles and order history.' }, + ], + deliveryTitle: 'Agree the delivery model with your team', + delivery: [ + { title: 'Source licensing', body: 'For teams with development capacity. Agree the modules, source scope, modification rights, and version maintenance, then use the product under the written license.' }, + { title: 'Private deployment', body: 'For businesses that need an independent environment. Review the server, domain, database, backups, and provider configuration, then agree deployment, integration, and handover.' }, + { title: 'Brand and workflow customization', body: 'Assess branding, forms, business rules, and integrations against the existing booking and registration flow. Ordinary settings saves preserve existing top-level brand extension fields and extensions on form fields whose identifiers stay unchanged. Custom structures that cannot be merged safely are rejected. Delivery documentation defines extension and upgrade boundaries; additional capabilities need their own scope, cost, and acceptance criteria.' }, + ], + deploymentTitle: 'Prepare the environment before deployment', + deployment: [ + { title: 'Your runtime environment', body: 'Prepare an independent server, HTTPS domain, database, and backup strategy, with a named operations owner. Availability and recovery requirements belong in the deployment agreement.' }, + { title: 'Your WeChat and payment accounts', body: 'The mini-program AppID, permitted domains, privacy disclosures, and merchant payment capabilities must match the business. SMS and subscription messages use the customer’s provider configuration.' }, + { title: 'Joint integration acceptance', body: 'Verify real sign-in, payment cancellation and reconciliation, refund settlement, QR check-in, and message delivery in the customer environment before accepting the launch checklist.' }, + ], + acceptanceTitle: 'What has been verified', + acceptanceBody: 'Builds, type checks, consumer API integration, and real database tests for pagination, filtered exports, staff rescheduling, temporary unavailability, copying drafts, configuration templates, concurrent settings saves, payment verification follow-up, and safe retries of historical refunds have passed. Checks include preserving existing extension fields, plus instance and image isolation, stale previews, and repeated template imports. Key admin workflows have passed desktop and mobile browser checks, including keeping a draft after a settings conflict, reviewing server values, explicitly reloading, and accepting payment checks, retrying lost responses, and rejecting stale actions. Historical refund checks cover pagination, filters, read recovery, and operation results after navigating away. Production accounts and provider integrations still need external acceptance, and mini-program device acceptance is tracked separately. Simulated development payments do not verify real charges.', + licenseTitle: 'Clarify licensing and service scope first', + license: [ + { title: 'An independent commercial product', body: 'The weapp-booking source is maintained in a separate private repository. This website describes the product; source and deployment materials are delivered under a written agreement.' }, + { title: 'Defined rights of use', body: 'The operating entity, instance count, client-project delivery, modifications, redistribution, resale rights, and update or maintenance period must be confirmed in the license and service agreement.' }, + { title: 'Costs agreed separately', body: 'There is no public standard price yet. Source licensing, deployment, customization, and ongoing maintenance are scoped individually. Server, domain, SMS, payment, and other provider costs are confirmed separately.' }, + ], + futureTitle: 'Independent deployment first; hosted services later', + futureBody: 'The current focus is independent deployment with a guided handover. Multi-tenant SaaS, self-service subscriptions, and automatic provisioning are future directions. They are not available, and no launch date is promised.', + contactTitle: 'Start with a concrete discussion of your business', + contactBody: 'Share your business type, location and staff count, booking or registration workflow, required mini-program/H5 interfaces, and existing accounts and infrastructure. These help us arrange a demo and agree the next step.', + }, +} as const + +export function bookingPage(locale: Locale) { + return { ...bookingCopy[locale], path: localizePath(locale, bookingProductPath), contactPath: localizePath(locale, bookingContactPath) } +} diff --git a/apps/web/src/lib/deployment.ts b/apps/web/src/lib/deployment.ts index ba0184e..698e521 100644 --- a/apps/web/src/lib/deployment.ts +++ b/apps/web/src/lib/deployment.ts @@ -6,6 +6,14 @@ const site = { repositoryUrl: 'https://github.com/weappjs/weapp.dev', outputDir: 'dist', navigation: [ + { + id: 'booking', + path: '/products/weapp-booking/', + label: { + 'zh-CN': '预约产品', + 'en': 'Booking', + }, + }, { id: 'services', path: '/#services', diff --git a/apps/web/src/lib/site-resources.test.ts b/apps/web/src/lib/site-resources.test.ts index 50c67a5..f751c7b 100644 --- a/apps/web/src/lib/site-resources.test.ts +++ b/apps/web/src/lib/site-resources.test.ts @@ -33,6 +33,17 @@ describe('site resources', () => { expect(resources['llms-full.txt']).toContain('25% to the contributors fund') }) + it('describes the private booking product without inventing commercial availability', () => { + const resources = createSiteResources(getSiteProfile(), projects) + for (const name of ['llms.txt', 'llms-full.txt'] as const) { + expect(resources[name]).toContain('https://weapp.dev/products/weapp-booking/') + expect(resources[name]).toContain('https://weapp.dev/en/products/weapp-booking/') + expect(resources[name]).toContain('external integration acceptance is pending') + expect(resources[name]).toContain('not yet commercially released') + expect(resources[name]).not.toMatch(/github\.com\/[^\s)]+\/weapp-booking/) + } + }) + it('marks planned projects without inventing releases or install commands', () => { const resources = createSiteResources(getSiteProfile(), [projects[1]]) expect(resources['llms.txt']).toContain('(planned; not released)') diff --git a/apps/web/src/lib/site-resources.ts b/apps/web/src/lib/site-resources.ts index eecf73c..147f147 100644 --- a/apps/web/src/lib/site-resources.ts +++ b/apps/web/src/lib/site-resources.ts @@ -1,6 +1,7 @@ import type { ProjectDefinition } from '../types/project' import type { SiteProfile } from './deployment' import { donationCopy } from '../i18n/donation' +import { bookingProductPath } from './booking' import { projectService } from './services' export interface ResourceProject { @@ -16,6 +17,8 @@ export function createSiteResources(site: SiteProfile, projects: ResourceProject ['English homepage', '/en/'], ['Chinese project index', '/projects/'], ['English project index', '/en/projects/'], + ['weapp-booking product', bookingProductPath], + ['weapp-booking product in English', `/en${bookingProductPath}`], ['Chinese privacy notice', '/privacy/'], ['English privacy notice', '/en/privacy/'], ['Release feed', '/releases.xml'], @@ -29,6 +32,7 @@ export function createSiteResources(site: SiteProfile, projects: ResourceProject ...(data.status !== 'planned' && data.npmUrl ? [`- [${data.packageName} on npm](${data.npmUrl})`] : []), ]) const serviceNotes = '\n## Engineering services\n\nMigration, training, and implementation are scoped per project. See the services page for currently available work and planned capabilities. Open-source tools remain independently available from their repositories.\n' + const bookingNotes = '\n## weapp-booking\n\nAn independent commercial product for appointments, event registration, orders, check-in, and basic customer management. Implementation exists; external integration acceptance is pending, and the product is not yet commercially released. Guided demos, private deployment, customization, and source licensing can be discussed through the existing contact page. There is no public standard price, self-service purchase, hosted SaaS subscription, or public live demo. Source and delivery materials remain in a separate private repository; licensing and service scope require a written agreement.\n' const sponsorshipNotes = `\n## Open-source sponsorship\n\nOne-time recognition tiers are ¥20 supporter, ¥200 Bronze, and ¥1,000 Silver. Public recognition requires identity confirmation, maintainer review, and authorization. ${donationCopy.en.allocation} ${donationCopy.en.instruction} Sponsorship does not purchase technical support or software access. Business partnerships and service work are described separately on the website.\n` const canonicalPages = `## Canonical pages\n\n${pages.map(([label, path]) => `- [${label}](${url(path)})`).join('\n')}\n` const sources = `## Official sources\n\n- [GitHub organization](${site.organizationUrl})\n- [Website source](${site.repositoryUrl})\n${sourceLinks.join('\n')}\n` @@ -38,6 +42,7 @@ export function createSiteResources(site: SiteProfile, projects: ResourceProject sources, canonicalPages, serviceNotes, + bookingNotes, sponsorshipNotes, 'For maintained facts, prefer the project pages and linked official repositories and documentation. Repository ownership follows the linked sources; planned organization moves are not represented as completed.\n', ].filter(Boolean).join('\n') @@ -61,6 +66,6 @@ export function createSiteResources(site: SiteProfile, projects: ResourceProject return { 'robots.txt': `User-agent: *\nAllow: /\n\nSitemap: ${url('/sitemap-index.xml')}\n`, 'llms.txt': summary, - 'llms-full.txt': `# ${site.name} reference\n\n${introduction}\n\n${sources}\n${projectReferences}\n\n${canonicalPages}${serviceNotes}${sponsorshipNotes}`, + 'llms-full.txt': `# ${site.name} reference\n\n${introduction}\n\n${sources}\n${projectReferences}\n\n${canonicalPages}${serviceNotes}${bookingNotes}${sponsorshipNotes}`, } } diff --git a/apps/web/src/pages/en/products/weapp-booking.astro b/apps/web/src/pages/en/products/weapp-booking.astro new file mode 100644 index 0000000..c5ad254 --- /dev/null +++ b/apps/web/src/pages/en/products/weapp-booking.astro @@ -0,0 +1,17 @@ +--- +import BookingProductPage from '../../../components/BookingProductPage.astro' +import Header from '../../../components/Header.astro' +import Footer from '../../../components/Footer.astro' +import BaseLayout from '../../../layouts/BaseLayout.astro' +import { bookingPage } from '../../../lib/booking' +import { getProjects } from '../../../lib/projects' + +const locale = 'en' as const +const copy = bookingPage(locale) +const projects = await getProjects() +--- + +
+ +