paseo-follow-up 2.4.2 → 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/CHANGELOG.md +19 -0
- package/OVERVIEW.md +1 -1
- package/README.md +0 -1
- package/client/home.tsx +16 -8
- package/client/live.tsx +4 -3
- package/client/new-settings.tsx +1 -1
- package/client/onboarding.tsx +50 -118
- package/client/panel.tsx +2 -1
- package/client/release-notes.tsx +98 -123
- package/client/setup-dialog.tsx +168 -0
- package/client/setup-gate.tsx +69 -0
- package/client/setup-ui.ts +27 -0
- package/client/tasks.tsx +38 -8
- package/client/updates.tsx +6 -6
- package/index.client.tsx +1 -1
- package/index.server.ts +46 -4
- package/package.json +1 -1
- package/server/agent-hook.mjs +6 -4
- package/server/agent-parity.ts +2 -2
- package/server/ai-jobs.ts +26 -5
- package/server/engine.ts +6 -2
- package/server/hook-source.ts +6 -4
- package/server/job-agent.ts +13 -2
- package/server/mcp-source.ts +4 -4
- package/server/mcp.mjs +4 -4
- package/server/obligations.ts +7 -5
- package/server/release-notes.ts +5 -5
- package/server/scheduled-tasks.ts +92 -0
- package/server/session-prompt.ts +30 -3
- package/server/turn-end.ts +130 -0
- package/server/wait-jobs.ts +18 -2
- package/server/wait.ts +17 -12
- package/shared/agent-settings.ts +9 -8
- package/shared/attention.ts +4 -0
- package/shared/changelog.ts +33 -0
- package/shared/compass.ts +5 -4
- package/shared/contracts.ts +4 -4
- package/shared/job-rows.ts +2 -2
- package/shared/message-sender.ts +2 -0
- package/shared/new-name.ts +4 -1
- package/shared/onboarding.ts +17 -13
- package/shared/provider-support.ts +83 -34
- package/shared/queue.ts +1 -1
- package/shared/recommend.ts +1 -1
- package/shared/settings-nav.ts +3 -1
- package/shared/setup-popup.ts +28 -0
- package/shared/task-due.ts +3 -1
- package/shared/task-trigger.ts +125 -1
- package/shared/wait.ts +2 -2
- package/skills/follow-up/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of Follow-up, newest first. Follow-up shows "What's new" after an update that brings new release notes: the curated part of each stable release since you last looked (betas install quietly; Settings → General can turn it off), and every version's notes from Home's version line.
|
|
4
4
|
|
|
5
|
+
## 2.5.0 (2026-11-26)
|
|
6
|
+
|
|
7
|
+
Send a task at the time you pick, and read every release in one scroll.
|
|
8
|
+
|
|
9
|
+
- **Tasks can go out at a set time.** Pick At a time in Send on a schedule, or let an agent set its own check-back. The task reaches the agent once at that time, even with Auto-send off.
|
|
10
|
+
- **What's new is one scroll, like Paseo's.** Every version newest first, with its date and an Installed tag on yours. Nothing to open, and each version's full changelog is one click away on GitHub.
|
|
11
|
+
|
|
12
|
+
<details><summary>Full changelog since 2.4.2</summary>
|
|
13
|
+
|
|
14
|
+
### Repairs and PRs
|
|
15
|
+
|
|
16
|
+
- A task can be sent to its agent at a time: pick At a time in Send on a schedule, or let an agent set its own check-back. It arrives once at that time, even with Auto-send off.
|
|
17
|
+
|
|
18
|
+
### Setup, Settings and updates
|
|
19
|
+
|
|
20
|
+
- What's new is one scroll: every version's changes, newest first, with its date and an Installed tag on yours. Nothing to open, and each version's full changelog is one click away on GitHub.
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
5
24
|
## 2.4.2 (2026-11-26)
|
|
6
25
|
|
|
7
26
|
A shorter, current plugin page.
|
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
|
|
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
|
-
//
|
|
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
|
-
|
|
111
|
-
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
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
|
|
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} /></>;
|
package/client/new-settings.tsx
CHANGED
|
@@ -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>;
|
package/client/onboarding.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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" ?
|
|
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.
|
|
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
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
|
154
|
+
<Text style={[t.body, { color: c.foregroundMuted }]}>{lead[step]}</Text>
|
|
144
155
|
</View>
|
|
145
156
|
{body}
|
|
146
157
|
</StepFade>
|
|
147
|
-
</
|
|
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) {
|