Skip to content
Myr

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

5 files+211 added−0 removed

added:apps/web/src/features/legal/legal-pages.tsx+175 added
1import { Brand } from "@repo/brand";23import { AppLink } from "../shared/link.tsx";4import { Workspace } from "../shared/shell/workspace.tsx";56const CONTACT = `support@${Brand.domain}`;78const UPDATED = "October 2026";910const CROSS_LINK =11 "decoration-rule hover:decoration-foreground underline underline-offset-4";1213const 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);2930export 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>3940 <p className="text-ui">41 This page describes what {Brand.name} (&ldquo;we&rdquo;, &ldquo;the42 service&rdquo;) collects when you use the site and its tools, and what43 happens to it. Questions go to {CONTACT}.44 </p>4546 <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&apos;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>6970 <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>8283 <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>9394 <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>102103 <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);111112export 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>121122 <p className="text-ui">123 These terms govern your use of {Brand.name} (&ldquo;we&rdquo;, &ldquo;the124 service&rdquo;). By using it you agree to them. Questions go to {CONTACT}.125 </p>126127 <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>136137 <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>144145 <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>152153 <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>160161 <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>167168 <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
added:apps/web/src/routes/terms.tsx+16 added
modified:apps/web/test/routes.test.ts+2 added
modified:packages/protocol/src/ids.ts+2 added
188 unmodified lines
189 "home",190 "icons",191 "import",192 "people",193 "privacy",194 "releases",195 "rpc",196 "terms",197 "today",198] as const;199200const isReservedOwner = (owner: string) =>
275 unmodified lines