This pull request includes several updates to the AnalysisPanel component in app/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx to enhance its functionality and improve code readability. The key changes involve updating imports, refining type definitions, and adding new tooltip functionality to the PivotItem components.
Import Updates:
Added several imports from @fluentui/react to support new functionalities (IPivotItemProps, IRefObject, ITooltipHost, TooltipHost, mergeStyles).
Type Definitions:
Updated the pivotItemDisabledStyle to use React.CSSProperties for better type safety.
Tooltip Functionality:
Introduced tooltip references and a new onRenderItemLink function to render tooltips for disabled PivotItem components, providing additional context to users.
PivotItem Enhancements:
Modified headerButtonProps for PivotItem components to conditionally apply styles and disable states, and integrated tooltips for better user experience.
Minor Code Cleanups:
Added missing React import and removed unnecessary whitespace to improve code readability. [1][2]
This pull request includes several updates to the
AnalysisPanel
component inapp/frontend/src/components/AnalysisPanel/AnalysisPanel.tsx
to enhance its functionality and improve code readability. The key changes involve updating imports, refining type definitions, and adding new tooltip functionality to thePivotItem
components.Import Updates:
@fluentui/react
to support new functionalities (IPivotItemProps
,IRefObject
,ITooltipHost
,TooltipHost
,mergeStyles
).Type Definitions:
pivotItemDisabledStyle
to useReact.CSSProperties
for better type safety.Tooltip Functionality:
onRenderItemLink
function to render tooltips for disabledPivotItem
components, providing additional context to users.PivotItem
Enhancements:headerButtonProps
forPivotItem
components to conditionally apply styles and disable states, and integrated tooltips for better user experience.Minor Code Cleanups:
React
import and removed unnecessary whitespace to improve code readability. [1] [2]