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.
| Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix | 1 | /** |
| 2 | * The tabs under the header. Each shows its own part of the sidebar: the | |
| Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button. | 3 | * groups named in its `groups`, in the sidebar's order. A page belongs to |
| 4 | * the tab holding its group; the home page, in no group, to the first. | |
| 5 | * The API reference tab takes every group not named here, since the | |
| 6 | * operations' groups are named after the API's tags. | |
| Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix | 7 | */ |
| Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button. | 8 | export type Tab = { label: string; groups: string[] }; |
| Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix | 9 | |
| 10 | export const TABS: Tab[] = [ | |
| Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button. | 11 | { label: 'Get started', groups: ['Get started', 'About'] }, |
| 12 | { label: 'Chat and agents', groups: ['Chat and agents', 'Agents on code'] }, | |
| 13 | { label: 'Code', groups: ['Landing changes', 'Security'] }, | |
| 14 | { label: 'Projects', groups: ['Projects'] }, | |
| 15 | { label: 'Workspaces', groups: ['Workspaces', 'Connect your tools'] }, | |
| 16 | { label: 'Self-hosting', groups: ['Run g1t yourself'] }, | |
| 17 | { label: 'API reference', groups: [] }, | |
| Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix | 18 | ]; |
| 19 | ||
| Merge the docs' new look: tabs for each section with their own short sidebar, a larger title under its section, a lavender pill for the current page, links in the text's colour on a lavender underline, On this page on a rail, and a header whose right side is g1t.sh, Source, Sign up and one theme button. | 20 | const API = TABS[TABS.length - 1]; |
| 21 | ||
| 22 | /** The tab that holds the sidebar group with this label. */ | |
| 23 | export function tabForGroup(label: string): Tab { | |
| 24 | return TABS.find((tab) => tab.groups.includes(label)) ?? API; | |
| Mission control shows model usage, yours and the workspace's: tokens, cost, active days, cache share, each day, and the mix | 25 | } |
This file's history is long; its oldest lines are credited to the oldest commit read.