Closed imanjra closed 3 weeks ago
The recent changes encompass updates to component properties, function parameters, and type definitions across various files. Key modifications include the addition of new properties to the Popout
component, parameter updates in the executeOperator
function, and type changes in the CustomPanelProps
interface. Additionally, button components now support conditional styling based on the variant
prop, and the btn
function in Python has new parameters for enhanced functionality.
File Path | Change Summary |
---|---|
app/packages/components/src/components/Popout/index.tsx |
Added popoutProps to PopoutProps and included it in the Popout function. |
app/packages/operators/src/operators.ts |
Updated executeOperator parameters: p: any to params: unknown , added options?: OperatorExecutorOptions , renamed params to computedParams , and included options in InvocationRequest . |
app/packages/operators/src/useCustomPanelHooks.ts |
Changed CustomPanelProps properties from Function to string , modified executeOperator function call to include a callback object. |
app/packages/operators/src/usePanelEvent.ts |
Updated executeOperator function call to pass options.callback as an object parameter. |
app/packages/spaces/src/components/AddPanelButton.tsx |
Updated Popout component's style to include maxHeight , overflow , and popoutProps properties. |
app/packages/core/src/plugins/SchemaIO/components/Button.tsx |
Added conditional color setting based on variant prop in the Button component. |
app/packages/core/src/plugins/SchemaIO/components/ButtonView.tsx |
Added variant property in BaseButtonView function and updated import statements. |
app/packages/core/src/plugins/SchemaIO/components/IconButtonView.tsx |
Introduced handling for different variant values, added Button component, and adjusted rendering logic. |
fiftyone/operators/types.py |
Updated btn function to include href parameter, expanded variant options, and removed icon_variant parameter. |
In code's vast field, changes bloom, 🌸 New props and types, dispelling gloom. Buttons now with colors bright, Variants guide with shining light. Operators fine-tuned with care, Enhancing functions everywhere. A rabbit hops with joy so clear, For in this code, improvements near. 🐇
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
executeOperator
third param to be optionshref
tobtn
utilSummary by CodeRabbit
New Features
popoutProps
in thePopout
component for enhanced customization.variant
prop.Enhancements
executeOperator
function to support additional options and improved parameter handling.AddPanelButton
with better styling and scrolling capabilities.ButtonView
andIconButtonView
components with newvariant
properties for more flexible UI design.Bug Fixes
CustomPanelProps
to ensure accurate functionality.