vibebusiness 1.2.43 → 1.2.49
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/.next/standalone/.env +5 -0
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-build-manifest.json +20 -20
- package/.next/standalone/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/prerender-manifest.json +1 -1
- package/.next/standalone/.next/server/app/_not-found/page.js +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/api/analyze/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/config/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/epics/[id]/ideas/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/epics/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/epics/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/goals/[id]/kpis/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/goals/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/goals/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/hypotheses/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/hypotheses/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[id]/comments/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[id]/implement/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/[id]/transition/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/ideas/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/implementations/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/kpis/refresh/route.js +1 -1
- package/.next/standalone/.next/server/app/api/kpis/refresh/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/[id]/publish/route.js +1 -1
- package/.next/standalone/.next/server/app/api/social/[id]/publish/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/[id]/route.js +1 -1
- package/.next/standalone/.next/server/app/api/social/[id]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/social/route.js +1 -1
- package/.next/standalone/.next/server/app/api/social/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/goals/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/goals/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/goals/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hypotheses/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/hypotheses/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/hypotheses/page.js +1 -1
- package/.next/standalone/.next/server/app/hypotheses/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/hypotheses/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/ideas/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/ideas/[id]/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/ideas/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/page.js +1 -1
- package/.next/standalone/.next/server/app/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/roadmap/[id]/page.js +1 -1
- package/.next/standalone/.next/server/app/roadmap/[id]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/roadmap/page.js +1 -1
- package/.next/standalone/.next/server/app/roadmap/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/roadmap/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/sessions/page.js +1 -1
- package/.next/standalone/.next/server/app/sessions/page.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings/page.js +1 -1
- package/.next/standalone/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/settings.html +1 -1
- package/.next/standalone/.next/server/app/settings.rsc +2 -2
- package/.next/standalone/.next/server/app/social/page.js +1 -1
- package/.next/standalone/.next/server/app/social/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/social.html +1 -1
- package/.next/standalone/.next/server/app/social.rsc +3 -3
- package/.next/standalone/.next/server/app-paths-manifest.json +15 -15
- package/.next/standalone/.next/server/chunks/3644.js +1 -1
- package/.next/standalone/.next/server/chunks/{7809.js → 3794.js} +103 -2
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/data/business-context.json +7 -4
- package/.next/standalone/data/copy/landing-landing-page-2026-02-20.md +1 -1
- package/.next/standalone/data/heartbeat-sessions.json +211 -10
- package/.next/standalone/data/hypotheses.json +2 -2
- package/.next/standalone/data/ideas.json +1113 -449
- package/.next/standalone/data/implementations.json +205 -2
- package/.next/standalone/data/positioning.json +1 -1
- package/.next/standalone/data/reports/visuals/promo-launch.png +0 -0
- package/.next/standalone/data/reports/visuals/promo-ship-fast.png +0 -0
- package/.next/standalone/data/reports/visuals/promo-while-you-slept-v2.png +0 -0
- package/.next/standalone/data/reports/visuals/promo-while-you-slept-v3.png +0 -0
- package/.next/standalone/data/reports/visuals/promo-while-you-slept.png +0 -0
- package/.next/standalone/package.json +6 -3
- package/.next/standalone/scripts/analyze.ts +3 -2
- package/.next/standalone/scripts/implement.ts +5 -5
- package/.next/standalone/scripts/skills/social-media.ts +310 -9
- package/.next/static/chunks/{444-125b7b0fa8cbdb81.js → 444-1826396aef4dab2f.js} +1 -1
- package/.next/static/chunks/app/hypotheses/[id]/{page-65032da79ae146c5.js → page-8999ee91b824d378.js} +1 -1
- package/.next/static/chunks/app/hypotheses/page-6206bce440c44569.js +1 -0
- package/.next/static/chunks/app/ideas/[id]/{page-dc9746061e58eea5.js → page-89e3625db9017166.js} +1 -1
- package/.next/static/chunks/app/{page-fb66ff080390f20a.js → page-8ba52ac74c75461b.js} +1 -1
- package/.next/static/chunks/app/roadmap/[id]/{page-c8c4baf233e0d480.js → page-f437e783039534c4.js} +1 -1
- package/.next/static/chunks/app/roadmap/{page-b15554a207ed2813.js → page-6177b8774b4af79f.js} +1 -1
- package/.next/static/chunks/app/social/{page-6c61fb0c2546313e.js → page-69e480936711ccf2.js} +1 -1
- package/README.md +1 -1
- package/dist/bin/vibebusiness.js +22 -0
- package/dist/scripts/analyze.js +461 -3
- package/dist/scripts/chat.js +10 -2
- package/dist/scripts/generate-idea.js +1 -0
- package/dist/scripts/heartbeat.js +2839 -659
- package/dist/scripts/implement.js +5 -4
- package/dist/scripts/init.js +5 -0
- package/dist/scripts/scan.js +2 -1
- package/package.json +6 -3
- package/templates/commands/setup-posthog.md +116 -0
- package/.next/static/chunks/app/hypotheses/page-8314da4be7c533bd.js +0 -1
- /package/.next/static/{gmC7HigMoMgL5distupdb → zIIaTqrawBK1MmHg37JOr}/_buildManifest.js +0 -0
- /package/.next/static/{gmC7HigMoMgL5distupdb → zIIaTqrawBK1MmHg37JOr}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=8594,e.ids=[8594],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4770:e=>{"use strict";e.exports=require("crypto")},2048:e=>{"use strict";e.exports=require("fs")},5315:e=>{"use strict";e.exports=require("path")},2493:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>n.a,__next_app__:()=>x,originalPathname:()=>m,pages:()=>o,routeModule:()=>h,tree:()=>c}),s(720),s(2029),s(5866);var a=s(3191),r=s(8716),l=s(7922),n=s.n(l),i=s(5231),d={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>i[e]);s.d(t,d);let c=["",{children:["ideas",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,720)),"/Users/luismey/Code/vibebusiness/src/app/ideas/[id]/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,2029)),"/Users/luismey/Code/vibebusiness/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,5866,23)),"next/dist/client/components/not-found-error"]}],o=["/Users/luismey/Code/vibebusiness/src/app/ideas/[id]/page.tsx"],m="/ideas/[id]/page",x={require:s,loadChunk:()=>Promise.resolve()},h=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/ideas/[id]/page",pathname:"/ideas/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},7010:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2994,23)),Promise.resolve().then(s.t.bind(s,6114,23)),Promise.resolve().then(s.t.bind(s,9727,23)),Promise.resolve().then(s.t.bind(s,9671,23)),Promise.resolve().then(s.t.bind(s,1868,23)),Promise.resolve().then(s.t.bind(s,4759,23))},5698:()=>{},9180:(e,t,s)=>{Promise.resolve().then(s.bind(s,3818)),Promise.resolve().then(s.bind(s,9616))},6333:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},7358:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},2933:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},361:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},6307:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},8998:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},7027:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},4802:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},7506:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1019:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},4893:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},1405:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},5691:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},9436:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]])},763:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1383:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("SquareCheckBig",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]])},7069:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},949:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},3634:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},3818:(e,t,s)=>{"use strict";s.d(t,{default:()=>b});var a=s(326),r=s(434),l=s(5047),n=s(4319),i=s(4935),d=s(3468),c=s(8258),o=s(9730),m=s(717),x=s(8378),h=s(732),p=s(1572),u=s(1135);let g=[{href:"/",label:"Dashboard",icon:a.jsx(n.Z,{className:"w-5 h-5"})},{href:"/roadmap",label:"Roadmap",icon:a.jsx(i.Z,{className:"w-5 h-5"})},{href:"/goals",label:"Goals",icon:a.jsx(d.Z,{className:"w-5 h-5"})},{href:"/hypotheses",label:"Hypotheses",icon:a.jsx(c.Z,{className:"w-5 h-5"})},{href:"/social",label:"Social",icon:a.jsx(o.Z,{className:"w-5 h-5"})},{href:"/sessions",label:"Sessions",icon:a.jsx(m.Z,{className:"w-5 h-5"})},{href:"/settings",label:"Settings",icon:a.jsx(x.Z,{className:"w-5 h-5"})}];function b({children:e}){let t=(0,l.usePathname)();return(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("aside",{className:"w-64 bg-slate-900 text-white flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-slate-700",children:(0,a.jsxs)(r.default,{href:"/",className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-10 h-10 bg-emerald-500 rounded-lg flex items-center justify-center",children:a.jsx(h.Z,{className:"w-6 h-6 text-white"})}),(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"font-bold text-lg leading-tight",children:"Analyst"}),a.jsx("p",{className:"text-xs text-slate-400",children:process.env.NEXT_PUBLIC_PRODUCT_NAME||"Business"})]})]})}),a.jsx("nav",{className:"flex-1 p-4",children:a.jsx("ul",{className:"space-y-1",children:g.map(e=>{let s="/"===e.href?"/"===t:t.startsWith(e.href);return a.jsx("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:(0,u.Z)("flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",s?"bg-slate-800 text-white":"text-slate-400 hover:text-white hover:bg-slate-800"),children:[e.icon,a.jsx("span",{children:e.label})]})},e.href)})})}),a.jsx("div",{className:"p-4 border-t border-slate-700",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-500",children:[a.jsx(p.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Powered by Claude"})]})})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:e})]})}},9616:(e,t,s)=>{"use strict";s.d(t,{default:()=>en});var a=s(326),r=s(434),l=s(7577),n=s(2881);let i=(0,n.Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var d=s(7506),c=s(6307);let o=(0,n.Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),m=(0,n.Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);var x=s(949);let h=(0,n.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),p=(0,n.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var u=s(8998);let g=(0,n.Z)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]),b=(0,n.Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),f=(0,n.Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var j=s(1019),y=s(763);let v=(0,n.Z)("OctagonAlert",[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",key:"h1p8hx"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var N=s(6333),w=s(7358),_=s(3634),k=s(7069);let Z=(0,n.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),S=(0,n.Z)("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);var C=s(7027),M=s(4802),R=s(3468),P=s(1383),q=s(1135),A=s(9526),T=s(5047),O=s(361);let E=(0,n.Z)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var z=s(4893);let F=(0,n.Z)("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]),I=(0,n.Z)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var L=s(5691);let U={primary:"btn-primary",secondary:"btn-secondary",danger:"btn-danger",warning:"bg-amber-500 text-white hover:bg-amber-600 focus:ring-amber-500"};function D({ideaId:e,currentStage:t}){let s=(0,T.useRouter)(),[r,n]=(0,l.useState)(!1),[i,c]=(0,l.useState)(null),[m,x]=(0,l.useState)(null),[h,p]=(0,l.useState)(""),g=function(e){switch(e){case"inbox":return[{toStage:"under_review",label:"Start Review",icon:a.jsx(u.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"under_review":return[{toStage:"approved",label:"Approve",icon:a.jsx(O.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"deferred",label:"Defer",icon:a.jsx(E,{className:"w-4 h-4"}),variant:"warning",requiresComment:!0},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"approved":return[{toStage:"in_progress",label:"Start Implementation",icon:a.jsx(z.Z,{className:"w-4 h-4"}),variant:"primary",triggerImplementation:!0},{toStage:"deferred",label:"Defer",icon:a.jsx(E,{className:"w-4 h-4"}),variant:"warning",requiresComment:!0}];case"in_progress":return[{toStage:"testing",label:"Move to Testing",icon:a.jsx(F,{className:"w-4 h-4"}),variant:"primary"},{toStage:"approved",label:"Back to Approved",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];case"testing":return[{toStage:"shipped",label:"Ship It!",icon:a.jsx(L.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"in_progress",label:"Back to In Progress",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];case"shipped":return[{toStage:"rolled_back",label:"Roll Back",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"deferred":return[{toStage:"under_review",label:"Reopen Review",icon:a.jsx(u.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"rejected":case"rolled_back":return[{toStage:"inbox",label:"Reopen",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];default:return[]}}(t),b=async(t,a)=>{n(!0),c(t);try{(await fetch(`/api/ideas/${e}/transition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to_stage:t,comment:a})})).ok&&s.refresh()}catch(e){console.error("Failed to transition stage:",e)}finally{n(!1),c(null),x(null),p("")}},f=async()=>{n(!0),c("in_progress");try{let t=await fetch(`/api/ideas/${e}/implement`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),a=await t.json();a.success?s.refresh():(console.error("Failed to start implementation:",a.error),alert(a.error||"Failed to start implementation"))}catch(e){console.error("Failed to start implementation:",e),alert("Failed to start implementation")}finally{n(!1),c(null)}},j=e=>{e.triggerImplementation?f():e.requiresComment?x(e):b(e.toStage)};return 0===g.length?null:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"text-sm text-slate-500",children:["Current stage: ",a.jsx("span",{className:"font-medium text-slate-700",children:A.yb[t]})]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:g.map(e=>(0,a.jsxs)("button",{onClick:()=>j(e),disabled:r,className:(0,q.Z)("btn gap-2",U[e.variant],r&&"opacity-75"),children:[i===e.toStage?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):e.icon,a.jsx("span",{children:e.label})]},e.toStage))}),m&&a.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-xl p-6 w-full max-w-md animate-slide-in",children:[a.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-2",children:m.label}),a.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"Please provide a reason for this action."}),a.jsx("textarea",{value:h,onChange:e=>p(e.target.value),placeholder:"Enter your comment...",className:"textarea h-24 mb-4",autoFocus:!0}),(0,a.jsxs)("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>{x(null),p("")},className:"btn btn-secondary",disabled:r,children:"Cancel"}),(0,a.jsxs)("button",{onClick:()=>b(m.toStage,h),disabled:r||!h.trim(),className:(0,q.Z)("btn gap-2",U[m.variant]),children:[r?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):m.icon,a.jsx("span",{children:"Confirm"})]})]})]})})]})}var H=s(732);let V=(0,n.Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var B=s(9436);function G({ideaId:e,comments:t}){let s=(0,T.useRouter)(),[r,n]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),o=async t=>{if(t.preventDefault(),r.trim()&&!i){c(!0);try{(await fetch(`/api/ideas/${e}/comments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({author:"human",author_name:"Founder",content:r.trim()})})).ok&&(n(""),s.refresh())}catch(e){console.error("Failed to add comment:",e)}finally{c(!1)}}};return(0,a.jsxs)("div",{className:"space-y-4",children:[a.jsx("h3",{className:"font-semibold text-slate-900",children:"Discussion"}),a.jsx("div",{className:"space-y-3",children:0===t.length?a.jsx("p",{className:"text-sm text-slate-400 italic",children:"No comments yet"}):t.map(e=>(0,a.jsxs)("div",{className:(0,q.Z)("comment-bubble",e.author),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:["ai"===e.author?a.jsx("div",{className:"w-6 h-6 bg-emerald-100 rounded-full flex items-center justify-center",children:a.jsx(H.Z,{className:"w-3.5 h-3.5 text-emerald-600"})}):a.jsx("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center",children:a.jsx(V,{className:"w-3.5 h-3.5 text-blue-600"})}),a.jsx("span",{className:"text-sm font-medium text-slate-700",children:e.author_name}),a.jsx("span",{className:"text-xs text-slate-400",children:new Date(e.created_at).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})})]}),a.jsx("p",{className:"text-sm text-slate-600 whitespace-pre-wrap",children:e.content})]},e.id))}),(0,a.jsxs)("form",{onSubmit:o,className:"flex gap-2",children:[a.jsx("input",{type:"text",value:r,onChange:e=>n(e.target.value),placeholder:"Add a comment...",className:"input flex-1",disabled:i}),a.jsx("button",{type:"submit",disabled:!r.trim()||i,className:"btn btn-primary",children:i?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):a.jsx(B.Z,{className:"w-4 h-4"})})]})]})}var $=s(1405),X=s(2933);let W=(0,n.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),J={cloning:{label:"Cloning repository...",color:"text-blue-600"},branching:{label:"Creating branch...",color:"text-blue-600"},decomposing:{label:"Decomposing into sub-tasks...",color:"text-amber-600"},implementing:{label:"Implementing changes...",color:"text-violet-600"},testing:{label:"Running tests...",color:"text-cyan-600"},creating_pr:{label:"Creating PR...",color:"text-cyan-600"},completed:{label:"Completed",color:"text-emerald-600"},failed:{label:"Failed",color:"text-red-600"}};function K({ideaId:e,onComplete:t}){let[s,r]=(0,l.useState)(null),[n,i]=(0,l.useState)(!0),[c,m]=(0,l.useState)(!1),[x,h]=(0,l.useState)(!1),p=async()=>{try{let s=await fetch(`/api/ideas/${e}/implement`),a=await s.json();a.success&&a.data?(r(a.data),("completed"===a.data.status||"failed"===a.data.status)&&t?.()):r(null)}catch(e){console.error("Failed to fetch implementation status:",e)}finally{i(!1)}};if(n)return(0,a.jsxs)("div",{className:"flex items-center gap-2 text-slate-500",children:[a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}),a.jsx("span",{className:"text-sm",children:"Loading..."})]});if(!s)return null;let u=J[s.status]||{label:s.status,color:"text-slate-600"},g=!["completed","failed"].includes(s.status);return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("h3",{className:"font-semibold text-slate-900 flex items-center gap-2",children:[a.jsx(b,{className:"w-4 h-4"}),"Implementation Progress"]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[g?a.jsx(d.Z,{className:(0,q.Z)("w-5 h-5 animate-spin",u.color)}):"completed"===s.status?a.jsx(O.Z,{className:"w-5 h-5 text-emerald-600"}):a.jsx(o,{className:"w-5 h-5 text-red-600"}),a.jsx("span",{className:(0,q.Z)("font-medium",u.color),children:u.label}),g&&a.jsx("button",{onClick:p,className:"p-1 text-slate-400 hover:text-slate-600",title:"Refresh",children:a.jsx($.Z,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"p-3 bg-slate-50 rounded-lg border border-slate-200",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx(S,{className:"w-4 h-4 text-slate-500"}),a.jsx("code",{className:"flex-1 bg-slate-200 px-2 py-0.5 rounded font-mono text-xs",children:s.branch_name}),a.jsx("button",{onClick:()=>{s?.branch_name&&(navigator.clipboard.writeText(s.branch_name),h(!0),setTimeout(()=>h(!1),2e3))},className:"p-1 text-slate-400 hover:text-slate-600",title:"Copy branch name",children:x?a.jsx(X.Z,{className:"w-4 h-4 text-emerald-600"}):a.jsx(W,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"mt-2 text-xs text-slate-500",children:["Repo: ",s.repo_name," • Workspace: ",s.workspace_path]}),s.pr_url&&(0,a.jsxs)("a",{href:s.pr_url,target:"_blank",rel:"noopener noreferrer",className:"mt-2 flex items-center gap-1 text-sm text-blue-600 hover:underline",children:[a.jsx("span",{children:"View Pull Request"}),a.jsx(C.Z,{className:"w-3 h-3"})]})]}),s.error_message&&a.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700",children:s.error_message}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{onClick:()=>m(!c),className:"text-sm text-slate-500 hover:text-slate-700",children:[c?"Hide":"Show"," logs (",s.logs.length,")"]}),c&&a.jsx("div",{className:"mt-2 p-3 bg-slate-900 rounded-lg max-h-64 overflow-y-auto",children:a.jsx("pre",{className:"text-xs text-slate-300 font-mono whitespace-pre-wrap",children:s.logs.join("\n")})})]})]})}function Q(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}function Y({title:e,icon:t,children:s}){return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("h3",{className:"flex items-center gap-2 font-semibold text-slate-900",children:[t,a.jsx("span",{children:e})]}),a.jsx("div",{className:"text-sm text-slate-600",children:s})]})}function ee({status:e}){switch(e){case"pending":return a.jsx(i,{className:"w-4 h-4 text-slate-400"});case"in_progress":return a.jsx(d.Z,{className:"w-4 h-4 text-violet-500 animate-spin"});case"completed":return a.jsx(c.Z,{className:"w-4 h-4 text-emerald-500"});case"failed":return a.jsx(o,{className:"w-4 h-4 text-red-500"})}}function et(e){return e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):""}function es({failureType:e}){if(!e)return null;let t={timeout:{text:"timeout",className:"bg-orange-100 text-orange-700"},error:{text:"error",className:"bg-red-100 text-red-700"},tests_failed:{text:"tests failed",className:"bg-amber-100 text-amber-700"}}[e];return a.jsx("span",{className:(0,q.Z)("text-xs px-1.5 py-0.5 rounded font-medium",t.className),children:t.text})}function ea({subTasks:e}){let[t,s]=(0,l.useState)(null);if(0===e.length)return null;let r=e.filter(e=>"completed"===e.status).length,n=e.filter(e=>"failed"===e.status).length,i=Math.round(r/e.length*100);return a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:(0,a.jsxs)(Y,{title:"Sub-Tasks",icon:a.jsx(m,{className:"w-4 h-4 text-violet-500"}),children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs mb-1",children:[(0,a.jsxs)("span",{className:"text-slate-500",children:[r,"/",e.length," done",n>0&&(0,a.jsxs)("span",{className:"text-red-500 ml-1",children:["(",n," failed)"]})]}),(0,a.jsxs)("span",{className:"text-slate-500",children:[i,"%"]})]}),a.jsx("div",{className:"w-full bg-slate-200 rounded-full h-2",children:a.jsx("div",{className:(0,q.Z)("h-2 rounded-full transition-all",n>0?"bg-red-500":"bg-emerald-500"),style:{width:`${i}%`}})})]}),a.jsx("ul",{className:"space-y-2",children:e.map(e=>{let r=t===e.id;return(0,a.jsxs)("li",{className:"border border-slate-100 rounded-lg",children:[(0,a.jsxs)("button",{onClick:()=>s(r?null:e.id),className:"w-full flex items-center gap-2 p-2 text-left hover:bg-slate-50 rounded-lg",children:[a.jsx(ee,{status:e.status}),a.jsx("span",{className:(0,q.Z)("flex-1 text-sm","completed"===e.status&&"line-through text-slate-400","failed"===e.status&&"text-red-600"),children:e.title}),"failed"===e.status&&e.failure_type&&a.jsx(es,{failureType:e.failure_type}),e.has_uncommitted_changes&&a.jsx("span",{title:"Uncommitted changes in workspace",children:a.jsx(x.Z,{className:"w-3.5 h-3.5 text-amber-500"})}),r?a.jsx(h,{className:"w-3 h-3 text-slate-400"}):a.jsx(p,{className:"w-3 h-3 text-slate-400"})]}),r&&(0,a.jsxs)("div",{className:"px-8 pb-3 space-y-3",children:[a.jsx("p",{className:"text-xs text-slate-600 whitespace-pre-wrap",children:e.description}),(e.duration_ms||e.lines_added||e.lines_removed)&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 text-xs text-slate-500",children:[e.duration_ms&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[a.jsx(u.Z,{className:"w-3 h-3"}),function(e){if(!e)return"";let t=Math.floor(e/1e3),s=Math.floor(t/60),a=Math.floor(s/60);return a>0?`${a}h ${s%60}m`:s>0?`${s}m ${t%60}s`:`${t}s`}(e.duration_ms)]}),(e.lines_added||e.lines_removed)&&(0,a.jsxs)("span",{className:"flex items-center gap-1 font-mono",children:[a.jsx(g,{className:"w-3 h-3"}),(0,a.jsxs)("span",{className:"text-emerald-600",children:["+",e.lines_added||0]}),(0,a.jsxs)("span",{className:"text-red-600",children:["-",e.lines_removed||0]})]})]}),e.files_changed&&e.files_changed.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"text-xs font-medium text-emerald-600 flex items-center gap-1",children:[a.jsx(g,{className:"w-3 h-3"}),"Files Changed:"]}),a.jsx("ul",{className:"mt-1",children:e.files_changed.map(e=>a.jsx("li",{className:"text-xs text-slate-600 font-mono",children:e},e))})]}),e.files_to_modify.length>0&&(0,a.jsxs)("div",{children:[a.jsx("span",{className:"text-xs font-medium text-slate-500",children:"Planned Files:"}),a.jsx("ul",{className:"mt-1",children:e.files_to_modify.map(e=>a.jsx("li",{className:"text-xs text-slate-400 font-mono",children:e},e))})]}),e.error_message&&a.jsx("div",{className:"p-2 bg-red-50 border border-red-200 rounded text-xs text-red-700 whitespace-pre-wrap",children:e.error_message}),e.output_snippet&&(0,a.jsxs)("details",{className:"group",children:[(0,a.jsxs)("summary",{className:"text-xs font-medium text-slate-500 cursor-pointer flex items-center gap-1",children:[a.jsx(b,{className:"w-3 h-3"}),"Output",a.jsx(p,{className:"w-3 h-3 group-open:rotate-90 transition-transform"})]}),a.jsx("pre",{className:"mt-1 p-2 bg-slate-50 border border-slate-200 rounded text-xs text-slate-600 overflow-x-auto max-h-48 overflow-y-auto whitespace-pre-wrap",children:e.output_snippet})]}),e.has_uncommitted_changes&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-amber-50 border border-amber-200 rounded text-xs text-amber-700",children:[a.jsx(x.Z,{className:"w-3.5 h-3.5"}),"Uncommitted changes in workspace"]}),e.commit_hash&&(0,a.jsxs)("div",{className:"text-xs text-slate-400",children:["Commit: ",a.jsx("code",{className:"bg-slate-100 px-1 rounded",children:e.commit_hash.slice(0,8)})]}),(e.started_at||e.completed_at)&&(0,a.jsxs)("div",{className:"text-xs text-slate-400",children:[e.started_at&&(0,a.jsxs)("span",{children:["Started: ",et(e.started_at)]}),e.completed_at&&(0,a.jsxs)("span",{className:"ml-3",children:["Finished: ",et(e.completed_at)]})]})]})]},e.id)})})]})})}function er({status:e}){switch(e){case"met":return a.jsx(c.Z,{className:"w-4 h-4 text-emerald-500"});case"partially_met":return a.jsx(x.Z,{className:"w-4 h-4 text-amber-500"});case"not_met":return a.jsx(o,{className:"w-4 h-4 text-red-500"});case"no_data":return a.jsx(f,{className:"w-4 h-4 text-slate-400"});default:return a.jsx(j.Z,{className:"w-4 h-4 text-slate-400"})}}function el({verification:e}){return a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:(0,a.jsxs)(Y,{title:"Post-Ship Verification",icon:a.jsx(y.Z,{className:"w-4 h-4 text-emerald-500"}),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("span",{className:(0,q.Z)("text-xs font-medium px-2 py-1 rounded",A.aR[e.status]),children:A.Wb[e.status]}),e.confidence&&(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:["Confidence: ",e.confidence]})]}),e.summary&&a.jsx("p",{className:"text-sm text-slate-700 mb-4",children:e.summary}),e.requires_human_review&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 mb-4 bg-amber-50 border border-amber-200 rounded text-xs text-amber-700",children:[a.jsx(v,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,a.jsxs)("span",{children:["Requires human review: ",e.human_review_reason||"Review needed"]})]}),e.metric_evaluations.length>0&&(0,a.jsxs)("div",{className:"space-y-2 mb-4",children:[a.jsx("span",{className:"text-xs font-medium text-slate-500 uppercase",children:"Metric Results"}),a.jsx("ul",{className:"space-y-1.5",children:e.metric_evaluations.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[a.jsx(er,{status:e.status}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-xs text-slate-700",children:e.metric}),a.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.evidence})]})]},t))})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 text-xs text-slate-400 pt-3 border-t border-slate-100",children:[e.first_evaluated_at&&(0,a.jsxs)("span",{children:["First evaluated: ",Q(e.first_evaluated_at)]}),e.evaluation_count>0&&(0,a.jsxs)("span",{children:["Evaluations: ",e.evaluation_count]}),e.next_evaluation_after&&(0,a.jsxs)("span",{children:["Next check: ",new Date(e.next_evaluation_after).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]}),e.follow_up_idea_ids.length>0&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-slate-100",children:[a.jsx("span",{className:"text-xs font-medium text-slate-500",children:"Follow-up ideas:"}),a.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:e.follow_up_idea_ids.map(e=>a.jsx(r.default,{href:`/ideas/${e}`,className:"text-xs text-blue-600 hover:underline bg-blue-50 px-1.5 py-0.5 rounded",children:e},e))})]})]})})}function en({idea:e,linkedGoal:t}){return(0,a.jsxs)("div",{className:"max-w-4xl mx-auto p-6",children:[(0,a.jsxs)(r.default,{href:"/",className:"inline-flex items-center gap-2 text-sm text-slate-500 hover:text-slate-700 mb-6",children:[a.jsx(N.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Back to Dashboard"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6 mb-6",children:[a.jsx("div",{className:"flex items-start justify-between mb-4",children:(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[a.jsx("span",{className:(0,q.Z)("priority-badge",A.Gs[e.priority]),children:A.rF[e.priority]}),a.jsx("span",{className:(0,q.Z)("category-badge",A.pG[e.category]),children:A.Hs[e.category]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[a.jsx("div",{className:(0,q.Z)("stage-indicator",A.lv[e.stage])}),a.jsx("span",{className:"text-xs text-slate-500",children:A.yb[e.stage]})]})]}),a.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-2",children:e.title}),a.jsx("p",{className:"text-slate-600",children:e.summary})]})}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-6 text-sm text-slate-500 pt-4 border-t border-slate-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(w.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Created ",Q(e.created_at)]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(_.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Effort: ",A.bi[e.effort]]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(k.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Impact: ",A.bi[e.impact]]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Source: ",A.Vr[e.source.type]]})]})]}),e.tags.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:e.tags.map(e=>a.jsx("span",{className:"px-2 py-1 bg-slate-100 text-slate-600 text-xs rounded",children:e},e))}),e.implementation.branch_name&&a.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-lg border border-slate-200",children:(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-slate-600",children:[a.jsx(S,{className:"w-4 h-4"}),a.jsx("code",{className:"bg-slate-200 px-2 py-0.5 rounded",children:e.implementation.branch_name})]}),e.implementation.pr_url&&(0,a.jsxs)("a",{href:e.implementation.pr_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-blue-600 hover:underline",children:[a.jsx("span",{children:"View PR"}),a.jsx(C.Z,{className:"w-3 h-3"})]})]})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Context",icon:a.jsx(M.Z,{className:"w-4 h-4 text-amber-500"}),children:a.jsx("p",{className:"whitespace-pre-wrap",children:e.context})})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Rationale",icon:a.jsx(R.Z,{className:"w-4 h-4 text-blue-500"}),children:a.jsx("p",{className:"whitespace-pre-wrap",children:e.rationale})})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Implementation Plan",icon:a.jsx(P.Z,{className:"w-4 h-4 text-emerald-500"}),children:a.jsx("div",{className:"whitespace-pre-wrap",children:e.implementation_plan})})}),e.implementation.sub_tasks&&e.implementation.sub_tasks.length>0&&a.jsx(ea,{subTasks:e.implementation.sub_tasks}),"shipped"===e.stage&&e.verification&&a.jsx(el,{verification:e.verification}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Success Metrics",icon:a.jsx(k.Z,{className:"w-4 h-4 text-violet-500"}),children:a.jsx("ul",{className:"list-disc list-inside space-y-1",children:e.success_metrics.map((e,t)=>a.jsx("li",{children:e},t))})})})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(t||e.expected_impact)&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:[(0,a.jsxs)("h3",{className:"flex items-center gap-2 font-semibold text-slate-900 mb-3",children:[a.jsx(R.Z,{className:"w-4 h-4 text-emerald-500"}),a.jsx("span",{children:"Goal Alignment"})]}),t?(0,a.jsxs)(r.default,{href:`/goals/${t.id}`,className:"block p-3 bg-emerald-50 border border-emerald-200 rounded-lg hover:border-emerald-300 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-sm font-medium text-emerald-800",children:t.title}),a.jsx(C.Z,{className:"w-3 h-3 text-emerald-600"})]}),a.jsx("p",{className:"text-xs text-emerald-600 line-clamp-2",children:t.description})]}):e.goal_id?(0,a.jsxs)("p",{className:"text-sm text-slate-500",children:["Linked to goal: ",a.jsx("code",{className:"text-xs bg-slate-100 px-1 rounded",children:e.goal_id})]}):null,e.expected_impact&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-slate-100",children:[a.jsx("p",{className:"text-xs text-slate-500 uppercase font-medium mb-1",children:"Expected Impact"}),a.jsx("p",{className:"text-sm text-slate-700",children:e.expected_impact})]})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(D,{ideaId:e.id,currentStage:e.stage})}),["in_progress","testing","shipped","rolled_back"].includes(e.stage)&&a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(K,{ideaId:e.id})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(G,{ideaId:e.id,comments:e.comments})}),e.source.files_analyzed&&e.source.files_analyzed.length>0&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:[a.jsx("h3",{className:"font-semibold text-slate-900 mb-3",children:"Files Analyzed"}),a.jsx("ul",{className:"space-y-1",children:e.source.files_analyzed.map((e,t)=>a.jsx("li",{className:"text-xs text-slate-500 font-mono truncate",children:e},t))})]})]})]})]})}},9526:(e,t,s)=>{"use strict";s.d(t,{G:()=>i,GK:()=>k,Gs:()=>o,Hs:()=>a,PN:()=>p,PW:()=>w,Q_:()=>u,R$:()=>v,Vr:()=>m,Wb:()=>h,aR:()=>x,bi:()=>d,en:()=>y,i2:()=>j,kT:()=>g,l5:()=>b,lE:()=>N,lv:()=>n,pG:()=>r,rF:()=>c,tV:()=>f,tl:()=>_,xP:()=>Z,yb:()=>l});let a={product:"Product",ux_design:"UX/Design",growth:"Growth",performance:"Performance",tech_debt:"Tech Debt",security:"Security",infrastructure:"Infrastructure",content:"Content",analytics:"Analytics",integration:"Integration"},r={product:"bg-blue-100 text-blue-800",ux_design:"bg-purple-100 text-purple-800",growth:"bg-green-100 text-green-800",performance:"bg-orange-100 text-orange-800",tech_debt:"bg-yellow-100 text-yellow-800",security:"bg-red-100 text-red-800",infrastructure:"bg-gray-100 text-gray-800",content:"bg-pink-100 text-pink-800",analytics:"bg-cyan-100 text-cyan-800",integration:"bg-indigo-100 text-indigo-800"},l={inbox:"Inbox",under_review:"Under Review",approved:"Approved",in_progress:"In Progress",testing:"Testing",shipped:"Shipped",deferred:"Deferred",rejected:"Rejected",rolled_back:"Rolled Back"},n={inbox:"bg-amber-500",under_review:"bg-blue-500",approved:"bg-emerald-500",in_progress:"bg-violet-500",testing:"bg-cyan-500",shipped:"bg-green-500",deferred:"bg-gray-500",rejected:"bg-red-500",rolled_back:"bg-orange-500"},i=["inbox","under_review","approved","in_progress","testing","shipped"],d={xs:"XS",s:"S",m:"M",l:"L",xl:"XL"},c={critical:"Critical",high:"High",medium:"Medium",low:"Low"},o={critical:"bg-red-100 text-red-800 border-red-300",high:"bg-orange-100 text-orange-800 border-orange-300",medium:"bg-yellow-100 text-yellow-800 border-yellow-300",low:"bg-gray-100 text-gray-800 border-gray-300"},m={codebase_analysis:"Codebase Analysis",metrics_review:"Metrics Review",market_research:"Market Research",seo_audit:"SEO Audit",manual:"Manual"},x={pending:"bg-slate-100 text-slate-700",validated:"bg-emerald-100 text-emerald-800",needs_investigation:"bg-amber-100 text-amber-800",inconclusive:"bg-slate-100 text-slate-600",invalidated:"bg-red-100 text-red-800"},h={pending:"Pending",validated:"Validated",needs_investigation:"Needs Investigation",inconclusive:"Inconclusive",invalidated:"Invalidated"},p={ship:"Ship",update:"Update",milestone:"Milestone",digest:"Digest",manual:"Manual"},u={ship:"bg-green-100 text-green-800",update:"bg-blue-100 text-blue-800",milestone:"bg-amber-100 text-amber-800",digest:"bg-purple-100 text-purple-800",manual:"bg-slate-100 text-slate-800"},g={acquisition:"Acquisition",activation:"Activation",retention:"Retention",revenue:"Revenue",referral:"Referral"},b={acquisition:"bg-blue-100 text-blue-800",activation:"bg-emerald-100 text-emerald-800",retention:"bg-purple-100 text-purple-800",revenue:"bg-amber-100 text-amber-800",referral:"bg-pink-100 text-pink-800"},f={on_track:"On Track",at_risk:"At Risk",behind:"Behind",achieved:"Achieved"},j={on_track:"bg-emerald-100 text-emerald-800 border-emerald-300",at_risk:"bg-amber-100 text-amber-800 border-amber-300",behind:"bg-red-100 text-red-800 border-red-300",achieved:"bg-blue-100 text-blue-800 border-blue-300"},y={manual:"Manual",rest_api:"REST API",posthog:"PostHog",firestore:"Firestore",stripe:"Stripe",whatsapp:"WhatsApp"},v={stated:"Stated",testing:"Testing",validated:"Validated",invalidated:"Invalidated",deferred:"Deferred"},N={stated:"bg-slate-100 text-slate-800 border-slate-300",testing:"bg-amber-100 text-amber-800 border-amber-300",validated:"bg-emerald-100 text-emerald-800 border-emerald-300",invalidated:"bg-red-100 text-red-800 border-red-300",deferred:"bg-slate-100 text-slate-500 border-slate-200"},w={acquisition:"Acquisition",engagement:"Engagement",conversion:"Conversion",monetization:"Monetization"},_={acquisition:"bg-blue-100 text-blue-800",engagement:"bg-purple-100 text-purple-800",conversion:"bg-amber-100 text-amber-800",monetization:"bg-emerald-100 text-emerald-800"},k={planned:"Planned",active:"Active",completed:"Completed",paused:"Paused"},Z={planned:"bg-slate-100 text-slate-700 border-slate-300",active:"bg-blue-100 text-blue-800 border-blue-300",completed:"bg-emerald-100 text-emerald-800 border-emerald-300",paused:"bg-amber-100 text-amber-800 border-amber-300"}},1085:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{ReadonlyURLSearchParams:function(){return n},RedirectType:function(){return a.RedirectType},notFound:function(){return r.notFound},permanentRedirect:function(){return a.permanentRedirect},redirect:function(){return a.redirect}});let a=s(3953),r=s(6399);class l extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class n extends URLSearchParams{append(){throw new l}delete(){throw new l}set(){throw new l}sort(){throw new l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{isNotFoundError:function(){return r},notFound:function(){return a}});let s="NEXT_NOT_FOUND";function a(){let e=Error(s);throw e.digest=s,e}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8586:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return s}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(s||(s={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3953:(e,t,s)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{RedirectType:function(){return a},getRedirectError:function(){return d},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return x},isRedirectError:function(){return m},permanentRedirect:function(){return o},redirect:function(){return c}});let r=s(4580),l=s(2934),n=s(8586),i="NEXT_REDIRECT";function d(e,t,s){void 0===s&&(s=n.RedirectStatusCode.TemporaryRedirect);let a=Error(i);a.digest=i+";"+t+";"+e+";"+s+";";let l=r.requestAsyncStorage.getStore();return l&&(a.mutableCookies=l.mutableCookies),a}function c(e,t){void 0===t&&(t="replace");let s=l.actionAsyncStorage.getStore();throw d(e,t,(null==s?void 0:s.isAction)?n.RedirectStatusCode.SeeOther:n.RedirectStatusCode.TemporaryRedirect)}function o(e,t){void 0===t&&(t="replace");let s=l.actionAsyncStorage.getStore();throw d(e,t,(null==s?void 0:s.isAction)?n.RedirectStatusCode.SeeOther:n.RedirectStatusCode.PermanentRedirect)}function m(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,s,a,r]=e.digest.split(";",4),l=Number(r);return t===i&&("replace"===s||"push"===s)&&"string"==typeof a&&!isNaN(l)&&l in n.RedirectStatusCode}function x(e){return m(e)?e.digest.split(";",3)[2]:null}function h(e){if(!m(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function p(e){if(!m(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(a||(a={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},720:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>c,dynamic:()=>d});var a=s(9510),r=s(1085),l=s(534),n=s(2548);let i=(0,s(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/IdeaDetail.tsx#default`),d="force-dynamic";async function c({params:e}){let{id:t}=await e,s=await (0,l.b_)(t);s||(0,r.notFound)();let d=s.goal_id?await (0,l.a9)(s.goal_id):null;return a.jsx(n.Z,{children:a.jsx(i,{idea:s,linkedGoal:d})})}},2029:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>l,metadata:()=>r});var a=s(9510);s(5023);let r={title:process.env.NEXT_PUBLIC_PRODUCT_NAME?`${process.env.NEXT_PUBLIC_PRODUCT_NAME} Analyst`:"AI Business Analyst",description:"AI Business Analyst - Autonomous improvement proposals"};function l({children:e}){return a.jsx("html",{lang:"en",children:a.jsx("body",{className:"min-h-screen bg-slate-50",children:e})})}},2548:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx#default`)},5023:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[9276,4471,4376,534],()=>s(2493));module.exports=a})();
|
|
1
|
+
(()=>{var e={};e.id=8594,e.ids=[8594],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4770:e=>{"use strict";e.exports=require("crypto")},2048:e=>{"use strict";e.exports=require("fs")},5315:e=>{"use strict";e.exports=require("path")},2493:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>n.a,__next_app__:()=>x,originalPathname:()=>m,pages:()=>o,routeModule:()=>h,tree:()=>c}),s(720),s(2029),s(5866);var a=s(3191),r=s(8716),l=s(7922),n=s.n(l),i=s(5231),d={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>i[e]);s.d(t,d);let c=["",{children:["ideas",{children:["[id]",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,720)),"/Users/luismey/Code/vibebusiness/src/app/ideas/[id]/page.tsx"]}]},{}]},{}]},{layout:[()=>Promise.resolve().then(s.bind(s,2029)),"/Users/luismey/Code/vibebusiness/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,5866,23)),"next/dist/client/components/not-found-error"]}],o=["/Users/luismey/Code/vibebusiness/src/app/ideas/[id]/page.tsx"],m="/ideas/[id]/page",x={require:s,loadChunk:()=>Promise.resolve()},h=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/ideas/[id]/page",pathname:"/ideas/[id]",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},7010:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2994,23)),Promise.resolve().then(s.t.bind(s,6114,23)),Promise.resolve().then(s.t.bind(s,9727,23)),Promise.resolve().then(s.t.bind(s,9671,23)),Promise.resolve().then(s.t.bind(s,1868,23)),Promise.resolve().then(s.t.bind(s,4759,23))},5698:()=>{},9180:(e,t,s)=>{Promise.resolve().then(s.bind(s,3818)),Promise.resolve().then(s.bind(s,9616))},6333:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]])},7358:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},2933:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},361:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},6307:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},8998:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]])},7027:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},4802:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]])},7506:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1019:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},4893:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},1405:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},5691:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},9436:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]])},763:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1383:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("SquareCheckBig",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]])},7069:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]])},949:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},3634:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},3818:(e,t,s)=>{"use strict";s.d(t,{default:()=>b});var a=s(326),r=s(434),l=s(5047),n=s(4319),i=s(4935),d=s(3468),c=s(8258),o=s(9730),m=s(717),x=s(8378),h=s(732),p=s(1572),u=s(1135);let g=[{href:"/",label:"Dashboard",icon:a.jsx(n.Z,{className:"w-5 h-5"})},{href:"/roadmap",label:"Roadmap",icon:a.jsx(i.Z,{className:"w-5 h-5"})},{href:"/goals",label:"Goals",icon:a.jsx(d.Z,{className:"w-5 h-5"})},{href:"/hypotheses",label:"Hypotheses",icon:a.jsx(c.Z,{className:"w-5 h-5"})},{href:"/social",label:"Social",icon:a.jsx(o.Z,{className:"w-5 h-5"})},{href:"/sessions",label:"Sessions",icon:a.jsx(m.Z,{className:"w-5 h-5"})},{href:"/settings",label:"Settings",icon:a.jsx(x.Z,{className:"w-5 h-5"})}];function b({children:e}){let t=(0,l.usePathname)();return(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("aside",{className:"w-64 bg-slate-900 text-white flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-slate-700",children:(0,a.jsxs)(r.default,{href:"/",className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-10 h-10 bg-emerald-500 rounded-lg flex items-center justify-center",children:a.jsx(h.Z,{className:"w-6 h-6 text-white"})}),(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"font-bold text-lg leading-tight",children:"Analyst"}),a.jsx("p",{className:"text-xs text-slate-400",children:process.env.NEXT_PUBLIC_PRODUCT_NAME||"Business"})]})]})}),a.jsx("nav",{className:"flex-1 p-4",children:a.jsx("ul",{className:"space-y-1",children:g.map(e=>{let s="/"===e.href?"/"===t:t.startsWith(e.href);return a.jsx("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:(0,u.Z)("flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",s?"bg-slate-800 text-white":"text-slate-400 hover:text-white hover:bg-slate-800"),children:[e.icon,a.jsx("span",{children:e.label})]})},e.href)})})}),a.jsx("div",{className:"p-4 border-t border-slate-700",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-500",children:[a.jsx(p.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Powered by Claude"})]})})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:e})]})}},9616:(e,t,s)=>{"use strict";s.d(t,{default:()=>en});var a=s(326),r=s(434),l=s(7577),n=s(2881);let i=(0,n.Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);var d=s(7506),c=s(6307);let o=(0,n.Z)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),m=(0,n.Z)("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);var x=s(949);let h=(0,n.Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),p=(0,n.Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var u=s(8998);let g=(0,n.Z)("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]),b=(0,n.Z)("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]),f=(0,n.Z)("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var j=s(1019),y=s(763);let v=(0,n.Z)("OctagonAlert",[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",key:"h1p8hx"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);var N=s(6333),w=s(7358),_=s(3634),k=s(7069);let Z=(0,n.Z)("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),S=(0,n.Z)("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);var M=s(7027),C=s(4802),P=s(3468),R=s(1383),q=s(1135),T=s(9526),A=s(5047),O=s(361);let E=(0,n.Z)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var z=s(4893);let F=(0,n.Z)("TestTube",[["path",{d:"M14.5 2v17.5c0 1.4-1.1 2.5-2.5 2.5c-1.4 0-2.5-1.1-2.5-2.5V2",key:"125lnx"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M14.5 16h-5",key:"1ox875"}]]),I=(0,n.Z)("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var L=s(5691);let U={primary:"btn-primary",secondary:"btn-secondary",danger:"btn-danger",warning:"bg-amber-500 text-white hover:bg-amber-600 focus:ring-amber-500"};function D({ideaId:e,currentStage:t}){let s=(0,A.useRouter)(),[r,n]=(0,l.useState)(!1),[i,c]=(0,l.useState)(null),[m,x]=(0,l.useState)(null),[h,p]=(0,l.useState)(""),g=function(e){switch(e){case"inbox":return[{toStage:"under_review",label:"Start Review",icon:a.jsx(u.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"under_review":return[{toStage:"approved",label:"Approve",icon:a.jsx(O.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"deferred",label:"Defer",icon:a.jsx(E,{className:"w-4 h-4"}),variant:"warning",requiresComment:!0},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"approved":return[{toStage:"in_progress",label:"Start Implementation",icon:a.jsx(z.Z,{className:"w-4 h-4"}),variant:"primary",triggerImplementation:!0},{toStage:"deferred",label:"Defer",icon:a.jsx(E,{className:"w-4 h-4"}),variant:"warning",requiresComment:!0}];case"in_progress":return[{toStage:"testing",label:"Move to Testing",icon:a.jsx(F,{className:"w-4 h-4"}),variant:"primary"},{toStage:"approved",label:"Back to Approved",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];case"testing":return[{toStage:"shipped",label:"Ship It!",icon:a.jsx(L.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"in_progress",label:"Back to In Progress",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];case"shipped":return[{toStage:"rolled_back",label:"Roll Back",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"deferred":return[{toStage:"under_review",label:"Reopen Review",icon:a.jsx(u.Z,{className:"w-4 h-4"}),variant:"primary"},{toStage:"rejected",label:"Reject",icon:a.jsx(o,{className:"w-4 h-4"}),variant:"danger",requiresComment:!0}];case"rejected":case"rolled_back":return[{toStage:"inbox",label:"Reopen",icon:a.jsx(I,{className:"w-4 h-4"}),variant:"secondary"}];default:return[]}}(t),b=async(t,a)=>{n(!0),c(t);try{(await fetch(`/api/ideas/${e}/transition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({to_stage:t,comment:a})})).ok&&s.refresh()}catch(e){console.error("Failed to transition stage:",e)}finally{n(!1),c(null),x(null),p("")}},f=async()=>{n(!0),c("in_progress");try{let t=await fetch(`/api/ideas/${e}/implement`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})}),a=await t.json();a.success?s.refresh():(console.error("Failed to start implementation:",a.error),alert(a.error||"Failed to start implementation"))}catch(e){console.error("Failed to start implementation:",e),alert("Failed to start implementation")}finally{n(!1),c(null)}},j=e=>{e.triggerImplementation?f():e.requiresComment?x(e):b(e.toStage)};return 0===g.length?null:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"text-sm text-slate-500",children:["Current stage: ",a.jsx("span",{className:"font-medium text-slate-700",children:T.yb[t]})]}),a.jsx("div",{className:"flex flex-wrap gap-2",children:g.map(e=>(0,a.jsxs)("button",{onClick:()=>j(e),disabled:r,className:(0,q.Z)("btn gap-2",U[e.variant],r&&"opacity-75"),children:[i===e.toStage?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):e.icon,a.jsx("span",{children:e.label})]},e.toStage))}),m&&a.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-xl p-6 w-full max-w-md animate-slide-in",children:[a.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-2",children:m.label}),a.jsx("p",{className:"text-sm text-slate-500 mb-4",children:"Please provide a reason for this action."}),a.jsx("textarea",{value:h,onChange:e=>p(e.target.value),placeholder:"Enter your comment...",className:"textarea h-24 mb-4",autoFocus:!0}),(0,a.jsxs)("div",{className:"flex justify-end gap-2",children:[a.jsx("button",{onClick:()=>{x(null),p("")},className:"btn btn-secondary",disabled:r,children:"Cancel"}),(0,a.jsxs)("button",{onClick:()=>b(m.toStage,h),disabled:r||!h.trim(),className:(0,q.Z)("btn gap-2",U[m.variant]),children:[r?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):m.icon,a.jsx("span",{children:"Confirm"})]})]})]})})]})}var H=s(732);let V=(0,n.Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var G=s(9436);function $({ideaId:e,comments:t}){let s=(0,A.useRouter)(),[r,n]=(0,l.useState)(""),[i,c]=(0,l.useState)(!1),o=async t=>{if(t.preventDefault(),r.trim()&&!i){c(!0);try{(await fetch(`/api/ideas/${e}/comments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({author:"human",author_name:"Founder",content:r.trim()})})).ok&&(n(""),s.refresh())}catch(e){console.error("Failed to add comment:",e)}finally{c(!1)}}};return(0,a.jsxs)("div",{className:"space-y-4",children:[a.jsx("h3",{className:"font-semibold text-slate-900",children:"Discussion"}),a.jsx("div",{className:"space-y-3",children:0===t.length?a.jsx("p",{className:"text-sm text-slate-400 italic",children:"No comments yet"}):t.map(e=>(0,a.jsxs)("div",{className:(0,q.Z)("comment-bubble",e.author),children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:["ai"===e.author?a.jsx("div",{className:"w-6 h-6 bg-emerald-100 rounded-full flex items-center justify-center",children:a.jsx(H.Z,{className:"w-3.5 h-3.5 text-emerald-600"})}):a.jsx("div",{className:"w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center",children:a.jsx(V,{className:"w-3.5 h-3.5 text-blue-600"})}),a.jsx("span",{className:"text-sm font-medium text-slate-700",children:e.author_name}),a.jsx("span",{className:"text-xs text-slate-400",children:new Date(e.created_at).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})})]}),a.jsx("p",{className:"text-sm text-slate-600 whitespace-pre-wrap",children:e.content})]},e.id))}),(0,a.jsxs)("form",{onSubmit:o,className:"flex gap-2",children:[a.jsx("input",{type:"text",value:r,onChange:e=>n(e.target.value),placeholder:"Add a comment...",className:"input flex-1",disabled:i}),a.jsx("button",{type:"submit",disabled:!r.trim()||i,className:"btn btn-primary",children:i?a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}):a.jsx(G.Z,{className:"w-4 h-4"})})]})]})}var B=s(1405),X=s(2933);let W=(0,n.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),J={cloning:{label:"Cloning repository...",color:"text-blue-600"},branching:{label:"Creating branch...",color:"text-blue-600"},decomposing:{label:"Decomposing into sub-tasks...",color:"text-amber-600"},implementing:{label:"Implementing changes...",color:"text-violet-600"},testing:{label:"Running tests...",color:"text-cyan-600"},creating_pr:{label:"Creating PR...",color:"text-cyan-600"},completed:{label:"Completed",color:"text-emerald-600"},failed:{label:"Failed",color:"text-red-600"}};function K({ideaId:e,onComplete:t}){let[s,r]=(0,l.useState)(null),[n,i]=(0,l.useState)(!0),[c,m]=(0,l.useState)(!1),[x,h]=(0,l.useState)(!1),p=async()=>{try{let s=await fetch(`/api/ideas/${e}/implement`),a=await s.json();a.success&&a.data?(r(a.data),("completed"===a.data.status||"failed"===a.data.status)&&t?.()):r(null)}catch(e){console.error("Failed to fetch implementation status:",e)}finally{i(!1)}};if(n)return(0,a.jsxs)("div",{className:"flex items-center gap-2 text-slate-500",children:[a.jsx(d.Z,{className:"w-4 h-4 animate-spin"}),a.jsx("span",{className:"text-sm",children:"Loading..."})]});if(!s)return null;let u=J[s.status]||{label:s.status,color:"text-slate-600"},g=!["completed","failed"].includes(s.status);return(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("h3",{className:"font-semibold text-slate-900 flex items-center gap-2",children:[a.jsx(b,{className:"w-4 h-4"}),"Implementation Progress"]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[g?a.jsx(d.Z,{className:(0,q.Z)("w-5 h-5 animate-spin",u.color)}):"completed"===s.status?a.jsx(O.Z,{className:"w-5 h-5 text-emerald-600"}):a.jsx(o,{className:"w-5 h-5 text-red-600"}),a.jsx("span",{className:(0,q.Z)("font-medium",u.color),children:u.label}),g&&a.jsx("button",{onClick:p,className:"p-1 text-slate-400 hover:text-slate-600",title:"Refresh",children:a.jsx(B.Z,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"p-3 bg-slate-50 rounded-lg border border-slate-200",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm",children:[a.jsx(S,{className:"w-4 h-4 text-slate-500"}),a.jsx("code",{className:"flex-1 bg-slate-200 px-2 py-0.5 rounded font-mono text-xs",children:s.branch_name}),a.jsx("button",{onClick:()=>{s?.branch_name&&(navigator.clipboard.writeText(s.branch_name),h(!0),setTimeout(()=>h(!1),2e3))},className:"p-1 text-slate-400 hover:text-slate-600",title:"Copy branch name",children:x?a.jsx(X.Z,{className:"w-4 h-4 text-emerald-600"}):a.jsx(W,{className:"w-4 h-4"})})]}),(0,a.jsxs)("div",{className:"mt-2 text-xs text-slate-500",children:["Repo: ",s.repo_name," • Workspace: ",s.workspace_path]}),s.pr_url&&(0,a.jsxs)("a",{href:s.pr_url,target:"_blank",rel:"noopener noreferrer",className:"mt-2 flex items-center gap-1 text-sm text-blue-600 hover:underline",children:[a.jsx("span",{children:"View Pull Request"}),a.jsx(M.Z,{className:"w-3 h-3"})]})]}),s.error_message&&a.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-sm text-red-700",children:s.error_message}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("button",{onClick:()=>m(!c),className:"text-sm text-slate-500 hover:text-slate-700",children:[c?"Hide":"Show"," logs (",s.logs.length,")"]}),c&&a.jsx("div",{className:"mt-2 p-3 bg-slate-900 rounded-lg max-h-64 overflow-y-auto",children:a.jsx("pre",{className:"text-xs text-slate-300 font-mono whitespace-pre-wrap",children:s.logs.join("\n")})})]})]})}function Q(e){return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}function Y({title:e,icon:t,children:s}){return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("h3",{className:"flex items-center gap-2 font-semibold text-slate-900",children:[t,a.jsx("span",{children:e})]}),a.jsx("div",{className:"text-sm text-slate-600",children:s})]})}function ee({status:e}){switch(e){case"pending":return a.jsx(i,{className:"w-4 h-4 text-slate-400"});case"in_progress":return a.jsx(d.Z,{className:"w-4 h-4 text-violet-500 animate-spin"});case"completed":return a.jsx(c.Z,{className:"w-4 h-4 text-emerald-500"});case"failed":return a.jsx(o,{className:"w-4 h-4 text-red-500"})}}function et(e){return e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}):""}function es({failureType:e}){if(!e)return null;let t={timeout:{text:"timeout",className:"bg-orange-100 text-orange-700"},error:{text:"error",className:"bg-red-100 text-red-700"},tests_failed:{text:"tests failed",className:"bg-amber-100 text-amber-700"}}[e];return a.jsx("span",{className:(0,q.Z)("text-xs px-1.5 py-0.5 rounded font-medium",t.className),children:t.text})}function ea({subTasks:e}){let[t,s]=(0,l.useState)(null);if(0===e.length)return null;let r=e.filter(e=>"completed"===e.status).length,n=e.filter(e=>"failed"===e.status).length,i=Math.round(r/e.length*100);return a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:(0,a.jsxs)(Y,{title:"Sub-Tasks",icon:a.jsx(m,{className:"w-4 h-4 text-violet-500"}),children:[(0,a.jsxs)("div",{className:"mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs mb-1",children:[(0,a.jsxs)("span",{className:"text-slate-500",children:[r,"/",e.length," done",n>0&&(0,a.jsxs)("span",{className:"text-red-500 ml-1",children:["(",n," failed)"]})]}),(0,a.jsxs)("span",{className:"text-slate-500",children:[i,"%"]})]}),a.jsx("div",{className:"w-full bg-slate-200 rounded-full h-2",children:a.jsx("div",{className:(0,q.Z)("h-2 rounded-full transition-all",n>0?"bg-red-500":"bg-emerald-500"),style:{width:`${i}%`}})})]}),a.jsx("ul",{className:"space-y-2",children:e.map(e=>{let r=t===e.id;return(0,a.jsxs)("li",{className:"border border-slate-100 rounded-lg",children:[(0,a.jsxs)("button",{onClick:()=>s(r?null:e.id),className:"w-full flex items-center gap-2 p-2 text-left hover:bg-slate-50 rounded-lg",children:[a.jsx(ee,{status:e.status}),a.jsx("span",{className:(0,q.Z)("flex-1 text-sm","completed"===e.status&&"line-through text-slate-400","failed"===e.status&&"text-red-600"),children:e.title}),"failed"===e.status&&e.failure_type&&a.jsx(es,{failureType:e.failure_type}),e.has_uncommitted_changes&&a.jsx("span",{title:"Uncommitted changes in workspace",children:a.jsx(x.Z,{className:"w-3.5 h-3.5 text-amber-500"})}),r?a.jsx(h,{className:"w-3 h-3 text-slate-400"}):a.jsx(p,{className:"w-3 h-3 text-slate-400"})]}),r&&(0,a.jsxs)("div",{className:"px-8 pb-3 space-y-3",children:[a.jsx("p",{className:"text-xs text-slate-600 whitespace-pre-wrap",children:e.description}),(e.duration_ms||e.lines_added||e.lines_removed)&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-3 text-xs text-slate-500",children:[e.duration_ms&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[a.jsx(u.Z,{className:"w-3 h-3"}),function(e){if(!e)return"";let t=Math.floor(e/1e3),s=Math.floor(t/60),a=Math.floor(s/60);return a>0?`${a}h ${s%60}m`:s>0?`${s}m ${t%60}s`:`${t}s`}(e.duration_ms)]}),(e.lines_added||e.lines_removed)&&(0,a.jsxs)("span",{className:"flex items-center gap-1 font-mono",children:[a.jsx(g,{className:"w-3 h-3"}),(0,a.jsxs)("span",{className:"text-emerald-600",children:["+",e.lines_added||0]}),(0,a.jsxs)("span",{className:"text-red-600",children:["-",e.lines_removed||0]})]})]}),e.files_changed&&e.files_changed.length>0&&(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"text-xs font-medium text-emerald-600 flex items-center gap-1",children:[a.jsx(g,{className:"w-3 h-3"}),"Files Changed:"]}),a.jsx("ul",{className:"mt-1",children:e.files_changed.map(e=>a.jsx("li",{className:"text-xs text-slate-600 font-mono",children:e},e))})]}),e.files_to_modify.length>0&&(0,a.jsxs)("div",{children:[a.jsx("span",{className:"text-xs font-medium text-slate-500",children:"Planned Files:"}),a.jsx("ul",{className:"mt-1",children:e.files_to_modify.map(e=>a.jsx("li",{className:"text-xs text-slate-400 font-mono",children:e},e))})]}),e.error_message&&a.jsx("div",{className:"p-2 bg-red-50 border border-red-200 rounded text-xs text-red-700 whitespace-pre-wrap",children:e.error_message}),e.output_snippet&&(0,a.jsxs)("details",{className:"group",children:[(0,a.jsxs)("summary",{className:"text-xs font-medium text-slate-500 cursor-pointer flex items-center gap-1",children:[a.jsx(b,{className:"w-3 h-3"}),"Output",a.jsx(p,{className:"w-3 h-3 group-open:rotate-90 transition-transform"})]}),a.jsx("pre",{className:"mt-1 p-2 bg-slate-50 border border-slate-200 rounded text-xs text-slate-600 overflow-x-auto max-h-48 overflow-y-auto whitespace-pre-wrap",children:e.output_snippet})]}),e.has_uncommitted_changes&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 bg-amber-50 border border-amber-200 rounded text-xs text-amber-700",children:[a.jsx(x.Z,{className:"w-3.5 h-3.5"}),"Uncommitted changes in workspace"]}),e.commit_hash&&(0,a.jsxs)("div",{className:"text-xs text-slate-400",children:["Commit: ",a.jsx("code",{className:"bg-slate-100 px-1 rounded",children:e.commit_hash.slice(0,8)})]}),(e.started_at||e.completed_at)&&(0,a.jsxs)("div",{className:"text-xs text-slate-400",children:[e.started_at&&(0,a.jsxs)("span",{children:["Started: ",et(e.started_at)]}),e.completed_at&&(0,a.jsxs)("span",{className:"ml-3",children:["Finished: ",et(e.completed_at)]})]})]})]},e.id)})})]})})}function er({status:e}){switch(e){case"met":return a.jsx(c.Z,{className:"w-4 h-4 text-emerald-500"});case"partially_met":return a.jsx(x.Z,{className:"w-4 h-4 text-amber-500"});case"not_met":return a.jsx(o,{className:"w-4 h-4 text-red-500"});case"no_data":return a.jsx(f,{className:"w-4 h-4 text-slate-400"});default:return a.jsx(j.Z,{className:"w-4 h-4 text-slate-400"})}}function el({verification:e}){return a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:(0,a.jsxs)(Y,{title:"Post-Ship Verification",icon:a.jsx(y.Z,{className:"w-4 h-4 text-emerald-500"}),children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[a.jsx("span",{className:(0,q.Z)("text-xs font-medium px-2 py-1 rounded",T.aR[e.status]),children:T.Wb[e.status]}),e.confidence&&(0,a.jsxs)("span",{className:"text-xs text-slate-500",children:["Confidence: ",e.confidence]})]}),e.summary&&a.jsx("p",{className:"text-sm text-slate-700 mb-4",children:e.summary}),e.requires_human_review&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-2 mb-4 bg-amber-50 border border-amber-200 rounded text-xs text-amber-700",children:[a.jsx(v,{className:"w-3.5 h-3.5 flex-shrink-0"}),(0,a.jsxs)("span",{children:["Requires human review: ",e.human_review_reason||"Review needed"]})]}),e.metric_evaluations.length>0&&(0,a.jsxs)("div",{className:"space-y-2 mb-4",children:[a.jsx("span",{className:"text-xs font-medium text-slate-500 uppercase",children:"Metric Results"}),a.jsx("ul",{className:"space-y-1.5",children:e.metric_evaluations.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2",children:[a.jsx(er,{status:e.status}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[a.jsx("p",{className:"text-xs text-slate-700",children:e.metric}),a.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.evidence})]})]},t))})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-4 text-xs text-slate-400 pt-3 border-t border-slate-100",children:[e.first_evaluated_at&&(0,a.jsxs)("span",{children:["First evaluated: ",Q(e.first_evaluated_at)]}),e.evaluation_count>0&&(0,a.jsxs)("span",{children:["Evaluations: ",e.evaluation_count]}),e.next_evaluation_after&&(0,a.jsxs)("span",{children:["Next check: ",new Date(e.next_evaluation_after).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]})]}),e.follow_up_idea_ids.length>0&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-slate-100",children:[a.jsx("span",{className:"text-xs font-medium text-slate-500",children:"Follow-up ideas:"}),a.jsx("div",{className:"flex flex-wrap gap-1.5 mt-1",children:e.follow_up_idea_ids.map(e=>a.jsx(r.default,{href:`/ideas/${e}`,className:"text-xs text-blue-600 hover:underline bg-blue-50 px-1.5 py-0.5 rounded",children:e},e))})]})]})})}function en({idea:e,linkedGoal:t}){return(0,a.jsxs)("div",{className:"max-w-4xl mx-auto p-6",children:[(0,a.jsxs)(r.default,{href:"/",className:"inline-flex items-center gap-2 text-sm text-slate-500 hover:text-slate-700 mb-6",children:[a.jsx(N.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Back to Dashboard"})]}),(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6 mb-6",children:[a.jsx("div",{className:"flex items-start justify-between mb-4",children:(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-3",children:[a.jsx("span",{className:(0,q.Z)("priority-badge",T.Gs[e.priority]),children:T.rF[e.priority]}),a.jsx("span",{className:(0,q.Z)("category-badge",T.pG[e.category]),children:T.Hs[e.category]}),(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[a.jsx("div",{className:(0,q.Z)("stage-indicator",T.lv[e.stage])}),a.jsx("span",{className:"text-xs text-slate-500",children:T.yb[e.stage]})]})]}),a.jsx("h1",{className:"text-2xl font-bold text-slate-900 mb-2",children:e.title}),a.jsx("p",{className:"text-slate-600",children:e.summary})]})}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-6 text-sm text-slate-500 pt-4 border-t border-slate-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(w.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Created ",Q(e.created_at)]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(_.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Effort: ",T.bi[e.effort]]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(k.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Impact: ",T.bi[e.impact]]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx(Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:["Source: ",T.Vr[e.source.type]]})]})]}),e.tags.length>0&&a.jsx("div",{className:"flex flex-wrap gap-2 mt-4",children:e.tags.map(e=>a.jsx("span",{className:"px-2 py-1 bg-slate-100 text-slate-600 text-xs rounded",children:e},e))}),e.implementation.branch_name&&a.jsx("div",{className:"mt-4 p-3 bg-slate-50 rounded-lg border border-slate-200",children:(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-slate-600",children:[a.jsx(S,{className:"w-4 h-4"}),a.jsx("code",{className:"bg-slate-200 px-2 py-0.5 rounded",children:e.implementation.branch_name})]}),e.implementation.pr_url&&(0,a.jsxs)("a",{href:e.implementation.pr_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-blue-600 hover:underline",children:[a.jsx("span",{children:"View PR"}),a.jsx(M.Z,{className:"w-3 h-3"})]})]})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[(0,a.jsxs)("div",{className:"lg:col-span-2 space-y-6",children:[a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Context",icon:a.jsx(C.Z,{className:"w-4 h-4 text-amber-500"}),children:a.jsx("p",{className:"whitespace-pre-wrap",children:e.context})})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Rationale",icon:a.jsx(P.Z,{className:"w-4 h-4 text-blue-500"}),children:a.jsx("p",{className:"whitespace-pre-wrap",children:e.rationale})})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Implementation Plan",icon:a.jsx(R.Z,{className:"w-4 h-4 text-emerald-500"}),children:a.jsx("div",{className:"whitespace-pre-wrap",children:e.implementation_plan})})}),e.implementation.sub_tasks&&e.implementation.sub_tasks.length>0&&a.jsx(ea,{subTasks:e.implementation.sub_tasks}),"shipped"===e.stage&&e.verification&&a.jsx(el,{verification:e.verification}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(Y,{title:"Success Metrics",icon:a.jsx(k.Z,{className:"w-4 h-4 text-violet-500"}),children:a.jsx("ul",{className:"list-disc list-inside space-y-1",children:e.success_metrics.map((e,t)=>a.jsx("li",{children:e},t))})})})]}),(0,a.jsxs)("div",{className:"space-y-6",children:[(t||e.expected_impact)&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:[(0,a.jsxs)("h3",{className:"flex items-center gap-2 font-semibold text-slate-900 mb-3",children:[a.jsx(P.Z,{className:"w-4 h-4 text-emerald-500"}),a.jsx("span",{children:"Goal Alignment"})]}),t?(0,a.jsxs)(r.default,{href:`/goals/${t.id}`,className:"block p-3 bg-emerald-50 border border-emerald-200 rounded-lg hover:border-emerald-300 transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[a.jsx("span",{className:"text-sm font-medium text-emerald-800",children:t.title}),a.jsx(M.Z,{className:"w-3 h-3 text-emerald-600"})]}),a.jsx("p",{className:"text-xs text-emerald-600 line-clamp-2",children:t.description})]}):e.goal_id?(0,a.jsxs)("p",{className:"text-sm text-slate-500",children:["Linked to goal: ",a.jsx("code",{className:"text-xs bg-slate-100 px-1 rounded",children:e.goal_id})]}):null,e.expected_impact&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-slate-100",children:[a.jsx("p",{className:"text-xs text-slate-500 uppercase font-medium mb-1",children:"Expected Impact"}),a.jsx("p",{className:"text-sm text-slate-700",children:e.expected_impact})]})]}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(D,{ideaId:e.id,currentStage:e.stage})}),["in_progress","testing","shipped","rolled_back"].includes(e.stage)&&a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx(K,{ideaId:e.id})}),a.jsx("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:a.jsx($,{ideaId:e.id,comments:e.comments})}),e.source.files_analyzed&&e.source.files_analyzed.length>0&&(0,a.jsxs)("div",{className:"bg-white rounded-lg shadow-sm border border-slate-200 p-6",children:[a.jsx("h3",{className:"font-semibold text-slate-900 mb-3",children:"Files Analyzed"}),a.jsx("ul",{className:"space-y-1",children:e.source.files_analyzed.map((e,t)=>a.jsx("li",{className:"text-xs text-slate-500 font-mono truncate",children:e},t))})]})]})]})]})}},9526:(e,t,s)=>{"use strict";s.d(t,{G:()=>i,GK:()=>k,Gs:()=>o,Hs:()=>a,PN:()=>p,PW:()=>w,Q_:()=>u,R$:()=>v,Vr:()=>m,Wb:()=>h,aR:()=>x,bi:()=>d,en:()=>y,i2:()=>j,kT:()=>g,l5:()=>b,lE:()=>N,lv:()=>n,pG:()=>r,rF:()=>c,tV:()=>f,tl:()=>_,xP:()=>Z,yb:()=>l});let a={product:"Product",ux_design:"UX/Design",growth:"Growth",performance:"Performance",tech_debt:"Tech Debt",security:"Security",infrastructure:"Infrastructure",content:"Content",analytics:"Analytics",integration:"Integration"},r={product:"bg-blue-100 text-blue-800",ux_design:"bg-purple-100 text-purple-800",growth:"bg-green-100 text-green-800",performance:"bg-orange-100 text-orange-800",tech_debt:"bg-yellow-100 text-yellow-800",security:"bg-red-100 text-red-800",infrastructure:"bg-gray-100 text-gray-800",content:"bg-pink-100 text-pink-800",analytics:"bg-cyan-100 text-cyan-800",integration:"bg-indigo-100 text-indigo-800"},l={inbox:"Inbox",under_review:"Under Review",approved:"Approved",in_progress:"In Progress",testing:"Testing",shipped:"Shipped",deferred:"Deferred",rejected:"Rejected",rolled_back:"Rolled Back"},n={inbox:"bg-amber-500",under_review:"bg-blue-500",approved:"bg-emerald-500",in_progress:"bg-violet-500",testing:"bg-cyan-500",shipped:"bg-green-500",deferred:"bg-gray-500",rejected:"bg-red-500",rolled_back:"bg-orange-500"},i=["inbox","under_review","approved","in_progress","testing","shipped"],d={xs:"XS",s:"S",m:"M",l:"L",xl:"XL"},c={critical:"Critical",high:"High",medium:"Medium",low:"Low"},o={critical:"bg-red-100 text-red-800 border-red-300",high:"bg-orange-100 text-orange-800 border-orange-300",medium:"bg-yellow-100 text-yellow-800 border-yellow-300",low:"bg-gray-100 text-gray-800 border-gray-300"},m={codebase_analysis:"Codebase Analysis",metrics_review:"Metrics Review",market_research:"Market Research",seo_audit:"SEO Audit",manual:"Manual"},x={pending:"bg-slate-100 text-slate-700",validated:"bg-emerald-100 text-emerald-800",needs_investigation:"bg-amber-100 text-amber-800",inconclusive:"bg-slate-100 text-slate-600",invalidated:"bg-red-100 text-red-800"},h={pending:"Pending",validated:"Validated",needs_investigation:"Needs Investigation",inconclusive:"Inconclusive",invalidated:"Invalidated"},p={ship:"Ship",update:"Update",milestone:"Milestone",digest:"Digest",manual:"Manual",thread:"Thread",insight:"Insight"},u={ship:"bg-green-100 text-green-800",update:"bg-blue-100 text-blue-800",milestone:"bg-amber-100 text-amber-800",digest:"bg-purple-100 text-purple-800",manual:"bg-slate-100 text-slate-800",thread:"bg-indigo-100 text-indigo-800",insight:"bg-cyan-100 text-cyan-800"},g={acquisition:"Acquisition",activation:"Activation",retention:"Retention",revenue:"Revenue",referral:"Referral"},b={acquisition:"bg-blue-100 text-blue-800",activation:"bg-emerald-100 text-emerald-800",retention:"bg-purple-100 text-purple-800",revenue:"bg-amber-100 text-amber-800",referral:"bg-pink-100 text-pink-800"},f={on_track:"On Track",at_risk:"At Risk",behind:"Behind",achieved:"Achieved"},j={on_track:"bg-emerald-100 text-emerald-800 border-emerald-300",at_risk:"bg-amber-100 text-amber-800 border-amber-300",behind:"bg-red-100 text-red-800 border-red-300",achieved:"bg-blue-100 text-blue-800 border-blue-300"},y={manual:"Manual",rest_api:"REST API",posthog:"PostHog",firestore:"Firestore",stripe:"Stripe",whatsapp:"WhatsApp"},v={stated:"Stated",testing:"Testing",validated:"Validated",invalidated:"Invalidated",deferred:"Deferred"},N={stated:"bg-slate-100 text-slate-800 border-slate-300",testing:"bg-amber-100 text-amber-800 border-amber-300",validated:"bg-emerald-100 text-emerald-800 border-emerald-300",invalidated:"bg-red-100 text-red-800 border-red-300",deferred:"bg-slate-100 text-slate-500 border-slate-200"},w={acquisition:"Acquisition",engagement:"Engagement",conversion:"Conversion",monetization:"Monetization"},_={acquisition:"bg-blue-100 text-blue-800",engagement:"bg-purple-100 text-purple-800",conversion:"bg-amber-100 text-amber-800",monetization:"bg-emerald-100 text-emerald-800"},k={planned:"Planned",active:"Active",completed:"Completed",paused:"Paused"},Z={planned:"bg-slate-100 text-slate-700 border-slate-300",active:"bg-blue-100 text-blue-800 border-blue-300",completed:"bg-emerald-100 text-emerald-800 border-emerald-300",paused:"bg-amber-100 text-amber-800 border-amber-300"}},1085:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{ReadonlyURLSearchParams:function(){return n},RedirectType:function(){return a.RedirectType},notFound:function(){return r.notFound},permanentRedirect:function(){return a.permanentRedirect},redirect:function(){return a.redirect}});let a=s(3953),r=s(6399);class l extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class n extends URLSearchParams{append(){throw new l}delete(){throw new l}set(){throw new l}sort(){throw new l}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6399:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{isNotFoundError:function(){return r},notFound:function(){return a}});let s="NEXT_NOT_FOUND";function a(){let e=Error(s);throw e.digest=s,e}function r(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===s}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8586:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return s}}),function(e){e[e.SeeOther=303]="SeeOther",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect"}(s||(s={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3953:(e,t,s)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var s in t)Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}(t,{RedirectType:function(){return a},getRedirectError:function(){return d},getRedirectStatusCodeFromError:function(){return p},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return x},isRedirectError:function(){return m},permanentRedirect:function(){return o},redirect:function(){return c}});let r=s(4580),l=s(2934),n=s(8586),i="NEXT_REDIRECT";function d(e,t,s){void 0===s&&(s=n.RedirectStatusCode.TemporaryRedirect);let a=Error(i);a.digest=i+";"+t+";"+e+";"+s+";";let l=r.requestAsyncStorage.getStore();return l&&(a.mutableCookies=l.mutableCookies),a}function c(e,t){void 0===t&&(t="replace");let s=l.actionAsyncStorage.getStore();throw d(e,t,(null==s?void 0:s.isAction)?n.RedirectStatusCode.SeeOther:n.RedirectStatusCode.TemporaryRedirect)}function o(e,t){void 0===t&&(t="replace");let s=l.actionAsyncStorage.getStore();throw d(e,t,(null==s?void 0:s.isAction)?n.RedirectStatusCode.SeeOther:n.RedirectStatusCode.PermanentRedirect)}function m(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,s,a,r]=e.digest.split(";",4),l=Number(r);return t===i&&("replace"===s||"push"===s)&&"string"==typeof a&&!isNaN(l)&&l in n.RedirectStatusCode}function x(e){return m(e)?e.digest.split(";",3)[2]:null}function h(e){if(!m(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function p(e){if(!m(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(function(e){e.push="push",e.replace="replace"})(a||(a={})),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},720:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>c,dynamic:()=>d});var a=s(9510),r=s(1085),l=s(534),n=s(2548);let i=(0,s(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/IdeaDetail.tsx#default`),d="force-dynamic";async function c({params:e}){let{id:t}=await e,s=await (0,l.b_)(t);s||(0,r.notFound)();let d=s.goal_id?await (0,l.a9)(s.goal_id):null;return a.jsx(n.Z,{children:a.jsx(i,{idea:s,linkedGoal:d})})}},2029:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>l,metadata:()=>r});var a=s(9510);s(5023);let r={title:process.env.NEXT_PUBLIC_PRODUCT_NAME?`${process.env.NEXT_PUBLIC_PRODUCT_NAME} Analyst`:"AI Product Manager",description:"AI Product Manager - Autonomous improvement proposals"};function l({children:e}){return a.jsx("html",{lang:"en",children:a.jsx("body",{className:"min-h-screen bg-slate-50",children:e})})}},2548:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx#default`)},5023:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[9276,4471,4376,534],()=>s(2493));module.exports=a})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../data/.DS_Store","../../../../../data/.analysis-prompt.txt","../../../../../data/.gitkeep","../../../../../data/business-context.json","../../../../../data/codebase-snapshot.json","../../../../../data/competitors.json","../../../../../data/config.json","../../../../../data/copy/landing-improvements-2026-02-20.md","../../../../../data/copy/landing-landing-page-2026-02-20.md","../../../../../data/email-campaigns/sequences/onboarding.md","../../../../../data/email-campaigns/welcome-2026-02-20.md","../../../../../data/goals.json","../../../../../data/heartbeat-sessions.json","../../../../../data/hypotheses.json","../../../../../data/ideas.json","../../../../../data/implementations.json","../../../../../data/pages.json","../../../../../data/payments.json","../../../../../data/positioning.json","../../../../../data/roadmap.json","../../../../../data/sessions.json","../../../../../data/social.json","../../../../../data/video-ideas.md","../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/4376.js","../../../chunks/4471.js","../../../chunks/534.js","../../../chunks/9276.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../../../data/.DS_Store","../../../../../data/.analysis-prompt.txt","../../../../../data/.gitkeep","../../../../../data/business-context.json","../../../../../data/codebase-snapshot.json","../../../../../data/competitors.json","../../../../../data/config.json","../../../../../data/copy/landing-improvements-2026-02-20.md","../../../../../data/copy/landing-landing-page-2026-02-20.md","../../../../../data/email-campaigns/sequences/onboarding.md","../../../../../data/email-campaigns/welcome-2026-02-20.md","../../../../../data/goals.json","../../../../../data/heartbeat-sessions.json","../../../../../data/hypotheses.json","../../../../../data/ideas.json","../../../../../data/implementations.json","../../../../../data/pages.json","../../../../../data/payments.json","../../../../../data/positioning.json","../../../../../data/reports/.DS_Store","../../../../../data/reports/visuals/promo-launch.png","../../../../../data/reports/visuals/promo-ship-fast.png","../../../../../data/reports/visuals/promo-while-you-slept-v2.png","../../../../../data/reports/visuals/promo-while-you-slept-v3.png","../../../../../data/reports/visuals/promo-while-you-slept.png","../../../../../data/roadmap.json","../../../../../data/sessions.json","../../../../../data/social.json","../../../../../data/video-ideas.md","../../../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../../../node_modules/next/dist/client/components/async-local-storage.js","../../../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../node_modules/next/package.json","../../../../../package.json","../../../../package.json","../../../chunks/4376.js","../../../chunks/4471.js","../../../chunks/534.js","../../../chunks/9276.js","../../../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/ideas/[id]/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"47":{"*":{"id":"4812","name":"*","chunks":[],"async":false}},"80":{"*":{"id":"1868","name":"*","chunks":[],"async":false}},"786":{"*":{"id":"1855","name":"*","chunks":[],"async":false}},"1060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"1214":{"*":{"id":"4663","name":"*","chunks":[],"async":false}},"1259":{"*":{"id":"3818","name":"*","chunks":[],"async":false}},"2612":{"*":{"id":"3305","name":"*","chunks":[],"async":false}},"2674":{"*":{"id":"9973","name":"*","chunks":[],"async":false}},"2846":{"*":{"id":"2994","name":"*","chunks":[],"async":false}},"3032":{"*":{"id":"1828","name":"*","chunks":[],"async":false}},"4553":{"*":{"id":"8022","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"9671","name":"*","chunks":[],"async":false}},"6423":{"*":{"id":"4759","name":"*","chunks":[],"async":false}},"6435":{"*":{"id":"6663","name":"*","chunks":[],"async":false}},"8619":{"*":{"id":"5467","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"1358","name":"*","chunks":[],"async":false}},"9107":{"*":{"id":"6114","name":"*","chunks":[],"async":false}},"9534":{"*":{"id":"9616","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/globals.css":{"id":2778,"name":"*","chunks":["185","static/chunks/app/layout-eeef7928298d2198.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/app/goals/[id]/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/hypotheses/[id]/page.tsx":{"id":4553,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/roadmap/[id]/page.tsx":{"id":47,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/social/page.tsx":{"id":2612,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx":{"id":1259,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","59","static/chunks/59-a053b1c0e85128de.js","594","static/chunks/app/ideas/%5Bid%5D/page-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/ideas/[id]/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"47":{"*":{"id":"4812","name":"*","chunks":[],"async":false}},"80":{"*":{"id":"1868","name":"*","chunks":[],"async":false}},"786":{"*":{"id":"1855","name":"*","chunks":[],"async":false}},"1060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"1214":{"*":{"id":"4663","name":"*","chunks":[],"async":false}},"1259":{"*":{"id":"3818","name":"*","chunks":[],"async":false}},"2612":{"*":{"id":"3305","name":"*","chunks":[],"async":false}},"2674":{"*":{"id":"9973","name":"*","chunks":[],"async":false}},"2846":{"*":{"id":"2994","name":"*","chunks":[],"async":false}},"3032":{"*":{"id":"1828","name":"*","chunks":[],"async":false}},"4553":{"*":{"id":"8022","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"9671","name":"*","chunks":[],"async":false}},"6423":{"*":{"id":"4759","name":"*","chunks":[],"async":false}},"6435":{"*":{"id":"6663","name":"*","chunks":[],"async":false}},"8619":{"*":{"id":"5467","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"1358","name":"*","chunks":[],"async":false}},"9107":{"*":{"id":"6114","name":"*","chunks":[],"async":false}},"9534":{"*":{"id":"9616","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/globals.css":{"id":2778,"name":"*","chunks":["185","static/chunks/app/layout-eeef7928298d2198.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/app/goals/[id]/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/hypotheses/[id]/page.tsx":{"id":4553,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/roadmap/[id]/page.tsx":{"id":47,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/settings/page.tsx":{"id":8619,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/social/page.tsx":{"id":2612,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx":{"id":1259,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","59","static/chunks/59-a053b1c0e85128de.js","594","static/chunks/app/ideas/%5Bid%5D/page-89e3625db9017166.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/IdeaDetail.tsx":{"id":9534,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","59","static/chunks/59-a053b1c0e85128de.js","594","static/chunks/app/ideas/%5Bid%5D/page-89e3625db9017166.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/app/DashboardHeader.tsx":{"id":6435,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-8ba52ac74c75461b.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/IdeaKanban.tsx":{"id":1214,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-8ba52ac74c75461b.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/GoalCard.tsx":{"id":2674,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/HypothesisCard.tsx":{"id":786,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/RoadmapViewToggle.tsx":{"id":3032,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/luismey/Code/vibebusiness/src/":[],"/Users/luismey/Code/vibebusiness/src/app/layout":["static/css/179dd3e0738c2fe4.css"],"/Users/luismey/Code/vibebusiness/src/app/page":[],"/Users/luismey/Code/vibebusiness/src/app/ideas/[id]/page":[]}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e={};e.id=1931,e.ids=[1931],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4770:e=>{"use strict";e.exports=require("crypto")},2048:e=>{"use strict";e.exports=require("fs")},5315:e=>{"use strict";e.exports=require("path")},8851:(e,s,t)=>{"use strict";t.r(s),t.d(s,{GlobalError:()=>i.a,__next_app__:()=>m,originalPathname:()=>x,pages:()=>o,routeModule:()=>h,tree:()=>c}),t(6922),t(2029),t(5866);var a=t(3191),r=t(8716),l=t(7922),i=t.n(l),n=t(5231),d={};for(let e in n)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>n[e]);t.d(s,d);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,6922)),"/Users/luismey/Code/vibebusiness/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(t.bind(t,2029)),"/Users/luismey/Code/vibebusiness/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(t.t.bind(t,5866,23)),"next/dist/client/components/not-found-error"]}],o=["/Users/luismey/Code/vibebusiness/src/app/page.tsx"],x="/page",m={require:t,loadChunk:()=>Promise.resolve()},h=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},7010:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,2994,23)),Promise.resolve().then(t.t.bind(t,6114,23)),Promise.resolve().then(t.t.bind(t,9727,23)),Promise.resolve().then(t.t.bind(t,9671,23)),Promise.resolve().then(t.t.bind(t,1868,23)),Promise.resolve().then(t.t.bind(t,4759,23))},8894:(e,s,t)=>{Promise.resolve().then(t.bind(t,6663)),Promise.resolve().then(t.bind(t,3818)),Promise.resolve().then(t.bind(t,4663))},5698:()=>{},6464:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},1291:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},361:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},7506:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},4893:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},5691:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},8307:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},763:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},4019:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3634:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(2881).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},6663:(e,s,t)=>{"use strict";t.d(s,{default:()=>g});var a=t(326),r=t(5047),l=t(6464),i=t(2881);let n=(0,i.Z)("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),d=(0,i.Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);var c=t(5691),o=t(7577),x=t(7506),m=t(4893),h=t(361),p=t(1291),u=t(1135);function b({onAnalysisComplete:e}){let[s,t]=(0,o.useState)(!1),[r,l]=(0,o.useState)(!1),[i,n]=(0,o.useState)(null),d=async s=>{l(!0),n(null);try{let t=await fetch("/api/analyze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:s})}),a=await t.json();a.success?(n({success:!0,message:`Generated ${a.ideas_count} new ideas`}),e?.()):n({success:!1,message:a.error||"Analysis failed"})}catch(e){n({success:!1,message:"Failed to start analysis"})}finally{l(!1),setTimeout(()=>{n(null),t(!1)},3e3)}};return(0,a.jsxs)("div",{className:"relative",children:[a.jsx("button",{onClick:()=>t(!s),disabled:r,className:(0,u.Z)("btn btn-primary gap-2",r&&"opacity-75 cursor-wait"),children:r?(0,a.jsxs)(a.Fragment,{children:[a.jsx(x.Z,{className:"w-4 h-4 animate-spin"}),a.jsx("span",{children:"Analyzing..."})]}):(0,a.jsxs)(a.Fragment,{children:[a.jsx(m.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Analyze Now"})]})}),s&&!r&&(0,a.jsxs)("div",{className:"absolute right-0 mt-2 w-56 bg-white rounded-lg shadow-lg border border-slate-200 py-2 z-10 animate-slide-in",children:[(0,a.jsxs)("button",{onClick:()=>d("quick"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Quick Scan"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Recent changes, TODOs, errors"})]}),(0,a.jsxs)("button",{onClick:()=>d("deep"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Deep Review"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Architecture, tech debt, security"})]}),(0,a.jsxs)("button",{onClick:()=>d("metrics"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Metrics Review"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Funnels, conversions, drop-offs"})]}),(0,a.jsxs)("button",{onClick:()=>d("seo"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"SEO Audit"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Blog performance, technical SEO"})]})]}),i&&a.jsx("div",{className:(0,u.Z)("absolute right-0 mt-2 px-4 py-3 rounded-lg shadow-lg animate-slide-in",i.success?"bg-emerald-50 border border-emerald-200":"bg-red-50 border border-red-200"),children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[i.success?a.jsx(h.Z,{className:"w-4 h-4 text-emerald-600"}):a.jsx(p.Z,{className:"w-4 h-4 text-red-600"}),a.jsx("span",{className:(0,u.Z)("text-sm font-medium",i.success?"text-emerald-800":"text-red-800"),children:i.message})]})})]})}function g({stats:e}){let s=(0,r.useRouter)();return a.jsx("header",{className:"px-6 py-4 bg-white border-b border-slate-200",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"text-2xl font-bold text-slate-900",children:"Idea Dashboard"}),(0,a.jsxs)("div",{className:"flex items-center gap-6 mt-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-600",children:[a.jsx(l.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.total," total"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-amber-600",children:[a.jsx(n,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.inbox," in inbox"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-violet-600",children:[a.jsx(d,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.inProgress," in progress"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-emerald-600",children:[a.jsx(c.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.shipped," shipped"]})]})]})]}),a.jsx(b,{onAnalysisComplete:()=>{s.refresh()}})]})})}},3818:(e,s,t)=>{"use strict";t.d(s,{default:()=>g});var a=t(326),r=t(434),l=t(5047),i=t(4319),n=t(4935),d=t(3468),c=t(8258),o=t(9730),x=t(717),m=t(8378),h=t(732),p=t(1572),u=t(1135);let b=[{href:"/",label:"Dashboard",icon:a.jsx(i.Z,{className:"w-5 h-5"})},{href:"/roadmap",label:"Roadmap",icon:a.jsx(n.Z,{className:"w-5 h-5"})},{href:"/goals",label:"Goals",icon:a.jsx(d.Z,{className:"w-5 h-5"})},{href:"/hypotheses",label:"Hypotheses",icon:a.jsx(c.Z,{className:"w-5 h-5"})},{href:"/social",label:"Social",icon:a.jsx(o.Z,{className:"w-5 h-5"})},{href:"/sessions",label:"Sessions",icon:a.jsx(x.Z,{className:"w-5 h-5"})},{href:"/settings",label:"Settings",icon:a.jsx(m.Z,{className:"w-5 h-5"})}];function g({children:e}){let s=(0,l.usePathname)();return(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("aside",{className:"w-64 bg-slate-900 text-white flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-slate-700",children:(0,a.jsxs)(r.default,{href:"/",className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-10 h-10 bg-emerald-500 rounded-lg flex items-center justify-center",children:a.jsx(h.Z,{className:"w-6 h-6 text-white"})}),(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"font-bold text-lg leading-tight",children:"Analyst"}),a.jsx("p",{className:"text-xs text-slate-400",children:process.env.NEXT_PUBLIC_PRODUCT_NAME||"Business"})]})]})}),a.jsx("nav",{className:"flex-1 p-4",children:a.jsx("ul",{className:"space-y-1",children:b.map(e=>{let t="/"===e.href?"/"===s:s.startsWith(e.href);return a.jsx("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:(0,u.Z)("flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",t?"bg-slate-800 text-white":"text-slate-400 hover:text-white hover:bg-slate-800"),children:[e.icon,a.jsx("span",{children:e.label})]})},e.href)})})}),a.jsx("div",{className:"p-4 border-t border-slate-700",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-500",children:[a.jsx(p.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Powered by Claude"})]})})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:e})]})}},4663:(e,s,t)=>{"use strict";t.d(s,{default:()=>C});var a=t(326),r=t(7577),l=t(8307),i=t(2881);let n=(0,i.Z)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);var d=t(4019),c=t(1135),o=t(434),x=t(1291);let m=(0,i.Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),h=(0,i.Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),p=(0,i.Z)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var u=t(3634);let b=(0,i.Z)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);var g=t(3468),f=t(763);let v=(0,i.Z)("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var y=t(9526);function j({priority:e}){switch(e){case"critical":return a.jsx(x.Z,{className:"w-3 h-3"});case"high":return a.jsx(m,{className:"w-3 h-3"});case"medium":return a.jsx(h,{className:"w-3 h-3"});case"low":return a.jsx(p,{className:"w-3 h-3"})}}function N({size:e,label:s}){return a.jsx("span",{className:"size-badge",title:s,children:y.bi[e]})}function w({idea:e,compact:s=!1}){let t=e.comments.length>0;return a.jsx(o.default,{href:`/ideas/${e.id}`,children:(0,a.jsxs)("div",{className:"idea-card",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsxs)("span",{className:(0,c.Z)("priority-badge",y.Gs[e.priority]),children:[a.jsx(j,{priority:e.priority}),a.jsx("span",{className:"ml-1",children:y.rF[e.priority]})]}),a.jsx("span",{className:(0,c.Z)("category-badge",y.pG[e.category]),children:y.Hs[e.category]})]}),a.jsx("h3",{className:"font-medium text-slate-900 text-sm leading-snug mb-1",children:e.title}),!s&&a.jsx("p",{className:"text-xs text-slate-500 line-clamp-2 mb-2",children:e.summary}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2 pt-2 border-t border-slate-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",title:"Effort",children:[a.jsx(u.Z,{className:"w-3 h-3 text-slate-400"}),a.jsx(N,{size:e.effort,label:"Effort"})]}),a.jsx("span",{className:"text-slate-300",children:"/"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",title:"Impact",children:[a.jsx(m,{className:"w-3 h-3 text-slate-400"}),a.jsx(N,{size:e.impact,label:"Impact"})]})]}),t&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-slate-400",children:[a.jsx(b,{className:"w-3 h-3"}),a.jsx("span",{className:"text-xs",children:e.comments.length})]})]}),e.goal_id&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-2 text-emerald-600",children:[a.jsx(g.Z,{className:"w-3 h-3"}),a.jsx("span",{className:"text-[10px]",children:"Goal aligned"})]}),"shipped"===e.stage&&e.verification&&"pending"!==e.verification.status&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[a.jsx(f.Z,{className:"w-3 h-3"}),a.jsx("span",{className:(0,c.Z)("text-[10px] px-1 py-0.5 rounded",y.aR[e.verification.status]),children:y.Wb[e.verification.status]})]}),e.verification_status&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[a.jsx(v,{className:"w-3 h-3"}),a.jsx("span",{className:(0,c.Z)("text-[10px] px-1 py-0.5 rounded","proceed"===e.verification_status&&"bg-green-100 text-green-700","extend"===e.verification_status&&"bg-blue-100 text-blue-700","investigate"===e.verification_status&&"bg-yellow-100 text-yellow-700","stop"===e.verification_status&&"bg-red-100 text-red-700"),children:e.verification_status.toUpperCase()})]}),!s&&e.tags.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(e=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-slate-100 text-slate-500 rounded",children:e},e)),e.tags.length>3&&(0,a.jsxs)("span",{className:"text-[10px] text-slate-400",children:["+",e.tags.length-3]})]})]})})}let k=["product","ux_design","growth","performance","tech_debt","security","infrastructure","content","analytics","integration"],Z=["critical","high","medium","low"],_=["xs","s","m","l","xl"];function C({ideas:e}){let[s,t]=(0,r.useState)({categories:[],priorities:[],efforts:[],search:""}),[i,o]=(0,r.useState)(!1),[x,m]=(0,r.useState)(null),h=(0,r.useMemo)(()=>{let s={all:e.length};return e.forEach(e=>{s[e.category]=(s[e.category]||0)+1}),s},[e]),p=(0,r.useMemo)(()=>e.filter(e=>{if(x&&e.category!==x)return!1;if(s.search){let t=s.search.toLowerCase();if(!(e.title.toLowerCase().includes(t)||e.summary.toLowerCase().includes(t)||e.tags.some(e=>e.toLowerCase().includes(t))))return!1}return(!(s.categories.length>0)||!!s.categories.includes(e.category))&&(!(s.priorities.length>0)||!!s.priorities.includes(e.priority))&&(!(s.efforts.length>0)||!!s.efforts.includes(e.effort))}),[e,s,x]),u=(0,r.useMemo)(()=>{let e={};return y.G.forEach(s=>{e[s]=[]}),p.forEach(s=>{y.G.includes(s.stage)&&e[s.stage].push(s)}),e},[p]),b=s.categories.length+s.priorities.length+s.efforts.length,g=(e,s)=>{t(t=>{let a=t[e],r=a.includes(s)?a.filter(e=>e!==s):[...a,s];return{...t,[e]:r}})};return(0,a.jsxs)("div",{className:"h-full flex flex-col",children:[a.jsx("div",{className:"px-6 py-3 bg-slate-50 border-b border-slate-200 overflow-x-auto",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("button",{onClick:()=>m(null),className:(0,c.Z)("px-3 py-1.5 text-sm font-medium rounded-full whitespace-nowrap transition-colors",null===x?"bg-slate-800 text-white":"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"),children:["All",(0,a.jsxs)("span",{className:"ml-1.5 text-xs opacity-70",children:["(",h.all,")"]})]}),k.map(e=>(0,a.jsxs)("button",{onClick:()=>m(e),className:(0,c.Z)("px-3 py-1.5 text-sm font-medium rounded-full whitespace-nowrap transition-colors",x===e?y.pG[e]:"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"),children:[y.Hs[e],h[e]>0&&(0,a.jsxs)("span",{className:"ml-1.5 text-xs opacity-70",children:["(",h[e],")"]})]},e))]})}),(0,a.jsxs)("div",{className:"px-6 py-4 bg-white border-b border-slate-200",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsxs)("div",{className:"relative flex-1 max-w-md",children:[a.jsx(l.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),a.jsx("input",{type:"text",placeholder:"Search ideas...",value:s.search,onChange:e=>t(s=>({...s,search:e.target.value})),className:"input pl-10"})]}),(0,a.jsxs)("button",{onClick:()=>o(!i),className:(0,c.Z)("btn btn-secondary gap-2",i&&"bg-slate-200"),children:[a.jsx(n,{className:"w-4 h-4"}),a.jsx("span",{children:"Filters"}),b>0&&a.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-500 text-white text-xs rounded-full",children:b})]}),b>0&&(0,a.jsxs)("button",{onClick:()=>{t({categories:[],priorities:[],efforts:[],search:""})},className:"btn btn-ghost gap-1 text-sm",children:[a.jsx(d.Z,{className:"w-4 h-4"}),"Clear"]})]}),i&&(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-6 animate-slide-in",children:[(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Category"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:k.map(e=>a.jsx("button",{onClick:()=>g("categories",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",s.categories.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.Hs[e]},e))})]}),(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Priority"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:Z.map(e=>a.jsx("button",{onClick:()=>g("priorities",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",s.priorities.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.rF[e]},e))})]}),(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Effort"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:_.map(e=>a.jsx("button",{onClick:()=>g("efforts",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",s.efforts.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.bi[e]},e))})]})]})]}),a.jsx("div",{className:"flex-1 overflow-x-auto p-6",children:a.jsx("div",{className:"flex gap-4 h-full min-w-max",children:y.G.map(e=>(0,a.jsxs)("div",{className:"w-72 flex flex-col",children:[(0,a.jsxs)("div",{className:"kanban-column-header",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:(0,c.Z)("stage-indicator",y.lv[e])}),a.jsx("span",{className:"font-medium text-slate-700",children:y.yb[e]})]}),a.jsx("span",{className:"text-sm text-slate-400",children:u[e].length})]}),a.jsx("div",{className:"kanban-column flex-1 overflow-y-auto",children:0===u[e].length?a.jsx("div",{className:"text-center py-8 text-slate-400 text-sm",children:"No ideas"}):u[e].map(e=>a.jsx(w,{idea:e},e.id))})]},e))})})]})}},9526:(e,s,t)=>{"use strict";t.d(s,{G:()=>n,GK:()=>Z,Gs:()=>o,Hs:()=>a,PN:()=>p,PW:()=>w,Q_:()=>u,R$:()=>j,Vr:()=>x,Wb:()=>h,aR:()=>m,bi:()=>d,en:()=>y,i2:()=>v,kT:()=>b,l5:()=>g,lE:()=>N,lv:()=>i,pG:()=>r,rF:()=>c,tV:()=>f,tl:()=>k,xP:()=>_,yb:()=>l});let a={product:"Product",ux_design:"UX/Design",growth:"Growth",performance:"Performance",tech_debt:"Tech Debt",security:"Security",infrastructure:"Infrastructure",content:"Content",analytics:"Analytics",integration:"Integration"},r={product:"bg-blue-100 text-blue-800",ux_design:"bg-purple-100 text-purple-800",growth:"bg-green-100 text-green-800",performance:"bg-orange-100 text-orange-800",tech_debt:"bg-yellow-100 text-yellow-800",security:"bg-red-100 text-red-800",infrastructure:"bg-gray-100 text-gray-800",content:"bg-pink-100 text-pink-800",analytics:"bg-cyan-100 text-cyan-800",integration:"bg-indigo-100 text-indigo-800"},l={inbox:"Inbox",under_review:"Under Review",approved:"Approved",in_progress:"In Progress",testing:"Testing",shipped:"Shipped",deferred:"Deferred",rejected:"Rejected",rolled_back:"Rolled Back"},i={inbox:"bg-amber-500",under_review:"bg-blue-500",approved:"bg-emerald-500",in_progress:"bg-violet-500",testing:"bg-cyan-500",shipped:"bg-green-500",deferred:"bg-gray-500",rejected:"bg-red-500",rolled_back:"bg-orange-500"},n=["inbox","under_review","approved","in_progress","testing","shipped"],d={xs:"XS",s:"S",m:"M",l:"L",xl:"XL"},c={critical:"Critical",high:"High",medium:"Medium",low:"Low"},o={critical:"bg-red-100 text-red-800 border-red-300",high:"bg-orange-100 text-orange-800 border-orange-300",medium:"bg-yellow-100 text-yellow-800 border-yellow-300",low:"bg-gray-100 text-gray-800 border-gray-300"},x={codebase_analysis:"Codebase Analysis",metrics_review:"Metrics Review",market_research:"Market Research",seo_audit:"SEO Audit",manual:"Manual"},m={pending:"bg-slate-100 text-slate-700",validated:"bg-emerald-100 text-emerald-800",needs_investigation:"bg-amber-100 text-amber-800",inconclusive:"bg-slate-100 text-slate-600",invalidated:"bg-red-100 text-red-800"},h={pending:"Pending",validated:"Validated",needs_investigation:"Needs Investigation",inconclusive:"Inconclusive",invalidated:"Invalidated"},p={ship:"Ship",update:"Update",milestone:"Milestone",digest:"Digest",manual:"Manual"},u={ship:"bg-green-100 text-green-800",update:"bg-blue-100 text-blue-800",milestone:"bg-amber-100 text-amber-800",digest:"bg-purple-100 text-purple-800",manual:"bg-slate-100 text-slate-800"},b={acquisition:"Acquisition",activation:"Activation",retention:"Retention",revenue:"Revenue",referral:"Referral"},g={acquisition:"bg-blue-100 text-blue-800",activation:"bg-emerald-100 text-emerald-800",retention:"bg-purple-100 text-purple-800",revenue:"bg-amber-100 text-amber-800",referral:"bg-pink-100 text-pink-800"},f={on_track:"On Track",at_risk:"At Risk",behind:"Behind",achieved:"Achieved"},v={on_track:"bg-emerald-100 text-emerald-800 border-emerald-300",at_risk:"bg-amber-100 text-amber-800 border-amber-300",behind:"bg-red-100 text-red-800 border-red-300",achieved:"bg-blue-100 text-blue-800 border-blue-300"},y={manual:"Manual",rest_api:"REST API",posthog:"PostHog",firestore:"Firestore",stripe:"Stripe",whatsapp:"WhatsApp"},j={stated:"Stated",testing:"Testing",validated:"Validated",invalidated:"Invalidated",deferred:"Deferred"},N={stated:"bg-slate-100 text-slate-800 border-slate-300",testing:"bg-amber-100 text-amber-800 border-amber-300",validated:"bg-emerald-100 text-emerald-800 border-emerald-300",invalidated:"bg-red-100 text-red-800 border-red-300",deferred:"bg-slate-100 text-slate-500 border-slate-200"},w={acquisition:"Acquisition",engagement:"Engagement",conversion:"Conversion",monetization:"Monetization"},k={acquisition:"bg-blue-100 text-blue-800",engagement:"bg-purple-100 text-purple-800",conversion:"bg-amber-100 text-amber-800",monetization:"bg-emerald-100 text-emerald-800"},Z={planned:"Planned",active:"Active",completed:"Completed",paused:"Paused"},_={planned:"bg-slate-100 text-slate-700 border-slate-300",active:"bg-blue-100 text-blue-800 border-blue-300",completed:"bg-emerald-100 text-emerald-800 border-emerald-300",paused:"bg-amber-100 text-amber-800 border-amber-300"}},2029:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>l,metadata:()=>r});var a=t(9510);t(5023);let r={title:process.env.NEXT_PUBLIC_PRODUCT_NAME?`${process.env.NEXT_PUBLIC_PRODUCT_NAME} Analyst`:"AI Business Analyst",description:"AI Business Analyst - Autonomous improvement proposals"};function l({children:e}){return a.jsx("html",{lang:"en",children:a.jsx("body",{className:"min-h-screen bg-slate-50",children:e})})}},6922:(e,s,t)=>{"use strict";t.r(s),t.d(s,{default:()=>o,dynamic:()=>c});var a=t(9510),r=t(534),l=t(2548),i=t(8570);let n=(0,i.createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/IdeaKanban.tsx#default`),d=(0,i.createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/app/DashboardHeader.tsx#default`),c="force-dynamic";async function o(){let e=await (0,r.Iw)(),s={total:e.length,inbox:e.filter(e=>"inbox"===e.stage).length,inProgress:e.filter(e=>"in_progress"===e.stage).length,shipped:e.filter(e=>"shipped"===e.stage).length};return a.jsx(l.Z,{children:(0,a.jsxs)("div",{className:"h-screen flex flex-col",children:[a.jsx(d,{stats:s}),a.jsx("div",{className:"flex-1 overflow-hidden",children:a.jsx(n,{ideas:e})})]})})}},2548:(e,s,t)=>{"use strict";t.d(s,{Z:()=>a});let a=(0,t(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx#default`)},5023:()=>{}};var s=require("../webpack-runtime.js");s.C(e);var t=e=>s(s.s=e),a=s.X(0,[9276,4471,4376,534],()=>t(8851));module.exports=a})();
|
|
1
|
+
(()=>{var e={};e.id=1931,e.ids=[1931],e.modules={2934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},4770:e=>{"use strict";e.exports=require("crypto")},2048:e=>{"use strict";e.exports=require("fs")},5315:e=>{"use strict";e.exports=require("path")},8851:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GlobalError:()=>i.a,__next_app__:()=>m,originalPathname:()=>x,pages:()=>o,routeModule:()=>h,tree:()=>c}),s(6922),s(2029),s(5866);var a=s(3191),r=s(8716),l=s(7922),i=s.n(l),n=s(5231),d={};for(let e in n)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(d[e]=()=>n[e]);s.d(t,d);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(s.bind(s,6922)),"/Users/luismey/Code/vibebusiness/src/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(s.bind(s,2029)),"/Users/luismey/Code/vibebusiness/src/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(s.t.bind(s,5866,23)),"next/dist/client/components/not-found-error"]}],o=["/Users/luismey/Code/vibebusiness/src/app/page.tsx"],x="/page",m={require:s,loadChunk:()=>Promise.resolve()},h=new a.AppPageRouteModule({definition:{kind:r.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},7010:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,2994,23)),Promise.resolve().then(s.t.bind(s,6114,23)),Promise.resolve().then(s.t.bind(s,9727,23)),Promise.resolve().then(s.t.bind(s,9671,23)),Promise.resolve().then(s.t.bind(s,1868,23)),Promise.resolve().then(s.t.bind(s,4759,23))},8894:(e,t,s)=>{Promise.resolve().then(s.bind(s,6663)),Promise.resolve().then(s.bind(s,3818)),Promise.resolve().then(s.bind(s,4663))},5698:()=>{},6464:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},1291:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},361:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("CircleCheckBig",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},7506:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},4893:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},5691:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]])},8307:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},763:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},4019:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},3634:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(2881).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},6663:(e,t,s)=>{"use strict";s.d(t,{default:()=>b});var a=s(326),r=s(5047),l=s(6464),i=s(2881);let n=(0,i.Z)("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]),d=(0,i.Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]);var c=s(5691),o=s(7577),x=s(7506),m=s(4893),h=s(361),p=s(1291),u=s(1135);function g({onAnalysisComplete:e}){let[t,s]=(0,o.useState)(!1),[r,l]=(0,o.useState)(!1),[i,n]=(0,o.useState)(null),d=async t=>{l(!0),n(null);try{let s=await fetch("/api/analyze",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({type:t})}),a=await s.json();a.success?(n({success:!0,message:`Generated ${a.ideas_count} new ideas`}),e?.()):n({success:!1,message:a.error||"Analysis failed"})}catch(e){n({success:!1,message:"Failed to start analysis"})}finally{l(!1),setTimeout(()=>{n(null),s(!1)},3e3)}};return(0,a.jsxs)("div",{className:"relative",children:[a.jsx("button",{onClick:()=>s(!t),disabled:r,className:(0,u.Z)("btn btn-primary gap-2",r&&"opacity-75 cursor-wait"),children:r?(0,a.jsxs)(a.Fragment,{children:[a.jsx(x.Z,{className:"w-4 h-4 animate-spin"}),a.jsx("span",{children:"Analyzing..."})]}):(0,a.jsxs)(a.Fragment,{children:[a.jsx(m.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Analyze Now"})]})}),t&&!r&&(0,a.jsxs)("div",{className:"absolute right-0 mt-2 w-56 bg-white rounded-lg shadow-lg border border-slate-200 py-2 z-10 animate-slide-in",children:[(0,a.jsxs)("button",{onClick:()=>d("quick"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Quick Scan"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Recent changes, TODOs, errors"})]}),(0,a.jsxs)("button",{onClick:()=>d("deep"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Deep Review"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Architecture, tech debt, security"})]}),(0,a.jsxs)("button",{onClick:()=>d("metrics"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"Metrics Review"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Funnels, conversions, drop-offs"})]}),(0,a.jsxs)("button",{onClick:()=>d("seo"),className:"w-full px-4 py-2 text-left hover:bg-slate-50 transition-colors",children:[a.jsx("div",{className:"font-medium text-slate-900",children:"SEO Audit"}),a.jsx("div",{className:"text-xs text-slate-500",children:"Blog performance, technical SEO"})]})]}),i&&a.jsx("div",{className:(0,u.Z)("absolute right-0 mt-2 px-4 py-3 rounded-lg shadow-lg animate-slide-in",i.success?"bg-emerald-50 border border-emerald-200":"bg-red-50 border border-red-200"),children:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[i.success?a.jsx(h.Z,{className:"w-4 h-4 text-emerald-600"}):a.jsx(p.Z,{className:"w-4 h-4 text-red-600"}),a.jsx("span",{className:(0,u.Z)("text-sm font-medium",i.success?"text-emerald-800":"text-red-800"),children:i.message})]})})]})}function b({stats:e}){let t=(0,r.useRouter)();return a.jsx("header",{className:"px-6 py-4 bg-white border-b border-slate-200",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"text-2xl font-bold text-slate-900",children:"Idea Dashboard"}),(0,a.jsxs)("div",{className:"flex items-center gap-6 mt-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-600",children:[a.jsx(l.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.total," total"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-amber-600",children:[a.jsx(n,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.inbox," in inbox"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-violet-600",children:[a.jsx(d,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.inProgress," in progress"]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-emerald-600",children:[a.jsx(c.Z,{className:"w-4 h-4"}),(0,a.jsxs)("span",{children:[e.shipped," shipped"]})]})]})]}),a.jsx(g,{onAnalysisComplete:()=>{t.refresh()}})]})})}},3818:(e,t,s)=>{"use strict";s.d(t,{default:()=>b});var a=s(326),r=s(434),l=s(5047),i=s(4319),n=s(4935),d=s(3468),c=s(8258),o=s(9730),x=s(717),m=s(8378),h=s(732),p=s(1572),u=s(1135);let g=[{href:"/",label:"Dashboard",icon:a.jsx(i.Z,{className:"w-5 h-5"})},{href:"/roadmap",label:"Roadmap",icon:a.jsx(n.Z,{className:"w-5 h-5"})},{href:"/goals",label:"Goals",icon:a.jsx(d.Z,{className:"w-5 h-5"})},{href:"/hypotheses",label:"Hypotheses",icon:a.jsx(c.Z,{className:"w-5 h-5"})},{href:"/social",label:"Social",icon:a.jsx(o.Z,{className:"w-5 h-5"})},{href:"/sessions",label:"Sessions",icon:a.jsx(x.Z,{className:"w-5 h-5"})},{href:"/settings",label:"Settings",icon:a.jsx(m.Z,{className:"w-5 h-5"})}];function b({children:e}){let t=(0,l.usePathname)();return(0,a.jsxs)("div",{className:"min-h-screen flex",children:[(0,a.jsxs)("aside",{className:"w-64 bg-slate-900 text-white flex flex-col",children:[a.jsx("div",{className:"p-4 border-b border-slate-700",children:(0,a.jsxs)(r.default,{href:"/",className:"flex items-center gap-2",children:[a.jsx("div",{className:"w-10 h-10 bg-emerald-500 rounded-lg flex items-center justify-center",children:a.jsx(h.Z,{className:"w-6 h-6 text-white"})}),(0,a.jsxs)("div",{children:[a.jsx("h1",{className:"font-bold text-lg leading-tight",children:"Analyst"}),a.jsx("p",{className:"text-xs text-slate-400",children:process.env.NEXT_PUBLIC_PRODUCT_NAME||"Business"})]})]})}),a.jsx("nav",{className:"flex-1 p-4",children:a.jsx("ul",{className:"space-y-1",children:g.map(e=>{let s="/"===e.href?"/"===t:t.startsWith(e.href);return a.jsx("li",{children:(0,a.jsxs)(r.default,{href:e.href,className:(0,u.Z)("flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",s?"bg-slate-800 text-white":"text-slate-400 hover:text-white hover:bg-slate-800"),children:[e.icon,a.jsx("span",{children:e.label})]})},e.href)})})}),a.jsx("div",{className:"p-4 border-t border-slate-700",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs text-slate-500",children:[a.jsx(p.Z,{className:"w-4 h-4"}),a.jsx("span",{children:"Powered by Claude"})]})})]}),a.jsx("main",{className:"flex-1 overflow-auto",children:e})]})}},4663:(e,t,s)=>{"use strict";s.d(t,{default:()=>P});var a=s(326),r=s(7577),l=s(8307),i=s(2881);let n=(0,i.Z)("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);var d=s(4019),c=s(1135),o=s(434),x=s(1291);let m=(0,i.Z)("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),h=(0,i.Z)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),p=(0,i.Z)("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);var u=s(3634);let g=(0,i.Z)("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);var b=s(3468),f=s(763);let v=(0,i.Z)("ScanSearch",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]]);var y=s(9526);function j({priority:e}){switch(e){case"critical":return a.jsx(x.Z,{className:"w-3 h-3"});case"high":return a.jsx(m,{className:"w-3 h-3"});case"medium":return a.jsx(h,{className:"w-3 h-3"});case"low":return a.jsx(p,{className:"w-3 h-3"})}}function N({size:e,label:t}){return a.jsx("span",{className:"size-badge",title:t,children:y.bi[e]})}function w({idea:e,compact:t=!1}){let s=e.comments.length>0;return a.jsx(o.default,{href:`/ideas/${e.id}`,children:(0,a.jsxs)("div",{className:"idea-card",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsxs)("span",{className:(0,c.Z)("priority-badge",y.Gs[e.priority]),children:[a.jsx(j,{priority:e.priority}),a.jsx("span",{className:"ml-1",children:y.rF[e.priority]})]}),a.jsx("span",{className:(0,c.Z)("category-badge",y.pG[e.category]),children:y.Hs[e.category]})]}),a.jsx("h3",{className:"font-medium text-slate-900 text-sm leading-snug mb-1",children:e.title}),!t&&a.jsx("p",{className:"text-xs text-slate-500 line-clamp-2 mb-2",children:e.summary}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2 pt-2 border-t border-slate-100",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",title:"Effort",children:[a.jsx(u.Z,{className:"w-3 h-3 text-slate-400"}),a.jsx(N,{size:e.effort,label:"Effort"})]}),a.jsx("span",{className:"text-slate-300",children:"/"}),(0,a.jsxs)("div",{className:"flex items-center gap-1",title:"Impact",children:[a.jsx(m,{className:"w-3 h-3 text-slate-400"}),a.jsx(N,{size:e.impact,label:"Impact"})]})]}),s&&(0,a.jsxs)("div",{className:"flex items-center gap-1 text-slate-400",children:[a.jsx(g,{className:"w-3 h-3"}),a.jsx("span",{className:"text-xs",children:e.comments.length})]})]}),e.goal_id&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-2 text-emerald-600",children:[a.jsx(b.Z,{className:"w-3 h-3"}),a.jsx("span",{className:"text-[10px]",children:"Goal aligned"})]}),"shipped"===e.stage&&e.verification&&"pending"!==e.verification.status&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[a.jsx(f.Z,{className:"w-3 h-3"}),a.jsx("span",{className:(0,c.Z)("text-[10px] px-1 py-0.5 rounded",y.aR[e.verification.status]),children:y.Wb[e.verification.status]})]}),e.verification_status&&(0,a.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[a.jsx(v,{className:"w-3 h-3"}),a.jsx("span",{className:(0,c.Z)("text-[10px] px-1 py-0.5 rounded","proceed"===e.verification_status&&"bg-green-100 text-green-700","extend"===e.verification_status&&"bg-blue-100 text-blue-700","investigate"===e.verification_status&&"bg-yellow-100 text-yellow-700","stop"===e.verification_status&&"bg-red-100 text-red-700"),children:e.verification_status.toUpperCase()})]}),!t&&e.tags.length>0&&(0,a.jsxs)("div",{className:"flex flex-wrap gap-1 mt-2",children:[e.tags.slice(0,3).map(e=>a.jsx("span",{className:"text-[10px] px-1.5 py-0.5 bg-slate-100 text-slate-500 rounded",children:e},e)),e.tags.length>3&&(0,a.jsxs)("span",{className:"text-[10px] text-slate-400",children:["+",e.tags.length-3]})]})]})})}let k=["product","ux_design","growth","performance","tech_debt","security","infrastructure","content","analytics","integration"],Z=["critical","high","medium","low"],_=["xs","s","m","l","xl"];function P({ideas:e}){let[t,s]=(0,r.useState)({categories:[],priorities:[],efforts:[],search:""}),[i,o]=(0,r.useState)(!1),[x,m]=(0,r.useState)(null),h=(0,r.useMemo)(()=>{let t={all:e.length};return e.forEach(e=>{t[e.category]=(t[e.category]||0)+1}),t},[e]),p=(0,r.useMemo)(()=>e.filter(e=>{if(x&&e.category!==x)return!1;if(t.search){let s=t.search.toLowerCase();if(!(e.title.toLowerCase().includes(s)||e.summary.toLowerCase().includes(s)||e.tags.some(e=>e.toLowerCase().includes(s))))return!1}return(!(t.categories.length>0)||!!t.categories.includes(e.category))&&(!(t.priorities.length>0)||!!t.priorities.includes(e.priority))&&(!(t.efforts.length>0)||!!t.efforts.includes(e.effort))}),[e,t,x]),u=(0,r.useMemo)(()=>{let e={};return y.G.forEach(t=>{e[t]=[]}),p.forEach(t=>{y.G.includes(t.stage)&&e[t.stage].push(t)}),e},[p]),g=t.categories.length+t.priorities.length+t.efforts.length,b=(e,t)=>{s(s=>{let a=s[e],r=a.includes(t)?a.filter(e=>e!==t):[...a,t];return{...s,[e]:r}})};return(0,a.jsxs)("div",{className:"h-full flex flex-col",children:[a.jsx("div",{className:"px-6 py-3 bg-slate-50 border-b border-slate-200 overflow-x-auto",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("button",{onClick:()=>m(null),className:(0,c.Z)("px-3 py-1.5 text-sm font-medium rounded-full whitespace-nowrap transition-colors",null===x?"bg-slate-800 text-white":"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"),children:["All",(0,a.jsxs)("span",{className:"ml-1.5 text-xs opacity-70",children:["(",h.all,")"]})]}),k.map(e=>(0,a.jsxs)("button",{onClick:()=>m(e),className:(0,c.Z)("px-3 py-1.5 text-sm font-medium rounded-full whitespace-nowrap transition-colors",x===e?y.pG[e]:"bg-white text-slate-600 hover:bg-slate-100 border border-slate-200"),children:[y.Hs[e],h[e]>0&&(0,a.jsxs)("span",{className:"ml-1.5 text-xs opacity-70",children:["(",h[e],")"]})]},e))]})}),(0,a.jsxs)("div",{className:"px-6 py-4 bg-white border-b border-slate-200",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsxs)("div",{className:"relative flex-1 max-w-md",children:[a.jsx(l.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),a.jsx("input",{type:"text",placeholder:"Search ideas...",value:t.search,onChange:e=>s(t=>({...t,search:e.target.value})),className:"input pl-10"})]}),(0,a.jsxs)("button",{onClick:()=>o(!i),className:(0,c.Z)("btn btn-secondary gap-2",i&&"bg-slate-200"),children:[a.jsx(n,{className:"w-4 h-4"}),a.jsx("span",{children:"Filters"}),g>0&&a.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-500 text-white text-xs rounded-full",children:g})]}),g>0&&(0,a.jsxs)("button",{onClick:()=>{s({categories:[],priorities:[],efforts:[],search:""})},className:"btn btn-ghost gap-1 text-sm",children:[a.jsx(d.Z,{className:"w-4 h-4"}),"Clear"]})]}),i&&(0,a.jsxs)("div",{className:"mt-4 flex flex-wrap gap-6 animate-slide-in",children:[(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Category"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:k.map(e=>a.jsx("button",{onClick:()=>b("categories",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",t.categories.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.Hs[e]},e))})]}),(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Priority"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:Z.map(e=>a.jsx("button",{onClick:()=>b("priorities",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",t.priorities.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.rF[e]},e))})]}),(0,a.jsxs)("div",{children:[a.jsx("label",{className:"block text-xs font-medium text-slate-500 mb-2",children:"Effort"}),a.jsx("div",{className:"flex flex-wrap gap-1",children:_.map(e=>a.jsx("button",{onClick:()=>b("efforts",e),className:(0,c.Z)("px-2 py-1 text-xs rounded border transition-colors",t.efforts.includes(e)?"bg-emerald-100 border-emerald-300 text-emerald-800":"bg-white border-slate-200 text-slate-600 hover:border-slate-300"),children:y.bi[e]},e))})]})]})]}),a.jsx("div",{className:"flex-1 overflow-x-auto p-6",children:a.jsx("div",{className:"flex gap-4 h-full min-w-max",children:y.G.map(e=>(0,a.jsxs)("div",{className:"w-72 flex flex-col",children:[(0,a.jsxs)("div",{className:"kanban-column-header",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[a.jsx("div",{className:(0,c.Z)("stage-indicator",y.lv[e])}),a.jsx("span",{className:"font-medium text-slate-700",children:y.yb[e]})]}),a.jsx("span",{className:"text-sm text-slate-400",children:u[e].length})]}),a.jsx("div",{className:"kanban-column flex-1 overflow-y-auto",children:0===u[e].length?a.jsx("div",{className:"text-center py-8 text-slate-400 text-sm",children:"No ideas"}):u[e].map(e=>a.jsx(w,{idea:e},e.id))})]},e))})})]})}},9526:(e,t,s)=>{"use strict";s.d(t,{G:()=>n,GK:()=>Z,Gs:()=>o,Hs:()=>a,PN:()=>p,PW:()=>w,Q_:()=>u,R$:()=>j,Vr:()=>x,Wb:()=>h,aR:()=>m,bi:()=>d,en:()=>y,i2:()=>v,kT:()=>g,l5:()=>b,lE:()=>N,lv:()=>i,pG:()=>r,rF:()=>c,tV:()=>f,tl:()=>k,xP:()=>_,yb:()=>l});let a={product:"Product",ux_design:"UX/Design",growth:"Growth",performance:"Performance",tech_debt:"Tech Debt",security:"Security",infrastructure:"Infrastructure",content:"Content",analytics:"Analytics",integration:"Integration"},r={product:"bg-blue-100 text-blue-800",ux_design:"bg-purple-100 text-purple-800",growth:"bg-green-100 text-green-800",performance:"bg-orange-100 text-orange-800",tech_debt:"bg-yellow-100 text-yellow-800",security:"bg-red-100 text-red-800",infrastructure:"bg-gray-100 text-gray-800",content:"bg-pink-100 text-pink-800",analytics:"bg-cyan-100 text-cyan-800",integration:"bg-indigo-100 text-indigo-800"},l={inbox:"Inbox",under_review:"Under Review",approved:"Approved",in_progress:"In Progress",testing:"Testing",shipped:"Shipped",deferred:"Deferred",rejected:"Rejected",rolled_back:"Rolled Back"},i={inbox:"bg-amber-500",under_review:"bg-blue-500",approved:"bg-emerald-500",in_progress:"bg-violet-500",testing:"bg-cyan-500",shipped:"bg-green-500",deferred:"bg-gray-500",rejected:"bg-red-500",rolled_back:"bg-orange-500"},n=["inbox","under_review","approved","in_progress","testing","shipped"],d={xs:"XS",s:"S",m:"M",l:"L",xl:"XL"},c={critical:"Critical",high:"High",medium:"Medium",low:"Low"},o={critical:"bg-red-100 text-red-800 border-red-300",high:"bg-orange-100 text-orange-800 border-orange-300",medium:"bg-yellow-100 text-yellow-800 border-yellow-300",low:"bg-gray-100 text-gray-800 border-gray-300"},x={codebase_analysis:"Codebase Analysis",metrics_review:"Metrics Review",market_research:"Market Research",seo_audit:"SEO Audit",manual:"Manual"},m={pending:"bg-slate-100 text-slate-700",validated:"bg-emerald-100 text-emerald-800",needs_investigation:"bg-amber-100 text-amber-800",inconclusive:"bg-slate-100 text-slate-600",invalidated:"bg-red-100 text-red-800"},h={pending:"Pending",validated:"Validated",needs_investigation:"Needs Investigation",inconclusive:"Inconclusive",invalidated:"Invalidated"},p={ship:"Ship",update:"Update",milestone:"Milestone",digest:"Digest",manual:"Manual",thread:"Thread",insight:"Insight"},u={ship:"bg-green-100 text-green-800",update:"bg-blue-100 text-blue-800",milestone:"bg-amber-100 text-amber-800",digest:"bg-purple-100 text-purple-800",manual:"bg-slate-100 text-slate-800",thread:"bg-indigo-100 text-indigo-800",insight:"bg-cyan-100 text-cyan-800"},g={acquisition:"Acquisition",activation:"Activation",retention:"Retention",revenue:"Revenue",referral:"Referral"},b={acquisition:"bg-blue-100 text-blue-800",activation:"bg-emerald-100 text-emerald-800",retention:"bg-purple-100 text-purple-800",revenue:"bg-amber-100 text-amber-800",referral:"bg-pink-100 text-pink-800"},f={on_track:"On Track",at_risk:"At Risk",behind:"Behind",achieved:"Achieved"},v={on_track:"bg-emerald-100 text-emerald-800 border-emerald-300",at_risk:"bg-amber-100 text-amber-800 border-amber-300",behind:"bg-red-100 text-red-800 border-red-300",achieved:"bg-blue-100 text-blue-800 border-blue-300"},y={manual:"Manual",rest_api:"REST API",posthog:"PostHog",firestore:"Firestore",stripe:"Stripe",whatsapp:"WhatsApp"},j={stated:"Stated",testing:"Testing",validated:"Validated",invalidated:"Invalidated",deferred:"Deferred"},N={stated:"bg-slate-100 text-slate-800 border-slate-300",testing:"bg-amber-100 text-amber-800 border-amber-300",validated:"bg-emerald-100 text-emerald-800 border-emerald-300",invalidated:"bg-red-100 text-red-800 border-red-300",deferred:"bg-slate-100 text-slate-500 border-slate-200"},w={acquisition:"Acquisition",engagement:"Engagement",conversion:"Conversion",monetization:"Monetization"},k={acquisition:"bg-blue-100 text-blue-800",engagement:"bg-purple-100 text-purple-800",conversion:"bg-amber-100 text-amber-800",monetization:"bg-emerald-100 text-emerald-800"},Z={planned:"Planned",active:"Active",completed:"Completed",paused:"Paused"},_={planned:"bg-slate-100 text-slate-700 border-slate-300",active:"bg-blue-100 text-blue-800 border-blue-300",completed:"bg-emerald-100 text-emerald-800 border-emerald-300",paused:"bg-amber-100 text-amber-800 border-amber-300"}},2029:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>l,metadata:()=>r});var a=s(9510);s(5023);let r={title:process.env.NEXT_PUBLIC_PRODUCT_NAME?`${process.env.NEXT_PUBLIC_PRODUCT_NAME} Analyst`:"AI Product Manager",description:"AI Product Manager - Autonomous improvement proposals"};function l({children:e}){return a.jsx("html",{lang:"en",children:a.jsx("body",{className:"min-h-screen bg-slate-50",children:e})})}},6922:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o,dynamic:()=>c});var a=s(9510),r=s(534),l=s(2548),i=s(8570);let n=(0,i.createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/IdeaKanban.tsx#default`),d=(0,i.createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/app/DashboardHeader.tsx#default`),c="force-dynamic";async function o(){let e=await (0,r.Iw)(),t={total:e.length,inbox:e.filter(e=>"inbox"===e.stage).length,inProgress:e.filter(e=>"in_progress"===e.stage).length,shipped:e.filter(e=>"shipped"===e.stage).length};return a.jsx(l.Z,{children:(0,a.jsxs)("div",{className:"h-screen flex flex-col",children:[a.jsx(d,{stats:t}),a.jsx("div",{className:"flex-1 overflow-hidden",children:a.jsx(n,{ideas:e})})]})})}},2548:(e,t,s)=>{"use strict";s.d(t,{Z:()=>a});let a=(0,s(8570).createProxy)(String.raw`/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx#default`)},5023:()=>{}};var t=require("../webpack-runtime.js");t.C(e);var s=e=>t(t.s=e),a=t.X(0,[9276,4471,4376,534],()=>s(8851));module.exports=a})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"files":["../../../data/.DS_Store","../../../data/.analysis-prompt.txt","../../../data/.gitkeep","../../../data/business-context.json","../../../data/codebase-snapshot.json","../../../data/competitors.json","../../../data/config.json","../../../data/copy/landing-improvements-2026-02-20.md","../../../data/copy/landing-landing-page-2026-02-20.md","../../../data/email-campaigns/sequences/onboarding.md","../../../data/email-campaigns/welcome-2026-02-20.md","../../../data/goals.json","../../../data/heartbeat-sessions.json","../../../data/hypotheses.json","../../../data/ideas.json","../../../data/implementations.json","../../../data/pages.json","../../../data/payments.json","../../../data/positioning.json","../../../data/roadmap.json","../../../data/sessions.json","../../../data/social.json","../../../data/video-ideas.md","../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../node_modules/next/dist/client/components/async-local-storage.js","../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/4376.js","../chunks/4471.js","../chunks/534.js","../chunks/9276.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
1
|
+
{"version":1,"files":["../../../data/.DS_Store","../../../data/.analysis-prompt.txt","../../../data/.gitkeep","../../../data/business-context.json","../../../data/codebase-snapshot.json","../../../data/competitors.json","../../../data/config.json","../../../data/copy/landing-improvements-2026-02-20.md","../../../data/copy/landing-landing-page-2026-02-20.md","../../../data/email-campaigns/sequences/onboarding.md","../../../data/email-campaigns/welcome-2026-02-20.md","../../../data/goals.json","../../../data/heartbeat-sessions.json","../../../data/hypotheses.json","../../../data/ideas.json","../../../data/implementations.json","../../../data/pages.json","../../../data/payments.json","../../../data/positioning.json","../../../data/reports/.DS_Store","../../../data/reports/visuals/promo-launch.png","../../../data/reports/visuals/promo-ship-fast.png","../../../data/reports/visuals/promo-while-you-slept-v2.png","../../../data/reports/visuals/promo-while-you-slept-v3.png","../../../data/reports/visuals/promo-while-you-slept.png","../../../data/roadmap.json","../../../data/sessions.json","../../../data/social.json","../../../data/video-ideas.md","../../../node_modules/next/dist/client/components/action-async-storage-instance.js","../../../node_modules/next/dist/client/components/action-async-storage.external.js","../../../node_modules/next/dist/client/components/async-local-storage.js","../../../node_modules/next/dist/client/components/request-async-storage-instance.js","../../../node_modules/next/dist/client/components/request-async-storage.external.js","../../../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../../../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../node_modules/next/dist/server/lib/trace/constants.js","../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../node_modules/next/package.json","../../../package.json","../../package.json","../chunks/4376.js","../chunks/4471.js","../chunks/534.js","../chunks/9276.js","../webpack-runtime.js","page_client-reference-manifest.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"47":{"*":{"id":"4812","name":"*","chunks":[],"async":false}},"80":{"*":{"id":"1868","name":"*","chunks":[],"async":false}},"786":{"*":{"id":"1855","name":"*","chunks":[],"async":false}},"1060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"1214":{"*":{"id":"4663","name":"*","chunks":[],"async":false}},"1259":{"*":{"id":"3818","name":"*","chunks":[],"async":false}},"2612":{"*":{"id":"3305","name":"*","chunks":[],"async":false}},"2674":{"*":{"id":"9973","name":"*","chunks":[],"async":false}},"2846":{"*":{"id":"2994","name":"*","chunks":[],"async":false}},"3032":{"*":{"id":"1828","name":"*","chunks":[],"async":false}},"4553":{"*":{"id":"8022","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"9671","name":"*","chunks":[],"async":false}},"6423":{"*":{"id":"4759","name":"*","chunks":[],"async":false}},"6435":{"*":{"id":"6663","name":"*","chunks":[],"async":false}},"8619":{"*":{"id":"5467","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"1358","name":"*","chunks":[],"async":false}},"9107":{"*":{"id":"6114","name":"*","chunks":[],"async":false}},"9534":{"*":{"id":"9616","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/globals.css":{"id":2778,"name":"*","chunks":["185","static/chunks/app/layout-eeef7928298d2198.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/app/goals/[id]/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/hypotheses/[id]/page.tsx":{"id":4553,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/roadmap/[id]/page.tsx":{"id":47,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/social/page.tsx":{"id":2612,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx":{"id":1259,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-
|
|
1
|
+
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/page"]={"moduleLoading":{"prefix":"/_next/","crossOrigin":null},"ssrModuleMapping":{"47":{"*":{"id":"4812","name":"*","chunks":[],"async":false}},"80":{"*":{"id":"1868","name":"*","chunks":[],"async":false}},"786":{"*":{"id":"1855","name":"*","chunks":[],"async":false}},"1060":{"*":{"id":"9727","name":"*","chunks":[],"async":false}},"1214":{"*":{"id":"4663","name":"*","chunks":[],"async":false}},"1259":{"*":{"id":"3818","name":"*","chunks":[],"async":false}},"2612":{"*":{"id":"3305","name":"*","chunks":[],"async":false}},"2674":{"*":{"id":"9973","name":"*","chunks":[],"async":false}},"2846":{"*":{"id":"2994","name":"*","chunks":[],"async":false}},"3032":{"*":{"id":"1828","name":"*","chunks":[],"async":false}},"4553":{"*":{"id":"8022","name":"*","chunks":[],"async":false}},"4707":{"*":{"id":"9671","name":"*","chunks":[],"async":false}},"6423":{"*":{"id":"4759","name":"*","chunks":[],"async":false}},"6435":{"*":{"id":"6663","name":"*","chunks":[],"async":false}},"8619":{"*":{"id":"5467","name":"*","chunks":[],"async":false}},"8935":{"*":{"id":"1358","name":"*","chunks":[],"async":false}},"9107":{"*":{"id":"6114","name":"*","chunks":[],"async":false}},"9534":{"*":{"id":"9616","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/app-router.js":{"id":2846,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/client-page.js":{"id":9107,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/error-boundary.js":{"id":1060,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/layout-router.js":{"id":4707,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/not-found-boundary.js":{"id":80,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":6423,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/globals.css":{"id":2778,"name":"*","chunks":["185","static/chunks/app/layout-eeef7928298d2198.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/app/goals/[id]/page.tsx":{"id":8935,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/hypotheses/[id]/page.tsx":{"id":4553,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/roadmap/[id]/page.tsx":{"id":47,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/settings/page.tsx":{"id":8619,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/social/page.tsx":{"id":2612,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/AnalystLayout.tsx":{"id":1259,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-8ba52ac74c75461b.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/IdeaDetail.tsx":{"id":9534,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/app/DashboardHeader.tsx":{"id":6435,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-8ba52ac74c75461b.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/IdeaKanban.tsx":{"id":1214,"name":"*","chunks":["746","static/chunks/746-ea7c3e4e69c14385.js","931","static/chunks/app/page-8ba52ac74c75461b.js"],"async":false},"/Users/luismey/Code/vibebusiness/src/components/GoalCard.tsx":{"id":2674,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/HypothesisCard.tsx":{"id":786,"name":"*","chunks":[],"async":false},"/Users/luismey/Code/vibebusiness/src/components/RoadmapViewToggle.tsx":{"id":3032,"name":"*","chunks":[],"async":false}},"entryCSSFiles":{"/Users/luismey/Code/vibebusiness/src/":[],"/Users/luismey/Code/vibebusiness/src/app/layout":["static/css/179dd3e0738c2fe4.css"],"/Users/luismey/Code/vibebusiness/src/app/page":[]}}
|