mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-19 02:06:38 +00:00
## Summary - Adds the Comfy affiliate program landing page at `/affiliates`, composed from 8 reusable presentational blocks (`HeroSplit01`, `ChecklistSplit01`, `StepsGrid01`, `BenefitsGrid01`, `DetailsTable01`, `BrandAssetsGrid01`, `FAQSplit01`, `CtaCenter01`) and thin section wrappers under `templates/affiliate/*`. The page funnels through: Hero → Audience → How It Works → Why ComfyUI → Program Details → Brand Assets → FAQ → closing "Ready to start earning?" CTA. - Removes the older parallel implementation under `components/affiliates/*` (7 Vue sections, 3 data files, the i18n contract test) and the `affiliate-landing.*` translation keys — the page now has a single canonical i18n surface under `affiliate.*`. - Rewrites `e2e/affiliates.spec.ts` to target the new sections via semantic queries (no testids were added to production), covering hero indexability, the closing CTA's apply + terms links, FAQPage JSON-LD entry count, and FAQ toggle behavior. - Apply CTA links to the application form (`forms.gle/RS8L2ttcuGap4Q1v6`, `target=_blank`); terms link goes to `/affiliates/terms` (English-only by design, per the legal-reviewed terms document). ## Test plan - [ ] `pnpm --filter @comfyorg/website typecheck` passes (0 errors) - [ ] `pnpm --filter @comfyorg/website test:unit` passes (96 tests across 13 files) - [ ] `pnpm --filter @comfyorg/website knip --cache` reports no new orphans introduced by this branch - [ ] Visit `/affiliates` — all 8 sections render in order on desktop and mobile - [ ] APPLY NOW (in closing CTA section) opens `forms.gle/RS8L2ttcuGap4Q1v6` in a new tab - [ ] "Read the affiliate program terms" link navigates to `/affiliates/terms` in the same tab - [ ] FAQ items expand/collapse on click; `<script type="application/ld+json">` FAQPage entry contains all 8 Q/A pairs from `src/data/affiliateFaq.ts` - [ ] Run e2e: `pnpm --filter @comfyorg/website playwright test e2e/affiliates.spec.ts` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: GitHub Action <action@github.com>