paseo-follow-up 2.5.0 → 2.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/OVERVIEW.md CHANGED
@@ -22,7 +22,7 @@ you, in one place, ranked.
22
22
  It answers, or passes your words to the agent doing the work.
23
23
  - **Catch up** after a meeting or a morning away, one card at a time, on the desktop or your phone.
24
24
  - **PR statistics** show who opens, merges and reviews PRs, and how long PRs wait for a first review.
25
- - **Any provider:** agents on Claude Code, Codex, OpenCode, Pi, Copilot, Cursor and more get Follow-up's tools.
25
+ - **Any provider:** agents on Claude Code, Codex, OpenCode, Pi, Copilot, Cursor and more get every Follow-up feature.
26
26
 
27
27
  It never merges, requests reviewers, archives, answers a question for you or wakes a resting agent on its own.
28
28
 
package/README.md CHANGED
@@ -131,7 +131,6 @@ Steve Castaneda (questions with lettered options; MIT, see [THIRD_PARTY_NOTICES.
131
131
 
132
132
  [Defer](https://github.com/tomgrin10/paseo-defer),
133
133
  [Send to Paseo](https://github.com/tomgrin10/send-to-paseo),
134
- [Session Guard](https://github.com/tomgrin10/paseo-session-guard),
135
134
  [Smart Session](https://github.com/tomgrin10/paseo-smart-session),
136
135
  [Transcript Search](https://github.com/tomgrin10/paseo-transcript-search),
137
136
  [Transfer](https://github.com/tomgrin10/paseo-transfer),
package/client/home.tsx CHANGED
@@ -41,11 +41,14 @@ import { useHomeModel, useTick, type HomeSources } from "./home-data";
41
41
  import { laterLabel, useInbox, UndoBar, useNextRelay } from "./inbox";
42
42
  import { Spinner } from "./motion";
43
43
  import { Setup, SetupOffer, useOnboarding } from "./onboarding";
44
+ import { FinishSetupLine, SetupGate } from "./setup-gate";
45
+ import { reopenSetup, setupClosed } from "./setup-ui";
46
+ import { finishSetupLine } from "../shared/setup-popup";
44
47
  import type { OnboardingView } from "../shared/onboarding";
45
48
  import { withAlpha, isLight, mergedColor, type Colors } from "./theme";
46
49
  import { UpdateNotice, VersionMark } from "./updates";
47
50
  import { WhatsNewGate } from "./release-notes";
48
- import { ViewSync } from "./view-store";
51
+ import { ViewSync, useViewVersion } from "./view-store";
49
52
  import { CatchUp, CatchUpButton, KeysSheet } from "./catch-up";
50
53
  import { searchEnter } from "../shared/list-keys";
51
54
  import { HOME_KEYS } from "../shared/home-keys";
@@ -102,13 +105,15 @@ export type HomeDeps = {
102
105
  const PANE_PRIMARY = "follow-up-pane-primary";
103
106
 
104
107
  export function FollowHome(props: PluginScreenProps & { deps: HomeDeps }) {
105
- // Getting started takes Home's place on a fresh install (or after "Set up Follow-up again") until finished or skipped.
108
+ // Setup is a popup over Home (setup-is-one-popup): Home keeps only its Finish setup line once Close puts it away.
106
109
  const onboarding = useOnboarding();
107
110
  // Opened from "Set up again": read the flow's state afresh.
108
111
  const { refetch } = onboarding;
109
- useEffect(() => { if (props.params?.setup) void refetch(); }, [props.params?.setup, refetch]);
110
- if (onboarding.data?.show) return <Setup theme={props.theme} compact={props.layout.compact} view={onboarding.data} deps={{ openSettings: props.deps.openSettings }} />;
111
- return <HomeBody {...props} onboarding={onboarding.data} />;
112
+ useEffect(() => { if (props.params?.setup) { reopenSetup(); void refetch(); } }, [props.params?.setup, refetch]);
113
+ return <>
114
+ <HomeBody {...props} onboarding={onboarding.data} />
115
+ <SetupGate surface="home" theme={props.theme} compact={props.layout.compact} deps={{ openSettings: props.deps.openSettings, openHome: props.deps.openHome }} />
116
+ </>;
112
117
  }
113
118
 
114
119
  function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: OnboardingView | undefined }) {
@@ -120,6 +125,9 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
120
125
  // them on the home feed; the model counts them (model.raised) and they head the group. Catch up's deck and
121
126
  // model.needs stay workspaces.
122
127
  const model = useHomeModel(deps.sources);
128
+ // The setup row: an existing install's offer, or Finish setup once Close has put setup's popup away.
129
+ useViewVersion();
130
+ const setupRow = !!props.onboarding?.offer || !!finishSetupLine(props.onboarding, setupClosed());
123
131
  const queue = useSyncExternalStore(deps.sources.extras.subscribe, deps.sources.extras.queue, deps.sources.extras.queue);
124
132
  const raisedKeys = useMemo(() => new Set(queue.needs.map(r => r.key)), [queue.needs]);
125
133
  const omnibox = useOmnibox(model, deps.sources);
@@ -289,7 +297,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
289
297
  : undefined}
290
298
  // Phones: the setup offer goes after the Needs-you group when there is one, so the first ask stays high.
291
299
  raised={<NobodyRows theme={theme} compact={compact} data={queue} onDismissed={deps.sources.extras.refreshQueue} />}
292
- afterNeeds={compact && model.needs > 0 && props.onboarding?.offer ? <SetupOffer theme={theme} compact view={props.onboarding} /> : undefined}
300
+ afterNeeds={compact && model.needs > 0 && setupRow ? <><SetupOffer theme={theme} compact view={props.onboarding} /><FinishSetupLine theme={theme} compact /></> : undefined}
293
301
  emptyAction={<Button theme={theme} compact={compact} kind="primary" icon="Plus" title={NEW_NAME} onPress={() => openNew()} />}
294
302
  top={<ListTop theme={theme} dense={compact} title={compact ? undefined : <ListHeader theme={theme} compact={compact} onSettings={deps.openSettings} onKeys={() => setKeysOpen(v => !v)} onStats={openStats} onNew={() => openNew()} newLabel={newLabel} />}>
295
303
  {/* zIndex: on web every View is its own stacking context, so the sort menu only paints and hit-tests above the
@@ -310,7 +318,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
310
318
  {!omnibox.results && dispatchRows}
311
319
  {!compact && !omnibox.results && <StatusStrip theme={theme} model={model} filter={filter} onFilter={setFilter} touch={compact} dense={compact} />}
312
320
  {!compact && !omnibox.results && <UsageMeters theme={theme} sources={deps.sources} dense={compact} hold={!!model.hold} />}
313
- {!compact && !omnibox.results && <SetupOffer theme={theme} compact={compact} view={props.onboarding} />}
321
+ {!compact && !omnibox.results && <><SetupOffer theme={theme} compact={compact} view={props.onboarding} /><FinishSetupLine theme={theme} compact={compact} /></>}
314
322
  </ListTop>}
315
323
  // Phones: only the search row stays pinned; the status chips and the setup offer scroll away with the list, so a
316
324
  // scrolled list keeps the screen instead of sitting under a 250px block.
@@ -320,7 +328,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
320
328
  <StatusStrip theme={theme} model={model} filter={filter} onFilter={setFilter} touch dense />
321
329
  {model.needs > 0 && deps.openCatchUp && <View style={{ paddingHorizontal: 16 }}><CatchUpButton theme={theme} compact count={deckSize} onPress={deps.openCatchUp} /></View>}
322
330
  {updateNotice}
323
- {model.needs === 0 && <SetupOffer theme={theme} compact view={props.onboarding} />}
331
+ {model.needs === 0 && <><SetupOffer theme={theme} compact view={props.onboarding} /><FinishSetupLine theme={theme} compact /></>}
324
332
  </View> : updateNotice} />;
325
333
 
326
334
  if (compact) return <View style={{ flex: 1, backgroundColor: c.surface0 }}>
package/client/live.tsx CHANGED
@@ -14,6 +14,7 @@ import { useHomeModel, type HomeSources } from "./home-data";
14
14
  import { onVisible, whileVisible } from "./visibility";
15
15
  import { FOLLOW_UP_ICON, NEED_DOT, needDotBox } from "./follow-up-icon";
16
16
  import { WhatsNewGate } from "./release-notes";
17
+ import { SetupGate } from "./setup-gate";
17
18
  import { ViewSync } from "./view-store";
18
19
  import { ToastHost } from "./toasts";
19
20
  import { newer, opened } from "./live-copies";
@@ -113,15 +114,15 @@ export function headerIcon(store: LiveStore) {
113
114
  * mounted, that view already lists the same agents right below, so the badge hides and the item stays as the
114
115
  * way into the full screen.
115
116
  */
116
- export function sidebarItem(sources: HomeSources, screenId: string) {
117
+ export function sidebarItem(sources: HomeSources, screenId: string, links: { openSettings?: (category?: string) => void } = {}) {
117
118
  return function FollowSidebarItem({ currentScreen, openScreen, theme, layout }: PluginSidebarItemProps) {
118
119
  // The same counts as Home's status strip and the brief headline.
119
120
  const count = homeCounts(useHomeModel(sources)).needs;
120
121
  const inSidebarView = useSidebarViewActive();
121
122
  const c = theme.colors;
122
123
  const shown = count > 0 && !inSidebarView;
123
- // What's new mounts here too (the sidebar is always there), so it shows even if you live in agent chats.
124
- return <><ViewSync /><WhatsNewGate surface="sidebar" theme={theme} compact={layout.compact} /><ToastHost theme={theme} compact={layout.compact} /><SidebarRow icon={FOLLOW_UP_ICON} active={currentScreen?.screenId === screenId} onPress={() => openScreen({ screenId, params: { section: "needs" } })}
124
+ // What's new and setup's popup mount here too (the sidebar is always there), so they show even if you live in agent chats.
125
+ return <><ViewSync /><WhatsNewGate surface="sidebar" theme={theme} compact={layout.compact} /><SetupGate surface="sidebar" theme={theme} compact={layout.compact} deps={{ openSettings: links.openSettings, openHome: () => openScreen({ screenId }) }} /><ToastHost theme={theme} compact={layout.compact} /><SidebarRow icon={FOLLOW_UP_ICON} active={currentScreen?.screenId === screenId} onPress={() => openScreen({ screenId, params: { section: "needs" } })}
125
126
  trailing={shown ? <View accessibilityLabel={`${count} need${count === 1 ? "s" : ""} you`} style={{ minWidth: 18, height: 18, paddingHorizontal: 5, borderRadius: 9, alignItems: "center", justifyContent: "center", backgroundColor: c.statusWarning }}>
126
127
  <Text style={{ color: c.surface0, fontSize: 11, lineHeight: 14, fontWeight: "700", fontVariant: ["tabular-nums"] }}>{count}</Text>
127
128
  </View> : undefined} /></>;
@@ -49,7 +49,7 @@ function SidebarSection({ theme, compact }: { theme: Theme; compact: boolean })
49
49
  const row = useNewRowSetting();
50
50
  return <SettingsSection title="Sidebar">
51
51
  <SettingsCard>
52
- <SettingsSwitch label={NEW_ROW.label} hint={NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value ?? true} disabled={row.value === null || row.saving} onValueChange={row.set} />
52
+ <SettingsSwitch label={NEW_ROW.label} hint={compact ? NEW_ROW.hint(null, null) : NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value ?? true} disabled={row.value === null || row.saving} onValueChange={row.set} />
53
53
  </SettingsCard>
54
54
  {row.value !== false && <Text style={[t.meta, { paddingHorizontal: 4 }]}>{NEW_ROW.paseo}</Text>}
55
55
  </SettingsSection>;
@@ -10,7 +10,6 @@ import { autoSendWrites, checksSummary, providersReady, setupSteps, shownStep, t
10
10
  import { Button, IconButton, errorText, text, type Theme } from "./kit";
11
11
  import { ReviewerSettings } from "./reviewers";
12
12
  import { JobRows } from "./job-rows";
13
- import { DockedPane } from "./docked-pane";
14
13
  import { SETUP_ORDER } from "../shared/job-rows";
15
14
  import { ShippingStep, shippingKey } from "./shipping";
16
15
  import { useNewRowSetting } from "./new-entry";
@@ -19,6 +18,8 @@ import { NEW_NAME, NEW_ROW } from "../shared/new-name";
19
18
  import { UpdatesStep, useUpdates } from "./updates";
20
19
  import { Spinner, useReducedMotion } from "./motion";
21
20
  import { raised, runningColor, tint, withAlpha, type Colors } from "./theme";
21
+ import { DoneBody, FooterLink, SETUP_TITLE, SetupShell, WelcomeBody, type DoneFact } from "./setup-dialog";
22
+ import { closeSetup, setupSession, useSetupSession } from "./setup-ui";
22
23
 
23
24
  /**
24
25
  * Getting started: the steps that take a fresh install to a configured Follow-up. Shown in Home's place while the
@@ -40,9 +41,15 @@ export function useOnboarding() {
40
41
  export type SetupDeps = {
41
42
  /** Opens Follow-up's settings, on a category when given (agents, reviewers, following). */
42
43
  openSettings(category?: string): void;
44
+ /** Opens Follow-up's Home (the done page's Go to Home). */
45
+ openHome?(): void;
46
+ /** The plugin's display name, for the welcome page. */
47
+ name?: string;
48
+ /** What's new, one click away on the welcome and done pages: the installed version and how to open the notes. */
49
+ whatsNew?: { version: string; open(): void } | null;
43
50
  };
44
51
 
45
- const TITLES: Record<OnboardingStep, string> = {
52
+ export const TITLES: Record<OnboardingStep, string> = {
46
53
  intro: "Follow-up keeps your agents' PRs moving",
47
54
  checks: "Check your setup",
48
55
  defaults: "What Follow-up does without asking",
@@ -53,13 +60,6 @@ const TITLES: Record<OnboardingStep, string> = {
53
60
  tour: "Where to find things",
54
61
  };
55
62
 
56
- /** Bottom clearance on phones. TODO(rebase): kit.tsx's bottomInset from the mobile rework replaces this. */
57
- function bottomPad(compact: boolean): ViewStyle {
58
- if (!compact) return { paddingBottom: 16 };
59
- if (Platform.OS === "web") return { paddingBottom: "max(12px, env(safe-area-inset-bottom))" as unknown as number };
60
- return { paddingBottom: Platform.OS === "ios" ? 34 : 24 };
61
- }
62
-
63
63
  export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: boolean; view: OnboardingView; deps: SetupDeps }) {
64
64
  const c = theme.colors; const t = text(c);
65
65
  const act = useRpc(setOnboardingRpc); const cache = useQueryClient(); const toast = useToast();
@@ -87,19 +87,22 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
87
87
  const index = steps.indexOf(step);
88
88
  const move = useMutation({
89
89
  mutationFn: (input: Parameters<typeof act>[0]) => act(input),
90
- onSuccess: next => { if (!next.show) cache.setQueryData(onboardingKey, next); },
90
+ // Every answer goes in the cache, so the popup opened again (Finish setup) starts on the step it was left on.
91
+ onSuccess: next => cache.setQueryData(onboardingKey, next),
91
92
  onError: error => toast.error(errorText(error)),
92
93
  });
93
94
  const go = (next: OnboardingStep) => { if (step === "checks" && next !== "intro") frozen.current = steps; else if (next === "intro" || next === "checks") frozen.current = null; setStep(next); scroll.current?.scrollTo({ y: 0, animated: false }); move.mutate({ action: "step", step: next }); };
94
- const finish = () => move.mutate({ action: "finish" }, { onSuccess: () => {
95
- const n = follow.data?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? 0;
96
- toast.show(n ? `Set up. Following ${n} workspace${n === 1 ? "" : "s"}.` : "Set up. Follow-up starts with your next workspace.", { variant: "success" });
97
- } });
95
+ // Finish holds the done page up: the server already says setup is over, so the session keeps it (setup-ui.ts).
96
+ const finish = () => { setupSession.set({ done: true }); move.mutate({ action: "finish" }, { onError: () => setupSession.set({ done: false }) }); };
97
+ const ui = useSetupSession();
98
+ // Close only puts the popup away: say where it went, once, in words (the a11y hint says the same).
99
+ const closeUi = () => { closeSetup(); toast.show("Setup stays where you left it. Finish setup on Home opens it again."); };
100
+ const closeDone = () => { setupSession.set({ done: false }); deps.openHome?.(); };
98
101
  const skip = () => move.mutate({ action: "skip" }, { onSuccess: () => toast.show("Setup skipped. Set it up any time from Follow-up settings, General.") });
99
102
  const last = index === steps.length - 1;
100
103
  const failing = step === "checks" && checks.data ? checksSummary(checks.data.checks).state === "fail" : false;
101
104
 
102
- const body = step === "intro" ? <IntroStep theme={theme} compact={compact} follow={follow.data ?? null} />
105
+ const body = step === "intro" ? null
103
106
  : step === "checks" ? <ChecksStep theme={theme} compact={compact} checks={checks} deps={deps} />
104
107
  : step === "defaults" ? <DefaultsStep theme={theme} compact={compact} held={view.holdsAutoSends} />
105
108
  : step === "shipping" ? <ShippingStep theme={theme} compact={compact} />
@@ -109,7 +112,7 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
109
112
  : <TourStep theme={theme} compact={compact} />;
110
113
  const lead: Record<OnboardingStep, string> = {
111
114
  intro: "It follows your agents' pull requests until the work is done, sends what needs fixing back to them as repairs, and asks you only for decisions.",
112
- checks: "Follow-up works with every agent Paseo runs. On Claude Code and Codex it also reminds agents at the end of each turn and can wait for their background jobs. GitHub is optional: with its CLI, Follow-up also follows your PRs.",
115
+ checks: "Follow-up works with every agent Paseo runs. GitHub is optional: with its CLI, Follow-up also follows your PRs.",
113
116
  defaults: "These are on now. Change anything here; it saves as you go, and Settings has the same switches.",
114
117
  shipping: "Follow-up merges and tracks PRs the way each repository already works. It picked these; change one if it's wrong.",
115
118
  reviewers: "When you press Add reviewers on a PR, Follow-up asks these people. Set a default for all repositories, or a list for one. Until then, PRs without reviewers show in Needs you.",
@@ -117,49 +120,42 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
117
120
  helpers: "Follow-up's own agents. They read, summarise and rank. They never change code or message anyone.",
118
121
  tour: "Five places worth knowing. Everything else is in Settings.",
119
122
  };
120
- const column: ViewStyle = { width: "100%", maxWidth: 560, alignSelf: "center", paddingHorizontal: compact ? 16 : 24 };
121
123
 
122
- return <DockedPane compact={compact} scrollRef={scroll} style={{ backgroundColor: c.surface0 }} contentContainerStyle={{ paddingBottom: 24 }}
123
- header={<View style={[column, { flexDirection: "row", alignItems: "center", gap: 12, paddingTop: compact ? 8 : 20, paddingBottom: 8 }]}>
124
- <Progress theme={theme} index={index} steps={steps} onPick={i => i < index && go(steps[i])} />
125
- <Button theme={theme} compact={compact} kind="ghost" title="Skip setup" accessibilityHint="Leaves setup. Every setting keeps its current value." onPress={skip} disabled={move.isPending} />
126
- </View>}
127
- // While typing a reviewer on a phone the bar steps aside, so Continue never sits over the keyboard (DockedPane).
128
- dock={({ yields }) => !yields && <View style={[{ borderTopWidth: 1, borderTopColor: c.border, backgroundColor: c.surface0, paddingTop: 12 }, bottomPad(compact)]}>
129
- <View style={[column, { flexDirection: "row", alignItems: "center", gap: 8 }]}>
130
- {index > 0 && (compact
131
- ? <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(steps[index - 1])} />
132
- : <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(steps[index - 1])} />)}
133
- {!compact && <View style={{ flex: 1 }} />}
134
- {step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(steps[index + 1])} />}
135
- <Button theme={theme} compact={compact} grow={compact} kind="primary" icon={last ? "Check" : undefined}
136
- title={last ? "Finish" : failing ? "Continue anyway" : "Continue"} loading={last && move.isPending}
137
- onPress={() => last ? finish() : go(steps[index + 1])} />
138
- </View>
139
- </View>}>
140
- <StepFade key={step} style={[column, { gap: compact ? 14 : 16, paddingTop: compact ? 8 : 20 }]}>
124
+ const gh0 = checks.data?.checks.find(row => row.id === "gh");
125
+ const followed = follow.data?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? 0;
126
+ const facts: DoneFact[] = [
127
+ { icon: "Radar", tone: "success", line: followed ? `Following ${followed} workspace${followed === 1 ? "" : "s"}` : "Following the next workspace you create" },
128
+ { icon: "Send", line: follow.data?.enable_auto_sends_default ? "Repairs go to the agent on their own, once it's idle" : "Repairs wait for your click" },
129
+ { icon: "GitPullRequest", tone: gh0?.state === "ok" ? "success" : "muted", line: gh0?.state === "ok" ? "GitHub connected: Follow-up follows your PRs" : "GitHub not connected: Follow-up works without it" },
130
+ ];
131
+ const whatsNewLink = deps.whatsNew && <FooterLink theme={theme} compact={compact} icon="Gift" title={compact ? "What's new" : `What's new in ${deps.whatsNew.version}`} onPress={deps.whatsNew.open} />;
132
+ if (ui.done) return <SetupShell theme={theme} compact={compact} open page={{ kind: "cover" }} onClose={closeDone} scrollRef={scroll}
133
+ footer={<>{whatsNewLink}<View style={{ flex: 1 }} /><Button theme={theme} compact={compact} grow={compact} kind="primary" title={compact ? "Done" : "Go to Home"} onPress={closeDone} /></>}>
134
+ <StepFade key="done" style={{}}><DoneBody theme={theme} compact={compact} facts={facts} following={followed > 0} /></StepFade>
135
+ </SetupShell>;
136
+ if (step === "intro") return <SetupShell theme={theme} compact={compact} open page={{ kind: "cover" }} onClose={closeUi} scrollRef={scroll}
137
+ footer={<>{whatsNewLink}<View style={{ flex: 1 }} /><Button theme={theme} compact={compact} grow={compact} kind="primary" title={SETUP_TITLE} accessibilityHint="About two minutes. Nothing is sent on its own until you finish." onPress={() => go(steps[1])} /></>}>
138
+ <StepFade key="intro" style={{}}><WelcomeBody theme={theme} compact={compact} name={deps.name ?? "Follow-up"} /></StepFade>
139
+ </SetupShell>;
140
+ return <SetupShell theme={theme} compact={compact} open page={{ kind: "step", index: index - 1, count: steps.length - 1 }} onClose={closeUi} scrollRef={scroll}
141
+ footer={<>
142
+ {!compact && <FooterLink theme={theme} compact={compact} title="Skip setup" hint="Leaves setup. Every setting keeps its current value." onPress={skip} />}
143
+ {compact && <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(steps[index - 1])} />}
144
+ <View style={{ flex: compact ? 0 : 1 }} />
145
+ {!compact && <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(steps[index - 1])} />}
146
+ {step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(steps[index + 1])} />}
147
+ <Button theme={theme} compact={compact} grow={compact} kind="primary" icon={last ? "Check" : undefined}
148
+ title={last ? "Finish" : failing ? "Continue anyway" : "Continue"} loading={last && move.isPending}
149
+ onPress={() => last ? finish() : go(steps[index + 1])} />
150
+ </>}>
151
+ <StepFade key={step} style={{ gap: compact ? 14 : 16 }}>
141
152
  <View style={{ gap: 6 }}>
142
153
  <Text accessibilityRole="header" style={{ color: c.foreground, fontSize: 20, lineHeight: 26, fontWeight: "600" }}>{TITLES[step]}</Text>
143
- <Text style={[t.body, { color: c.foregroundMuted, maxWidth: 520 }]}>{lead[step]}</Text>
154
+ <Text style={[t.body, { color: c.foregroundMuted }]}>{lead[step]}</Text>
144
155
  </View>
145
156
  {body}
146
157
  </StepFade>
147
- </DockedPane>;
148
- }
149
-
150
- /** "2 of 5" and one short segment per step, drawn like the stack bar but in neutral ink: progress isn't a PR state. */
151
- function Progress({ theme, index, steps, onPick }: { theme: Theme; index: number; steps: readonly OnboardingStep[]; onPick: (i: number) => void }) {
152
- const c = theme.colors; const t = text(c);
153
- return <View style={{ flex: 1, flexDirection: "row", alignItems: "center", gap: 10 }} accessibilityRole="progressbar" accessibilityLabel={`Step ${index + 1} of ${steps.length}`}
154
- accessibilityValue={{ min: 1, max: steps.length, now: index + 1 }}>
155
- <Text style={[t.small, { minWidth: 34 }]}>{`${index + 1} of ${steps.length}`}</Text>
156
- <View style={{ flex: 1, maxWidth: 220, flexDirection: "row", gap: 3 }}>
157
- {steps.map((s, i) => <Pressable key={s} disabled={i >= index} onPress={() => onPick(i)} accessibilityLabel={i < index ? `Back to step ${i + 1}` : undefined}
158
- hitSlop={{ top: 12, bottom: 12 }} style={{ flex: 1, height: 14, justifyContent: "center" }}>
159
- <View style={{ height: 3, borderRadius: 2, backgroundColor: i === index ? c.foreground : i < index ? withAlpha(c.foreground, 0.4) : c.border }} />
160
- </Pressable>)}
161
- </View>
162
- </View>;
158
+ </SetupShell>;
163
159
  }
164
160
 
165
161
  /** Step change: a short fade and rise; reduced motion gets the content at once. */
@@ -198,70 +194,6 @@ const Panel = ({ c, children }: { c: Colors; children: ReactNode }) =>
198
194
 
199
195
  // ---------- 1. what it is ----------
200
196
 
201
- const EXAMPLE = [
202
- { glyph: "CircleX", tone: "danger", line: "Checks failed on #418", caption: "Follow-up notices the failed checks" },
203
- { glyph: "spinner", tone: "running", line: "Repair sent to the agent · 2m", caption: "and sends it as a repair to the agent that made the PR" },
204
- { glyph: "CircleCheck", tone: "success", dot: "warning", line: "#418 approved", caption: "then asks you only for the decision" },
205
- ] as const;
206
-
207
- function IntroStep({ theme, compact, follow }: { theme: Theme; compact: boolean; follow: { workspaces: { enable_tracking: boolean; optedOut: boolean }[] } | null }) {
208
- const c = theme.colors; const t = text(c);
209
- const reduced = useReducedMotion();
210
- // Reduced motion shows the last frame, derived in render so it holds even if the setting arrives after mount.
211
- const [step, setStep] = useState(0);
212
- useEffect(() => { if (reduced || step >= 2) return; const id = setTimeout(() => setStep(p => p + 1), 1600); return () => clearTimeout(id); }, [step, reduced]);
213
- const phase = reduced ? 2 : step;
214
- const n = follow?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? null;
215
- const tone = (k: string) => k === "danger" ? c.statusDanger : k === "success" ? c.statusSuccess : runningColor(c);
216
- const e = EXAMPLE[phase];
217
- return <View style={{ gap: 14 }}>
218
- <Panel c={c}>
219
- <View style={{ padding: compact ? 14 : 16, gap: 10 }}>
220
- <View style={{ flexDirection: "row", alignItems: "center", gap: 8 }}>
221
- <Text numberOfLines={1} style={[t.label, { flex: 1 }]}>TKT-1042 Add CSV export</Text>
222
- <Text style={[t.small, { paddingHorizontal: 6, paddingVertical: 1, borderRadius: 4, backgroundColor: c.surface2 }]}>Example</Text>
223
- </View>
224
- {/* The stack bar: #417 merged, #418 the one this example follows. */}
225
- <View style={{ flexDirection: "row", gap: 3, height: 4 }}>
226
- <View style={{ flex: 1, borderRadius: 2, backgroundColor: c.foregroundMuted, opacity: 0.55 }} />
227
- <View style={{ flex: 1, borderRadius: 2, backgroundColor: c.border, alignItems: "center", justifyContent: "center" }}>
228
- <View style={{ width: 10, height: 4, borderRadius: 2, backgroundColor: tone(e.tone) }} />
229
- </View>
230
- </View>
231
- <View accessibilityLiveRegion="polite" style={{ flexDirection: "row", alignItems: "center", gap: 8, minHeight: 20 }}>
232
- {e.glyph === "spinner" ? <Spinner color={runningColor(c)} size={14} /> : <Icon name={e.glyph} size={14} color={tone(e.tone)} />}
233
- <Text style={[t.body, { flex: 1 }]}>{e.line}</Text>
234
- {phase === 2 && <View style={{ flexDirection: "row", alignItems: "center", gap: 4, paddingHorizontal: 7, minHeight: 22, borderRadius: 11, backgroundColor: tint(c.statusWarning, c) }}>
235
- <Icon name="CircleAlert" size={12} color={c.statusWarning} />
236
- <Text style={{ color: c.statusWarning, fontSize: 12, lineHeight: 16, fontWeight: "600" }}>Needs you: Merge #418</Text>
237
- </View>}
238
- </View>
239
- </View>
240
- {/* What Follow-up did, step by step: the rail fills as the example plays. */}
241
- <View style={{ borderTopWidth: 1, borderTopColor: c.border, paddingHorizontal: compact ? 14 : 16, paddingVertical: 10, gap: 6 }}>
242
- {EXAMPLE.map((x, i) => <View key={x.line} style={{ flexDirection: "row", alignItems: "center", gap: 8, opacity: i <= phase ? 1 : 0.35 }}>
243
- <View style={{ width: 8, height: 8, borderRadius: 4, backgroundColor: i <= phase ? ("dot" in x ? c.statusWarning : tone(x.tone)) : c.border }} />
244
- <Text style={t.meta}>{x.caption}</Text>
245
- </View>)}
246
- </View>
247
- </Panel>
248
- <View style={{ gap: 4 }}>
249
- {[
250
- ["Inbox", "Needs you", "One list of what only you can decide: a merge, a question, a permission."],
251
- ["Send", "Repairs", "Review comments, conflicts and failed checks become repairs and go to the workspace's agent in one message."],
252
- ["MessageCircleQuestion", "Questions", "Agents ask you here, with options and a recommendation. Your answer goes to their chat."],
253
- ].map(([icon, title, line]) => <View key={title} style={{ flexDirection: "row", gap: 10, paddingVertical: 6 }}>
254
- <Icon name={icon} size={16} color={c.foregroundMuted} />
255
- <View style={{ flex: 1, gap: 1 }}><Text style={t.label}>{title}</Text><Text style={t.meta}>{line}</Text></View>
256
- </View>)}
257
- </View>
258
- {n !== null && <View style={{ flexDirection: "row", alignItems: "center", gap: 8, minHeight: compact ? 44 : 36, paddingHorizontal: 12, borderRadius: 8, backgroundColor: c.surface1 }}>
259
- <Icon name="Radar" size={14} color={c.foregroundMuted} />
260
- <Text style={[t.body, { flex: 1 }]}>{n ? `Already following your ${n} workspace${n === 1 ? "" : "s"}. Step 3 lists them.` : "No workspaces yet. Follow-up starts with the next one you create."}</Text>
261
- </View>}
262
- </View>;
263
- }
264
-
265
197
  // ---------- 2. checks ----------
266
198
 
267
199
  function ChecksStep({ theme, compact, checks, deps }: { theme: Theme; compact: boolean; checks: ReturnType<typeof useChecks>; deps: SetupDeps }) {
@@ -422,7 +354,7 @@ function NewRowChoice({ theme, compact }: { theme: Theme; compact: boolean }) {
422
354
  const row = useNewRowSetting();
423
355
  return <View style={{ gap: 6, paddingTop: 6 }}>
424
356
  <Panel c={c}>
425
- <SwitchRow first theme={theme} compact={compact} label={NEW_ROW.label} hint={NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value} disabled={row.saving} onChange={row.set} />
357
+ <SwitchRow first theme={theme} compact={compact} label={NEW_ROW.label} hint={compact ? NEW_ROW.hint(null, null) : NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value} disabled={row.saving} onChange={row.set} />
426
358
  </Panel>
427
359
  {row.value !== false && <Text style={t.meta}>{NEW_ROW.paseoShort}</Text>}
428
360
  </View>;
package/client/panel.tsx CHANGED
@@ -38,6 +38,7 @@ import { LinkedItemsRow } from "./linked";
38
38
  import { mergedColor, tint } from "./theme";
39
39
  import { SummaryRow } from "./about";
40
40
  import { WhatsNewGate } from "./release-notes";
41
+ import { SetupGate } from "./setup-gate";
41
42
  import { ViewSync } from "./view-store";
42
43
  import { RichText } from "./rich-text";
43
44
  import { ToastHost, useQuestionOpener } from "./toasts";
@@ -53,7 +54,7 @@ type PanelProps = PluginWorkspacePanelProps & PanelLinks & { inbox?: InboxStore;
53
54
  * tasks, questions, spec, activity and Details. What needs you elsewhere lives on Home.
54
55
  */
55
56
  export function FollowPanel(props: PanelProps) {
56
- return <><ViewSync /><PanelBody {...props} /><WhatsNewGate surface="panel" theme={props.theme} compact={props.layout.compact} /><ToastHost theme={props.theme} compact={props.layout.compact} /></>;
57
+ return <><ViewSync /><PanelBody {...props} /><WhatsNewGate surface="panel" theme={props.theme} compact={props.layout.compact} /><SetupGate surface="panel" theme={props.theme} compact={props.layout.compact} deps={{ openSettings: props.openSettings, openHome: props.openOverview }} /><ToastHost theme={props.theme} compact={props.layout.compact} /></>;
57
58
  }
58
59
 
59
60
  function PanelBody(props: PanelProps) {
@@ -0,0 +1,168 @@
1
+ import { useEffect, useRef, type ReactNode, type RefObject } from "react";
2
+ import { Modal as RNModal, View, useWindowDimensions, type ScrollView as NativeScrollView } from "react-native";
3
+ import { Pressable, Text } from "./text";
4
+ import { Icon, Modal } from "@getpaseo/plugin/client/ui";
5
+ import { DockedPane } from "./docked-pane";
6
+ import { FOLLOW_UP_DOT, FOLLOW_UP_ICON } from "./follow-up-icon";
7
+ import { bottomInset, text, type Theme } from "./kit";
8
+ import { useReducedMotion } from "./motion";
9
+ import { isLight, raised, tint, withAlpha } from "./theme";
10
+
11
+ /**
12
+ * Setup's popup: one dialog (desktop) or sheet (phone) from the welcome page through the steps to done. Home never
13
+ * draws the steps itself; it keeps a "Finish setup" line that opens this again where it was left.
14
+ *
15
+ * The shell is the What's new dialog's (same dim, card, radius and X) at a fixed height, so moving between steps never
16
+ * resizes it: a header (the mark, "Set up Follow-up", where you are, Close) with a hairline progress rule under it, a
17
+ * scrolling body, and a pinned footer for the moves (both through DockedPane, so on a phone a focused field and its
18
+ * Send stay in view: invariant 43). The welcome and done pages drop the header for a centred cover.
19
+ */
20
+
21
+ export const SETUP_TITLE = "Set up Follow-up";
22
+ const WIDTH = 640; const HEIGHT = 560; const INSET = 32;
23
+
24
+ /** The mark without its end dot: the tile paints that dot in the brand violet itself. */
25
+ const TILE_GLYPH = { svg: FOLLOW_UP_ICON.svg.replace(/<circle cx="20\.01"[^>]*\/>/, "") };
26
+
27
+ /** The app tile: assets/icon.svg drawn with the host's Icon (the mark in white, its end dot in the brand violet). */
28
+ export function FollowUpTile({ size = 64 }: { size?: number }) {
29
+ const glyph = size * 206 / 256; const pad = (size - glyph) / 2; const dot = glyph * 3.84 / 24;
30
+ return <View accessibilityElementsHidden importantForAccessibility="no-hide-descendants"
31
+ style={{ width: size, height: size, borderRadius: size * 52 / 256, backgroundColor: "#222126", overflow: "hidden" }}>
32
+ <View style={{ position: "absolute", left: pad, top: pad }}><Icon icon={TILE_GLYPH} size={glyph} color="#ffffff" /></View>
33
+ <View style={{ position: "absolute", left: pad + glyph * FOLLOW_UP_DOT.x - dot / 2, top: pad + glyph * FOLLOW_UP_DOT.y - dot / 2, width: dot, height: dot, borderRadius: dot / 2, backgroundColor: "#B79CF0", zIndex: 1 }} />
34
+ </View>;
35
+ }
36
+
37
+ export type SetupPage = { kind: "cover" } | { kind: "step"; index: number; count: number };
38
+
39
+ /**
40
+ * The frame. `page` decides the header: a cover page (welcome, done) has none, only Close in the corner; a step has the
41
+ * title row with "2 of 7" and the progress rule. `footer` is the pinned row of moves.
42
+ */
43
+ export function SetupShell({ theme, compact, open, page, onClose, footer, scrollRef, children }: {
44
+ theme: Theme; compact: boolean; open: boolean; page: SetupPage; onClose: () => void; footer: ReactNode; scrollRef?: RefObject<NativeScrollView | null>; children: ReactNode;
45
+ }) {
46
+ const c = theme.colors; const t = text(c, compact);
47
+ const win = useWindowDimensions();
48
+ const reduced = useReducedMotion();
49
+ const close = useRef<View>(null);
50
+ useEffect(() => { if (open && !compact) (close.current as unknown as { focus?: () => void } | null)?.focus?.(); }, [open, compact]);
51
+ const progress = page.kind === "step" ? (page.index + 1) / page.count : 0;
52
+ const rule = page.kind === "step" && <View accessibilityRole="progressbar" accessibilityLabel={`Step ${page.index + 1} of ${page.count}`}
53
+ accessibilityValue={{ min: 1, max: page.count, now: page.index + 1 }} style={{ height: 2, backgroundColor: c.surface2 }}>
54
+ <View style={{ width: `${progress * 100}%`, height: 2, backgroundColor: withAlpha(c.foreground, 0.7) }} />
55
+ </View>;
56
+ const foot = <View style={[{ borderTopWidth: 1, borderTopColor: c.border, backgroundColor: compact ? c.surface1 : c.surface0, flexDirection: "row", alignItems: "center", gap: 8,
57
+ paddingHorizontal: compact ? 16 : INSET - 8, paddingTop: compact ? 8 : 12, paddingBottom: compact ? 0 : 12 }, compact ? bottomInset(true) : null]}>{footer}</View>;
58
+
59
+ if (compact) return <Modal title={page.kind === "step" ? `${SETUP_TITLE} · ${page.index + 1} of ${page.count}` : SETUP_TITLE} open={open} onOpenChange={next => { if (!next) onClose(); }}>
60
+ <Modal.Content scrollable={false} contentContainerStyle={{ padding: 0, gap: 0 }} style={{ flex: 1 }}>
61
+ {rule}
62
+ {/* While a field has focus or the keyboard is up, the footer steps aside (invariant 43). */}
63
+ <DockedPane compact scrollRef={scrollRef as never} contentContainerStyle={{ paddingHorizontal: 20, paddingTop: page.kind === "cover" ? 24 : 16, paddingBottom: 24 }}
64
+ dock={({ yields }) => !yields && foot}>{children}</DockedPane>
65
+ </Modal.Content>
66
+ </Modal>;
67
+
68
+ const headerButton = (state: { hovered?: boolean }) => ({ padding: 8, borderRadius: 8, backgroundColor: state.hovered ? c.surface1 : "transparent" });
69
+ const closeButton = <Pressable ref={close} accessibilityRole="button" accessibilityLabel="Close" accessibilityHint="Setup stays where you left it. Finish setup on Follow-up's Home opens it again."
70
+ onPress={onClose} style={state => headerButton(state as { hovered?: boolean })}>
71
+ {state => <Icon name="X" size={16} color={state.pressed ? c.foreground : c.foregroundMuted} />}
72
+ </Pressable>;
73
+ return <RNModal transparent visible={open} animationType={reduced ? "none" : "fade"} onRequestClose={onClose}>
74
+ <View style={{ flex: 1, alignItems: "center", justifyContent: "center", padding: 24, backgroundColor: "rgba(0,0,0,0.55)" }}>
75
+ <View role="dialog" aria-modal aria-label={SETUP_TITLE}
76
+ style={{ width: Math.min(WIDTH, win.width - 48), height: Math.min(HEIGHT, win.height - 48), overflow: "hidden", backgroundColor: c.surface0, borderRadius: 12, borderWidth: 1, borderColor: c.surface2 }}>
77
+ {page.kind === "step"
78
+ ? <View>
79
+ <View style={{ flexDirection: "row", alignItems: "center", gap: 10, paddingLeft: INSET, paddingRight: INSET - 16, paddingVertical: 12 }}>
80
+ <Icon icon={FOLLOW_UP_ICON} size={16} color={c.foregroundMuted} />
81
+ <Text role="heading" numberOfLines={1} style={{ flex: 1, minWidth: 0, color: c.foreground, fontSize: 14, fontWeight: "500" }}>{SETUP_TITLE}</Text>
82
+ <Text style={[t.meta, { fontVariant: ["tabular-nums"] }]}>{`${page.index + 1} of ${page.count}`}</Text>
83
+ {closeButton}
84
+ </View>
85
+ {rule}
86
+ </View>
87
+ : <View style={{ position: "absolute", top: 10, right: 10, zIndex: 1 }}>{closeButton}</View>}
88
+ <DockedPane compact={false} scrollRef={scrollRef as never} style={{ minHeight: 0 }} dock={() => foot}
89
+ contentContainerStyle={{ paddingHorizontal: INSET, paddingTop: page.kind === "cover" ? 32 : 24, paddingBottom: page.kind === "cover" ? 32 : 24, ...(page.kind === "cover" ? { flexGrow: 1, justifyContent: "center" } : null) }}>{children}</DockedPane>
90
+ </View>
91
+ </View>
92
+ </RNModal>;
93
+ }
94
+
95
+ const FEATURES = [
96
+ { icon: "Inbox", title: "Needs you", line: "One list of what only you can decide: a merge, a question, a permission." },
97
+ { icon: "Wrench", title: "Repairs", line: "Review comments, failed checks and conflicts go back to the agent that made the PR." },
98
+ { icon: "MessageCircleQuestion", title: "Questions", line: "Agents ask with options and a recommendation. Your answer goes to their chat." },
99
+ { icon: "CircleCheckBig", title: "Done means done", line: "A workspace is done once its PRs merge and the follow-up checks are finished." },
100
+ ] as const;
101
+
102
+ /** The welcome page: the tile, the name, what it does in one line, the four things it does, and how long setup takes. */
103
+ export function WelcomeBody({ theme, compact, name }: { theme: Theme; compact: boolean; name: string }) {
104
+ const c = theme.colors; const t = text(c, compact);
105
+ return <View style={{ gap: compact ? 24 : 32 }}>
106
+ <View style={{ alignItems: "center", gap: 14 }}>
107
+ <View style={[{ borderRadius: 16 }, isLight(c) ? { shadowColor: "#000", shadowOpacity: 0.18, shadowRadius: 16, shadowOffset: { width: 0, height: 6 } } : { borderWidth: 1, borderColor: withAlpha("#ffffff", 0.08) }]}>
108
+ <FollowUpTile size={compact ? 60 : 64} />
109
+ </View>
110
+ <View style={{ alignItems: "center", gap: 6 }}>
111
+ <Text role="heading" style={{ color: c.foreground, fontSize: compact ? 24 : 26, lineHeight: compact ? 30 : 32, fontWeight: "600", letterSpacing: -0.4 }}>{`Welcome to ${name}`}</Text>
112
+ <Text style={{ color: c.foregroundMuted, fontSize: compact ? 15 : 14, lineHeight: compact ? 22 : 21, textAlign: "center", maxWidth: 440 }}>
113
+ It follows your agents' pull requests until the work is done, and asks you only for the decisions.
114
+ </Text>
115
+ </View>
116
+ </View>
117
+ <View style={{ flexDirection: compact ? "column" : "row", flexWrap: "wrap", rowGap: compact ? 16 : 22, columnGap: 24 }}>
118
+ {FEATURES.map(f => <View key={f.title} style={{ width: compact ? "100%" : "47%", flexGrow: 1, flexDirection: "row", gap: 12 }}>
119
+ <View style={{ width: 32, height: 32, borderRadius: 8, alignItems: "center", justifyContent: "center", ...raised(c), backgroundColor: c.surface1 }}>
120
+ <Icon name={f.icon} size={16} color={c.foreground} />
121
+ </View>
122
+ <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
123
+ <Text style={t.label}>{f.title}</Text>
124
+ <Text style={t.meta}>{f.line}</Text>
125
+ </View>
126
+ </View>)}
127
+ </View>
128
+ {/* What setup costs, in view before the button that starts it. */}
129
+ <Text style={[t.meta, { textAlign: compact ? "left" : "center" }]}>About two minutes. Nothing goes out on its own until you finish.</Text>
130
+ </View>;
131
+ }
132
+
133
+ export type DoneFact = { icon: string; tone?: "success" | "muted"; line: string };
134
+
135
+ /** The done page: a quiet green check, what is now true, and the facts setup settled, one per line. */
136
+ export function DoneBody({ theme, compact, facts, following = true }: { theme: Theme; compact: boolean; facts: readonly DoneFact[]; following?: boolean }) {
137
+ const c = theme.colors; const t = text(c, compact);
138
+ return <View style={{ gap: compact ? 24 : 28 }}>
139
+ <View style={{ alignItems: "center", gap: 14 }}>
140
+ <View style={{ width: 56, height: 56, borderRadius: 28, alignItems: "center", justifyContent: "center", backgroundColor: tint(c.statusSuccess, c) }}>
141
+ <Icon name="Check" size={28} color={c.statusSuccess} />
142
+ </View>
143
+ <View style={{ alignItems: "center", gap: 6 }}>
144
+ <Text role="heading" style={{ color: c.foreground, fontSize: compact ? 24 : 26, lineHeight: compact ? 30 : 32, fontWeight: "600", letterSpacing: -0.4 }}>You're set up</Text>
145
+ <Text style={{ color: c.foregroundMuted, fontSize: compact ? 15 : 14, lineHeight: compact ? 22 : 21, textAlign: "center", maxWidth: 420 }}>
146
+ {following ? "Follow-up is watching your workspaces now." : "Follow-up starts with your next workspace."} What needs you shows on Home and in a pill above the chat.
147
+ </Text>
148
+ </View>
149
+ </View>
150
+ <View style={{ ...raised(c), borderRadius: 10, backgroundColor: c.surface1, overflow: "hidden", alignSelf: "center", width: "100%", maxWidth: 480 }}>
151
+ {facts.map((f, i) => <View key={f.line} style={{ flexDirection: "row", alignItems: "center", gap: 10, paddingHorizontal: 16, paddingVertical: 12, borderTopWidth: i ? 1 : 0, borderTopColor: c.border }}>
152
+ <Icon name={f.icon} size={16} color={f.tone === "success" ? c.statusSuccess : c.foregroundMuted} />
153
+ <Text style={[t.body, { flex: 1 }]}>{f.line}</Text>
154
+ </View>)}
155
+ </View>
156
+ <Text style={[t.meta, { textAlign: "center" }]}>Change any of this in Follow-up settings. Setup is there too, under General.</Text>
157
+ </View>;
158
+ }
159
+
160
+ /** A quiet text link for the footer's left side ("What's new in 2.5.0", "Skip setup"). */
161
+ export function FooterLink({ theme, compact, title, hint, onPress, icon }: { theme: Theme; compact: boolean; title: string; hint?: string; onPress: () => void; icon?: string }) {
162
+ const c = theme.colors;
163
+ return <Pressable accessibilityRole="button" accessibilityHint={hint} onPress={onPress} hitSlop={compact ? 0 : 6}
164
+ style={state => ({ flexDirection: "row", alignItems: "center", gap: 6, minHeight: compact ? 44 : 32, paddingHorizontal: 8, borderRadius: 6, backgroundColor: (state as { hovered?: boolean }).hovered ? c.surface1 : "transparent" })}>
165
+ {icon && <Icon name={icon} size={14} color={c.foregroundMuted} />}
166
+ <Text style={{ color: c.foregroundMuted, fontSize: compact ? 14 : 12, lineHeight: compact ? 19 : 16, fontWeight: "500" }}>{title}</Text>
167
+ </Pressable>;
168
+ }