@@ -6,62 +6,62 @@ import { cn } from "@/lib/utils"
66import { vscode } from "@src/utils/vscode"
77
88export type PlanningBarProps = {
9- isGenerating ?: boolean ;
10- requestedPlan : string ;
11- stopCallback ?: ( ) => void ;
12- className ?: string ;
13- } ;
9+ isStreaming ?: boolean
10+ requestedPlan : string
11+ stopCallback ?: ( ) => void
12+ className ?: string
13+ }
1414
15- export const PlanningBar : FC < PlanningBarProps > = ( {
16- isGenerating,
17- requestedPlan,
18- stopCallback,
19- className,
20- } ) => {
21- return (
22- < div
23- className = { cn (
24- "bg-[#000] w-full rounded-full flex text-white justify-between min-w-64 h-10 gap-4 relative overflow-clip" ,
25- className ,
26- ) }
27- >
28- { /* {isGenerating && <div className="absolute inset-0 rainbow-border-glow" />} */ }
29- < div className = "flex-1 flex h-full align-middle ml-5 gap-4 relative overflow-hidden" >
30- < div className = "relative h-full my-auto mr-1 flex-shrink-0 min-w-4" >
31- < div className = { `circle ${ isGenerating ? "animated-circle" : "" } ` } />
32- </ div >
33- < div className = "my-auto text-sm flex-shrink-0" > Creating</ div >
34- < div className = "relative my-auto min-w-0 flex-shrink overflow-hidden max-w-64" >
35- < div className = "text-white/80 text-sm truncate" >
36- { requestedPlan }
37- </ div >
38- </ div >
39- </ div >
15+ export const PlanningBar : FC < PlanningBarProps > = ( { isStreaming, requestedPlan, stopCallback, className } ) => {
16+ return (
17+ < div
18+ className = { cn (
19+ "bg-[#000] w-full rounded-full flex text-white justify-between min-w-64 h-10 gap-4 relative" ,
20+ className ,
21+ ) } >
22+ < div
23+ className = { `${ isStreaming ? "rainbow-border-glow-visible" : "" }
24+ absolute inset-0 rainbow-border-glow blur -z-10 rounded-full ` }
25+ />
26+ < div className = "flex-1 flex h-full align-middle ml-5 gap-4 relative overflow-hidden" >
27+ < div className = "relative h-full my-auto mr-1 flex-shrink-0 min-w-4" >
28+ < div className = { `circle ${ isStreaming ? "animated-circle" : "" } ` } />
29+ </ div >
30+ < div className = "my-auto text-sm flex-shrink-0" > Creating</ div >
31+ < div className = "relative my-auto min-w-0 flex-shrink overflow-hidden max-w-64" >
32+ < div className = "text-white/80 text-sm truncate" > { requestedPlan } </ div >
33+ </ div >
34+ </ div >
4035
41- < div className = "flex justify-center align-middle mr-2 gap-4" >
42- < div className = "m-auto flex gap-2" >
43- < div className = "flex my-auto" >
44- < Button
45- variant = "default"
46- toggled
47- className = "bg-black hover:bg-black rounded-r-none cursor-default"
48- >
49- < SolidDocumentTextIcon />
50- </ Button >
51- < Button className = "rounded-l-none bg-blue-700/60 hover:bg-blue-700/60 cursor-default" >
52- < CodeBracketIcon />
53- </ Button >
54- </ div >
36+ < div className = "flex justify-center align-middle mr-2 gap-4" >
37+ < div className = "m-auto flex gap-2" >
38+ < div className = "flex my-auto" >
39+ < Button
40+ variant = "default"
41+ toggled
42+ className = "bg-black hover:bg-black rounded-r-none cursor-default" >
43+ < SolidDocumentTextIcon />
44+ </ Button >
45+ < Button className = "rounded-l-none bg-blue-700/60 hover:bg-blue-700/60 cursor-default" >
46+ < CodeBracketIcon />
47+ </ Button >
48+ </ div >
5549
56- < Button variant = "default" className = "my-auto" onClick = { ( ) => vscode . postMessage ( { type : "openPearAICreatorFeedbackOverlay" } ) } >
57- Not Working?
58- </ Button >
59- < Button className = "my-auto bg-red-500/20 hover:bg-red-500/40" disabled = { ! isGenerating } onClick = { stopCallback } >
60- < StopIcon className = "fill-red-500" />
61- </ Button >
62- </ div >
63- { /* <ArrowTurnDownLeftIcon className="size-4" /> */ }
64- </ div >
65- </ div >
66- ) ;
67- } ;
50+ < Button
51+ variant = "default"
52+ className = "my-auto"
53+ onClick = { ( ) => vscode . postMessage ( { type : "openPearAICreatorFeedbackOverlay" } ) } >
54+ Not Working?
55+ </ Button >
56+ < Button
57+ className = "my-auto bg-red-500/20 hover:bg-red-500/40"
58+ disabled = { ! isStreaming }
59+ onClick = { stopCallback } >
60+ < StopIcon className = "fill-red-500" />
61+ </ Button >
62+ </ div >
63+ { /* <ArrowTurnDownLeftIcon className="size-4" /> */ }
64+ </ div >
65+ </ div >
66+ )
67+ }
0 commit comments