Skip to content

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

g1t.sh

Commit

Explore sits right after Home in the rail, at the top: exploring g1t is one of its main parts, not an afterthought below Artifacts.

syntaqxcommitted Parent3c3ee14Browse files
1 file+14−110/1 viewed
+14−11
11 import { Check, ChevronDown, CircleUserRound, Compass, LayoutGrid, Plus, Settings } from "lucide-react";
2−import { type ReactNode, useState } from "react";
2+import { Fragment, type ReactNode, useState } from "react";
33 import { Link, useLocation, useNavigation } from "react-router";
44
55 import { type Membership, type User, hasCodeAccess, shownUsername } from "@g1t/contracts";
262262 <SidebarContent className="items-center gap-0">
263263 <SidebarMenu className="w-auto shrink-0 gap-2">
264264 {builtins.map((item) => (
265− <RailLink
266− key={item.key}
267− to={modeHome(item.key, slug)}
268− label={item.label}
269− icon={appIcon(item.key as BuiltinApp, 20)}
270− current={here === item.key && !shown.some((app) => at(app.to))}
271− badge={item.badge}
272− />
265+ <Fragment key={item.key}>
266+ <RailLink
267+ to={modeHome(item.key, slug)}
268+ label={item.label}
269+ icon={appIcon(item.key as BuiltinApp, 20)}
270+ current={here === item.key && !shown.some((app) => at(app.to))}
271+ badge={item.badge}
272+ />
273+ {/* Right after Home: g1t beyond your workspaces (Explore, search, profiles, other workspaces and their public projects). */}
274+ {item.key === "home" && (
275+ <RailLink to="/explore" label="Explore" icon={<Compass size={20} />} current={here === "browse" || at("/explore")} />
276+ )}
277+ </Fragment>
273278 ))}
274− {/* g1t beyond your workspaces: Explore, search, profiles, other workspaces and their public projects. */}
275− <RailLink to="/explore" label="Explore" icon={<Compass size={20} />} current={here === "browse" || at("/explore")} />
276279 </SidebarMenu>
277280 {/* Your pinned apps: as many as you like, scrolling under a fade at either end. */}
278281 {shown.length > 0 && (