Marketing About, How It Works, and Use Cases pages #52
Reference in New Issue
Block a user
Delete Branch "adilallo/feature/AboutUseCasesPages"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Adds the marketing About, How it works, and Use cases experiences (index, detail, and completed-rule views) aligned with Figma, plus supporting components, copy, assets, and tests. Also fixes create-flow save progress after magic-link sign-in, lets users edit the document title on final review, and adds an API to duplicate a use-case template into a signed-in user’s draft.
Changes
Marketing routes
/about— About page withAboutHeader, stats, book CTA, quote, and related sections (messages/en/pages/about.json)./how-it-works— Guide page with decorative shapes,TripleStep,PageHeader, and localized copy./use-cases— Index with case-study cards (Mutual Aid Colorado, Food Not Bombs Boulder, Boulder County Street Medics), org logos, group vectors, rule stack, and related articles./use-cases/[slug]— Detail pages per case study./use-cases/[slug]/rule— Read-only completed-rule view under(marketing-case-study)with duplicate-into-create CTA./learn— Updated layout and refreshed blog thumbnail SVGs (horizontal / vertical / section / tag variants).Components & design system
PageHeader,AboutHeader,TripleStep,TripleTextBlock,CaseStudy,Stat/Stats,Groups,Book,UseCasesOrgs, layoutAccordion,Shapes, refactoredContentBanner(container/view split), enhancedQuoteBlock,Rulecard,RelatedArticles,ContentThumbnailTemplate,ContentContainer.navigationChromelessPathfor case-study rule routes; footer/top nav tweaks.Create flow & auth
PostLoginDraftTransfer, magic-link request/verify routes, and draft hydration/payload building.FinalReviewTitleEditModal, title chip presets,normalizePublishedDocumentForEdit, publish/draft payload updates.CreateFlowTopNav— Expanded actions and tests.API & data
POST /api/use-cases/[slug]/duplicate— Auth-required; clones synthetic completed-rule JSON into a user draft (DB required).PublishedDocumentschema tweak + migration.useCaseCompletedRule,useCaseSyntheticPost,howItWorksSyntheticPost,useCaseTemplateDuplicate.Content & assets
how-chaos-concentrates-control,digital-mediation-and-the-death-of-nuance,avoiding-burnout-sustainability-in-the-ruins, etc.) with matching SVG assets underpublic/content/blog/.public/assets/.useCases.json,useCasesDetail.json,useCasesCompletedRules.json, metadata entries.figma-component-registry.md,content-creation.md.Tests & Storybook
Screenshots
How to Test
npm install(if needed), ensure Postgres + env perCONTRIBUTING.mdfor duplicate API and create-flow save.npm run devand visit:/about/how-it-works/use-cases/use-cases/mutual-aid-colorado(andfood-not-bombs,boulder-county-street-medics)/use-cases/mutual-aid-colorado/rule(chromeless; duplicate CTA when signed in)/learn— blog cards and thumbnailsnpm run storybookfor new section stories;npm run e2efor critical journeys.Notes
href: "#"until download URL is wired (messages/en/pages/about.jsoncomment).DATABASE_URLis unset (matches other API routes).building-community-trustblog post and oldContent_ThumbnailSVGs in favor of per-post blog assets.