/** * Marketing copy for the dedicated feature pages. One entry per `/features/` page; the landing * page, the features index and the footer all derive their links from this list. */ export type DemoKey = "review" | "workflow" | "ai" | "editor" | "security" | "hosting"; export type FeatureDetail = { title: string; body: string; code?: { title: string; language: string; source: string }; }; export type FeaturePage = { slug: string; nav: string; eyebrow: string; /** Headline; the `emphasis` fragment is rendered in the display italic. */ title: string; emphasis: string; lede: string; demo: DemoKey; highlights: ReadonlyArray<{ title: string; body: string }>; details: ReadonlyArray; }; const WORKFLOW_YAML = `# .gitfor/workflows/ci.yml name: CI on: push: branches: [main] pull_request: jobs: test: runs-on: cloudflare strategy: matrix: node: [22, 24] steps: - uses: actions/checkout@v4 - run: bun install && bun test deploy: needs: test if: github.ref == 'refs/heads/main' runs-on: [self-hosted, linux] environment: production steps: - run: ./deploy.sh env: TOKEN: \${{ secrets.DEPLOY_TOKEN }}`; const RUNNER_SH = `# On any machine with Docker or Podman gfd runner register --url https://your-forge.example --token gitfor_reg_... gfd runner run`; export const FEATURE_PAGES: ReadonlyArray = [ { slug: "review", nav: "Code review", eyebrow: "Pull requests", title: "Review that respects", emphasis: "everyone's time.", lede: "Inline threads, one-click suggestions, required checks and a merge queue that keeps main green — so a pull request is a conversation, not a chore.", demo: "review", highlights: [ { title: "Suggestions you can apply", body: "Propose the exact change in a comment. Authors apply one or a whole batch as a single commit.", }, { title: "Rules that hold", body: "Branch protection requires approvals, passing checks and code owners before anything merges.", }, { title: "A merge queue", body: "Queued pull requests are tested against the latest main, in order, and merge themselves when green.", }, { title: "Conflicts in the browser", body: "Resolve merge conflicts in a side-by-side editor without pulling the branch locally.", }, ], details: [ { title: "Every review state, one timeline", body: "Approvals, change requests, dismissals and re-requests live on the pull request's timeline next to commits, deployments and linked issues. Reviewers see which commit they last looked at.", }, { title: "Merge the way your team works", body: "Merge, squash or rebase. Turn on auto-merge and walk away; gitfor merges as soon as reviews and checks are satisfied, and closes the issues your commits mention.", }, ], }, { slug: "actions", nav: "Actions & runners", eyebrow: "CI/CD", title: "CI that's already", emphasis: "there when you push.", lede: "Write workflows in the YAML you already know. Jobs start in seconds on managed runners, or on your own hardware with a single command.", demo: "workflow", highlights: [ { title: "Familiar workflows", body: "Matrices, needs, if: expressions, secrets, variables, artifacts and caches — the syntax you already use.", }, { title: "Managed runners", body: "Nothing to provision. Every job gets a fresh, isolated container and streams its logs live.", }, { title: "Bring your own runner", body: "Register any Linux box with gfd. Each job runs in its own non-root container behind an egress firewall.", }, { title: "Gated deploys", body: "Environments with required reviewers turn a deploy into an explicit, audited approval.", }, ], details: [ { title: "Start with one file", body: "Drop a workflow into .gitfor/workflows and push. Job results land as commit statuses that branch protection can require.", code: { title: ".gitfor/workflows/ci.yml", language: "yaml", source: WORKFLOW_YAML }, }, { title: "Self-hosted in two commands", body: "Create a registration token in repository or organization settings, pick labels and isolation, and start the runner. Fork pull requests never reach your machines unless an admin opts in.", code: { title: "terminal", language: "sh", source: RUNNER_SH }, }, ], }, { slug: "ai", nav: "AI assist", eyebrow: "AI that asks first", title: "AI that does the busywork,", emphasis: "and shows its work.", lede: "gitfor's AI resolves merge conflicts and drafts pull request descriptions — always inside your branch protection, always explainable, and never on private code without your say-so.", demo: "ai", highlights: [ { title: "Merge-conflict fixes", body: "Candidates are scored for confidence and margin. Clear wins are committed; close calls come back as suggestions.", }, { title: "Pull request write-ups", body: "Get a suggested title and description from the diff on the compare page. Edit it, or ignore it.", }, { title: "Same rules as humans", body: "Fixes land as normal merge commits, so reviews, required checks and CI still apply.", }, { title: "Your keys, your limits", body: "Bring your own provider key, set thresholds per repository and see every call in usage.", }, ], details: [ { title: "Private stays private", body: "Private repositories are opted out until an admin allows it. Detected secrets are redacted before anything is sent to a model.", }, { title: "Built for agents, too", body: "Agent identities and a built-in MCP server let your own agents read issues, open pull requests and coordinate — with scoped grants and an audit trail.", }, ], }, { slug: "editor", nav: "Editor", eyebrow: "Press .", title: "A full editor,", emphasis: "one keystroke away.", lede: "Press . on any repository to open a VS Code–based workspace in your browser. Edit many files, commit once, and invite teammates into the same session.", demo: "editor", highlights: [ { title: "Instant workspace", body: "Search, multi-cursor, keybindings and Open VSX web extensions with no install and no wait.", }, { title: "Edit together", body: "Live presence shows who's in the file, including agents working alongside you.", }, { title: "Commit in one go", body: "Stage changes across the tree and commit them to a new or existing branch.", }, { title: "Containers when you need them", body: "On paid plans, attach a container for a terminal, tasks and language servers.", }, ], details: [ { title: "Costs nothing while idle", body: "The browser workspace runs entirely client-side once loaded, so it is free to keep open and works on flaky connections.", }, ], }, { slug: "security", nav: "Security", eyebrow: "Secure by default", title: "Catch the leak", emphasis: "before it ships.", lede: "Push protection, secret and code scanning, advisories and verified commits — built in, not bolted on.", demo: "security", highlights: [ { title: "Push protection", body: "Pushes containing credentials are declined with the exact file and line, before they reach history.", }, { title: "Code scanning", body: "Upload SARIF from any analyzer and see alerts inline on the code and on pull requests.", }, { title: "Advisories & dependencies", body: "Draft private security advisories and see every dependency your manifests declare.", }, { title: "Verified commits", body: "GPG and SSH signatures are checked against each author's keys and shown on every commit.", }, ], details: [ { title: "Accounts that are hard to take over", body: "Passkeys, TOTP two-factor and recovery codes, fine-grained and deploy tokens, and user content served from a separate origin that never sees your session.", }, ], }, { slug: "hosting", nav: "Pages & Sites", eyebrow: "Hosting", title: "From repository", emphasis: "to live URL.", lede: "Publish static sites and dynamic apps straight from a branch, with previews for every pull request and instant rollbacks.", demo: "hosting", highlights: [ { title: "Pages", body: "Static sites from any branch, with a preview URL for every pull request.", }, { title: "Sites", body: "Ship server code alongside your assets. Each site runs isolated with only the secrets you give it.", }, { title: "Custom domains", body: "Bring your domain; certificates are issued and renewed for you.", }, { title: "Instant rollback", body: "Deploys are immutable, so going back is a pointer flip, not a rebuild.", }, ], details: [ { title: "Access control included", body: "Make a site public, or limit it to people who can read the repository or to your team — enforced before your code ever runs.", }, ], }, ]; export function featurePage(slug: string): FeaturePage | undefined { return FEATURE_PAGES.find((page) => page.slug === slug); }