Add the privacy policy and terms of service at /privacy and /terms
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Both names join the reserved project names, so no project takes them.
authored by oscabriel · committed by oscabriel · parent 05cecd1 · Browse files · 5 files·+211 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
5 files+211 added−0 removed
- tests:+2 added−0 removed
- other:+209 added−0 removed
Provenance
- Commit
f12eed6- Tree
a1f513a- Author
oscabriel <oscarhernandeziv@gmail.com>- Committer
oscabriel <oscarhernandeziv@gmail.com>- Parent
05cecd1
5 files changed+211 added−0 removed
added:apps/web/src/features/legal/legal-pages.tsx+175 added
1+import { Brand } from "@repo/brand";2+3+import { AppLink } from "../shared/link.tsx";4+import { Workspace } from "../shared/shell/workspace.tsx";5+6+const CONTACT = `support@${Brand.domain}`;7+8+const UPDATED = "October 2026";9+10+const CROSS_LINK =11+ "decoration-rule hover:decoration-foreground underline underline-offset-4";12+13+const Section = ({14+ id,15+ title,16+ children,17+}: {18+ readonly id: string;19+ readonly title: string;20+ readonly children: React.ReactNode;21+}) => (22+ <section className="mb-8" id={id}>23+ <h2 className="text-title mb-3 font-semibold" id={`heading-${id}`}>24+ {title}25+ </h2>26+ <div className="text-ui flex flex-col gap-3">{children}</div>27+ </section>28+);29+30+export const PrivacyView = () => (31+ <Workspace crumbs={[{ label: "Privacy policy" }]} title="Privacy policy">32+ <p className="text-ui text-muted-foreground">33+ Effective {UPDATED} · See also the{" "}34+ <AppLink className={CROSS_LINK} to="/terms">35+ terms of service36+ </AppLink>37+ .38+ </p>39+40+ <p className="text-ui">41+ This page describes what {Brand.name} (“we”, “the42+ service”) collects when you use the site and its tools, and what43+ happens to it. Questions go to {CONTACT}.44+ </p>45+46+ <Section id="what-we-collect" title="What we collect">47+ <ul className="flex list-disc flex-col gap-1.5 pl-4">48+ <li>49+ <strong>Account details.</strong> When you sign in, we keep your email50+ address and the display name attached to the account you sign in with.51+ </li>52+ <li>53+ <strong>Google account data.</strong> If you sign in with Google, we54+ receive your Google account's name and email address. We receive55+ no other Google data: no Gmail, Drive, contacts, or calendar access,56+ and we never sell your Google account data.57+ </li>58+ <li>59+ <strong>Content you push.</strong> The git repositories you create or60+ import, including commits, configuration, and any other files they61+ contain.62+ </li>63+ <li>64+ <strong>Usage records.</strong> Logs of requests to the service,65+ including pushes and reads, for security and for running the platform.66+ </li>67+ </ul>68+ </Section>69+70+ <Section id="how-we-use-it" title="How we use it">71+ <ul className="flex list-disc flex-col gap-1.5 pl-4">72+ <li>To create and maintain your account, and to reach you about it.</li>73+ <li>To host, serve, and check the repositories you push.</li>74+ <li>To keep the service secure and to prevent abuse.</li>75+ </ul>76+ <p>77+ We do not sell your data. We do not use it for advertising. We do not78+ share it with third parties except where it is needed to run the service79+ (for example, our hosting provider) or where the law requires it.80+ </p>81+ </Section>82+83+ <Section id="retention" title="Retention and deletion">84+ <p>85+ Your account data is kept for as long as your account exists. If you86+ want your account and its data deleted, write to {CONTACT} and we will87+ delete it. Content you have pushed to a public project is served to88+ other users of the service; deleting your account removes your89+ authorship records, and project maintainers decide what happens to the90+ content itself.91+ </p>92+ </Section>93+94+ <Section id="security" title="Security">95+ <p>96+ We never store a password itself, only a peppered PBKDF2 hash of it, and97+ pushes and other writes require a signed-in session. We limit who and98+ what can read the non-public parts of the service, and we log reads of99+ those parts.100+ </p>101+ </Section>102+103+ <Section id="changes" title="Changes">104+ <p>105+ We may update this policy as the service changes. The date at the top106+ says when it was last revised.107+ </p>108+ </Section>109+ </Workspace>110+);111+112+export const TermsView = () => (113+ <Workspace crumbs={[{ label: "Terms of service" }]} title="Terms of service">114+ <p className="text-ui text-muted-foreground">115+ Effective {UPDATED} · See also the{" "}116+ <AppLink className={CROSS_LINK} to="/privacy">117+ privacy policy118+ </AppLink>119+ .120+ </p>121+122+ <p className="text-ui">123+ These terms govern your use of {Brand.name} (“we”, “the124+ service”). By using it you agree to them. Questions go to {CONTACT}.125+ </p>126+127+ <Section id="your-content" title="Your content">128+ <p>129+ You keep ownership of everything you push. You give us the licence we130+ need to run the service: to store your content, serve it to people who131+ visit the project, and copy it within our infrastructure for backups and132+ for running checks. You are responsible for what you push and for having133+ the right to push it.134+ </p>135+ </Section>136+137+ <Section id="acceptable-use" title="Acceptable use">138+ <p>139+ Do not use the service to break the law, to attack other people or other140+ systems, or to push content you have no right to share. We may suspend141+ or remove accounts that do.142+ </p>143+ </Section>144+145+ <Section id="platform-decisions" title="How changes land">146+ <p>147+ The service hosts git repositories and applies automated checks to148+ pushes. Checks can refuse a push. We do not promise that any given push149+ will land, and we may change what the checks require.150+ </p>151+ </Section>152+153+ <Section id="availability" title="Availability">154+ <p>155+ The service is provided as is, with no promise that it will be available156+ or free of errors. To the extent the law allows, we are not liable for157+ losses that come from using the service.158+ </p>159+ </Section>160+161+ <Section id="termination" title="Termination">162+ <p>163+ You may stop using the service at any time. We may suspend or close an164+ account for breach of these terms, with notice where practical.165+ </p>166+ </Section>167+168+ <Section id="changes" title="Changes">169+ <p>170+ We may update these terms as the service changes. The date at the top171+ says when they were last revised.172+ </p>173+ </Section>174+ </Workspace>175+);added:apps/web/src/routes/privacy.tsx+16 added
12345678910111213141516import { Brand } from "@repo/brand";import { createFileRoute } from "@tanstack/react-router";
import { PrivacyView } from "../features/legal/legal-pages.tsx";import { pageHead } from "../features/shared/head.ts";import { branchPage } from "../server/cache-headers.ts";
export const Route = createFileRoute("/privacy")({ component: PrivacyView, headers: () => branchPage, head: () => pageHead({ description: `What ${Brand.name} collects, how it uses it, and how to have your account data deleted.`, title: "Privacy policy", }),});added:apps/web/src/routes/terms.tsx+16 added
12345678910111213141516import { Brand } from "@repo/brand";import { createFileRoute } from "@tanstack/react-router";
import { TermsView } from "../features/legal/legal-pages.tsx";import { pageHead } from "../features/shared/head.ts";import { branchPage } from "../server/cache-headers.ts";
export const Route = createFileRoute("/terms")({ component: TermsView, headers: () => branchPage, head: () => pageHead({ description: `The terms that govern use of ${Brand.name}.`, title: "Terms of service", }),});modified:apps/web/test/routes.test.ts+2 added
46 unmodified lines4748495051525354555657585912 unmodified lines46 unmodified lines "install.sh", "llms-full.txt", "llms.txt", "people", "privacy", "releases", "robots.txt", "rpc", "terms", "today", ]); });
12 unmodified linesmodified:packages/protocol/src/ids.ts+2 added
188 unmodified lines189 "home",190 "icons",191 "import",192 "people",193+ "privacy",194 "releases",195 "rpc",196+ "terms",197 "today",198 ] as const;199 200 const isReservedOwner = (owner: string) =>275 unmodified lines