mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-06 05:56:19 +01:00
chore: reconcile contribution rules and onboarding fixtures
Extract the guided setup test fixture without dropping cases. Supply current settings/discovery contracts and Opus 5.5 in the isolated Storybook boundary. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
21c4f8afd5
commit
48d4ab54d6
19 files changed
+277
-232
No files matched your search
@@ -3,7 +3,6 @@ import { Field } from "./agent-config-primitives";
|
||||
import { SelectPopover } from "./ui/select";
|
||||
import { Button } from "./ui/button";
|
||||
|
||||
/** The override is request-level. Automatic selection is resolved by the server. */
|
||||
export function AgentRunnerSelect({
|
||||
value,
|
||||
onChange,
|
||||
|
||||
@@ -178,7 +178,6 @@ describe("OnboardingWizard — which step it lands on", () => {
|
||||
dialogState.onboardingOpen = false;
|
||||
dialogState.onboardingOptions = {};
|
||||
dialogState.onboardingRouteDismissed = false;
|
||||
// The scoped discovery contract must resolve before the hire seam runs.
|
||||
mockAdaptersApi.list.mockResolvedValue(["claude_local", "codex_local"].map(type => ({
|
||||
type, loaded: true, disabled: false, defaultRunner: "legacy", supportedRunners: ["legacy"],
|
||||
})));
|
||||
|
||||
@@ -3180,7 +3180,6 @@ describe("OnboardingWizard restore-gate (stale localStorage across accounts)", (
|
||||
const { root, queryClient } = await openStep4({ adapterType: "claude_local" });
|
||||
try {
|
||||
await act(async () => {
|
||||
// A warm value remains successful while its current fetch is pending.
|
||||
if (pending === "environments") queryClient.setQueryData(queryKeys.environments.list("company-new"), [LOCAL_ENVIRONMENT]);
|
||||
else if (pending === "settings") queryClient.setQueryData(queryKeys.instance.settings, { defaultEnvironmentId: null });
|
||||
else queryClient.setQueryData(queryKeys.instance.experimentalSettings, { enableManagedSandboxOnly: false });
|
||||
|
||||
@@ -1060,9 +1060,6 @@ function OnboardingWizardInner({
|
||||
}, effectiveOnboardingOpen && step === 4 && canUseLocalLogin && credentialMode !== "api" &&
|
||||
Boolean(managedProvider) && !savedSubscription && !savedKeys.storedLogin.data && !managedBindingForStep(),
|
||||
);
|
||||
// A result from a previous selection must not hire or advance this wizard.
|
||||
// Discovery starts after environment settings resolve. A later target or
|
||||
// runner change invalidates the configuration an in-flight test was built from.
|
||||
useEffect(() => {
|
||||
autoConnectStartedRef.current = false;
|
||||
hiringAgentRef.current = null;
|
||||
|
||||
Reference in new issue
Block a user