Open source CapCut alternative.
TypeScript
refactor(site): drop internal jargon from the use-cases pages
David Le721d02a5754a
diff --git a/site/src/app/use-cases/[slug]/page.tsx b/site/src/app/use-cases/[slug]/page.tsxindex 89e3de19..dd122c2d 100644--- a/site/src/app/use-cases/[slug]/page.tsx+++ b/site/src/app/use-cases/[slug]/page.tsx@@ -8,7 +8,6 @@ import { Footer } from "@/app/_components/landing/Footer";import {Headline,PillButton,- SectionLabel,TapedCard,} from "@/app/_components/landing/LandingPrimitives";import { TopNav } from "@/app/_components/landing/TopNav";@@ -138,12 +137,6 @@ export default async function UseCasePage({ params }: PageProps) {/></div><div className="text-[12px] font-semibold tracking-[0.12em] uppercase">- Eval fixture- </div>- <div className="mt-2 font-code text-[14px] leading-[1.5] break-words">- {useCase.evalFixture}- </div>- <div className="mt-6 text-[12px] font-semibold tracking-[0.12em] uppercase">Outcome</div><p className="mt-2 text-[16px] leading-[1.5] text-[#222]">@@ -156,7 +149,6 @@ export default async function UseCasePage({ params }: PageProps) {<section className="mx-auto grid w-full max-w-[1400px] grid-cols-1 gap-8 px-6 pb-20 md:grid-cols-[minmax(0,1fr)_420px] md:px-12 md:pb-28"><div className="min-w-0">- <SectionLabel number={1}>Workflow</SectionLabel><TapedCard color="blue" tapeColor="cream"><div className="p-7 md:p-9"><div className="mb-7 rounded-xl border-2 border-ink bg-white p-5">@@ -187,7 +179,6 @@ export default async function UseCasePage({ params }: PageProps) {</div><div className="min-w-0">- <SectionLabel number={2}>Demo and artifacts</SectionLabel><div className="flex flex-col gap-6"><TapedCard color="pink" tapeColor="cream"><div className="p-5">diff --git a/site/src/app/use-cases/page.tsx b/site/src/app/use-cases/page.tsxindex db855319..68f3cf2d 100644--- a/site/src/app/use-cases/page.tsx+++ b/site/src/app/use-cases/page.tsx@@ -7,7 +7,6 @@ import { Footer } from "@/app/_components/landing/Footer";import {Headline,PillButton,- SectionLabel,TapedCard,} from "@/app/_components/landing/LandingPrimitives";import { TopNav } from "@/app/_components/landing/TopNav";@@ -90,8 +89,8 @@ export default function UseCasesPage() {</h1><p className="mt-8 max-w-[650px] text-[18px] leading-[1.55] text-[#454545] md:text-[20px]">A growing library of tasks Donkey can run across your files, apps,- and browser. Each page starts from a harness eval, then gives the- workflow a permanent home for examples, demos, and artifacts.+ and browser. Each one shows the exact prompt, the steps Donkey takes,+ and the result.</p><div className="mt-8 flex flex-wrap gap-3"><PillButton href="/install" variant="dark">@@ -147,19 +146,12 @@ export default function UseCasesPage() {</section><section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28">- <SectionLabel number={1}>Use case library</SectionLabel><div className="flex flex-col gap-14">{useCaseCategories.map((category, categoryIndex) => {- const categoryUseCases = getUseCasesByCategory(category);-return (<div key={category}>- <div className="mb-6 flex flex-col justify-between gap-3 md:flex-row md:items-end">+ <div className="mb-6"><Headline size="lg">{category}</Headline>- <p className="max-w-[420px] text-[15px] leading-[1.55] text-[#454545]">- {categoryUseCases.length} static examples pulled from the- current harness eval coverage.- </p></div><div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">{categoryUseCases.map((useCase, index) => {@@ -179,13 +171,10 @@ export default function UseCasesPage() {tapeColor="cream"><article className="flex h-full min-h-[334px] flex-col p-7">- <div className="mb-6 flex items-center justify-between gap-4">+ <div className="mb-6 flex items-center"><div className="flex h-12 w-12 items-center justify-center rounded-lg border-2 border-ink bg-white"><Icon size={22} /></div>- <span className="rounded-md border-2 border-ink bg-white px-3 py-1 text-[11px] font-semibold tracking-[0.08em] uppercase">- Eval-backed- </span></div><h2 className="text-[28px] leading-[1.03] font-semibold">{useCase.title}@@ -215,14 +204,9 @@ export default function UseCasesPage() {<div className="relative grid gap-8 rounded-3xl border-2 border-ink bg-ink px-7 py-9 text-white md:grid-cols-[1fr_auto] md:px-12 md:py-14"><div><div className="mb-[18px] text-xs font-semibold tracking-[0.12em] text-white/55 uppercase">- More examples coming+ Get started</div>- <Headline size="lg">Every useful eval deserves a page.</Headline>- <p className="mt-[18px] max-w-[620px] text-[15px] leading-[1.55] text-white/72 md:text-[17px]">- This library is built to grow as Donkey learns more repeatable- work: demos, downloadable outputs, and search-friendly detail- pages can be added without changing the page system.- </p>+ <Headline size="lg">Try Donkey today.</Headline></div><div className="flex flex-wrap items-center gap-3 self-center"><PillButton href="/install" variant="primary">diff --git a/site/src/app/use-cases/useCases.ts b/site/src/app/use-cases/useCases.tsindex 42a6c04f..c9097170 100644--- a/site/src/app/use-cases/useCases.ts+++ b/site/src/app/use-cases/useCases.ts@@ -27,7 +27,6 @@ export type UseCase = {artifacts?: UseCaseArtifact[];category: UseCaseCategory;description: string;- evalFixture: string;icon: LucideIcon;keywords: string[];outcome: string;@@ -50,7 +49,6 @@ export const useCases: UseCase[] = [category: "PDF and document work",description:"Merge separate invoice PDFs into one file, then stamp footer page numbers so the packet is ready to send or archive.",- evalFixture: "HarnessEval/merge-pdfs-add-page-numbers",icon: FileDown,keywords: ["merge PDFs", "add page numbers", "invoice packet"],outcome: "A single six-page PDF with consistent page numbers.",@@ -68,7 +66,6 @@ export const useCases: UseCase[] = [category: "PDF and document work",description:"Find sensitive identifiers in a contract PDF, cover each match, and flatten the output so the redactions are baked into the file.",- evalFixture: "HarnessEval/redact-and-flatten-contract",icon: LockKeyhole,keywords: ["redact PDF", "flatten PDF", "contract redaction"],outcome: "A flattened contract PDF with every SSN covered.",@@ -84,7 +81,7 @@ export const useCases: UseCase[] = [{artifacts: [{- description: "Fixture text representing the source PDF table.",+ description: "The source table this task reads from.",href: "/use-cases/artifacts/q3-figures.txt",label: "q3-figures.txt",},@@ -92,7 +89,6 @@ export const useCases: UseCase[] = [category: "PDF and document work",description:"Extract a structured table from a PDF and save it as a clean CSV that can move into a spreadsheet or reporting workflow.",- evalFixture: "HarnessEval/extract-table-from-pdf-to-csv",icon: FileSearch,keywords: ["PDF table extraction", "PDF to CSV", "financial table"],outcome: "A four-column CSV with region, revenue, growth, and churn.",@@ -108,7 +104,7 @@ export const useCases: UseCase[] = [{artifacts: [{- description: "Starting CSV used by the eval fixture.",+ description: "The starting expense ledger.",href: "/use-cases/artifacts/expenses.csv",label: "expenses.csv",},@@ -116,7 +112,6 @@ export const useCases: UseCase[] = [category: "Data and reporting",description:"Read a receipt image, pull out the merchant, date, category, and total, then append the expense to an existing CSV ledger.",- evalFixture: "HarnessEval/ocr-receipt-to-expenses",icon: ReceiptText,keywords: ["receipt OCR", "expense CSV", "expense tracking"],outcome: "A new expenses.csv row for Tartine Bakery totaling $42.18.",@@ -132,7 +127,7 @@ export const useCases: UseCase[] = [{artifacts: [{- description: "Sample source data from the eval fixture.",+ description: "The raw sales data this task reads.",href: "/use-cases/artifacts/sales.csv",label: "sales.csv",},@@ -140,7 +135,6 @@ export const useCases: UseCase[] = [category: "Data and reporting",description:"Take raw sales rows, group revenue by month, and generate a chart image suitable for a weekly update or deck.",- evalFixture: "HarnessEval/sales-csv-monthly-chart",icon: BarChart3,keywords: ["CSV analysis", "monthly revenue chart", "bar chart"],outcome: "A monthly revenue bar chart saved as monthly.png.",@@ -158,7 +152,6 @@ export const useCases: UseCase[] = [category: "Media and images",description:"Extract audio from a meeting recording, transcribe it, and pull out action items so the follow-up is ready to share.",- evalFixture: "HarnessEval/transcribe-meeting-audio",icon: FileAudio,keywords: ["meeting transcription", "extract audio", "action items"],outcome: "An MP3 file plus a transcript with five action items.",@@ -176,7 +169,6 @@ export const useCases: UseCase[] = [category: "Media and images",description:"Batch resize travel photos, strip location metadata, and make a contact sheet for fast review or sharing.",- evalFixture: "HarnessEval/resize-trip-photos",icon: ImageIcon,keywords: ["batch resize photos", "remove GPS metadata", "contact sheet"],outcome: "Twelve resized images with GPS removed and a 3x3 contact sheet.",@@ -193,7 +185,7 @@ export const useCases: UseCase[] = [{artifacts: [{- description: "Markdown output captured by the eval fixture.",+ description: "The Markdown Donkey produced.",href: "/use-cases/artifacts/donkeyuse.md",label: "donkeyuse.md",},@@ -201,7 +193,6 @@ export const useCases: UseCase[] = [category: "Web and app automation",description:"Capture a web page and convert the readable page content into Markdown for notes, documentation, or archival.",- evalFixture: "HarnessEval/markdown-of-donkeyuse",icon: FileText,keywords: ["website to Markdown", "web capture", "page archive"],outcome: "A Markdown document with the page title, sections, and feature list.",@@ -218,7 +209,6 @@ export const useCases: UseCase[] = [category: "Web and app automation",description:"Research a ranked song list, then drive Music to build a playlist from the results without making the user assemble it manually.",- evalFixture: "HarnessEval/top-songs-2021-playlist",icon: ListMusic,keywords: ["Music playlist", "web research", "desktop automation"],outcome: "A Music playlist with the top ten songs from 2021.",