Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh

Commit

The policies say they are drafts: the policies index and every policy page open with a note that they are still being written and may change before g1t's general launch, with the address for questions. One flag in legal.ts, POLICIES_DRAFT, takes the note down everywhere.

syntaqxcommitted Parent2a8c657Browse files
4 files+30−00/4 viewed
+19−0
1+import { CONTACT, POLICIES_DRAFT } from "../lib/legal";
2+import { Alert, AlertDescription, AlertTitle } from "./ui/alert";
3+
4+/** The note at the top of the policies while they are drafts (`POLICIES_DRAFT`). */
5+export function PoliciesDraft() {
6+ if (!POLICIES_DRAFT) return null;
7+ return (
8+ <Alert tone="warn" className="mb-8 max-w-3xl">
9+ <AlertTitle>Draft</AlertTitle>
10+ <AlertDescription>
11+ These policies are still being written and may change before g1t's general launch. Questions:{" "}
12+ <a className="text-accent hover:underline" href={`mailto:${CONTACT.legal}`}>
13+ {CONTACT.legal}
14+ </a>
15+ .
16+ </AlertDescription>
17+ </Alert>
18+ );
19+}
+7−0
8989 },
9090 ];
9191
92+/**
93+ * The policies are drafts until g1t's general launch: while this is true,
94+ * the policies index and every policy page say so at the top
95+ * (components/policies-draft.tsx). Set it to false to take the note down.
96+ */
97+export const POLICIES_DRAFT = true;
98+
9299 /** When any policy last changed, `YYYY-MM-DD`. */
93100 export const POLICIES_UPDATED = "2026-10-09";
94101
+2−0
22 import { Link } from "react-router";
33
44 import type { Route } from "./+types/policies";
5+import { PoliciesDraft } from "../components/policies-draft";
56 import { TrustPage } from "../components/trust-page";
67 import { CONTACT, POLICIES, POLICIES_UPDATED, POLICY_HISTORY, longDate } from "../lib/legal";
78 import { page } from "../lib/meta";
2728 </p>
2829 }
2930 >
31+ <PoliciesDraft />
3032 <ul className="grid gap-3 sm:grid-cols-2">
3133 {POLICIES.map((policy) => (
3234 <li key={policy.slug}>
+2−0
11 import { data, Link } from "react-router";
22
33 import type { Route } from "./+types/policy";
4+import { PoliciesDraft } from "../components/policies-draft";
45 import { Contents, PolicyText, TrustPage, outline } from "../components/legal-doc";
56 import { POLICIES, POLICIES_UPDATED, longDate } from "../lib/legal";
67 import { page } from "../lib/meta";
4748 lede={<p className="text-sm">Last updated {longDate(POLICIES_UPDATED)}.</p>}
4849 aside={<Contents items={outline(source)} />}
4950 >
51+ <PoliciesDraft />
5052 <PolicyText source={source} />
5153 <nav aria-label="Other policies" className="mt-14 max-w-3xl border-t border-line pt-6">
5254 <p className="text-sm font-medium">Other policies</p>