feat(create): add AI-native Studio builder behind ?studio flag#286
feat(create): add AI-native Studio builder behind ?studio flag#286mehdibha wants to merge 2 commits into
Conversation
Experimental rethink of /create: a three-zone layout (section rail + inspector + big live canvas) with AI woven through — a generate panel with vibe chips, a persistent copilot command bar, and inline suggestions, all driving the real DesignSystem live. Adds new (planned) axes: shadow tint, translucent surfaces, background texture, easing, hover/press feedback, finer typography, accessibility targets, brand logo. UI only and gated on ?studio=true; the shipped page and ?lab are untouched. Reuses the real useDesignSystem setters, preview iframe and export. New axes are exploratory stubs pending product sign-off and token consumers.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_ea579126-13c5-4ea7-b12d-02435cf8ac46) |
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_7a13e5e5-bc74-47c5-b277-9f07e83c0d73) |
Summary
An experimental, AI-native rethink of the
/createbuilder, gated on?studio=true. The shipped page and the?labexperiment are untouched — this is purely additive.DesignSystemlive and report an honest "what changed" diff with a flash toast.Live vs planned
useDesignSystemsetters, the preview iframe, and the export footer.?lab— surfaced with "planned" pips so nothing pretends to be wired.For reviewers
/create. Try it at/create?studio=true.studio/ai/interpret.ts+vibes.ts) today, deliberately shaped so a realcreateServerFnmodel call returning the same{ mutate, changes }shape drops in with no UI changes.build:registryneeded).typecheckandcheck(oxlint + oxfmt) are clean.www/src/modules/create/studio/; the only edit outside it is the?studiobranch inroutes/_app/create.tsx.Note
Medium Risk
Large additive surface area and shared
DesignSystem/localStorage persistence, but gated behind a query flag with no registry or auth changes.Overview
Adds an opt-in
/create?studioexperience: a full-viewport Studio shell (custom header, section rail, 340px inspector, live preview) while default/createand?labstay unchanged.AI is wired through a shared
StudioProviderthread: Generate (prompt + vibe chips), a canvas CommandBar copilot with suggestions and apply toasts, and a keywordinterpret.tslayer that returns{ mutate, changes }into the realDesignSystem(vibes invibes.ts). Inspector sections are schema-driven with live vs planned binding pips; many new axes only persist CSS vars until consumers exist.Routing:
studiosearch param oncreate.tsx;_app/route.tsxomits the global Header whenpathname === '/create'andstudiois set so Studio owns100svh.Reviewed by Cursor Bugbot for commit e013d86. Bugbot is set up for automated code reviews on this repo. Configure here.