Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Merge branch 'worktree-agent-a4babc5b5815f6f3a' | 1 | import { Activity, BarChart3, Building2, MessagesSquare, Bell, BookMarked, BookOpen, Bookmark, Blocks, Box, Check, ChevronDown, ChevronLeft, ChevronRight, CircleDot, GripVertical, CircleUserRound, Code2, Compass, CreditCard, Fingerprint, Gauge, GitBranch, GitPullRequest, Globe, History, Keyboard, KeyRound, Layers, LayoutDashboard, LayoutGrid, LifeBuoy, Lock, LogOut, Mail, MonitorCog, MonitorDown, Package, PlayCircle, Plug, Plus, Rocket, Search, ServerCog, Settings, Shapes, Shield, ShieldCheck, Scale, Smile, Sparkles, Star, House, Ticket, TrendingUp, UserPlus, UserRoundKey, Users, UsersRound, Webhook, X } from "lucide-react"; |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 2 | import { Fragment, type ReactNode, useCallback, useEffect, useMemo, useRef, useState } from "react"; |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 3 | import { Link, useFetcher, useLocation, useNavigation, useRouteLoaderData, useSubmit } from "react-router"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 4 | |
| Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them. | 5 | import { type Abilities, type ChatSidebarEntry, type InboxCounts, type Membership, type Spike, type User, hasCodeAccess, mayCreateTeams, shownUsername } from "@g1t/contracts"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 6 | |
| Not found and error pages have one main landmark: their own when signed out, the shell's when signed in | 7 | import { InMain } from "./landmark"; |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 8 | import { CommandPalette, type PaletteCommand, PaletteKey, usePaletteShortcut } from "./command-palette"; |
| Every page loads again: the top bar's Ask loads its panel the first time it is wanted instead of with every page. The shell imported the whole answer stack (AI Elements, Streamdown and its highlighter, the chat helpers) for the Ask panel, and the bundler's shared groups put the chat chunk and the shell's chunk each importing the other; a page that loaded the chat chunk first ran the shell's module before the chat chunk had finished, and its repository tabs read an array still undefined (`Cannot read properties of undefined (reading 'flatMap')`). components/ask-button.tsx is the button alone, in the shell; the panel (components/ask-composer.tsx, now AskSheet) is a lazy chunk, fetched when the pointer comes near the button or it takes focus, shown with a skeleton until it arrives, and kept mounted once loaded so the conversation stays while it is closed. A question asked from the panel also says the browser's time zone. Checked: a production build of the site has no import cycle between those two chunks any more (scripted over the built chunks), the site's typecheck and its 888 tests. | 9 | import { AskButton } from "./ask-button"; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 10 | import { NotificationsBell } from "./inbox"; |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 11 | import { desktopBridge, useDesktopApp, useTitleBarSearch } from "../lib/notify-client"; |
| Previews build from any branch; Agent in place of Ask AI; pin from the sidebar | 12 | import { PinButton } from "./pin-button"; |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 13 | import { Hint } from "./ui/hint"; |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 14 | import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./ui/collapsible"; |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 15 | import { |
| 16 | Sidebar, | |
| 17 | SidebarGroup, | |
| 18 | SidebarGroupAction, | |
| 19 | SidebarGroupContent, | |
| 20 | SidebarGroupLabel, | |
| 21 | SidebarHeader, | |
| 22 | SidebarMenu, | |
| 23 | SidebarMenuBadge, | |
| 24 | SidebarMenuButton, | |
| 25 | SidebarMenuItem, | |
| 26 | SidebarMobile, | |
| 27 | SidebarProvider, | |
| 28 | SidebarSeparator, | |
| 29 | SidebarTrigger, | |
| 30 | } from "./ui/sidebar"; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 31 | import { StatusDot, useSiteStatus } from "./footer"; |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 32 | import { Logo } from "./logo"; |
| The site is built from its shared components: one Button with its variants and sizes, one Badge, Card for every panel, Alert for notices, Kbd for keys, Table for the security tables, and Avatar, Command, Progress, ScrollArea, ToggleGroup, Collapsible and Accordion in the kit; raw buttons, hand-drawn cards and pills and per-file button class lists are gone, outline buttons stand the same height as filled ones, and the phone's Ask g1t loses its tile. Every page was compared pixel by pixel before and after. | 33 | import { SoonPill } from "./ui"; |
| 34 | import { Avatar } from "./ui/avatar"; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 35 | import { Skeleton } from "./ui/skeleton"; |
| Merge branch 'worktree-agent-a6da31375506fc440' | 36 | import { Badge } from "./ui/badge"; |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 37 | import { Button } from "./ui/button"; |
| 38 | import { Separator } from "./ui/separator"; | |
| 39 | import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./ui/breadcrumb"; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 40 | import { |
| 41 | DropdownMenu, | |
| 42 | DropdownMenuContent, | |
| 43 | DropdownMenuGroup, | |
| 44 | DropdownMenuItem, | |
| 45 | DropdownMenuLabel, | |
| 46 | DropdownMenuSeparator, | |
| 47 | DropdownMenuTrigger, | |
| 48 | } from "./ui/dropdown-menu"; | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 49 | import { type RoadmapItem, roadmapIn, roadmapItem } from "../lib/roadmap"; |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 50 | import { |
| 51 | type BrowsedOwner, | |
| 52 | type ModeKey, | |
| 53 | WORKSPACE_SETTINGS_GROUPS, | |
| 54 | type WorkspaceSettingsPage, | |
| 55 | browsingOf, | |
| 56 | homePagePath, | |
| 57 | modeOf, | |
| 58 | pagePath, | |
| 59 | workspaceSettingsPage, | |
| 60 | } from "../lib/workspace-nav"; | |
| Chat and workspace agents: channels, DMs and named agents you talk to | 61 | import { ChatSidebar } from "./chat/sidebar"; |
| Artifacts is a mode in the rail, the shell and the phone's tab bar in place of Docs: its home lists everything you can open by day or as cards under All, Yours and Shared with you, with search, filters and tiles to start a doc (slides, designs and dashboards say they are coming soon), and its sidebar holds favorites, spaces, Private, Shared, projects' docs and the trash. | 62 | import { FoliosSidebar } from "./folios/sidebar"; |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 63 | import { Rail, ShortcutsDialog, WorkspaceSwitcher, sidebarKeyLabel } from "./rail"; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 64 | import { BottomBar, isConversation, useVisualViewport } from "./mobile"; |
| Chat and workspace agents: channels, DMs and named agents you talk to | 65 | import { useChatSidebar } from "./chat/actions"; |
| 66 | import { unreadTotals } from "../lib/chat"; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 67 | import { SETTINGS_CAPABILITY, type ViewerAccess, seesSettings } from "../lib/access"; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 68 | import { projectPages } from "../lib/chrome"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 69 | import { ACCOUNT_SETTINGS, type AccountSettingsPage, FIRST_SETTINGS_PAGE, accountSettingsPage } from "../lib/account-settings"; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 70 | import { type PinnableApp, sidebarCookie } from "../lib/apps"; |
| 71 | import { REASON_FILTERS, inboxReason, inboxView } from "../lib/inbox"; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 72 | import { GithubMark } from "./github"; |
| 73 | import { STATUS_URL, statusTitle } from "../lib/status"; | |
| Merge branch 'worktree-agent-a6da31375506fc440' | 74 | import { G1T_INVITES, leftBadge } from "../lib/invites"; |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 75 | import { type ShortcutProject, movedPin, recentWith } from "../lib/pins"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 76 | import type { AccountMenuData } from "../routes/settings-menu-json"; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 77 | import { useLiveBadges } from "../lib/notify-client"; |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 78 | import { OwnPresenceDot, OwnPresenceItems, StatusDialog } from "./presence"; |
| You choose how g1t looks: Auto follows your system, Light and Dark stay put, set from the account menu, the phone's You and help sheet, Settings → Account or the command palette; the page is drawn in your choice from the first byte, every colour has a light value that reads at 4.5:1 or better, code and diffs are highlighted for both, diagrams and the document editor follow along, the product tour and the g1t mark's avatar stay dark, and Dark is what you see until you choose; the workspaces guide says how. | 79 | import { THEME_COMMANDS, ThemeMenuSwitch } from "./theme-switch"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 80 | |
| 81 | /** | |
| 82 | * What the sidebar needs, worked out by the root loader. For a visitor who | |
| 83 | * is not signed in there is no workspace, no projects and no usage: only | |
| 84 | * the project being looked at, if they can see it. | |
| 85 | */ | |
| 86 | export type ShellData = { | |
| 87 | /** The workspace the sidebar is about: the one being looked at, or their first. */ | |
| 88 | workspace: Membership | null; | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 89 | /** All its projects, by name, for the palette: `name` is the slug in their address. */ |
| 90 | repos: ShortcutProject[]; | |
| 91 | /** The person's pinned projects in it, in their order (lib/pins.ts). */ | |
| 92 | pinned?: ShortcutProject[]; | |
| 93 | /** What they opened there last, latest first, leaving out the pinned. */ | |
| 94 | recent?: ShortcutProject[]; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 95 | /** Repositories shared with them in workspaces they do not belong to. */ |
| 96 | shared?: { namespace: string; name: string; isPrivate: boolean }[]; | |
| 97 | /** The project being looked at, if any, whoever owns it. */ | |
| 98 | repo: { | |
| 99 | namespace: string; | |
| 100 | name: string; | |
| 101 | member: boolean; | |
| 102 | issues: number; | |
| 103 | pulls: number; | |
| 104 | } | null; | |
| 105 | /** Where the workspace stands against its usage limit, if billing is on. */ | |
| 106 | limit: { | |
| 107 | exposureMicros: number; | |
| 108 | ceilingMicros: number | null; | |
| 109 | state: "ok" | "warning" | "stopped"; | |
| 110 | comped: boolean; | |
| 111 | } | null; | |
| 112 | /** Whether g1t charges nothing for now, while it is being built out. */ | |
| 113 | free?: boolean; | |
| 114 | /** This month's usage: charged, or at cost while g1t is free. */ | |
| 115 | monthUsageMicros: number | null; | |
| 116 | /** Whether new compute is paused (a spend spike or a hold), and whether the viewer can answer it. */ | |
| 117 | compute?: { paused: string | null; spike: Spike | null; owner: boolean } | null; | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 118 | /** What is unread in their notifications, for the rail and the bell. Absent for a visitor. */ |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 119 | inbox?: InboxCounts | null; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 120 | /** |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 121 | * Chat, for the rail's badge: what is unread, and the |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 122 | * starred and latest conversations. Null when chat did not answer in time. |
| 123 | */ | |
| 124 | chat?: { unread: number; mentions: number; starred?: ChatSidebarEntry[]; recent?: ChatSidebarEntry[] } | null; | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 125 | /** The apps this person pinned to their rail in the workspace (lib/apps.ts). */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 126 | pins?: PinnableApp[]; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 127 | }; |
| 128 | ||
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 129 | /** Whether `pathname` is `to` or a page under it (`end`: only `to` itself), the query left aside. */ |
| 130 | function under(pathname: string, to: string, end = false): boolean { | |
| 131 | const path = to.split("?")[0]!; | |
| 132 | return pathname === path || (!end && pathname.startsWith(path.endsWith("/") ? path : `${path}/`)); | |
| 133 | } | |
| 134 | ||
| 135 | /** | |
| 136 | * Where a row is current and where it is on its way to. A row's page is | |
| 137 | * current under its own address and any `also` prefix, unless the list | |
| 138 | * says itself (`current`). Rows that differ by query alone (Notifications' | |
| 139 | * views and reasons) are pending only when the page on its way is that | |
| 140 | * row's, query and all. | |
| 141 | */ | |
| 142 | function useRowState(to: string, { end, also, current: lit }: { end?: boolean; also?: string | string[]; current?: boolean }) { | |
| 143 | const { pathname } = useLocation(); | |
| 144 | const going = useNavigation().location; | |
| 145 | const current = lit ?? (under(pathname, to, end) || [also ?? []].flat().some((prefix) => under(pathname, prefix))); | |
| 146 | const pending = | |
| 147 | going != null && !current && (lit === undefined ? under(going.pathname, to, end) : `${going.pathname}${going.search}` === to); | |
| 148 | return { current, pending }; | |
| 149 | } | |
| 150 | ||
| 151 | /** | |
| 152 | * One row of a mode's sidebar: an icon, its words, how many it lists | |
| 153 | * (`count`) and, for a row that opens a list of its own (`drill`), a | |
| 154 | * chevron, always or on hover. | |
| 155 | */ | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 156 | function SidebarLink({ |
| 157 | to, | |
| 158 | icon, | |
| 159 | end, | |
| 160 | count, | |
| 161 | also, | |
| 162 | drill, | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 163 | current: lit, |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 164 | action, |
| 165 | bare = false, | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 166 | children, |
| 167 | }: { | |
| 168 | to: string; | |
| 169 | icon: ReactNode; | |
| 170 | end?: boolean; | |
| 171 | count?: number; | |
| 172 | /** Other path prefixes under which this link is the current one. */ | |
| 173 | also?: string | string[]; | |
| 174 | /** It opens a list of its own: a chevron says so, always or on hover. */ | |
| 175 | drill?: boolean | "hover"; | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 176 | /** Whether it is the current row, when the list works that out itself. */ |
| 177 | current?: boolean; | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 178 | /** A small button at the row's end, beside the words (a pin). */ |
| 179 | action?: ReactNode; | |
| 180 | /** The row alone, for a list item that is drawn by the list (a pinned project, which drags). */ | |
| 181 | bare?: boolean; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 182 | children: ReactNode; |
| 183 | }) { | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 184 | const { current, pending } = useRowState(to, { end, also, current: lit }); |
| 185 | const Item = bare ? Fragment : SidebarMenuItem; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 186 | return ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 187 | <Item> |
| 188 | <SidebarMenuButton asChild isActive={current} isPending={pending} className={action ? "pr-7" : undefined}> | |
| 189 | <Link to={to} prefetch="intent" aria-current={current ? "page" : undefined}> | |
| 190 | {icon} | |
| 191 | <span className="min-w-0 grow truncate">{children}</span> | |
| 192 | {count != null && count > 0 && <SidebarMenuBadge>{count}</SidebarMenuBadge>} | |
| 193 | {drill && ( | |
| 194 | <ChevronRight | |
| 195 | aria-hidden="true" | |
| 196 | className={`-mr-0.5 size-3.5! shrink-0 text-faint transition-opacity ${drill === "hover" ? "opacity-0 group-hover/menu-button:opacity-100 group-focus-visible/menu-button:opacity-100" : ""}`} | |
| 197 | /> | |
| 198 | )} | |
| 199 | </Link> | |
| 200 | </SidebarMenuButton> | |
| 201 | {action} | |
| 202 | </Item> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 203 | ); |
| 204 | } | |
| 205 | ||
| 206 | /** | |
| 207 | * A page that is coming, as a link to its roadmap page: faint, with Soon, | |
| 208 | * and marked current on any of its section's Soon pages. | |
| 209 | */ | |
| 210 | function SidebarSoonLink({ | |
| 211 | to, | |
| 212 | also, | |
| 213 | icon, | |
| 214 | about, | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 215 | current: lit, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 216 | children, |
| 217 | }: { | |
| 218 | to: string; | |
| 219 | also?: string[]; | |
| 220 | icon: ReactNode; | |
| 221 | about: string; | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 222 | /** Whether it is the current row, when the list works that out itself. */ |
| 223 | current?: boolean; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 224 | children: ReactNode; |
| 225 | }) { | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 226 | const { current, pending } = useRowState(to, { also, current: lit }); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 227 | return ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 228 | <SidebarMenuItem> |
| 229 | <Hint label={about} side="right"> | |
| 230 | <SidebarMenuButton asChild variant="faint" isActive={current} isPending={pending}> | |
| 231 | <Link to={to} prefetch="intent" aria-current={current ? "page" : undefined}> | |
| 232 | {icon} | |
| 233 | <span className="min-w-0 grow truncate">{children}</span> | |
| 234 | <SoonPill /> | |
| 235 | </Link> | |
| 236 | </SidebarMenuButton> | |
| 237 | </Hint> | |
| 238 | </SidebarMenuItem> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 239 | ); |
| 240 | } | |
| 241 | ||
| 242 | /** The Soon pages of a section, as paths, so its link is current on them. */ | |
| 243 | function soonPaths(base: string, section: RoadmapItem["section"]): string[] { | |
| 244 | return roadmapIn(section).map((item) => `${base}/soon/${item.key}`); | |
| 245 | } | |
| 246 | ||
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 247 | /** A titled group of rows: its name in small capitals, what it makes at the end, and its menu. */ |
| 248 | function NavGroup({ | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 249 | title, |
| 250 | action, | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 251 | className, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 252 | children, |
| 253 | }: { | |
| 254 | title: string; | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 255 | /** A small button at the label's end, in its row: what the group makes (a `SidebarGroupAction` with `relative top-auto right-auto`). */ |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 256 | action?: ReactNode; |
| 257 | className?: string; | |
| 258 | children: ReactNode; | |
| 259 | }) { | |
| 260 | return ( | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 261 | <SidebarGroup className={className}> |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 262 | <div className="flex items-center justify-between gap-2 pr-1"> |
| 263 | <SidebarGroupLabel asChild> | |
| 264 | <h2>{title}</h2> | |
| 265 | </SidebarGroupLabel> | |
| 266 | {action} | |
| 267 | </div> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 268 | <SidebarGroupContent> |
| 269 | <SidebarMenu>{children}</SidebarMenu> | |
| 270 | </SidebarGroupContent> | |
| 271 | </SidebarGroup> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 272 | ); |
| 273 | } | |
| 274 | ||
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 275 | /** Rows with no name over them: the first of a list, or a run between rules. */ |
| 276 | function NavRows({ className, children }: { className?: string; children: ReactNode }) { | |
| 277 | return ( | |
| 278 | <SidebarGroup className={className}> | |
| 279 | <SidebarGroupContent> | |
| 280 | <SidebarMenu>{children}</SidebarMenu> | |
| 281 | </SidebarGroupContent> | |
| 282 | </SidebarGroup> | |
| 283 | ); | |
| 284 | } | |
| 285 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 286 | /** What a workspace is called where people read it: its display name, else its slug. */ |
| 287 | function displayName(membership: Membership): string { | |
| 288 | return membership.name?.trim() || membership.slug; | |
| 289 | } | |
| 290 | ||
| 291 | /** | |
| 292 | * The fine print, as one quiet row at the foot of the account menu and the | |
| 293 | * visitor's panel: each link a full-height target, left-aligned. In the | |
| 294 | * menu each is a menu item, so the arrow keys reach it. | |
| 295 | */ | |
| 296 | const LEGAL_LINKS: [string, string][] = [ | |
| 297 | ["Policies", "/policies"], | |
| 298 | ["Privacy", "/policies/privacy"], | |
| 299 | ["Security", "/security"], | |
| 300 | ]; | |
| 301 | const LEGAL_LINK = "flex h-7 items-center rounded px-1.5 text-xs text-faint outline-none transition-colors"; | |
| 302 | ||
| 303 | function MenuLegalRow() { | |
| 304 | return ( | |
| 305 | <div role="group" aria-label="Legal" className="flex items-center gap-0.5 px-0.5 pt-0.5"> | |
| 306 | {LEGAL_LINKS.map(([label, to], index) => ( | |
| 307 | <span key={to} className="flex items-center gap-0.5"> | |
| 308 | {index > 0 && ( | |
| 309 | <span aria-hidden="true" className="text-[0.625rem] text-line-strong"> | |
| 310 | · | |
| 311 | </span> | |
| 312 | )} | |
| 313 | <DropdownMenuItem asChild className={`${LEGAL_LINK} py-0 data-highlighted:bg-line data-highlighted:text-fg`}> | |
| 314 | <Link to={to}>{label}</Link> | |
| 315 | </DropdownMenuItem> | |
| 316 | </span> | |
| 317 | ))} | |
| 318 | </div> | |
| 319 | ); | |
| 320 | } | |
| 321 | ||
| 322 | /** Status's row: the live dot and two or three words, fetched when the menu opens. */ | |
| 323 | function StatusSummary({ open }: { open: boolean }) { | |
| 324 | const status = useSiteStatus(open); | |
| 325 | const words = statusTitle(status); | |
| 326 | return ( | |
| 327 | <span className="ml-auto flex min-w-0 items-center gap-1.5 pl-2 text-xs text-faint"> | |
| 328 | {/* The words say it; the dot's own words for screen readers would repeat them. */} | |
| 329 | <span aria-hidden="true" className="flex"> | |
| 330 | <StatusDot state={status?.overall.state ?? null} /> | |
| 331 | </span> | |
| 332 | {words ? <span className="truncate">{words}</span> : <Skeleton className="h-3 w-20" />} | |
| 333 | </span> | |
| 334 | ); | |
| 335 | } | |
| 336 | ||
| 337 | /** A menu row: an icon, words, and whatever sits at its end. */ | |
| 338 | const MENU_ROW = "h-9 gap-2.5 px-2.5 text-[0.8125rem]"; | |
| 339 | ||
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 340 | /** |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 341 | * Your account, at the foot of the rail (or in the header, before you have |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 342 | * a workspace): who you are and your status, your profile and settings, |
| 343 | * and help: the documentation, support, status and the keyboard's | |
| 344 | * shortcuts; then signing out and the fine print. | |
| 345 | */ | |
| 346 | function AccountMenu({ user, side = "right" }: { user: User; side?: "right" | "bottom" }) { | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 347 | const submit = useSubmit(); |
| 348 | const [open, setOpen] = useState(false); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 349 | const [keys, setKeys] = useState(false); |
| preparing for cloud work | 350 | // Inside the desktop app there is nothing to get. |
| 351 | const inApp = useDesktopApp(); | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 352 | // Your status's dialog: outside the menu, so the menu closes behind it. |
| 353 | const [editing, setEditing] = useState(false); | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 354 | // Name, primary address and invites left: asked for once, as soon as the |
| 355 | // pointer or focus reaches the button, so they are there when it opens. | |
| 356 | const details = useFetcher<AccountMenuData | null>({ key: "account-menu" }); | |
| 357 | const prefetch = () => { | |
| 358 | if (details.state === "idle" && details.data === undefined) details.load("/settings/menu.json"); | |
| 359 | }; | |
| 360 | useEffect(() => { | |
| 361 | if (open) prefetch(); | |
| 362 | // eslint-disable-next-line react-hooks/exhaustive-deps | |
| 363 | }, [open]); | |
| 364 | const me = details.data ?? null; | |
| 365 | // Still on its way: shapes where the words will be, the same size. | |
| 366 | const loading = details.data === undefined && details.state !== "idle"; | |
| 367 | const profile = `/u/${user.username}`; | |
| 368 | return ( | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 369 | <> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 370 | <DropdownMenu open={open} onOpenChange={setOpen}> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 371 | {/* The avatar alone, with a dot that says how others see you (components/presence.tsx). */} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 372 | <Hint label={side === "right" ? "Your account" : undefined} side="right"> |
| 373 | <DropdownMenuTrigger | |
| 374 | aria-label={`Account menu for ${shownUsername(user)}`} | |
| 375 | onPointerEnter={prefetch} | |
| 376 | onFocus={prefetch} | |
| 377 | className={ | |
| 378 | side === "right" | |
| 379 | ? // At the foot of the rail: a 40px rounded square, as the rail's icons are. | |
| 380 | "relative flex size-10 items-center justify-center rounded-[10px] outline-none transition-colors hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:bg-sidebar-accent" | |
| 381 | : "relative flex rounded-full outline-none transition-transform hover:scale-[1.04] focus-visible:ring-2 focus-visible:ring-accent data-[state=open]:ring-2 data-[state=open]:ring-line-strong" | |
| 382 | } | |
| 383 | > | |
| 384 | <Avatar name={user.username} image={user.avatar} size={side === "right" ? 40 : 28} square={side === "right"} /> | |
| 385 | <OwnPresenceDot ring={side === "right" ? "var(--color-rail)" : "var(--color-bg)"} className={side === "right" ? "absolute -right-1 -bottom-1" : "absolute -right-0.5 -bottom-0.5"} /> | |
| 386 | </DropdownMenuTrigger> | |
| 387 | </Hint> | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 388 | <DropdownMenuContent align="end" side={side} sideOffset={side === "right" ? 14 : 6} collisionPadding={8} className="w-70 p-1.5"> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 389 | {/* Who is signed in, and a way to their profile. */} |
| 390 | <DropdownMenuItem asChild className="gap-3 px-2 py-2"> | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 391 | <Link to={profile} aria-label={`${me?.name ?? shownUsername(user)} (@${shownUsername(user)}), your profile`}> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 392 | <Avatar name={user.username} image={user.avatar} size={36} /> |
| 393 | <span className="flex min-w-0 grow flex-col leading-tight" aria-busy={loading}> | |
| 394 | {loading ? ( | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 395 | <Skeleton className="my-0.75 h-3.5 w-28" /> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 396 | ) : ( |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 397 | <span className="truncate text-sm font-medium text-fg">{me?.name ?? shownUsername(user)}</span> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 398 | )} |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 399 | <span className="truncate font-mono text-xs text-muted">@{shownUsername(user)}</span> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 400 | {loading ? ( |
| 401 | <Skeleton className="mt-1 h-3 w-40" /> | |
| 402 | ) : ( | |
| 403 | me?.email && <span className="mt-0.5 truncate text-xs text-faint">{me.email}</span> | |
| 404 | )} | |
| 405 | </span> | |
| 406 | </Link> | |
| 407 | </DropdownMenuItem> | |
| 408 | <DropdownMenuSeparator className="my-1.5" /> | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 409 | {/* Your status, away, and pausing notifications. */} |
| 410 | <DropdownMenuGroup> | |
| 411 | <OwnPresenceItems className="min-h-9 py-1.5 text-[0.8125rem]" onEdit={() => setEditing(true)} /> | |
| 412 | </DropdownMenuGroup> | |
| 413 | <DropdownMenuSeparator className="my-1.5" /> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 414 | <DropdownMenuGroup> |
| 415 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 416 | <Link to={profile}> | |
| 417 | <CircleUserRound /> | |
| 418 | Your profile | |
| 419 | </Link> | |
| 420 | </DropdownMenuItem> | |
| 421 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 422 | <Link to={FIRST_SETTINGS_PAGE}> | |
| 423 | <Settings /> | |
| 424 | Your settings | |
| 425 | </Link> | |
| 426 | </DropdownMenuItem> | |
| Merge branch 'worktree-agent-a6da31375506fc440' | 427 | {/* Invite a friend to g1t: word of mouth, never needed to sign up (routes/settings/invites.tsx). */} |
| 428 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 429 | <Link to="/settings/invites?new"> | |
| 430 | <UserPlus /> | |
| 431 | {G1T_INVITES.action} | |
| 432 | {loading && <Skeleton className="ml-auto h-4 w-12 rounded-full" />} | |
| 433 | {leftBadge(me?.invites_left) && ( | |
| 434 | <Badge size="sm" className="ml-auto tabular-nums"> | |
| 435 | {leftBadge(me?.invites_left)} | |
| 436 | </Badge> | |
| 437 | )} | |
| 438 | </Link> | |
| 439 | </DropdownMenuItem> | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 440 | {/* The app's own: starting with the computer, closing to the tray, the badge (apps/desktop). */} |
| 441 | {inApp && desktopBridge()?.openSettings && ( | |
| 442 | <DropdownMenuItem className={MENU_ROW} onSelect={() => desktopBridge()?.openSettings?.()}> | |
| 443 | <MonitorCog /> | |
| 444 | Desktop app settings | |
| 445 | </DropdownMenuItem> | |
| Merge two kinds of invite, kept apart: an invite to g1t (Settings, invite-only only, no workspace unless asked) and an invitation to a workspace (its People page) | 446 | )} |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 447 | </DropdownMenuGroup> |
| 448 | <DropdownMenuSeparator className="my-1.5" /> | |
| You choose how g1t looks: Auto follows your system, Light and Dark stay put, set from the account menu, the phone's You and help sheet, Settings → Account or the command palette; the page is drawn in your choice from the first byte, every colour has a light value that reads at 4.5:1 or better, code and diffs are highlighted for both, diagrams and the document editor follow along, the product tour and the g1t mark's avatar stay dark, and Dark is what you see until you choose; the workspaces guide says how. | 449 | {/* Auto, Light or Dark, switched in place (lib/theme.ts). */} |
| 450 | <ThemeMenuSwitch /> | |
| 451 | <DropdownMenuSeparator className="my-1.5" /> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 452 | <DropdownMenuGroup> |
| 453 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 454 | <a href="https://docs.g1t.sh/"> | |
| 455 | <BookOpen /> | |
| 456 | Documentation | |
| 457 | </a> | |
| 458 | </DropdownMenuItem> | |
| 459 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 460 | <Link to="/support"> | |
| 461 | <LifeBuoy /> | |
| 462 | Support | |
| 463 | </Link> | |
| 464 | </DropdownMenuItem> | |
| 465 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 466 | <a href={STATUS_URL}> | |
| 467 | <Activity /> | |
| 468 | Status | |
| 469 | <StatusSummary open={open} /> | |
| 470 | </a> | |
| 471 | </DropdownMenuItem> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 472 | <DropdownMenuItem className={MENU_ROW} onSelect={() => setKeys(true)}> |
| 473 | <Keyboard /> | |
| 474 | Keyboard shortcuts | |
| 475 | <PaletteKey className="ml-auto font-sans text-xs text-faint" /> | |
| 476 | </DropdownMenuItem> | |
| preparing for cloud work | 477 | {!inApp && ( |
| 478 | <DropdownMenuItem asChild className={MENU_ROW}> | |
| 479 | <Link to="/download"> | |
| 480 | <MonitorDown /> | |
| 481 | Get the desktop app | |
| 482 | </Link> | |
| 483 | </DropdownMenuItem> | |
| 484 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 485 | </DropdownMenuGroup> |
| 486 | <DropdownMenuSeparator className="my-1.5" /> | |
| 487 | {/* Submitted from here: the menu closes on select, and a button | |
| 488 | that has left the page cannot submit a form. */} | |
| 489 | <DropdownMenuItem className={MENU_ROW} onSelect={() => submit(null, { method: "post", action: "/logout" })}> | |
| 490 | <LogOut /> | |
| 491 | Sign out | |
| 492 | </DropdownMenuItem> | |
| 493 | <DropdownMenuSeparator className="my-1.5" /> | |
| 494 | <MenuLegalRow /> | |
| 495 | </DropdownMenuContent> | |
| 496 | </DropdownMenu> | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 497 | <StatusDialog open={editing} onOpenChange={setEditing} /> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 498 | <ShortcutsDialog open={keys} onOpenChange={setKeys} /> |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 499 | </> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 500 | ); |
| 501 | } | |
| 502 | ||
| 503 | /** A project's settings pages, which the project's menu drills into. */ | |
| 504 | const REPO_SETTINGS_PAGE = /^\/([^/]+)\/([^/-][^/]*)\/settings(\/|$)/; | |
| 505 | ||
| 506 | /** | |
| 507 | * The sidebar's lists are a stack, the way a phone pushes a screen: one | |
| 508 | * drilled into slides in from the right over the full width, while the one | |
| 509 | * it covers drifts a quarter of the way left and fades, both on one long | |
| 510 | * ease-out, the fade quicker than the move so the two never blur together. | |
| 511 | * Going back reverses it. | |
| 512 | */ | |
| 513 | const LAYER = | |
| 514 | "absolute inset-0 [transition:translate_380ms_cubic-bezier(0.32,0.72,0,1),opacity_220ms_ease-out] will-change-[translate,opacity] motion-reduce:transition-none"; | |
| 515 | /** One list, filling its layer. */ | |
| People wear their own avatars wherever g1t knows them only by name, and a workspace is never shown as a person. The activity feeds, recent changes, home's most active faces, issue and pull request authors, assignees, comments and the audit log drew a person from their username alone, so everyone got their letter avatar instead of the picture they uploaded. An avatar given no picture now draws the letter at once and lays the person's own picture over it once it loads, from /-/avatar/user/<username> (routes/avatar-user.ts): a redirect to the picture on the usercontent origin, or not found, read from identity's people only, so a workspace's icon can never stand in for someone. Kept five minutes, public like the profile. Agents, the product tour's people, "someone" and workspaces' square avatars are never looked up (image null), so an account with the same name never lends them its face. | 516 | const PANEL = "h-full overflow-y-auto px-1 pt-1 pb-4 scrollbar-thin"; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 517 | |
| 518 | /** One list in the stack: what it is, and its rows. */ | |
| 519 | type Level = { key: string; node: ReactNode }; | |
| 520 | ||
| 521 | /** True once the page has hydrated, so what the server drew never animates in. */ | |
| 522 | function useHydrated(): boolean { | |
| 523 | const [hydrated, setHydrated] = useState(false); | |
| 524 | useEffect(() => setHydrated(true), []); | |
| 525 | return hydrated; | |
| 526 | } | |
| 527 | ||
| 528 | /** | |
| 529 | * Drilling in and out of the sidebar's lists. `trail` is the way from the | |
| 530 | * main list to the one shown, worked out from the address, so a link | |
| 531 | * straight to a settings page opens the sidebar already drilled in, and | |
| 532 | * leaving it comes back out. Lists deeper than the one shown stay in | |
| 533 | * place, off to the right, so going back slides them away rather than | |
| 534 | * dropping them. Moving to a list at the same depth (a workspace's settings | |
| 535 | * to a project) fades the new one in where it is. | |
| 536 | */ | |
| 537 | function Drill({ trail }: { trail: Level[] }) { | |
| 538 | const depth = trail.length - 1; | |
| 539 | const hydrated = useHydrated(); | |
| 540 | const stack = useRef<Level[]>(trail); | |
| 541 | const before = stack.current; | |
| 542 | const within = trail.every((level, index) => before[index]?.key === level.key); | |
| 543 | stack.current = within ? [...trail, ...before.slice(trail.length)] : trail; | |
| 544 | const levels = stack.current; | |
| 545 | // What was showing last time, to tell drilling in from moving across. | |
| 546 | const shown = useRef({ depth, keys: levels.map((level) => level.key) }); | |
| 547 | useEffect(() => { | |
| 548 | shown.current = { depth, keys: levels.map((level) => level.key) }; | |
| 549 | }); | |
| 550 | return ( | |
| 551 | <div className="relative min-h-0 grow overflow-hidden"> | |
| 552 | {levels.map((level, index) => { | |
| 553 | const current = index === depth; | |
| 554 | const place = | |
| 555 | index < depth | |
| 556 | ? "pointer-events-none -translate-x-1/4 opacity-0" | |
| 557 | : current | |
| 558 | ? "translate-x-0 opacity-100" | |
| 559 | : "pointer-events-none translate-x-full opacity-0"; | |
| 560 | // A list that was not there before arrives: from the right when | |
| 561 | // drilling in, in place when moving across. | |
| 562 | const arriving = hydrated && current && !shown.current.keys.includes(level.key); | |
| 563 | const enter = arriving | |
| 564 | ? depth > shown.current.depth | |
| 565 | ? "starting:translate-x-full starting:opacity-0" | |
| 566 | : "starting:opacity-0" | |
| 567 | : ""; | |
| 568 | return ( | |
| 569 | <div key={level.key} className={`${LAYER} ${place} ${enter}`} inert={!current} aria-hidden={!current || undefined}> | |
| 570 | {level.node} | |
| 571 | </div> | |
| 572 | ); | |
| 573 | })} | |
| 574 | </div> | |
| 575 | ); | |
| 576 | } | |
| 577 | ||
| 578 | /** | |
| 579 | * The row at the top of a list drilled into: the list's name, which goes | |
| 580 | * back out, and what it belongs to, faint at the end. | |
| 581 | */ | |
| 582 | function BackRow({ to, label, context }: { to: string; label: ReactNode; context?: ReactNode }) { | |
| 583 | return ( | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 584 | <NavRows className="mt-1"> |
| 585 | <SidebarMenuItem> | |
| 586 | <SidebarMenuButton asChild className="gap-1.5 pl-1 font-medium text-fg"> | |
| 587 | <Link to={to} prefetch="intent"> | |
| 588 | <ChevronLeft className="text-faint transition-transform group-hover/menu-button:-translate-x-0.5 group-hover/menu-button:text-muted" /> | |
| 589 | <span className="min-w-0 shrink-0 truncate">{label}</span> | |
| 590 | {context && <span className="ml-auto min-w-0 truncate pl-2 font-mono text-[0.6875rem] font-normal text-faint">{context}</span>} | |
| 591 | </Link> | |
| 592 | </SidebarMenuButton> | |
| 593 | </SidebarMenuItem> | |
| 594 | </NavRows> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 595 | ); |
| 596 | } | |
| 597 | ||
| 598 | /** A thin rule between groups of a list. */ | |
| 599 | function Rule() { | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 600 | return <SidebarSeparator className="my-1.5" />; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 601 | } |
| 602 | ||
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 603 | /** A quiet heading inside a group: Pinned, Recent. */ |
| 604 | function SidebarSubhead({ children }: { children: ReactNode }) { | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 605 | return ( |
| 606 | <SidebarGroupLabel asChild className="h-6 pt-0.5"> | |
| 607 | <h3>{children}</h3> | |
| 608 | </SidebarGroupLabel> | |
| 609 | ); | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 610 | } |
| 611 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 612 | /** |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 613 | * The workspace's projects as the sidebar keeps them, however many there |
| 614 | * are: the person's pins in their order, what they opened last, and the | |
| 615 | * way to all of them. Pins move by dragging, or with Alt and the arrow | |
| 616 | * keys; the projects service keeps the order. | |
| 617 | */ | |
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 618 | function SidebarProjects({ slug, shell, current }: { slug: string; shell: ShellData; current: boolean }) { |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 619 | const reorder = useFetcher({ key: `pins:${slug}` }); |
| 620 | const saved = shell.pinned ?? []; | |
| 621 | // While a new order is on its way, it shows as made. | |
| 622 | const asked = reorder.formData?.get("intent") === "reorder" ? reorder.formData.getAll("slug").map(String) : null; | |
| 623 | const pinned = asked | |
| 624 | ? asked.map((name) => saved.find((project) => project.name === name)).filter((project): project is ShortcutProject => project != null) | |
| 625 | : saved; | |
| 626 | const active = shell.repo ? { namespace: shell.repo.namespace, name: shell.repo.name, isPrivate: false } : null; | |
| 627 | const recent = recentWith(shell.recent ?? [], pinned, active, slug); | |
| 628 | const [dragging, setDragging] = useState<number | null>(null); | |
| 629 | const move = (from: number, by: number) => { | |
| 630 | const next = movedPin(pinned, from, by); | |
| 631 | if (!next) return; | |
| 632 | const form = new FormData(); | |
| 633 | form.set("intent", "reorder"); | |
| 634 | for (const project of next) form.append("slug", project.name); | |
| 635 | reorder.submit(form, { method: "post", action: `/${slug}/-/pins` }); | |
| 636 | }; | |
| Previews build from any branch; Agent in place of Ask AI; pin from the sidebar | 637 | // Each row pins or unpins in place: the pin shows on hover or focus, and |
| 638 | // stays shown on a pinned row's hover so it reads as "unpin". | |
| 639 | const row = (project: ShortcutProject, isPinned: boolean) => ( | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 640 | <SidebarLink |
| 641 | to={`/${project.namespace}/${project.name}`} | |
| 642 | icon={project.isPrivate ? <Lock /> : <Box />} | |
| 643 | bare={isPinned} | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 644 | action={ |
| A project's pin sits at the end of its row in the sidebar, and shows only on hover or keyboard focus. It was set in from the end to leave room for a chevron that only showed on hover, and it stayed lit after a click, since it showed on any focus and a clicked button keeps the mouse's. The rows drop the chevron; the pin is their hover action. | 645 | // At the row's end, where the row's other actions sit, and only on |
| 646 | // hover or keyboard focus: a pin clicked keeps the mouse's focus, | |
| 647 | // and showing it on any focus left it lit on a row no one was over. | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 648 | <PinButton |
| 649 | workspace={slug} | |
| 650 | slug={project.name} | |
| 651 | name={project.title ?? project.name} | |
| 652 | pinned={isPinned} | |
| 653 | small | |
| A project's pin sits at the end of its row in the sidebar, and shows only on hover or keyboard focus. It was set in from the end to leave room for a chevron that only showed on hover, and it stayed lit after a click, since it showed on any focus and a clicked button keeps the mouse's. The rows drop the chevron; the pin is their hover action. | 654 | className="absolute top-1/2 right-1 -translate-y-1/2 opacity-0 transition-opacity group-hover/menu-item:opacity-100 has-focus-visible:opacity-100 [@media(hover:none)]:opacity-100" |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 655 | /> |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 656 | } |
| 657 | > | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 658 | {project.title ?? project.name} |
| 659 | </SidebarLink> | |
| 660 | ); | |
| 661 | return ( | |
| 662 | <SidebarGroup> | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 663 | {/* The label and its button share a row, so the button stays level with the words at any text size. */} |
| 664 | <div className="flex items-center justify-between gap-2 pr-1"> | |
| 665 | <SidebarGroupLabel asChild> | |
| 666 | <h2>Projects</h2> | |
| 667 | </SidebarGroupLabel> | |
| 668 | <Hint label="New project"> | |
| 669 | <SidebarGroupAction asChild className="relative top-auto right-auto"> | |
| 670 | <Link to="/new" aria-label="New project"> | |
| 671 | <Plus /> | |
| 672 | </Link> | |
| 673 | </SidebarGroupAction> | |
| 674 | </Hint> | |
| 675 | </div> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 676 | <SidebarGroupContent> |
| Previews build from any branch; Agent in place of Ask AI; pin from the sidebar | 677 | {/* Only there once something is pinned: each row below has its own pin. */} |
| 678 | {pinned.length > 0 && ( | |
| 679 | <> | |
| 680 | <SidebarSubhead>Pinned</SidebarSubhead> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 681 | <SidebarMenu aria-label="Pinned projects"> |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 682 | {pinned.map((project, index) => ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 683 | <SidebarMenuItem |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 684 | key={project.name} |
| 685 | draggable={pinned.length > 1} | |
| 686 | onDragStart={(event) => { | |
| 687 | setDragging(index); | |
| 688 | event.dataTransfer.effectAllowed = "move"; | |
| 689 | }} | |
| 690 | onDragOver={(event) => { | |
| 691 | if (dragging != null) event.preventDefault(); | |
| 692 | }} | |
| 693 | onDrop={(event) => { | |
| 694 | event.preventDefault(); | |
| 695 | if (dragging != null && dragging !== index) move(dragging, index - dragging); | |
| 696 | setDragging(null); | |
| 697 | }} | |
| 698 | onDragEnd={() => setDragging(null)} | |
| 699 | onKeyDown={(event) => { | |
| 700 | if (!event.altKey || (event.key !== "ArrowUp" && event.key !== "ArrowDown")) return; | |
| 701 | event.preventDefault(); | |
| 702 | move(index, event.key === "ArrowUp" ? -1 : 1); | |
| 703 | }} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 704 | className={`group/pin ${dragging === index ? "opacity-50" : ""}`} |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 705 | > |
| Previews build from any branch; Agent in place of Ask AI; pin from the sidebar | 706 | {row(project, true)} |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 707 | {pinned.length > 1 && ( |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 708 | <Hint label="Drag, or Alt and an arrow key, to reorder" side="right"> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 709 | <span className="absolute top-1/2 -left-2 -translate-y-1/2 cursor-grab text-faint opacity-0 transition-opacity group-hover/pin:opacity-100"> |
| Merge branch 'worktree-agent-ae1299e92e4462012' | 710 | <GripVertical size={12} aria-hidden="true" /> |
| 711 | </span> | |
| 712 | </Hint> | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 713 | )} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 714 | </SidebarMenuItem> |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 715 | ))} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 716 | </SidebarMenu> |
| Previews build from any branch; Agent in place of Ask AI; pin from the sidebar | 717 | </> |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 718 | )} |
| 719 | {recent.length > 0 && ( | |
| 720 | <> | |
| 721 | <SidebarSubhead>Recent</SidebarSubhead> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 722 | <SidebarMenu aria-label="Recent projects"> |
| 723 | {recent.map((project) => ( | |
| 724 | <Fragment key={`${project.namespace}/${project.name}`}>{row(project, false)}</Fragment> | |
| 725 | ))} | |
| 726 | </SidebarMenu> | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 727 | </> |
| 728 | )} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 729 | <SidebarMenu className="pt-1"> |
| 730 | <SidebarLink to={`/${slug}/-/projects`} icon={<LayoutGrid />} count={shell.repos.length} current={current}> | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 731 | All projects |
| 732 | </SidebarLink> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 733 | </SidebarMenu> |
| 734 | </SidebarGroupContent> | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 735 | </SidebarGroup> |
| 736 | ); | |
| 737 | } | |
| 738 | ||
| Merge branch 'worktree-agent-ad7c6d88d93adc817' | 739 | /** Insights, coming: the workspace's own page says what it will be. */ |
| 740 | const INSIGHTS = roadmapItem("insights"); | |
| 741 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 742 | /** |
| 743 | * What the repository menu needs. Known from the address before the page's | |
| 744 | * data arrives, so the menu is right from the first frame; the counts fill | |
| 745 | * in once it does. | |
| 746 | */ | |
| 747 | type MenuRepo = { | |
| 748 | namespace: string; | |
| 749 | name: string; | |
| 750 | member: boolean; | |
| 751 | /** Whether they see its settings; from the repository's page once it loads. */ | |
| 752 | settings?: boolean; | |
| 753 | /** What they may do there, once the repository's page loads. */ | |
| 754 | can?: Abilities; | |
| 755 | issues?: number; | |
| 756 | pulls?: number; | |
| 757 | }; | |
| 758 | ||
| 759 | function sameRepo(a: { namespace: string; name: string } | null, b: { namespace: string; name: string } | null) { | |
| 760 | return ( | |
| 761 | a != null && | |
| 762 | b != null && | |
| 763 | a.namespace.toLowerCase() === b.namespace.toLowerCase() && | |
| 764 | a.name.toLowerCase() === b.name.toLowerCase() | |
| 765 | ); | |
| 766 | } | |
| 767 | ||
| 768 | /** | |
| 769 | * A project's own list, drilled into while you are in it: everything about | |
| 770 | * the project, running and its code, and nothing else, with the way back | |
| 771 | * out to all of them. | |
| 772 | */ | |
| 773 | function RepoMenu({ | |
| 774 | repo, | |
| 775 | isPrivate, | |
| 776 | back, | |
| 777 | }: { | |
| 778 | repo: MenuRepo; | |
| 779 | isPrivate: boolean; | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 780 | /** Where the way back leads: the workspace's projects, mission control, or the projects of the workspace being browsed. */ |
| 781 | back: { to: string; label: string; context?: string }; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 782 | }) { |
| 783 | const base = `/${repo.namespace}/${repo.name}`; | |
| Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them. | 784 | // What a member sees, and what everyone who can see the project does |
| 785 | // (lib/chrome.ts). | |
| 786 | const shows = new Set(projectPages(repo.member, repo.can)); | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 787 | const { current: atOverview, pending: toOverview } = useRowState(base, { end: true }); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 788 | return ( |
| 789 | <nav aria-label={`${repo.namespace}/${repo.name}`} className={PANEL}> | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 790 | <BackRow to={back.to} label={back.label} context={back.context} /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 791 | <NavRows className="mt-1"> |
| 792 | <SidebarMenuItem> | |
| 793 | <Hint label="Overview" side="right"> | |
| 794 | <SidebarMenuButton asChild size="lg" isActive={atOverview} isPending={toOverview} className="gap-2 font-normal"> | |
| 795 | <Link to={base} prefetch="intent" aria-current={atOverview ? "page" : undefined}> | |
| 796 | <span className="flex size-6 shrink-0 items-center justify-center rounded-md bg-raised text-muted ring-1 ring-line [&>svg]:size-3.5"> | |
| 797 | {isPrivate ? <Lock /> : <Box />} | |
| 798 | </span> | |
| 799 | <span className="min-w-0 truncate font-mono text-[0.8125rem]"> | |
| 800 | <span className="text-faint">{repo.namespace}/</span> | |
| 801 | <span className="font-semibold text-fg">{repo.name}</span> | |
| 802 | </span> | |
| 803 | </Link> | |
| 804 | </SidebarMenuButton> | |
| 805 | </Hint> | |
| 806 | </SidebarMenuItem> | |
| 807 | </NavRows> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 808 | {/* A project's pages, in the order people use them. A page with more |
| 809 | than one view shows them as tabs across its top. */} | |
| 810 | <Rule /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 811 | <NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 812 | <SidebarLink to={`${base}/code`} also={[`${base}/tree`, `${base}/blob`, `${base}/commits`, `${base}/commit`, `${base}/branches`, `${base}/tags`, `${base}/compare`, ...soonPaths(base, "Code")]} icon={<Code2 size={15} />}> |
| 813 | Code | |
| 814 | </SidebarLink> | |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 815 | {shows.has("issues") && ( |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 816 | <SidebarLink to={`${base}/issues`} also={[`${base}/milestones`, `${base}/labels`, ...soonPaths(base, "Issues")]} icon={<CircleDot size={15} />} count={repo.issues}> |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 817 | Issues |
| 818 | </SidebarLink> | |
| 819 | )} | |
| 820 | {shows.has("pulls") && ( | |
| Merge branch 'worktree-agent-aa68cf6ecc03dffaf' | 821 | <SidebarLink to={`${base}/pulls`} also={[`${base}/pull`, `${base}/work`, `${base}/queue`, `${base}/sessions`]} icon={<GitPullRequest size={15} />} count={repo.pulls}> |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 822 | Pull requests |
| 823 | </SidebarLink> | |
| 824 | )} | |
| 825 | {shows.has("actions") && ( | |
| 826 | <SidebarLink to={`${base}/actions`} icon={<PlayCircle size={15} />}> | |
| 827 | Workflows | |
| 828 | </SidebarLink> | |
| 829 | )} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 830 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 831 | <Rule /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 832 | <NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 833 | {shows.has("deployments") ? ( |
| 834 | <SidebarLink to={`${base}/deployments`} also={soonPaths(base, "Deployments")} icon={<Rocket size={15} />}> | |
| 835 | Deployments | |
| 836 | </SidebarLink> | |
| 837 | ) : null} | |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 838 | {shows.has("observability") && ( |
| Projects have Observability: their requests, logs, traces, metrics and errors, from apps on g1t.page with nothing to set up, and from software anywhere else over OpenTelemetry. | 839 | <SidebarLink to={`${base}/observability`} also={soonPaths(base, "Observability")} icon={<Activity size={15} />}> |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 840 | Observability |
| Projects have Observability: their requests, logs, traces, metrics and errors, from apps on g1t.page with nothing to set up, and from software anywhere else over OpenTelemetry. | 841 | </SidebarLink> |
| A desktop release goes out with what can be built. Linux is built on g1t's machines in every release; Windows and macOS each wait on a repository variable: a machine registered for them, or for Windows a cross build on Linux once aka.ms and download.visualstudio.microsoft.com are workflow-only domains, which is where the first release stopped. A platform with no machine is skipped and the download page says it is coming, with a word for the visitor whose platform this release lacks. The guide and CONTRIBUTING say so. | 842 | )} |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 843 | {shows.has("security") ? ( |
| 844 | <SidebarLink to={`${base}/security`} also={soonPaths(base, "Security")} icon={<ShieldCheck size={15} />}> | |
| 845 | Security | |
| 846 | </SidebarLink> | |
| 847 | ) : null} | |
| Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97 | 848 | <SidebarLink |
| 849 | to={`${base}/contributors`} | |
| 850 | also={[`${base}/activity`, `${base}/stargazers`, ...soonPaths(base, "Insights")]} | |
| 851 | icon={<BarChart3 size={15} />} | |
| 852 | > | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 853 | Insights |
| Merge branch 'main' into worktree-agent-a69aeabc4b0deeb97 | 854 | </SidebarLink> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 855 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 856 | {(repo.settings ?? shows.has("settings")) && ( |
| 857 | <> | |
| 858 | <Rule /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 859 | <NavRows> |
| 860 | <SidebarLink to={`${base}/settings`} icon={<Settings size={15} />} drill> | |
| 861 | Settings | |
| 862 | </SidebarLink> | |
| 863 | </NavRows> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 864 | </> |
| 865 | )} | |
| 866 | </nav> | |
| 867 | ); | |
| 868 | } | |
| 869 | ||
| 870 | /** | |
| 871 | * A project's settings, drilled into from its list: what is about running | |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 872 | * it, then its sandboxes, then its code and who can reach it. The way back |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 873 | * leads to the project. |
| 874 | */ | |
| 875 | function RepoSettingsMenu({ repo }: { repo: MenuRepo }) { | |
| 876 | const base = `/${repo.namespace}/${repo.name}`; | |
| 877 | // Each page shows to the roles that can use it, once the role is known. | |
| 878 | const shows = (page: string) => !repo.can || repo.can[SETTINGS_CAPABILITY[page] ?? "administer"]; | |
| 879 | const running = shows("deployments"); | |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 880 | const guarded = shows("guardrails"); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 881 | return ( |
| 882 | <nav aria-label={`${repo.namespace}/${repo.name} settings`} className={PANEL}> | |
| 883 | <BackRow to={base} label="Settings" context={`${repo.namespace}/${repo.name}`} /> | |
| 884 | {shows("") && ( | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 885 | <NavRows className="mt-2"> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 886 | <SidebarLink to={`${base}/settings`} end icon={<Settings size={15} />}> |
| 887 | General | |
| 888 | </SidebarLink> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 889 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 890 | )} |
| 891 | {running && ( | |
| 892 | <> | |
| 893 | {shows("") && <Rule />} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 894 | <NavRows className={shows("") ? undefined : "mt-2"}> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 895 | <SidebarLink to={`${base}/settings/deployments`} icon={<Rocket size={15} />}> |
| 896 | Deployments | |
| 897 | </SidebarLink> | |
| 898 | <SidebarLink to={`${base}/settings/domains`} icon={<Globe size={15} />}> | |
| 899 | Domains | |
| 900 | </SidebarLink> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 901 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 902 | </> |
| 903 | )} | |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 904 | {guarded && ( |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 905 | <> |
| 906 | <Rule /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 907 | <NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 908 | {shows("guardrails") && ( |
| 909 | <SidebarLink to={`${base}/settings/guardrails`} icon={<ShieldCheck size={15} />}> | |
| 910 | Guardrails | |
| 911 | </SidebarLink> | |
| 912 | )} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 913 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 914 | </> |
| 915 | )} | |
| 916 | <Rule /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 917 | <NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 918 | {shows("repository") && ( |
| 919 | <SidebarLink to={`${base}/settings/repository`} icon={<BookMarked size={15} />}> | |
| 920 | Repository | |
| Merge branch 'mirroring' into artifacts-mode | 921 | </SidebarLink> |
| 922 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 923 | {shows("access") && ( |
| 924 | <SidebarLink to={`${base}/settings/access`} icon={<Users size={15} />}> | |
| 925 | Access | |
| 926 | </SidebarLink> | |
| 927 | )} | |
| Merge branch 'worktree-agent-a5a5de74d8863d554' into worktree-agent-a16631325aecf58ca | 928 | {shows("keys") && ( |
| 929 | <SidebarLink to={`${base}/settings/keys`} icon={<KeyRound size={15} />}> | |
| 930 | Deploy keys | |
| 931 | </SidebarLink> | |
| 932 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 933 | {shows("branches") && ( |
| 934 | <SidebarLink to={`${base}/settings/branches`} icon={<GitBranch size={15} />}> | |
| 935 | Branches and merging | |
| 936 | </SidebarLink> | |
| 937 | )} | |
| Merge rulesets: branch and tag rules, agent-first, enforced on push and merge | 938 | {shows("rules") && ( |
| 939 | <SidebarLink to={`${base}/settings/rules`} icon={<Scale size={15} />}> | |
| 940 | Rules | |
| 941 | </SidebarLink> | |
| 942 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 943 | {shows("secrets") && ( |
| 944 | <SidebarLink to={`${base}/settings/secrets`} icon={<Lock size={15} />}> | |
| 945 | Secrets and variables | |
| 946 | </SidebarLink> | |
| 947 | )} | |
| Merge branch 'worktree-agent-a3abfcce648e87dca' | 948 | {shows("actions") && ( |
| 949 | <SidebarLink to={`${base}/settings/actions`} icon={<PlayCircle size={15} />}> | |
| 950 | Actions | |
| 951 | </SidebarLink> | |
| 952 | )} | |
| 953 | {shows("environments") && ( | |
| 954 | <SidebarLink to={`${base}/settings/environments`} icon={<Layers size={15} />}> | |
| 955 | Environments | |
| 956 | </SidebarLink> | |
| 957 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 958 | {shows("runners") && ( |
| 959 | <SidebarLink to={`${base}/settings/runners`} icon={<ServerCog size={15} />}> | |
| 960 | Runners | |
| 961 | </SidebarLink> | |
| 962 | )} | |
| 963 | {shows("webhooks") && ( | |
| 964 | <SidebarLink to={`${base}/settings/webhooks`} icon={<Webhook size={15} />}> | |
| 965 | Webhooks | |
| 966 | </SidebarLink> | |
| 967 | )} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 968 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 969 | </nav> |
| 970 | ); | |
| Merge two kinds of invite, kept apart: an invite to g1t (Settings, invite-only only, no workspace unless asked) and an invitation to a workspace (its People page) | 971 | } |
| 972 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 973 | /** Your own settings, drilled into from Your settings: one page each. */ |
| 974 | function AccountSettingsMenu({ username }: { username: string }) { | |
| 975 | const link = (page: AccountSettingsPage, icon: ReactNode) => ( | |
| 976 | <SidebarLink to={`/settings/${page}`} icon={icon}> | |
| 977 | {ACCOUNT_SETTINGS[page].title} | |
| 978 | </SidebarLink> | |
| 979 | ); | |
| 980 | return ( | |
| 981 | <nav aria-label="Your settings" className={PANEL}> | |
| 982 | <BackRow to="/" label="Your settings" context={username} /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 983 | <NavRows className="mt-2"> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 984 | {link("profile", <CircleUserRound size={15} />)} |
| 985 | {link("emails", <Mail size={15} />)} | |
| Merge branch 'worktree-agent-a6da31375506fc440' | 986 | {link("invites", <Ticket size={15} />)} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 987 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 988 | <Rule /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 989 | <NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 990 | {link("keys", <Fingerprint size={15} />)} |
| 991 | {link("tokens", <KeyRound size={15} />)} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 992 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 993 | <Rule /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 994 | <NavRows> |
| Integrations are a directory of connectors, for a workspace and for each person | 995 | {link("integrations", <Blocks size={15} />)} |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 996 | {link("github", <GithubMark className="size-3.75" />)} |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 997 | {link("applications", <Plug size={15} />)} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 998 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 999 | <Rule /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1000 | <NavRows> |
| Merge main (membership, two-factor, GitHub repo roles) into tokens | 1001 | {link("two-factor", <ShieldCheck size={15} />)} |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1002 | {link("security-log", <History size={15} />)} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1003 | </NavRows> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1004 | </nav> |
| 1005 | ); | |
| 1006 | } | |
| 1007 | ||
| 1008 | /** | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1009 | * Code's sidebar: its Overview, the projects, what spans them and what is |
| 1010 | * coming; in a project, drilled into the project's own list, and its | |
| 1011 | * settings one level further in. The address says which, so a link | |
| 1012 | * straight to a project opens the sidebar already drilled in. | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1013 | */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1014 | function CodeSidebar({ |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1015 | user, |
| 1016 | shell, | |
| 1017 | missing = false, | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1018 | browsing = null, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1019 | }: { |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1020 | user: User; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1021 | shell: ShellData; |
| 1022 | /** The page is a 404: the address names nothing the viewer can see. */ | |
| 1023 | missing?: boolean; | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1024 | /** g1t beyond the viewer's workspaces (lib/workspace-nav.ts `browsingOf`): Explore's list in place of Code's. */ |
| 1025 | browsing?: { owner: BrowsedOwner | null } | null; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1026 | }) { |
| 1027 | const ws = shell.workspace; | |
| 1028 | const { pathname } = useLocation(); | |
| 1029 | const going = useNavigation().location?.pathname; | |
| 1030 | // Where the sidebar is drilled to follows the page being gone to, so it | |
| 1031 | // moves as the link is followed, not once the page arrives. | |
| 1032 | const target = going ?? pathname; | |
| 1033 | // On a 404, the address is not a place: no list is drilled into from it, | |
| 1034 | // except the project's own when the project is real and visible and only | |
| 1035 | // something inside it is missing (a file, a commit, an issue). | |
| 1036 | const lost = missing && going == null; | |
| 1037 | const active = shell.repo; | |
| 1038 | // In a repository, or on the way into one, its own list. | |
| 1039 | const repoPath = /^\/([^/]+)\/([^/-][^/]*)(\/|$)/.exec(target); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1040 | const reserved = new Set(["settings", "explore", "search", "new", "u", "pricing", "avatars", "workspaces", "login", "logout", "register", "verify", "forgot", "reset", "device", "oauth", "policies", "security", "support", "status", "invite", "notifications", "inbox", ".well-known"]); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1041 | // An invitation to a repository is answered before its menu means anything. |
| 1042 | const inRepo = | |
| 1043 | repoPath != null && | |
| 1044 | !reserved.has(repoPath[1]) && | |
| 1045 | repoPath[2] !== "-" && | |
| 1046 | !/^\/[^/]+\/[^/]+\/invitations\/?$/.test(target) && | |
| 1047 | (!lost || sameRepo(active, { namespace: repoPath[1]!, name: repoPath[2]! })); | |
| 1048 | // A project's settings, one level further in. | |
| 1049 | const inRepoSettings = inRepo && REPO_SETTINGS_PAGE.test(target); | |
| 1050 | // The repository the menu is for: the one loaded if it is the one being | |
| 1051 | // gone to, else what the address says, at once. | |
| 1052 | const targetRepo = inRepo && repoPath ? { namespace: repoPath[1], name: repoPath[2] } : null; | |
| 1053 | const guessed: MenuRepo | null = targetRepo | |
| 1054 | ? sameRepo(active, targetRepo) | |
| 1055 | ? active | |
| 1056 | : { | |
| 1057 | ...targetRepo, | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1058 | member: (user.workspaces ?? []).some((m) => m.slug === targetRepo.namespace.toLowerCase()), |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1059 | } |
| 1060 | : null; | |
| 1061 | // The viewer's role there, from the repository's page once it has loaded. | |
| 1062 | const page = useRouteLoaderData("routes/repo/layout") as | |
| Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them. | 1063 | | { repo?: { namespace: string; name: string }; access?: ViewerAccess } |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1064 | | undefined; |
| 1065 | const menuRepo: MenuRepo | null = | |
| 1066 | guessed && page?.access && page.repo && sameRepo(page.repo, guessed) | |
| Merge main into rm-agents: mirroring removal, open signups, free-tier limits, the g1t CLI and runner fixes, with the agent removal kept. The CLI's table of operations is regenerated from the API without the agent, customize and AI credit operations; no CLI command used them. | 1067 | ? { ...guessed, member: page.access.insider, settings: seesSettings(page.access), can: page.access.can } |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1068 | : guessed; |
| 1069 | ||
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1070 | // The way from Code's list (or Explore's, browsing) to the one shown. |
| 1071 | const main = browsing ? <BrowseMenu user={user} owner={browsing.owner} /> : ws ? <CodeMenu shell={shell} slug={ws.slug} /> : null; | |
| 1072 | const trail: Level[] = [{ key: browsing ? "browse" : "main", node: main }]; | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1073 | if (menuRepo) { |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1074 | const key = `repo:${menuRepo.namespace}/${menuRepo.name}`.toLowerCase(); |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1075 | // Out of a project: to its workspace's projects when they are yours, or |
| 1076 | // when browsing, to the projects of the workspace it is in. | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1077 | const home = (user.workspaces ?? []).find((m) => m.slug === menuRepo.namespace.toLowerCase()); |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1078 | const back = home |
| 1079 | ? { to: `/${home.slug}/-/projects`, label: "All projects" } | |
| 1080 | : browsing | |
| 1081 | ? { to: `/${menuRepo.namespace}/-/projects`, label: "Projects", context: menuRepo.namespace } | |
| 1082 | : { to: ws ? `/${ws.slug}/-/overview` : "/explore", label: "Code" }; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1083 | trail.push({ |
| 1084 | key, | |
| 1085 | node: ( | |
| 1086 | <RepoMenu | |
| 1087 | repo={menuRepo} | |
| 1088 | isPrivate={[...shell.repos, ...(shell.shared ?? [])].some((repo) => sameRepo(repo, menuRepo) && repo.isPrivate)} | |
| 1089 | back={back} | |
| 1090 | /> | |
| 1091 | ), | |
| 1092 | }); | |
| 1093 | if (inRepoSettings) trail.push({ key: `${key}:settings`, node: <RepoSettingsMenu repo={menuRepo} /> }); | |
| 1094 | } | |
| 1095 | ||
| 1096 | return ( | |
| 1097 | <div className="flex h-full flex-col"> | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1098 | {browsing && ws && ( |
| 1099 | <> | |
| 1100 | <BackToWorkspace workspace={ws} /> | |
| 1101 | <Rule /> | |
| 1102 | </> | |
| 1103 | )} | |
| 1104 | <ModeHeader title={browsing ? "Explore" : "Code"} /> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1105 | <Drill trail={trail} /> |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1106 | </div> |
| 1107 | ); | |
| 1108 | } | |
| 1109 | ||
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1110 | /** |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1111 | * Browsing, the way back to the workspace you are in: its Home, at the top |
| 1112 | * of Explore's sidebar, at every level of it. | |
| 1113 | */ | |
| 1114 | function BackToWorkspace({ workspace }: { workspace: Membership }) { | |
| 1115 | const name = displayName(workspace); | |
| 1116 | return ( | |
| 1117 | <NavRows className="pt-0"> | |
| 1118 | <SidebarMenuItem> | |
| 1119 | <SidebarMenuButton asChild className="gap-2 pl-1 font-medium text-fg"> | |
| 1120 | <Link to={homePagePath(workspace.slug)} prefetch="intent" aria-label={`Back to ${name}: Home`}> | |
| 1121 | <ChevronLeft className="text-faint transition-transform group-hover/menu-button:-translate-x-0.5 group-hover/menu-button:text-muted" /> | |
| 1122 | <Avatar name={workspace.slug} image={workspace.avatar} size={18} square /> | |
| 1123 | <span className="min-w-0 truncate">Back to {name}</span> | |
| 1124 | </Link> | |
| 1125 | </SidebarMenuButton> | |
| 1126 | </SidebarMenuItem> | |
| 1127 | </NavRows> | |
| 1128 | ); | |
| 1129 | } | |
| 1130 | ||
| 1131 | /** Whose page is being browsed, as the page itself names them once it has loaded: a workspace's or a person's. */ | |
| 1132 | function useBrowsedOwner(owner: BrowsedOwner | null): { name: string; avatar: string | null } | null { | |
| 1133 | const workspace = useRouteLoaderData("routes/workspace/layout") as { workspace?: { slug: string; name?: string | null; avatar?: string | null } } | undefined; | |
| 1134 | const person = useRouteLoaderData("routes/user") as { profile?: { username: string; displayUsername?: string | null; avatar: string | null } } | undefined; | |
| 1135 | if (!owner) return null; | |
| 1136 | if (owner.kind === "person") { | |
| 1137 | const profile = person?.profile?.username.toLowerCase() === owner.name.toLowerCase() ? person.profile : null; | |
| 1138 | return { name: `@${profile ? shownUsername(profile) : owner.name}`, avatar: profile?.avatar ?? null }; | |
| 1139 | } | |
| 1140 | const page = workspace?.workspace?.slug.toLowerCase() === owner.name.toLowerCase() ? workspace.workspace : null; | |
| 1141 | return { name: page?.name?.trim() || owner.name, avatar: page?.avatar ?? null }; | |
| 1142 | } | |
| 1143 | ||
| 1144 | /** | |
| 1145 | * Explore's list, beside g1t beyond your workspaces (lib/workspace-nav.ts | |
| 1146 | * `browsingOf`): public projects across g1t, recently active and new, | |
| 1147 | * search, and what you starred; then whose page this is, with their own | |
| 1148 | * pages. A project of theirs drills into its own list, as in Code. | |
| 1149 | */ | |
| 1150 | function BrowseMenu({ user, owner }: { user: User; owner: BrowsedOwner | null }) { | |
| 1151 | const location = useLocation(); | |
| 1152 | const going = useNavigation().location; | |
| 1153 | const path = pagePath((going ?? location).pathname); | |
| 1154 | const query = new URLSearchParams((going ?? location).search); | |
| 1155 | const atExplore = path === "/explore"; | |
| 1156 | const fresh = atExplore && query.get("sort") === "new"; | |
| 1157 | const mine = `/u/${user.username}`; | |
| 1158 | const atMine = path.toLowerCase() === mine.toLowerCase(); | |
| 1159 | const stars = atMine && query.get("tab") === "stars"; | |
| 1160 | const shown = useBrowsedOwner(owner); | |
| 1161 | const profileTab = query.get("tab"); | |
| 1162 | return ( | |
| 1163 | <nav aria-label="Explore" className={PANEL}> | |
| 1164 | <NavRows> | |
| 1165 | <SidebarLink to="/explore" icon={<Compass size={15} />} current={atExplore && !fresh}> | |
| 1166 | Recently active | |
| 1167 | </SidebarLink> | |
| 1168 | <SidebarLink to="/explore?sort=new" icon={<Sparkles size={15} />} current={fresh}> | |
| 1169 | New projects | |
| 1170 | </SidebarLink> | |
| 1171 | <SidebarLink to="/search" icon={<Search size={15} />} current={path === "/search"}> | |
| 1172 | Search | |
| 1173 | </SidebarLink> | |
| 1174 | </NavRows> | |
| 1175 | <Rule /> | |
| 1176 | <NavRows> | |
| 1177 | <SidebarLink to={`${mine}?tab=stars`} icon={<Star size={15} />} current={stars}> | |
| 1178 | Your stars | |
| 1179 | </SidebarLink> | |
| 1180 | <SidebarLink to={mine} icon={<CircleUserRound size={15} />} current={atMine && !stars}> | |
| 1181 | Your profile | |
| 1182 | </SidebarLink> | |
| 1183 | </NavRows> | |
| 1184 | {owner && shown && ( | |
| 1185 | <> | |
| 1186 | <Rule /> | |
| 1187 | <NavGroup title="You are viewing"> | |
| 1188 | {owner.kind === "workspace" ? ( | |
| 1189 | <> | |
| 1190 | <SidebarLink | |
| 1191 | to={`/${owner.name}`} | |
| 1192 | icon={<Avatar name={owner.name} image={shown.avatar} size={16} square />} | |
| 1193 | current={path.toLowerCase() === `/${owner.name}`.toLowerCase()} | |
| 1194 | > | |
| 1195 | {shown.name} | |
| 1196 | </SidebarLink> | |
| 1197 | <SidebarLink to={`/${owner.name}/-/projects`} icon={<LayoutGrid size={15} />}> | |
| 1198 | Projects | |
| 1199 | </SidebarLink> | |
| 1200 | </> | |
| 1201 | ) : ( | |
| 1202 | <> | |
| 1203 | <SidebarLink | |
| 1204 | to={`/u/${owner.name}`} | |
| 1205 | icon={<Avatar name={owner.name} image={shown.avatar} size={16} />} | |
| 1206 | current={profileTab !== "stars"} | |
| 1207 | > | |
| 1208 | {shown.name} | |
| 1209 | </SidebarLink> | |
| 1210 | <SidebarLink to={`/u/${owner.name}?tab=stars`} icon={<Star size={15} />} current={profileTab === "stars"}> | |
| 1211 | Stars | |
| 1212 | </SidebarLink> | |
| 1213 | </> | |
| 1214 | )} | |
| 1215 | </NavGroup> | |
| 1216 | </> | |
| 1217 | )} | |
| 1218 | </nav> | |
| 1219 | ); | |
| 1220 | } | |
| 1221 | ||
| 1222 | /** | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1223 | * A mode's sidebar heading: its name, quiet, under the workspace's |
| 1224 | * switcher, with what it makes at the end. | |
| 1225 | */ | |
| 1226 | export function ModeHeader({ title, action }: { title: ReactNode; action?: ReactNode }) { | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1227 | return ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1228 | <div className="flex h-8 shrink-0 items-center gap-1 pr-2 pl-3"> |
| 1229 | <SidebarGroupLabel asChild className="min-w-0 grow truncate px-1"> | |
| 1230 | <h2>{title}</h2> | |
| 1231 | </SidebarGroupLabel> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1232 | {action} |
| 1233 | </div> | |
| 1234 | ); | |
| 1235 | } | |
| 1236 | ||
| 1237 | /** | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1238 | * Code's own list (beside the rail): only code. Its Overview (Mission |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1239 | * control's code panels), the projects, what spans them, and what is |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 1240 | * coming. The workspace's people, money and settings are elsewhere. |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1241 | */ |
| 1242 | function CodeMenu({ shell, slug }: { shell: ShellData; slug: string }) { | |
| 1243 | const { pathname } = useLocation(); | |
| 1244 | const going = useNavigation().location?.pathname; | |
| 1245 | const path = going ?? pathname; | |
| 1246 | const at = (page: string) => path === `/${slug}/-/${page}` || path.startsWith(`/${slug}/-/${page}/`); | |
| 1247 | const shared = shell.shared ?? []; | |
| 1248 | return ( | |
| 1249 | <nav aria-label="Code" className={PANEL}> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1250 | <NavRows> |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1251 | <SidebarLink to={`/${slug}/-/overview`} icon={<LayoutDashboard size={15} />} current={at("overview")}> |
| 1252 | Overview | |
| 1253 | </SidebarLink> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1254 | </NavRows> |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1255 | <Rule /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1256 | <SidebarProjects slug={slug} shell={shell} current={at("projects")} /> |
| 1257 | <Rule /> | |
| 1258 | <NavRows> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1259 | <SidebarLink to={`/${slug}/-/security`} icon={<ShieldCheck size={15} />} current={at("security") && !at("security/settings")}> |
| 1260 | Security | |
| 1261 | </SidebarLink> | |
| 1262 | <SidebarLink to={`/${slug}/-/packages`} icon={<Package size={15} />} current={at("packages")}> | |
| 1263 | Packages | |
| 1264 | </SidebarLink> | |
| 1265 | {INSIGHTS && ( | |
| 1266 | <SidebarSoonLink to={`/${slug}/-/insights`} icon={<TrendingUp size={15} />} about={INSIGHTS.summary} current={at("insights")}> | |
| 1267 | {INSIGHTS.title} | |
| 1268 | </SidebarSoonLink> | |
| 1269 | )} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1270 | </NavRows> |
| Code's sidebar has Explore, under its other pages, for public repositories beyond the workspace's own; it was only in the command palette. | 1271 | <Rule /> |
| 1272 | <NavRows> | |
| 1273 | {/* Public repositories beyond this workspace's own. */} | |
| 1274 | <SidebarLink to="/explore" icon={<Compass size={15} />} current={path === "/explore" || path.startsWith("/explore/")}> | |
| 1275 | Explore | |
| 1276 | </SidebarLink> | |
| 1277 | </NavRows> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1278 | {shared.length > 0 && ( |
| 1279 | <> | |
| 1280 | <Rule /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1281 | <NavGroup title="Shared with you"> |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1282 | {shared.map((repo) => ( |
| 1283 | <SidebarLink | |
| 1284 | key={`${repo.namespace}/${repo.name}`} | |
| 1285 | to={`/${repo.namespace}/${repo.name}`} | |
| 1286 | icon={repo.isPrivate ? <Lock size={15} /> : <Box size={15} />} | |
| 1287 | drill="hover" | |
| 1288 | > | |
| 1289 | <span className="font-mono text-faint">{repo.namespace}/</span> | |
| 1290 | {repo.name} | |
| 1291 | </SidebarLink> | |
| 1292 | ))} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1293 | </NavGroup> |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1294 | </> |
| 1295 | )} | |
| 1296 | </nav> | |
| 1297 | ); | |
| 1298 | } | |
| 1299 | ||
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1300 | /** The icon of each of Workspace mode's pages, by its key (lib/workspace-nav.ts). */ |
| 1301 | const WORKSPACE_PAGE_ICONS: Record<string, ReactNode> = { | |
| 1302 | settings: <Settings size={15} />, | |
| 1303 | members: <Users size={15} />, | |
| 1304 | invitations: <Mail size={15} />, | |
| 1305 | permissions: <ShieldCheck size={15} />, | |
| 1306 | tokens: <KeyRound size={15} />, | |
| 1307 | "personal-access-tokens": <UserRoundKey size={15} />, | |
| 1308 | usage: <BarChart3 size={15} />, | |
| 1309 | billing: <CreditCard size={15} />, | |
| 1310 | runners: <ServerCog size={15} />, | |
| 1311 | repositories: <BookMarked size={15} />, | |
| 1312 | actions: <PlayCircle size={15} />, | |
| 1313 | secrets: <Lock size={15} />, | |
| 1314 | webhooks: <Webhook size={15} />, | |
| 1315 | "chat-settings": <MessagesSquare size={15} />, | |
| 1316 | emoji: <Smile size={15} />, | |
| 1317 | "security-settings": <Shield size={15} />, | |
| 1318 | guardrails: <Gauge size={15} />, | |
| 1319 | rules: <Scale size={15} />, | |
| 1320 | audit: <History size={15} />, | |
| 1321 | integrations: <Plug size={15} />, | |
| 1322 | }; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1323 | |
| 1324 | /** | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1325 | * A group of Workspace mode's rows that folds: its name is the button, with |
| 1326 | * a chevron that turns when it is open. The group holding the current page | |
| 1327 | * is always open, and its button does nothing. Every group starts open, so | |
| 1328 | * the server and the browser draw the same list. | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1329 | */ |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1330 | function FoldingGroup({ title, current, children }: { title: string; current: boolean; children: ReactNode }) { |
| 1331 | const [open, setOpen] = useState(true); | |
| 1332 | return ( | |
| 1333 | <Collapsible open={open || current} onOpenChange={setOpen}> | |
| 1334 | <SidebarGroup> | |
| 1335 | <CollapsibleTrigger | |
| 1336 | disabled={current} | |
| 1337 | aria-label={`${title}: ${open || current ? "fold" : "unfold"}`} | |
| 1338 | className="flex h-7 w-full shrink-0 items-center justify-between rounded-md px-2 text-[0.6875rem] font-medium tracking-wide text-faint uppercase hover:text-muted focus-visible:ring-2 focus-visible:ring-accent disabled:cursor-default disabled:text-faint data-[state=open]:[&_svg]:rotate-90" | |
| 1339 | > | |
| 1340 | <span>{title}</span> | |
| 1341 | {!current && <ChevronRight size={12} aria-hidden="true" className="text-faint/70" />} | |
| 1342 | </CollapsibleTrigger> | |
| 1343 | <CollapsibleContent> | |
| 1344 | <SidebarGroupContent> | |
| 1345 | <SidebarMenu>{children}</SidebarMenu> | |
| 1346 | </SidebarGroupContent> | |
| 1347 | </CollapsibleContent> | |
| 1348 | </SidebarGroup> | |
| 1349 | </Collapsible> | |
| 1350 | ); | |
| 1351 | } | |
| 1352 | ||
| 1353 | /** | |
| 1354 | * The Workspace mode's sidebar: the workspace's settings area, every page | |
| 1355 | * one click away. Its overview, then the groups in lib/workspace-nav.ts | |
| Workspace settings promise only what exists: the Soon rows Deployments, Project defaults, Spaces and sharing and Applications are gone from Workspace mode's sidebar, with the Artifacts group they left empty, and the sidebar no longer draws Soon rows at all. None had a plan behind it. Permissions loses its five locked Soon settings (forking private repositories, who can create spaces, default sharing, who can deploy to production, who can publish packages), so every setting on it saves. The permissions and workspaces guides say the same. Checked: the site's typecheck, its tests and a production build, the deploy tool's tests and the docs build. | 1356 | * (General, Access, Money, Compute, Code, Chat, Security, Integrations), |
| 1357 | * each folding, the one you are in held open. Pages only owners open are | |
| 1358 | * left out for members, and a group with none left goes with them. | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1359 | */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1360 | export function WorkspaceSidebar({ slug, owner }: { slug: string; owner: boolean }) { |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1361 | const { pathname } = useLocation(); |
| 1362 | const going = useNavigation().location?.pathname; | |
| 1363 | const path = going ?? pathname; | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1364 | const here = workspaceSettingsPage(path, slug); |
| 1365 | const overview = path === `/${slug}/-/workspace` || path.startsWith(`/${slug}/-/workspace/`); | |
| 1366 | const shown = (page: WorkspaceSettingsPage) => owner || !page.owner; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1367 | return ( |
| 1368 | <div className="flex h-full flex-col"> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1369 | <ModeHeader title="Workspace" /> |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1370 | <nav aria-label="Workspace" className={PANEL}> |
| 1371 | <NavRows> | |
| 1372 | <SidebarLink to={`/${slug}/-/workspace`} icon={<LayoutGrid size={15} />} current={overview}> | |
| 1373 | Overview | |
| 1374 | </SidebarLink> | |
| 1375 | </NavRows> | |
| 1376 | {WORKSPACE_SETTINGS_GROUPS.filter((group) => group.pages.some(shown)).map((group) => ( | |
| 1377 | <Fragment key={group.key}> | |
| 1378 | <Rule /> | |
| 1379 | <FoldingGroup title={group.title} current={here?.group === group.key}> | |
| Workspace settings promise only what exists: the Soon rows Deployments, Project defaults, Spaces and sharing and Applications are gone from Workspace mode's sidebar, with the Artifacts group they left empty, and the sidebar no longer draws Soon rows at all. None had a plan behind it. Permissions loses its five locked Soon settings (forking private repositories, who can create spaces, default sharing, who can deploy to production, who can publish packages), so every setting on it saves. The permissions and workspaces guides say the same. Checked: the site's typecheck, its tests and a production build, the deploy tool's tests and the docs build. | 1380 | {group.pages.filter(shown).map((page) => ( |
| 1381 | <SidebarLink | |
| 1382 | key={page.key} | |
| 1383 | to={`/${slug}/-/${page.path}`} | |
| 1384 | icon={WORKSPACE_PAGE_ICONS[page.key] ?? <Settings size={15} />} | |
| 1385 | current={here?.page === page.key} | |
| 1386 | > | |
| 1387 | {page.label} | |
| 1388 | </SidebarLink> | |
| 1389 | ))} | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1390 | </FoldingGroup> |
| 1391 | </Fragment> | |
| 1392 | ))} | |
| 1393 | </nav> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1394 | </div> |
| 1395 | ); | |
| 1396 | } | |
| 1397 | ||
| People and teams are front and centre: one directory of people and agents with presence, local time, titles, teams and what each owns; profiles with manager and reports and the agents they work with; an org chart with each team's agents beside the person who leads it; and teams of any mix, with a lead, a channel, a budget agents keep to and the agents on them. Every agent is told its teams each turn (who leads, who owns what, who's around and who to page), and the team page shows exactly what. Member management is Members and invites; the people and teams guide says how. | 1398 | /** |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 1399 | * People's sidebar: everyone in the workspace and its teams. Who belongs, and |
| Merge branch 'rm-orgchart-getstarted' | 1400 | * inviting people, is the workspace's: Workspace mode's Access group. |
| People and teams are front and centre: one directory of people and agents with presence, local time, titles, teams and what each owns; profiles with manager and reports and the agents they work with; an org chart with each team's agents beside the person who leads it; and teams of any mix, with a lead, a channel, a budget agents keep to and the agents on them. Every agent is told its teams each turn (who leads, who owns what, who's around and who to page), and the team page shows exactly what. Member management is Members and invites; the people and teams guide says how. | 1401 | */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1402 | function PeopleSidebar({ slug }: { slug: string }) { |
| 1403 | const { pathname } = useLocation(); | |
| 1404 | const going = useNavigation().location?.pathname; | |
| 1405 | const path = going ?? pathname; | |
| 1406 | const at = (page: string) => path === `/${slug}/-/${page}` || path.startsWith(`/${slug}/-/${page}/`); | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1407 | return ( |
| 1408 | <div className="flex h-full flex-col"> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1409 | <ModeHeader title="People" /> |
| 1410 | <nav aria-label="People" className={PANEL}> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1411 | <NavRows> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1412 | <SidebarLink to={`/${slug}/-/people`} icon={<Users size={15} />} current={at("people")}> |
| 1413 | Everyone | |
| 1414 | </SidebarLink> | |
| 1415 | <SidebarLink to={`/${slug}/-/teams`} icon={<UsersRound size={15} />} current={at("teams")}> | |
| 1416 | Teams | |
| 1417 | </SidebarLink> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1418 | </NavRows> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1419 | </nav> |
| 1420 | </div> | |
| 1421 | ); | |
| 1422 | } | |
| 1423 | ||
| 1424 | /** | |
| 1425 | * Notifications' sidebar: what you have not finished with, what you saved | |
| 1426 | * and what is done; then why you were told, which narrows any of them. | |
| 1427 | */ | |
| 1428 | function NotificationsSidebar({ counts }: { counts: InboxCounts | null }) { | |
| 1429 | const { search } = useLocation(); | |
| 1430 | const params = new URLSearchParams(search); | |
| 1431 | const view = inboxView(params.get("view")); | |
| 1432 | const reason = inboxReason(params.get("reason")); | |
| 1433 | const tab = params.get("tab"); | |
| 1434 | const address = (changes: Record<string, string | null>) => { | |
| 1435 | const merged: Record<string, string | null> = { tab, view: view === "inbox" ? null : view, reason, ...changes }; | |
| 1436 | const next = new URLSearchParams(); | |
| 1437 | for (const [name, value] of Object.entries(merged)) if (value) next.set(name, value); | |
| 1438 | const query = next.toString(); | |
| 1439 | return query ? `/notifications?${query}` : "/notifications"; | |
| 1440 | }; | |
| 1441 | const views = [ | |
| 1442 | { view: "inbox", label: "Everything", icon: <Bell size={15} />, count: counts?.unread }, | |
| 1443 | { view: "saved", label: "Saved", icon: <Bookmark size={15} /> }, | |
| 1444 | { view: "done", label: "Done", icon: <Check size={15} /> }, | |
| 1445 | ] as const; | |
| 1446 | return ( | |
| 1447 | <div className="flex h-full flex-col"> | |
| 1448 | <ModeHeader title="Notifications" /> | |
| 1449 | <nav aria-label="Notifications" className={PANEL}> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1450 | <NavRows> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1451 | {views.map((entry) => ( |
| 1452 | <SidebarLink | |
| 1453 | key={entry.view} | |
| 1454 | to={address({ view: entry.view === "inbox" ? null : entry.view, before: null })} | |
| 1455 | icon={entry.icon} | |
| 1456 | count={"count" in entry ? (entry.count ?? undefined) : undefined} | |
| 1457 | current={view === entry.view} | |
| 1458 | > | |
| 1459 | {entry.label} | |
| 1460 | </SidebarLink> | |
| 1461 | ))} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1462 | </NavRows> |
| 1463 | <Rule /> | |
| 1464 | <NavGroup title="Why you were told"> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1465 | {REASON_FILTERS.map((entry) => ( |
| 1466 | <SidebarLink | |
| 1467 | key={entry.reason ?? "any"} | |
| 1468 | to={address({ reason: entry.reason, before: null })} | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 1469 | icon={<span className="block size-3.75" />} |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1470 | current={reason === entry.reason} |
| 1471 | > | |
| 1472 | {entry.reason == null ? "Any reason" : entry.label} | |
| 1473 | </SidebarLink> | |
| 1474 | ))} | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1475 | </NavGroup> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1476 | </nav> |
| 1477 | </div> | |
| 1478 | ); | |
| 1479 | } | |
| 1480 | ||
| 1481 | /** Your own settings, beside the page: under the account menu, not any workspace's. */ | |
| 1482 | export function AccountSidebar({ username }: { username: string }) { | |
| 1483 | return ( | |
| 1484 | <div className="flex h-full flex-col"> | |
| 1485 | <ModeHeader title="Your account" /> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1486 | <div className="min-h-0 grow"> |
| 1487 | <AccountSettingsMenu username={username} /> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1488 | </div> |
| 1489 | </div> | |
| 1490 | ); | |
| 1491 | } | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1492 | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1493 | /** Words for the sections a path can end in. */ |
| 1494 | const SECTIONS: Record<string, string> = { | |
| 1495 | issues: "Issues", | |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1496 | milestones: "Milestones", |
| 1497 | labels: "Labels", | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1498 | pulls: "Pull requests", |
| 1499 | queue: "Merge queue", | |
| 1500 | commits: "Commits", | |
| 1501 | actions: "Workflows", | |
| 1502 | soon: "Soon", | |
| 1503 | deployments: "Deployments", | |
| 1504 | repository: "Repository", | |
| 1505 | access: "Access", | |
| 1506 | invitations: "Invitation", | |
| 1507 | repositories: "Repositories", | |
| 1508 | branches: "Branches", | |
| 1509 | tags: "Tags", | |
| 1510 | compare: "Compare", | |
| 1511 | code: "Files", | |
| 1512 | secrets: "Secrets and variables", | |
| 1513 | settings: "Settings", | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 1514 | people: "People", |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1515 | members: "Members", |
| 1516 | permissions: "Permissions", | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 1517 | projects: "Projects", |
| 1518 | teams: "Teams", | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1519 | tokens: "Access tokens", |
| Settings: fine-grained tokens, workspace token Admin, workspace personal access token rules | 1520 | "personal-access-tokens": "Personal access tokens", |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1521 | usage: "Usage", |
| 1522 | billing: "Billing and plans", | |
| 1523 | integrations: "Integrations", | |
| 1524 | webhooks: "Webhooks", | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1525 | emoji: "Emoji", |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1526 | domains: "Domains", |
| 1527 | guardrails: "Guardrails", | |
| Merge rulesets: branch and tag rules, agent-first, enforced on push and merge | 1528 | rules: "Rules", |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1529 | audit: "Audit log", |
| 1530 | tree: "Files", | |
| 1531 | blob: "Files", | |
| 1532 | security: "Security", | |
| 1533 | packages: "Packages", | |
| 1534 | runners: "Runners", | |
| Merge branch 'worktree-agent-a3abfcce648e87dca' | 1535 | environments: "Environments", |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1536 | workflows: "Workflows", |
| 1537 | observability: "Observability", | |
| 1538 | insights: "Insights", | |
| 1539 | sessions: "Sessions", | |
| Merge branch 'worktree-agent-aa68cf6ecc03dffaf' | 1540 | work: "Work", |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1541 | chat: "Chat", |
| Artifacts is a mode in the rail, the shell and the phone's tab bar in place of Docs: its home lists everything you can open by day or as cards under All, Yours and Shared with you, with search, filters and tiles to start a doc (slides, designs and dashboards say they are coming soon), and its sidebar holds favorites, spaces, Private, Shared, projects' docs and the trash. | 1542 | artifacts: "Artifacts", |
| The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how. | 1543 | home: "Home", |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1544 | apps: "Apps", |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1545 | "code-access": "Code access", |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1546 | overview: "Overview", |
| 1547 | workspace: "Workspace", | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1548 | }; |
| 1549 | ||
| Merge branch 'worktree-agent-a3abfcce648e87dca' | 1550 | /** Settings pages whose name differs from the section's of the same word. */ |
| 1551 | const SETTINGS_SECTIONS: Record<string, string> = { branches: "Branches and merging", actions: "Actions" }; | |
| 1552 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1553 | /** Where the page is, as a trail of links: workspace / repository / section. */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1554 | function Breadcrumbs({ |
| 1555 | pathname, | |
| 1556 | missing, | |
| 1557 | repo, | |
| 1558 | workspace, | |
| 1559 | }: { | |
| 1560 | pathname: string; | |
| 1561 | missing?: boolean; | |
| 1562 | repo?: ShellData["repo"]; | |
| 1563 | /** The workspace you are in: the switcher names it, so the trail starts after it. */ | |
| 1564 | workspace: string | null; | |
| 1565 | }) { | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1566 | // A 404 names nothing from the address, unless the project is real and |
| 1567 | // visible and only something inside it is missing. | |
| 1568 | const visibleRepo = /^\/([^/]+)\/([^/-][^/]*)(\/|$)/.exec(pathname); | |
| 1569 | if (missing && !(visibleRepo && sameRepo(repo ?? null, { namespace: visibleRepo[1]!, name: visibleRepo[2]! }))) { | |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1570 | return <Here>Not found</Here>; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1571 | } |
| 1572 | const parts = pathname.split("/").filter(Boolean); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1573 | const reserved = ["settings", "explore", "new", "search", "workspaces", "policies", "security", "support", "status", "invite", "notifications"]; |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1574 | if (parts.length === 0) return <Here>Home</Here>; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1575 | // Your settings: Settings / Emails. |
| 1576 | if (parts[0] === "settings") { | |
| 1577 | const page = accountSettingsPage(pathname); | |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1578 | return <Trail trail={[{ label: "Settings", to: FIRST_SETTINGS_PAGE }, ...(page ? [{ label: ACCOUNT_SETTINGS[page].title, to: `/settings/${page}` }] : [])]} />; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1579 | } |
| 1580 | if (reserved.includes(parts[0]!)) { | |
| 1581 | const words: Record<string, string> = { | |
| 1582 | settings: "Account", | |
| 1583 | explore: "Explore", | |
| 1584 | new: "New project", | |
| 1585 | search: "Search", | |
| 1586 | workspaces: "New workspace", | |
| 1587 | policies: "Policies", | |
| 1588 | security: "Security", | |
| 1589 | support: "Support", | |
| 1590 | status: "Status", | |
| 1591 | invite: "Invite", | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1592 | notifications: "Notifications", |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1593 | }; |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1594 | return <Here>{words[parts[0]!]}</Here>; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1595 | } |
| 1596 | // A person's profile, by their handle. | |
| Chat controls, public profiles, shadcn selects, and no Docs tab in a project | 1597 | if (parts[0] === "u" && parts[1]) return <ProfileCrumb username={parts[1]} />; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1598 | const [owner, second, third, fourth] = parts; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1599 | const ours = workspace != null && owner!.toLowerCase() === workspace.toLowerCase(); |
| 1600 | const trail: Crumb[] = ours ? [] : [{ label: owner!, to: `/${owner}`, mono: true }]; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1601 | if (second === "-") { |
| 1602 | const page = `/${owner}/-/${third}`; | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1603 | if (third === "settings" && fourth === "chat") { |
| 1604 | // Chat settings is a page of its own, not one of General's. | |
| 1605 | trail.push({ label: "Chat settings", to: `${page}/chat` }); | |
| 1606 | } else if (third) { | |
| 1607 | // The workspace's settings pages each stand alone: General, Members, Permissions. | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1608 | trail.push({ label: third === "settings" ? "General" : (SECTIONS[third] ?? third), to: page }); |
| The site no longer has g1t's own agents. g1t is where the coding agents you already use do their work, so the Agents mode is gone from the rail, with every page under /<workspace>/-/agents: personas, faces, skills, abilities, routines, computers, sessions and agent spend. Customize (skills, connectors, plugins, marketplaces), the context hub, model providers, the AI Gateway page, the Spend page and pill, Ask g1t, and the repository's Agents, Plans and agent settings pages go too, and their addresses now answer 404. | 1609 | // Members names its invitations. |
| 1610 | const tabs: Record<string, string> = third === "members" ? { invitations: "Invitations" } : {}; | |
| The Marketplace adds what g1t doesn't do and connects what you already use: extensions (Mail, Support, CRM, Recruiting, On-call, and bridges to a helpdesk, CRM or ERP you run, all Soon), starter kits, and integrations connected by the workspace or by each person; agents aren't installed there. Agent templates live in Agents, as starting points you configure, at Agents → Templates, and the Marketplace's old agent addresses lead there. The marketplace and agents guides say how. | 1611 | const tab = fourth ? tabs[fourth] : undefined; |
| The Marketplace is where a workspace finds what to add, reached from Apps: the agent catalog of roles with who already does each job and Add to workspace; every integration with whether it's connected; g1t's own extensions, listed as Soon; and requests, where members ask and owners add or turn down, each told by a notification. Underneath, an extension is a manifest (publisher and tier, source and version from a tag, scopes, the domains its data goes to, its page on g1tusercontent.com, no price) and an install pins its version with an off switch, a budget and the audit log. Apps lists only what was added from the Marketplace, with pins; g1t's own pages stay in their sidebars, and AI Gateway joins Workspace's. The marketplace guide says how. | 1612 | if (tab) trail.push({ label: tab, to: `${page}/${fourth}` }); |
| 1613 | } | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1614 | } else if (second) { |
| 1615 | const repo = `/${owner}/${second}`; | |
| 1616 | trail.push({ label: second, to: repo, mono: true }); | |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1617 | if (third === "pull" && fourth) trail.push({ label: `Pull request #${fourth}`, short: `#${fourth}`, to: `${repo}/pull/${fourth}` }); |
| 1618 | else if (third === "issues" && fourth && fourth !== "new") trail.push({ label: `Issue #${fourth}`, short: `#${fourth}`, to: `${repo}/issues/${fourth}` }); | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1619 | else if (third === "commit" && fourth) trail.push({ label: fourth.slice(0, 7), to: `${repo}/commit/${fourth}`, mono: true }); |
| 1620 | else if (third && SECTIONS[third]) { | |
| 1621 | trail.push({ label: SECTIONS[third]!, to: `${repo}/${third}` }); | |
| 1622 | // A settings page names which one: Settings / Secrets and variables. | |
| 1623 | if (third === "settings" && fourth && SECTIONS[fourth]) { | |
| Merge branch 'worktree-agent-a3abfcce648e87dca' | 1624 | trail.push({ label: SETTINGS_SECTIONS[fourth] ?? SECTIONS[fourth]!, to: `${repo}/settings/${fourth}` }); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1625 | } |
| 1626 | } | |
| 1627 | } | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1628 | if (trail.length === 0) trail.push({ label: "Overview", to: `/${owner}` }); |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1629 | return <Trail trail={trail} />; |
| 1630 | } | |
| 1631 | ||
| Chat controls, public profiles, shadcn selects, and no Docs tab in a project | 1632 | /** A profile's place in the top bar: the person's avatar and @handle, from the page once it has loaded. */ |
| 1633 | function ProfileCrumb({ username }: { username: string }) { | |
| One kind of access token; presence and status; usernames keep their case; the tour is a miniature of the real app; icons for password managers | 1634 | const page = useRouteLoaderData("routes/user") as { profile?: { username: string; displayUsername?: string | null; avatar: string | null } } | undefined; |
| Chat controls, public profiles, shadcn selects, and no Docs tab in a project | 1635 | const profile = page?.profile?.username.toLowerCase() === username.toLowerCase() ? page.profile : null; |
| 1636 | return ( | |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1637 | <Breadcrumb className="min-w-0"> |
| 1638 | <BreadcrumbList> | |
| 1639 | <BreadcrumbItem> | |
| 1640 | <BreadcrumbPage asChild className="flex items-center gap-2 hover:bg-raised"> | |
| 1641 | <Link to={`/u/${profile?.username ?? username}`}> | |
| 1642 | <Avatar name={profile?.username ?? username} image={profile?.avatar ?? null} size={20} /> | |
| 1643 | <span className="truncate font-mono text-[0.8125rem]">@{profile ? shownUsername(profile) : username}</span> | |
| 1644 | </Link> | |
| 1645 | </BreadcrumbPage> | |
| 1646 | </BreadcrumbItem> | |
| 1647 | </BreadcrumbList> | |
| 1648 | </Breadcrumb> | |
| 1649 | ); | |
| 1650 | } | |
| 1651 | ||
| 1652 | /** A page with no trail to it, such as Today or Search: its name alone. */ | |
| 1653 | function Here({ children }: { children: ReactNode }) { | |
| 1654 | return ( | |
| 1655 | <Breadcrumb className="min-w-0"> | |
| 1656 | <BreadcrumbList> | |
| 1657 | <BreadcrumbItem> | |
| 1658 | <BreadcrumbPage>{children}</BreadcrumbPage> | |
| 1659 | </BreadcrumbItem> | |
| 1660 | </BreadcrumbList> | |
| 1661 | </Breadcrumb> | |
| Chat controls, public profiles, shadcn selects, and no Docs tab in a project | 1662 | ); |
| 1663 | } | |
| 1664 | ||
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1665 | /** One link of the trail; `short` is what a phone shows when it is the page itself. */ |
| 1666 | type Crumb = { label: string; to: string; mono?: boolean; short?: string }; | |
| 1667 | ||
| 1668 | /** | |
| 1669 | * The trail of links. On a phone there is room for one: the page itself, | |
| 1670 | * with a way back to where it sits; the whole trail from a wider screen up. | |
| 1671 | */ | |
| 1672 | function Trail({ trail }: { trail: Crumb[] }) { | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1673 | // Up on a phone, unless up is the workspace itself: its pages are the tabs. |
| 1674 | const up = trail.length > 1 && !/^\/[^/]+$/.test(trail[trail.length - 2]!.to) ? trail[trail.length - 2]! : null; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1675 | return ( |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1676 | <Breadcrumb className="flex min-w-0 items-center"> |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1677 | {up && ( |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1678 | <Button asChild variant="ghost" size="icon-bar" className="-ml-1 sm:hidden"> |
| 1679 | <Link to={up.to} prefetch="intent" aria-label={`Back to ${up.label}`}> | |
| 1680 | <ChevronLeft size={16} /> | |
| 1681 | </Link> | |
| 1682 | </Button> | |
| Usage, Billing settings and prepaid AI credit; fixes from the UX audit | 1683 | )} |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1684 | <BreadcrumbList> |
| 1685 | {trail.map((crumb, index) => { | |
| 1686 | const last = index === trail.length - 1; | |
| 1687 | const label = | |
| 1688 | last && crumb.short ? ( | |
| 1689 | <> | |
| 1690 | <span className="sm:hidden">{crumb.short}</span> | |
| 1691 | <span className="hidden sm:inline">{crumb.label}</span> | |
| 1692 | </> | |
| 1693 | ) : ( | |
| 1694 | crumb.label | |
| 1695 | ); | |
| 1696 | const mono = crumb.mono ? "font-mono text-[0.8125rem]" : ""; | |
| 1697 | return ( | |
| 1698 | <Fragment key={index}> | |
| 1699 | {index > 0 && <BreadcrumbSeparator className="max-sm:hidden" />} | |
| 1700 | <BreadcrumbItem className={last ? "" : "max-sm:hidden"}> | |
| 1701 | {last ? ( | |
| 1702 | // The page you are on is still a link: to its own top, as the trail always was. | |
| 1703 | <BreadcrumbPage asChild className={`hover:bg-raised ${mono}`}> | |
| 1704 | <Link to={crumb.to} prefetch="intent"> | |
| 1705 | {label} | |
| 1706 | </Link> | |
| 1707 | </BreadcrumbPage> | |
| 1708 | ) : ( | |
| 1709 | <BreadcrumbLink asChild className={mono}> | |
| 1710 | <Link to={crumb.to} prefetch="intent"> | |
| 1711 | {label} | |
| 1712 | </Link> | |
| 1713 | </BreadcrumbLink> | |
| 1714 | )} | |
| 1715 | </BreadcrumbItem> | |
| 1716 | </Fragment> | |
| 1717 | ); | |
| 1718 | })} | |
| 1719 | </BreadcrumbList> | |
| 1720 | </Breadcrumb> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1721 | ); |
| 1722 | } | |
| 1723 | ||
| 1724 | type Command = PaletteCommand; | |
| 1725 | ||
| 1726 | /** Everything the palette can jump to, from what the sidebar already knows. */ | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1727 | function commandsFor(user: User, shell: ShellData): Command[] { |
| 1728 | const ws = shell.workspace; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1729 | const commands: Command[] = [ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1730 | ...(ws |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1731 | ? [ |
| The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how. | 1732 | { label: "Home", to: homePagePath(ws.slug), icon: <House size={15} /> }, |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1733 | { label: "Chat", to: `/${ws.slug}/-/chat`, icon: <MessagesSquare size={15} /> }, |
| 1734 | ...(hasCodeAccess(ws) ? [{ label: "Code overview", to: `/${ws.slug}/-/overview`, icon: <Code2 size={15} /> }] : []), | |
| 1735 | { label: "Artifacts", to: `/${ws.slug}/-/artifacts`, icon: <Shapes size={15} /> }, | |
| 1736 | { label: "Apps", hint: "Everything installed that you can use", to: `/${ws.slug}/-/apps`, icon: <LayoutGrid size={15} /> }, | |
| 1737 | { label: "Workspace", hint: "Billing, policies, settings", to: `/${ws.slug}/-/workspace`, icon: <Building2 size={15} /> }, | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1738 | ] |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1739 | : []), |
| 1740 | { label: "Explore repositories", to: "/explore", icon: <Compass size={15} /> }, | |
| 1741 | { label: "Search g1t", hint: "Repositories, code, issues, people", to: "/search", icon: <Search size={15} /> }, | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1742 | { label: "Notifications", hint: "What needs you", to: "/notifications", icon: <Bell size={15} /> }, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1743 | { label: "New project", to: "/new", icon: <Plus size={15} /> }, |
| 1744 | { label: "Your settings", to: FIRST_SETTINGS_PAGE, icon: <Settings size={15} /> }, | |
| 1745 | ...(Object.keys(ACCOUNT_SETTINGS) as AccountSettingsPage[]) | |
| 1746 | .filter((page) => page !== "profile") | |
| 1747 | .map((page) => ({ label: ACCOUNT_SETTINGS[page].title, hint: "Your settings", to: `/settings/${page}`, icon: <Settings size={15} /> })), | |
| You choose how g1t looks: Auto follows your system, Light and Dark stay put, set from the account menu, the phone's You and help sheet, Settings → Account or the command palette; the page is drawn in your choice from the first byte, every colour has a light value that reads at 4.5:1 or better, code and diffs are highlighted for both, diagrams and the document editor follow along, the product tour and the g1t mark's avatar stay dark, and Dark is what you see until you choose; the workspaces guide says how. | 1748 | ...THEME_COMMANDS, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1749 | ]; |
| 1750 | const repo = shell.repo; | |
| 1751 | if (repo) { | |
| 1752 | const base = `/${repo.namespace}/${repo.name}`; | |
| 1753 | const name = `${repo.namespace}/${repo.name}`; | |
| 1754 | commands.unshift( | |
| 1755 | { label: "Overview", hint: name, to: base, icon: <LayoutGrid size={15} /> }, | |
| 1756 | { label: "Code", hint: name, to: `${base}/code`, icon: <Code2 size={15} /> }, | |
| 1757 | { label: "Issues", hint: name, to: `${base}/issues`, icon: <CircleDot size={15} /> }, | |
| 1758 | { label: "New issue", hint: name, to: `${base}/issues/new`, icon: <Plus size={15} /> }, | |
| 1759 | { label: "Pull requests", hint: name, to: `${base}/pulls`, icon: <GitPullRequest size={15} /> }, | |
| 1760 | { label: "Commits", hint: name, to: `${base}/commits`, icon: <History size={15} /> }, | |
| 1761 | ...(repo.member | |
| 1762 | ? [ | |
| 1763 | { label: "Deployments", hint: name, to: `${base}/deployments`, icon: <Rocket size={15} /> }, | |
| 1764 | { label: "Secrets and variables", hint: name, to: `${base}/settings/secrets`, icon: <Lock size={15} /> }, | |
| 1765 | { label: "Project settings", hint: name, to: `${base}/settings`, icon: <Settings size={15} /> }, | |
| 1766 | { label: "Repository settings", hint: name, to: `${base}/settings/repository`, icon: <Settings size={15} /> }, | |
| 1767 | ] | |
| 1768 | : []), | |
| 1769 | ); | |
| 1770 | } | |
| 1771 | for (const membership of user.workspaces ?? []) { | |
| 1772 | commands.push( | |
| 1773 | { label: displayName(membership), hint: `Workspace · ${membership.slug}`, to: `/${membership.slug}`, icon: <Avatar name={membership.slug} image={membership.avatar} size={15} square /> }, | |
| Navigation: the workspace's own page with tabs, pins and recent in the sidebar | 1774 | { label: "All projects", hint: membership.slug, to: `/${membership.slug}/-/projects`, icon: <LayoutGrid size={15} /> }, |
| 1775 | { label: "People", hint: membership.slug, to: `/${membership.slug}/-/people`, icon: <Users size={15} /> }, | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1776 | { label: "Usage", hint: membership.slug, to: `/${membership.slug}/-/usage`, icon: <BarChart3 size={15} /> }, |
| 1777 | { label: "Billing and plans", hint: `${membership.slug} · Settings`, to: `/${membership.slug}/-/billing`, icon: <CreditCard size={15} /> }, | |
| 1778 | { label: "Access tokens", hint: `${membership.slug} · Settings`, to: `/${membership.slug}/-/tokens`, icon: <KeyRound size={15} /> }, | |
| 1779 | { label: "Integrations", hint: membership.slug, to: `/${membership.slug}/-/integrations`, icon: <Plug size={15} /> }, | |
| Workspace is the workspace's settings, in one place. Its sidebar is grouped, General, Access, Money, Compute, Code, Agents, Chat, Artifacts, Security and Integrations, every page one click away with no settings inside settings, the groups folding and the owner-only pages hidden from members; what is not here yet is marked Soon with a hint. Members is a list with search and filters for role, two-factor and team, and Invite opens a dialog: who, by username, name or email, their role and a note that goes into the invitation; nothing is filled in inline any more. Invitations is its own page with All, Pending, Accepted, Declined, Expired and Revoked filters that say how many, and each row's menu can copy the link, send it again or revoke it; identity learned to send an invitation again and to carry the note. Permissions gathers every rule about who may do what, by part: Code's base permission and member privileges, who creates teams, who creates channels, and, marked Soon with what applies today, forking private repositories, adding agents to conversations, messaging agents directly, creating spaces and default sharing, creating workspace agents and raising budgets, deploying to production and publishing packages. General lost what moved. The permissions guide is new, and the workspaces, people and teams, access, chat, teams, authentication and billing guides say where things are now. | 1780 | { label: "Members", hint: `${membership.slug} · Access`, to: `/${membership.slug}/-/members`, icon: <Users size={15} /> }, |
| 1781 | ...(membership.role === "owner" | |
| 1782 | ? [ | |
| 1783 | { label: "Invitations", hint: `${membership.slug} · Access`, to: `/${membership.slug}/-/members/invitations`, icon: <Mail size={15} /> }, | |
| 1784 | { label: "Permissions", hint: `${membership.slug} · Access`, to: `/${membership.slug}/-/permissions`, icon: <ShieldCheck size={15} /> }, | |
| 1785 | ] | |
| 1786 | : []), | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1787 | ); |
| 1788 | } | |
| 1789 | for (const listed of shell.repos) { | |
| 1790 | commands.push({ | |
| 1791 | label: listed.title ?? listed.name, | |
| 1792 | hint: `${listed.namespace} · Project`, | |
| 1793 | to: `/${listed.namespace}/${listed.name}`, | |
| 1794 | icon: <Box size={15} />, | |
| 1795 | }); | |
| 1796 | } | |
| 1797 | return commands; | |
| 1798 | } | |
| 1799 | ||
| 1800 | /** | |
| Merge branch 'worktree-agent-aca4790ea223aa235' | 1801 | * The page while the next one loads: after a moment it dims, under the |
| 1802 | * bar below, so it is plainly on its way out rather than frozen, and the | |
| 1803 | * next page fades up from there. Sending a form does not dim it: the | |
| 1804 | * form's button says it is working. Spread on the element holding the page. | |
| 1805 | */ | |
| 1806 | export function useLeaving() { | |
| 1807 | const navigation = useNavigation(); | |
| 1808 | const method = navigation.formMethod?.toUpperCase(); | |
| 1809 | const leaving = navigation.state === "loading" && (method == null || method === "GET"); | |
| 1810 | return { | |
| 1811 | "aria-busy": leaving || undefined, | |
| 1812 | className: `transition-opacity motion-reduce:transition-none ${leaving ? "opacity-60 delay-200 duration-300" : "duration-150"}`, | |
| 1813 | }; | |
| 1814 | } | |
| 1815 | ||
| 1816 | /** | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1817 | * A bar across the top of the page while the next one loads, as GitHub |
| 1818 | * has: it appears at once, creeps towards the end while waiting, then fills | |
| 1819 | * and fades when the page arrives. | |
| 1820 | */ | |
| 1821 | export function Progress() { | |
| 1822 | const navigation = useNavigation(); | |
| 1823 | const busy = navigation.state !== "idle"; | |
| 1824 | const [width, setWidth] = useState(0); | |
| 1825 | const [visible, setVisible] = useState(false); | |
| 1826 | useEffect(() => { | |
| 1827 | if (busy) { | |
| 1828 | setVisible(true); | |
| 1829 | setWidth(12); | |
| 1830 | // Slows as it goes, never quite arriving until the page does. | |
| 1831 | const timer = setInterval(() => setWidth((now) => now + (90 - now) * 0.12), 200); | |
| 1832 | return () => clearInterval(timer); | |
| 1833 | } | |
| 1834 | setWidth((now) => (now > 0 ? 100 : 0)); | |
| 1835 | const fade = setTimeout(() => setVisible(false), 250); | |
| 1836 | const reset = setTimeout(() => setWidth(0), 550); | |
| 1837 | return () => { | |
| 1838 | clearTimeout(fade); | |
| 1839 | clearTimeout(reset); | |
| 1840 | }; | |
| 1841 | }, [busy]); | |
| 1842 | return ( | |
| 1843 | <div | |
| 1844 | aria-hidden="true" | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 1845 | className={`pointer-events-none fixed inset-x-0 top-0 z-60 h-0.75 transition-opacity duration-300 ${ |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1846 | visible ? "opacity-100" : "opacity-0" |
| 1847 | }`} | |
| 1848 | > | |
| 1849 | <div | |
| 1850 | className="h-full bg-accent shadow-[0_0_10px_var(--color-accent)] transition-[width] duration-200 ease-out" | |
| 1851 | style={{ width: `${width}%` }} | |
| 1852 | /> | |
| 1853 | </div> | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1854 | ); |
| 1855 | } | |
| 1856 | ||
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1857 | /** |
| The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how. | 1858 | * Which sidebar sits beside the page: each mode's own, or none. Home and |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1859 | * Apps are pages at full width, and so are g1t's own pages, such as its |
| 1860 | * policies, which are no workspace's. g1t beyond your workspaces (Explore, | |
| 1861 | * a profile, another workspace's projects) has Explore's. Without a | |
| 1862 | * workspace, only your own settings and Notifications have one. | |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1863 | */ |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1864 | function sidebarFor(mode: ModeKey, workspace: boolean): Panel | null { |
| 1865 | if (!workspace) return mode === "account" || mode === "notifications" ? mode : null; | |
| The front page is Home: where you're needed comes first, however long ago it started, with what's at stake and how long it has waited; then what happened since you were last here, in words, with the agent work that settled, what landed, what deployed, what was decided and what was spent, switchable to the last 24 hours or 7 days; then what's running now. Your last visit is kept with your account, so it's the same on every device; Today's old address leads here. The home guide says how. | 1866 | if (mode === "home" || mode === "apps" || mode === "site") return null; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1867 | return mode; |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1868 | } |
| 1869 | ||
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1870 | /** The sidebars that sit beside the page, one per mode that has one. */ |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1871 | type Panel = "chat" | "artifacts" | "code" | "notifications" | "people" | "workspace" | "account" | "browse"; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1872 | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1873 | /** Each sidebar's name, for the button that opens it on a phone. */ |
| Phones reach every page: each mode's menu from the top bar or by tapping the tab you're on, Docs first in the avatar sheet, a project's pages as a swipeable strip; dialogs as bottom sheets above the keyboard, safe areas, menus kept on screen, 40px targets, touch-visible controls, save bars above the tab bar | 1874 | const MODE_MENU: Record<Panel, string> = { |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1875 | browse: "Explore", |
| Phones reach every page: each mode's menu from the top bar or by tapping the tab you're on, Docs first in the avatar sheet, a project's pages as a swipeable strip; dialogs as bottom sheets above the keyboard, safe areas, menus kept on screen, 40px targets, touch-visible controls, save bars above the tab bar | 1876 | chat: "Chat", |
| Artifacts is a mode in the rail, the shell and the phone's tab bar in place of Docs: its home lists everything you can open by day or as cards under All, Yours and Shared with you, with search, filters and tiles to start a doc (slides, designs and dashboards say they are coming soon), and its sidebar holds favorites, spaces, Private, Shared, projects' docs and the trash. | 1877 | artifacts: "Artifacts", |
| Phones reach every page: each mode's menu from the top bar or by tapping the tab you're on, Docs first in the avatar sheet, a project's pages as a swipeable strip; dialogs as bottom sheets above the keyboard, safe areas, menus kept on screen, 40px targets, touch-visible controls, save bars above the tab bar | 1878 | code: "Code", |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1879 | notifications: "Notifications", |
| 1880 | people: "People", | |
| Phones reach every page: each mode's menu from the top bar or by tapping the tab you're on, Docs first in the avatar sheet, a project's pages as a swipeable strip; dialogs as bottom sheets above the keyboard, safe areas, menus kept on screen, 40px targets, touch-visible controls, save bars above the tab bar | 1881 | workspace: "Workspace", |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1882 | account: "Your account", |
| Phones reach every page: each mode's menu from the top bar or by tapping the tab you're on, Docs first in the avatar sheet, a project's pages as a swipeable strip; dialogs as bottom sheets above the keyboard, safe areas, menus kept on screen, 40px targets, touch-visible controls, save bars above the tab bar | 1883 | }; |
| 1884 | ||
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1885 | /** Whether a key press happened in something you type into, where Ctrl B is the editor's. */ |
| 1886 | function typing(target: EventTarget | null): boolean { | |
| 1887 | if (!(target instanceof HTMLElement)) return false; | |
| 1888 | return target.isContentEditable || target.closest("input, textarea, select, [contenteditable=''], [contenteditable='true'], [role='textbox']") != null; | |
| 1889 | } | |
| 1890 | ||
| 1891 | /** Ctrl B (⌘B on a Mac) shows or hides the sidebar, except while typing. */ | |
| 1892 | function useSidebarShortcut(toggle: () => void) { | |
| 1893 | useEffect(() => { | |
| 1894 | const onKey = (event: KeyboardEvent) => { | |
| 1895 | if (event.key.toLowerCase() !== "b" || event.altKey || event.shiftKey || !(event.ctrlKey || event.metaKey)) return; | |
| 1896 | if (event.defaultPrevented || typing(event.target)) return; | |
| 1897 | event.preventDefault(); | |
| 1898 | toggle(); | |
| 1899 | }; | |
| 1900 | window.addEventListener("keydown", onKey); | |
| 1901 | return () => window.removeEventListener("keydown", onKey); | |
| 1902 | }, [toggle]); | |
| 1903 | } | |
| 1904 | ||
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1905 | /** |
| 1906 | * Search or jump to: the command palette. On a computer it looks like the | |
| 1907 | * field it opens, with its shortcut; on a phone, a magnifier. | |
| 1908 | */ | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1909 | function SearchButton({ onClick, place }: { onClick: () => void; place: "bar" | "sidebar" }) { |
| 1910 | const field = ( | |
| 1911 | <Button | |
| 1912 | variant="outline" | |
| 1913 | size="sm" | |
| 1914 | aria-label="Search or jump to" | |
| 1915 | onClick={onClick} | |
| 1916 | className={ | |
| 1917 | place === "sidebar" | |
| 1918 | ? "w-full justify-start bg-bg font-normal text-faint hover:bg-bg hover:text-muted" | |
| 1919 | : "mr-1 w-[min(18rem,26vw)] justify-start bg-surface font-normal text-faint hover:bg-surface hover:text-muted max-md:hidden" | |
| 1920 | } | |
| 1921 | > | |
| 1922 | <Search size={15} /> | |
| 1923 | <span className="grow truncate text-left">Search or jump to</span> | |
| 1924 | <PaletteKey className="px-1.5 text-[0.625rem] leading-4 text-muted" /> | |
| 1925 | </Button> | |
| 1926 | ); | |
| 1927 | if (place === "sidebar") return field; | |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1928 | return ( |
| 1929 | <> | |
| 1930 | <Button variant="ghost" size="icon-bar" aria-label="Search or jump to" onClick={onClick} className="md:hidden"> | |
| 1931 | <Search size={18} /> | |
| 1932 | </Button> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1933 | {field} |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 1934 | </> |
| 1935 | ); | |
| 1936 | } | |
| 1937 | ||
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1938 | /** The sidebar's shortcut, for the hint on its toggle. */ |
| 1939 | function useSidebarKey(): string { | |
| 1940 | return sidebarKeyLabel(typeof navigator === "undefined" ? null : navigator.platform); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1941 | } |
| 1942 | ||
| Chat and workspace agents: channels, DMs and named agents you talk to | 1943 | /** |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1944 | * The app: three surfaces that never blur together. The rail, a narrow |
| 1945 | * column of icons down the window's left edge; the mode's sidebar, flat | |
| 1946 | * against it with a hairline between, which folds away with Ctrl B and is | |
| The page sits flat against the sidebar. On a computer it fills the rest of the window with no inset, no rounded corners and no frame around it, and its top bar always draws the line under itself, so a page's own header, a conversation's or a project's, sits beneath it as its own band instead of merging with it; the scroll watcher that used to decide when the line appeared is gone. A phone keeps its rounded panel above the bottom bar. The workspaces guide says so. | 1947 | * a drawer below 1024px; and the page, flat against the sidebar and |
| 1948 | * filling the rest of the window, with its top bar across the top and a | |
| Merge branch 'ask-g1t' | 1949 | * line under it: the sidebar's toggle, where you are, search, Ask, the bell and |
| The page sits flat against the sidebar. On a computer it fills the rest of the window with no inset, no rounded corners and no frame around it, and its top bar always draws the line under itself, so a page's own header, a conversation's or a project's, sits beneath it as its own band instead of merging with it; the scroll watcher that used to decide when the line appeared is gone. A phone keeps its rounded panel above the bottom bar. The workspaces guide says so. | 1950 | * Create new. On a phone the rail is a bar along the bottom and the page |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 1951 | * fills the window above it, flat as well. Only for someone signed in; without a workspace yet, there |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 1952 | * is no rail. The rail and the sidebar are drawn from the sidebar kit |
| 1953 | * (components/ui/sidebar.tsx): one provider holds whether the sidebar is | |
| 1954 | * open on a computer and whether the drawer is. | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1955 | */ |
| 1956 | export function AppShell({ | |
| 1957 | user, | |
| 1958 | shell, | |
| 1959 | missing = false, | |
| 1960 | banner, | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1961 | sidebarClosed = false, |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1962 | children, |
| 1963 | }: { | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1964 | user: User; |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1965 | shell: ShellData; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1966 | /** The page is a 404 (see CodeSidebar). */ |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1967 | missing?: boolean; |
| 1968 | banner?: ReactNode; | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1969 | /** Whether the person folded the sidebar away, as their cookie says. */ |
| 1970 | sidebarClosed?: boolean; | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1971 | children: ReactNode; |
| 1972 | }) { | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1973 | const { pathname } = useLocation(); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1974 | const [drawer, setDrawer] = useState(false); |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1975 | const [closed, setClosed] = useState(sidebarClosed); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1976 | const [palette, setPalette] = useState(false); |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1977 | const commands = useMemo(() => commandsFor(user, shell), [user, shell]); |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1978 | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1979 | // A new page closes the drawer. |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 1980 | useEffect(() => setDrawer(false), [pathname]); |
| 1981 | usePaletteShortcut(() => setPalette((open) => !open)); | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 1982 | // In the desktop app, search is in the middle of its title bar, as in Slack, and not in the top bar too. |
| 1983 | const titleSearch = useTitleBarSearch(`Search ${shell.workspace?.name ?? shell.workspace?.slug ?? "g1t"}`, () => setPalette(true)); | |
| Merge branch 'worktree-agent-aca4790ea223aa235' | 1984 | const leaving = useLeaving(); |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1985 | useVisualViewport(); |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1986 | const going = useNavigation().location?.pathname; |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1987 | const ws = shell.workspace; |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 1988 | // Beyond your workspaces (Explore, a profile, another workspace's |
| 1989 | // projects), the shell is Explore's; anything of yours is its mode's. | |
| 1990 | const browsing = browsingOf(going ?? pathname, { | |
| 1991 | slug: ws?.slug ?? null, | |
| 1992 | memberships: (user.workspaces ?? []).map((membership) => membership.slug), | |
| 1993 | shared: shell.shared, | |
| 1994 | username: user.username, | |
| 1995 | }); | |
| 1996 | const mode: ModeKey = browsing ? "browse" : modeOf(going ?? pathname, ws?.slug ?? null); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 1997 | const panel = sidebarFor(mode, ws != null); |
| Chat and workspace agents: channels, DMs and named agents you talk to | 1998 | const { sidebar: chatSidebar } = useChatSidebar(); |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 1999 | // Notify: the feed socket's live counts (lib/notify-client.ts) once it has them; the page's until then. |
| 2000 | const live = useLiveBadges(ws?.slug); | |
| 2001 | const chatUnread = chatSidebar | |
| 2002 | ? unreadTotals(chatSidebar.entries) | |
| 2003 | : live?.chat != null | |
| 2004 | ? { unread: live.chat, mentions: live.mentions ?? 0 } | |
| 2005 | : (shell.chat ?? { unread: 0, mentions: 0 }); | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2006 | const notificationsUnread = live?.inbox ?? shell.inbox?.unread ?? 0; |
| 2007 | const unread = { notifications: notificationsUnread, chat: chatUnread.unread, mentions: chatUnread.mentions }; | |
| 2008 | ||
| 2009 | // Folding the sidebar away on a computer is remembered, so the next page is drawn the same from the server. | |
| 2010 | const toggleSidebar = useCallback(() => { | |
| 2011 | if (!window.matchMedia("(min-width: 1024px)").matches) { | |
| 2012 | setDrawer((open) => !open); | |
| 2013 | return; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2014 | } |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2015 | setClosed((was) => { |
| 2016 | document.cookie = sidebarCookie(!was, window.location.protocol === "https:"); | |
| 2017 | return !was; | |
| 2018 | }); | |
| 2019 | }, []); | |
| 2020 | useSidebarShortcut(useCallback(() => { | |
| 2021 | if (panel) toggleSidebar(); | |
| 2022 | }, [panel, toggleSidebar])); | |
| 2023 | ||
| 2024 | const inline = panel != null && !closed; | |
| 2025 | const sidebarNode = () => { | |
| 2026 | if (!panel) return null; | |
| 2027 | if (!ws) return panel === "notifications" ? <NotificationsSidebar counts={shell.inbox ?? null} /> : <AccountSidebar username={user.username} />; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2028 | switch (panel) { |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2029 | case "code": |
| 2030 | return <CodeSidebar user={user} shell={shell} missing={missing} />; | |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 2031 | case "browse": |
| 2032 | return <CodeSidebar user={user} shell={shell} missing={missing} browsing={browsing} />; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2033 | case "chat": |
| 2034 | return <ChatSidebar slug={ws.slug} />; | |
| Artifacts is a mode in the rail, the shell and the phone's tab bar in place of Docs: its home lists everything you can open by day or as cards under All, Yours and Shared with you, with search, filters and tiles to start a doc (slides, designs and dashboards say they are coming soon), and its sidebar holds favorites, spaces, Private, Shared, projects' docs and the trash. | 2035 | case "artifacts": |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2036 | return <FoliosSidebar slug={ws.slug} />; |
| 2037 | case "notifications": | |
| 2038 | return <NotificationsSidebar counts={shell.inbox ?? null} />; | |
| 2039 | case "people": | |
| 2040 | return <PeopleSidebar slug={ws.slug} />; | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2041 | case "workspace": |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2042 | return <WorkspaceSidebar slug={ws.slug} owner={ws.role === "owner"} />; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2043 | case "account": |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2044 | return <AccountSidebar username={user.username} />; |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2045 | } |
| 2046 | }; | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2047 | const sidebarKey = useSidebarKey(); |
| 2048 | // Search or jump to sits at the top of the sidebar, except in Chat and | |
| 2049 | // Artifacts, whose sidebars search their own lists: there it stays in the bar. | |
| 2050 | const sidebarSearch = panel != null && panel !== "chat" && panel !== "artifacts"; | |
| 2051 | // The sidebar's head: the workspace and its switcher, the way to fold the | |
| 2052 | // sidebar or close the drawer, and search, which opens the palette. | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2053 | const sidebarTop = (inDrawer: boolean) => ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2054 | <SidebarHeader className="gap-1 px-2 pt-0 pb-2"> |
| 2055 | <div className="flex h-14 shrink-0 items-center gap-1"> | |
| 2056 | {ws ? ( | |
| 2057 | <WorkspaceSwitcher user={user} workspace={ws} /> | |
| 2058 | ) : ( | |
| 2059 | <Link to="/" aria-label="g1t" className="mr-auto flex h-9 items-center rounded-md px-2"> | |
| 2060 | <Logo className="text-[1.125rem]" /> | |
| 2061 | </Link> | |
| 2062 | )} | |
| 2063 | {inDrawer ? ( | |
| 2064 | <Button type="button" aria-label="Close menu" onClick={() => setDrawer(false)} variant="ghost" size="icon-sm" className="text-faint"> | |
| 2065 | <X size={16} /> | |
| 2066 | </Button> | |
| 2067 | ) : ( | |
| 2068 | <SidebarTrigger hint={`Hide the sidebar (${sidebarKey})`} className="text-faint" /> | |
| 2069 | )} | |
| 2070 | </div> | |
| 2071 | {sidebarSearch && <SearchButton place="sidebar" onClick={() => setPalette(true)} />} | |
| 2072 | </SidebarHeader> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2073 | ); |
| 2074 | ||
| 2075 | // On a phone (below 768px): the bottom bar, and a conversation full screen. | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2076 | const conversation = isConversation(going ?? pathname); |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2077 | // Where the page panel starts: 8px past the rail (56px), or 8px past the sidebar (56 + 240px) when it is open. |
| The page sits flat against the sidebar. On a computer it fills the rest of the window with no inset, no rounded corners and no frame around it, and its top bar always draws the line under itself, so a page's own header, a conversation's or a project's, sits beneath it as its own band instead of merging with it; the scroll watcher that used to decide when the line appeared is gone. A phone keeps its rounded panel above the bottom bar. The workspaces guide says so. | 2078 | // The page starts where the rail (3.5rem) and, open, the sidebar (15rem) end. |
| People wear their own avatars wherever g1t knows them only by name, and a workspace is never shown as a person. The activity feeds, recent changes, home's most active faces, issue and pull request authors, assignees, comments and the audit log drew a person from their username alone, so everyone got their letter avatar instead of the picture they uploaded. An avatar given no picture now draws the letter at once and lays the person's own picture over it once it loads, from /-/avatar/user/<username> (routes/avatar-user.ts): a redirect to the picture on the usercontent origin, or not found, read from identity's people only, so a workspace's icon can never stand in for someone. Kept five minutes, public like the profile. Agents, the product tour's people, "someone" and workspaces' square avatars are never looked up (image null), so an account with the same name never lends them its face. | 2079 | const pad = ws ? (inline ? "md:pl-14 lg:pl-74" : "md:pl-14") : inline ? "lg:pl-60" : ""; |
| Chat and workspace agents: channels, DMs and named agents you talk to | 2080 | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2081 | return ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2082 | <SidebarProvider open={!closed} onOpenChange={(open) => setClosed(!open)} openMobile={drawer} onOpenMobileChange={setDrawer} toggleSidebar={toggleSidebar}> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2083 | <Progress /> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2084 | {ws && ( |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 2085 | <div className="fixed top-(--frame-top) bottom-0 left-0 z-40 hidden md:block"> |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 2086 | <Rail workspace={ws} mode={mode} pins={shell.pins ?? []} unread={unread} account={<AccountMenu user={user} />} /> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2087 | </div> |
| 2088 | )} | |
| 2089 | {panel && ( | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2090 | <Sidebar |
| 2091 | role="complementary" | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2092 | aria-label={`${MODE_MENU[panel]} sidebar`} |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 2093 | className={`fixed top-(--frame-top) bottom-0 z-40 max-lg:hidden ${ws ? "left-14" : "left-0"}`} |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2094 | > |
| 2095 | {sidebarTop(false)} | |
| 2096 | <div className="min-h-0 grow">{sidebarNode()}</div> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2097 | </Sidebar> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2098 | )} |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2099 | {/* The drawer is a sheet: a dialog that holds focus, closes on Escape or |
| 2100 | a tap outside, and gives focus back to the button that opened it. */} | |
| 2101 | {panel && ( | |
| 2102 | <SidebarMobile title={`${MODE_MENU[panel]} menu`} className="pb-[env(safe-area-inset-bottom)] max-md:[&_nav_a]:min-h-10"> | |
| 2103 | {sidebarTop(true)} | |
| 2104 | <div className="min-h-0 grow">{sidebarNode()}</div> | |
| 2105 | </SidebarMobile> | |
| 2106 | )} | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2107 | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 2108 | <div className={`min-h-dvh pt-(--frame-top) pb-(--tabbar-h) ${pad}`}> |
| The page sits flat against the sidebar. On a computer it fills the rest of the window with no inset, no rounded corners and no frame around it, and its top bar always draws the line under itself, so a page's own header, a conversation's or a project's, sits beneath it as its own band instead of merging with it; the scroll watcher that used to decide when the line appeared is gone. A phone keeps its rounded panel above the bottom bar. The workspaces guide says so. | 2109 | {/* The top bar always has its line, so a page's own header (data-page-head: a conversation's, a project's, |
| 2110 | a sticky one under an open artifact) sits under it as its own band. */} | |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 2111 | <div className="flex min-h-[calc(100dvh-var(--frame-top)-var(--tabbar-h))] min-w-0 flex-col bg-bg"> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2112 | <header |
| The phone app: Chat in full with phone notifications, plus Code and Customize (#4) | 2113 | className={`sticky top-(--frame-top) z-30 flex h-14 items-center gap-1 border-b border-line bg-bg pr-2 pl-2 sm:pr-3 ${inline ? "lg:pl-3.5" : ""} ${conversation ? "max-md:hidden" : ""}`} |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2114 | > |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2115 | {panel && ( |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2116 | <SidebarTrigger |
| 2117 | hint={`Show the sidebar (${sidebarKey})`} | |
| 2118 | aria-label={drawer ? "Hide the sidebar" : "Show the sidebar"} | |
| 2119 | aria-expanded={drawer} | |
| 2120 | className={`max-md:size-11 ${inline ? "lg:hidden" : ""}`} | |
| 2121 | /> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2122 | )} |
| 2123 | {ws && ( | |
| 2124 | <span className={`flex min-w-0 shrink items-center gap-1.5 ${inline ? "lg:hidden" : ""}`}> | |
| 2125 | <WorkspaceSwitcher user={user} workspace={ws} compact /> | |
| 2126 | <span aria-hidden="true" className="text-line-strong"> | |
| 2127 | / | |
| Merge the workspace shell: navigation and phone shell, g1t as orchestrator, agents in roles with audience-checked reads, reactions and custom emoji, live notifications and browser push, the homepage tour (agents 0002, chat 0002) | 2128 | </span> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2129 | </span> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2130 | )} |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2131 | <Breadcrumbs pathname={pathname} missing={missing} repo={shell.repo} workspace={ws?.slug ?? null} /> |
| Merge branch 'ask-g1t' | 2132 | {/* Search, Ask, then the bell and Create new: one height, one rhythm. */} |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 2133 | <div className="ml-auto flex shrink-0 items-center gap-1 md:gap-1.5"> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2134 | {/* With the sidebar open, search is at its top. */} |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 2135 | {!titleSearch && ( |
| 2136 | <span className={`flex ${inline && sidebarSearch ? "lg:hidden" : ""}`}> | |
| 2137 | <SearchButton place="bar" onClick={() => setPalette(true)} /> | |
| 2138 | </span> | |
| 2139 | )} | |
| Merge branch 'ask-g1t' | 2140 | {ws && <AskButton key={ws.slug} slug={ws.slug} />} |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 2141 | <Separator orientation="vertical" className="mx-1 data-[orientation=vertical]:h-5 max-md:hidden" /> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2142 | {/* On a phone, Notifications is in the bottom bar. */} |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 2143 | <span className="flex max-md:hidden"> |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2144 | <NotificationsBell counts={shell.inbox ? { ...shell.inbox, unread: notificationsUnread } : null} /> |
| 2145 | </span> | |
| 2146 | <CreateMenu shell={shell} /> | |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2147 | {/* Without a workspace there is no rail: the account is here. */} |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2148 | {!ws && <AccountMenu user={user} side="bottom" />} |
| 2149 | </div> | |
| 2150 | </header> | |
| 2151 | {banner} | |
| 2152 | <main id="content" tabIndex={-1} {...leaving} className={`min-w-0 grow outline-none ${leaving.className}`}> | |
| 2153 | <InMain.Provider value={true}>{children}</InMain.Provider> | |
| 2154 | </main> | |
| 2155 | </div> | |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2156 | </div> |
| Merge branch 'worktree-agent-aefe9db9851cfafd8' | 2157 | {ws && <BottomBar user={user} workspace={ws} mode={mode} pins={shell.pins ?? []} unread={unread} onReselect={panel ? () => setDrawer(true) : undefined} />} |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2158 | <CommandPalette open={palette} onOpenChange={setPalette} commands={commands} repo={shell.repo ? `${shell.repo.namespace}/${shell.repo.name}` : null} /> |
| The left-hand navigation takes less room and reads at a glance. The dock becomes a rail: a 56-pixel column of icons with the g1t mark on top, the current app marked by a filled square, hover hints naming each with its shortcut, the apps you pinned in a scrolling band, and Apps, People, Workspace and your account at the foot. Each mode's sidebar sits flush against it, 240 pixels wide, opening on Search or jump to and listing its groups under small labels in 36-pixel rows; Ctrl B hides it and the page grows into the room. Every mode's list is built on the shadcn Sidebar now in the kit, so Workspace, Code, People, Notifications, account settings, Chat, Artifacts and Agents all share one frame; the phone keeps its bottom bar and drawer. The workspaces guide describes the rail, the sidebar and the page. | 2159 | </SidebarProvider> |
| Inbox: a bell in the top bar opens it beside the page, and /inbox holds it all | 2160 | ); |
| 2161 | } | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2162 | |
| 2163 | /** Create new: a project, an issue in the one you are in, a workspace or a team. */ | |
| 2164 | function CreateMenu({ shell }: { shell: ShellData }) { | |
| 2165 | return ( | |
| 2166 | <DropdownMenu> | |
| 2167 | <Hint label="Create new"> | |
| The top of every page is one surface: the breadcrumb, search, spend, Ask g1t, bell and + share one height, corners and spacing, Ask g1t is a plain tinted button with the g1t mark drawn on whole pixels, a page's own header sits directly under the bar at the same left edge, and every section, conversations and open artifacts included, draws the same rounded panel. Tables written in chat render as tables, and the site's file, checkbox, radio, number and date controls are the design system's. Button, Separator, Breadcrumb, Table and FileDrop join the shared components; the chat guide says how tables work. | 2168 | <DropdownMenuTrigger asChild> |
| 2169 | <Button variant="ghost" size="bar" aria-label="Create new" className="gap-0.5 px-1.5 text-fg/90"> | |
| 2170 | <Plus size={17} className="max-md:size-5" /> | |
| 2171 | <ChevronDown size={12} className="text-faint max-md:hidden" /> | |
| 2172 | </Button> | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2173 | </DropdownMenuTrigger> |
| 2174 | </Hint> | |
| 2175 | <DropdownMenuContent align="end" className="min-w-52"> | |
| 2176 | {shell.repo && ( | |
| 2177 | <> | |
| 2178 | <DropdownMenuLabel className="truncate">In {shell.repo.name}</DropdownMenuLabel> | |
| 2179 | <DropdownMenuItem asChild> | |
| 2180 | <Link to={`/${shell.repo.namespace}/${shell.repo.name}/issues/new`}> | |
| 2181 | <CircleDot /> | |
| 2182 | New issue | |
| 2183 | </Link> | |
| 2184 | </DropdownMenuItem> | |
| 2185 | <DropdownMenuSeparator /> | |
| 2186 | </> | |
| 2187 | )} | |
| 2188 | <DropdownMenuItem asChild> | |
| 2189 | <Link to="/new"> | |
| 2190 | <Box /> | |
| 2191 | New project | |
| 2192 | </Link> | |
| 2193 | </DropdownMenuItem> | |
| 2194 | <DropdownMenuItem asChild> | |
| 2195 | <Link to="/new/github"> | |
| 2196 | <GitBranch /> | |
| 2197 | Import from GitHub | |
| 2198 | </Link> | |
| 2199 | </DropdownMenuItem> | |
| Merge remote-tracking branch 'origin/claude/cool-newton-7nm8r9' into claude/cool-newton-7nm8r9 | 2200 | {/* A team in the workspace you are in, for whoever it lets create one. A new workspace is made from the workspace switcher in the rail. */} |
| 2201 | {shell.workspace && <DropdownMenuSeparator />} | |
| g1t is described as the product it is in alpha, and its shell takes the new shape: the README, the docs home and docs/PLAN.md label every feature Live, Preview or Coming; a floating dock with the g1t mark, Today, Chat, Notifications, Agents, Code, Artifacts, your pinned apps and the Apps launcher, with People, Workspace and the account menu (now holding help) at its foot; the workspace's logo and switcher heading a flat sidebar that folds away with Ctrl B, or leading the header's breadcrumbs where there is none; the page in a rounded panel with a full-width header; Today as the front page, with first-time acceptance of agents' pull requests, what needs you and what's at stake, spend today and one item to start with, every number from a service; Notifications in place of the Inbox at /notifications; a bottom bar and More sheet on phones; and sign-in, sign-up, two-factor, reset, invites and choosing a workspace on standalone pages with no app around them. | 2202 | {shell.workspace && |
| 2203 | (mayCreateTeams(shell.workspace.team_creation, shell.workspace.role) ? ( | |
| 2204 | <DropdownMenuItem asChild> | |
| 2205 | <Link to={`/${shell.workspace.slug}/-/teams/new`}> | |
| 2206 | <UsersRound /> | |
| 2207 | New team | |
| 2208 | </Link> | |
| 2209 | </DropdownMenuItem> | |
| 2210 | ) : ( | |
| 2211 | <DropdownMenuItem disabled> | |
| 2212 | <UsersRound /> | |
| 2213 | New team | |
| 2214 | <span className="ml-auto pl-3 text-xs text-faint">Owners only</span> | |
| 2215 | </DropdownMenuItem> | |
| 2216 | ))} | |
| 2217 | </DropdownMenuContent> | |
| 2218 | </DropdownMenu> | |
| 2219 | ); | |
| 2220 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.