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

Home fits a phone, and Getting started can be opened again from it: on a phone Home's grid had no column template, so its one column took the width of its widest row (526 px on a 390 px screen); every card ran off the right edge, and the Ask panel, sized to the page, opened as wide and cut off too. The grid's column is now minmax(0, 1fr) below lg. An owner who closed Getting started had no way back on Home itself: a Getting started button now sits at the top of Home for them (GettingStartedButton, as on Settings → General). Home's ask box is 16 px on a phone, so tapping it doesn't zoom the page, and drops the g1t mark there. Home and workspaces guides say where the button is. Checked: apps/web typecheck; the live Home at 390 px with the grid rule applied: page width 390, nothing past the edge; Ask panel on a page that fits: full width, nothing cut off.

G1t-Session:
ses_01m4ysye20ecnrq04gbbm7nzk1
syntaqxcommitted Parent28eb0bcBrowse files
4 files+16−70/4 viewed
+2−1
2626
2727 For a workspace's owners, Home also opens
2828 [Getting started](/guides/workspaces/#getting-started), the setup guide,
29−until they finish or close it; `?setup=1` opens it again.
29+until they finish or close it. The **Getting started** button at the top
30+of Home opens it again at any time, as `?setup=1` does.
3031
3132 Every number on the page comes from what g1t has recorded. Nothing is
3233 estimated. When a part of g1t does not answer, the section it feeds says
+2−1
8181
8282 Closing the guide puts it away too: it stops opening by itself for you,
8383 in this workspace, on every device. Nothing else changes. Open it again
84−any time from **Settings → General** (**Getting started**), from the
84+any time from the **Getting started** button at the top of Home, from
85+**Settings → General** (**Getting started**), from the
8586 workspace's **AI** page, or by typing *Getting started* in the command
8687 palette, which opens Home with `?setup=1`. Each owner has their own:
8788 closing it does not close it for anyone else.
+2−2
5858 </h1>
5959 <form onSubmit={submit} className="w-full">
6060 <div className="flex items-end gap-2 rounded-2xl border border-line bg-surface p-2 pl-4 shadow-sm transition-shadow focus-within:border-accent-dim focus-within:ring-2 focus-within:ring-accent/25">
61− <MarkGlyph className="mb-2.5 h-4 shrink-0" />
61+ <MarkGlyph className="mb-2.5 h-4 shrink-0 max-sm:hidden" />
6262 <label htmlFor="home-ask-box" className="sr-only">
6363 Ask g1t
6464 </label>
7070 rows={1}
7171 maxLength={16_000}
7272 placeholder="Ask g1t what changed, what's blocked, or what to do next"
73− className="field-sizing-content max-h-40 min-h-10 resize-none border-0 bg-transparent px-1 py-2 text-[0.9375rem] shadow-none focus-visible:ring-0"
73+ className="field-sizing-content max-h-40 min-h-10 resize-none border-0 bg-transparent px-1 py-2 text-base shadow-none focus-visible:ring-0 sm:text-[0.9375rem]"
7474 />
7575 <Hint label="Ask (Enter)">
7676 <Button type="submit" variant="accent" size="icon-sm" disabled={!draft.trim()} aria-label="Ask" className="mb-1">
+10−3
6666 import { HOME_WATCH_MAX, type HomeRepo } from "../../lib/home-live";
6767 import { readCookie } from "../../lib/mission";
6868 import { useHomeLive } from "../../lib/use-home-live";
69−import { loadOnboarding } from "../../lib/onboarding.server";
70−import { OnboardingOnPage } from "../../components/onboarding";
69+import { guideIsFor, loadOnboarding } from "../../lib/onboarding.server";
70+import { GettingStartedButton, OnboardingOnPage } from "../../components/onboarding";
7171 import { loadMissionControl } from "../../lib/mission-control.server";
7272 import { page } from "../../lib/meta";
7373 import { inbox } from "../../lib/services.server";
208208 watch,
209209 onboarding,
210210 setupAsked,
211+ /** Whether Getting started is for the viewer (an owner), so Home offers it again once dismissed. */
212+ guide: guideIsFor(viewer, slug),
211213 };
212214 }
213215
275277 <OnboardingOnPage slug={slug} view={loaderData.onboarding} asked={loaderData.setupAsked} />
276278 {/* 0. Ask g1t anything: the answer opens in the top bar's Ask panel. */}
277279 <header className="space-y-3">
280+ {loaderData.guide && (
281+ <div className="flex justify-end">
282+ <GettingStartedButton slug={slug} variant="soft" />
283+ </div>
284+ )}
278285 <HomeAsk span={span} />
279286 <p className="mx-auto max-w-2xl text-center text-sm leading-relaxed text-muted">
280287 <Suspense fallback={<Skeleton className="inline-block h-3.5 w-72 align-middle" />}>
296303 needed, Running now, what happened, then Spent and Settled (the side
297304 column's cards join it, `contents`, each in its place by `order`).
298305 */}
299− <div className="grid items-start gap-5 lg:grid-cols-[minmax(0,1fr)_20rem]">
306+ <div className="grid grid-cols-[minmax(0,1fr)] items-start gap-5 lg:grid-cols-[minmax(0,1fr)_20rem]">
300307 {/* 1. Where you're needed now, with the one to start with on top: no window. */}
301308 <div id="needed" className="order-1 scroll-mt-4 lg:col-start-1 lg:row-start-1">
302309 <Card

Comments

Sign in to comment.