mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-06 21:05:21 +02:00
This reverts commit11e56654f8. #10786 ported the onboarding flow from a standalone prototype and repointed `/onboarding` at the new `CloudOnboardingFlow`, deleting the existing `OnboardingWizard.tsx` in the process. The ported flow is not ready to be the shipping onboarding experience: it landed as a single large port rather than an incremental migration, it pulled `motion`, `three` and `@types/three` onto the UI dependency list for prototype visuals, and it deleted the wizard that four in-flight pull requests (#9900, #9501, #8982 and one more) were building on — those went CONFLICTING the moment the file disappeared. Rather than keep the half-migrated state on master while that is sorted out, back the port out whole and re-land it incrementally. This restores `OnboardingWizard.tsx` and the previous versions of the four e2e specs, drops the `onboarding-preview.html` Vite entry, the DesignGuide onboarding section and the `data-viz-misc` storybook story, and removes the three prototype dependencies from `ui/package.json`. This is an exact mechanical inverse of the squash commit — 41 files, +2089/-3647, no hand edits. Reverting this commit restores all 41 files byte for byte, so the port is recoverable in full when it is ready. `pnpm-lock.yaml` is deliberately not touched. #10786 never updated it; bot commit4683f26c9(#11036) added the `motion`/`three` entries afterwards, so the lockfile is now ahead of the manifest. CI owns lockfile updates (`.github/workflows/pr.yml`) and the policy job regenerates it from the changed manifest. Co-authored-by: Paperclip <noreply@paperclip.ing>
40 lines
956 B
TypeScript
40 lines
956 B
TypeScript
import path from "path";
|
|
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { createUiDevWatchOptions } from "./src/lib/vite-watch";
|
|
import { createApiProxy } from "./src/lib/vite-api-proxy";
|
|
|
|
const apiProxy = createApiProxy();
|
|
|
|
export default defineConfig(({ mode }) => ({
|
|
plugins: [react(), tailwindcss()],
|
|
build: {
|
|
minify: "esbuild",
|
|
},
|
|
esbuild:
|
|
mode === "production"
|
|
? {
|
|
drop: ["console", "debugger"],
|
|
legalComments: "none",
|
|
}
|
|
: undefined,
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
lexical: path.resolve(__dirname, "./node_modules/lexical/dist/Lexical.mjs"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
watch: createUiDevWatchOptions(process.cwd()),
|
|
proxy: apiProxy,
|
|
},
|
|
preview: {
|
|
port: 3101,
|
|
host: "0.0.0.0",
|
|
allowedHosts: true,
|
|
proxy: apiProxy,
|
|
},
|
|
}));
|