@@ -6,18 +6,13 @@ import {
66 PersonRegular ,
77 ArrowTurnDownRightRegular ,
88} from "@fluentui/react-icons" ;
9- import { MPlanData } from "../../models" ;
9+ import { MPlanData , PlanDetailsProps } from "../../models" ;
1010import { TaskService } from "../../services/TaskService" ;
1111import { AgentTypeUtils , AgentType } from "../../models/enums" ;
1212import ContentNotFound from "../NotFound/ContentNotFound" ;
1313
14- interface PlanPanelRightProps {
15- planData : any ;
16- loading : boolean ;
17- planApprovalRequest : MPlanData | null ;
18- }
1914
20- const PlanPanelRight : React . FC < PlanPanelRightProps > = ( {
15+ const PlanPanelRight : React . FC < PlanDetailsProps > = ( {
2116 planData,
2217 loading,
2318 planApprovalRequest
@@ -62,9 +57,9 @@ const PlanPanelRight: React.FC<PlanPanelRightProps> = ({
6257
6358 // Get the icon name from the utility
6459 const iconName = AgentTypeUtils . getAgentIcon ( agentType ) ;
65-
60+
6661 // Return the appropriate icon component or fallback to PersonRegular
67- return < PersonRegular style = { {
62+ return < PersonRegular style = { {
6863 color : 'var(--colorPaletteBlueForeground2)' ,
6964 fontSize : '16px'
7065 } } /> ;
@@ -83,11 +78,11 @@ const PlanPanelRight: React.FC<PlanPanelRightProps> = ({
8378 if ( ! planApprovalRequest . steps || planApprovalRequest . steps . length === 0 ) return [ ] ;
8479
8580 const result : Array < { type : 'heading' | 'substep' ; text : string } > = [ ] ;
86-
81+
8782 planApprovalRequest . steps . forEach ( step => {
8883 const action = step . cleanAction || step . action || '' ;
8984 const trimmedAction = action . trim ( ) ;
90-
85+
9186 if ( trimmedAction ) {
9287 // Check if the step ends with a colon
9388 if ( trimmedAction . endsWith ( ':' ) ) {
@@ -117,8 +112,8 @@ const PlanPanelRight: React.FC<PlanPanelRightProps> = ({
117112 display : 'flex' ,
118113 flexDirection : 'column'
119114 } } >
120- < Body1 style = { {
121- marginBottom : '16px' ,
115+ < Body1 style = { {
116+ marginBottom : '16px' ,
122117 flexShrink : 0 ,
123118 fontSize : '14px' ,
124119 fontWeight : 600 ,
@@ -186,7 +181,7 @@ const PlanPanelRight: React.FC<PlanPanelRightProps> = ({
186181 flex : 1 ,
187182 overflow : 'auto'
188183 } } >
189- < Body1 style = { {
184+ < Body1 style = { {
190185 marginBottom : '16px' ,
191186 fontSize : '14px' ,
192187 fontWeight : 600 ,
@@ -227,11 +222,11 @@ const PlanPanelRight: React.FC<PlanPanelRightProps> = ({
227222 } } >
228223 { getAgentIcon ( agentName ) }
229224 </ div >
230-
225+
231226 { /* Agent Info - just name */ }
232227 < div style = { { flex : 1 } } >
233- < Body1 style = { {
234- fontWeight : 600 ,
228+ < Body1 style = { {
229+ fontWeight : 600 ,
235230 fontSize : '14px' ,
236231 color : 'var(--colorNeutralForeground1)'
237232 } } >
0 commit comments