Closed soulcramer closed 2 weeks ago
@coderabbitai summary
The updates primarily involve replacing the SelectTextField
component with the Dropdown
component across various Kotlin files. This change impacts the way dropdown functionalities are implemented, enhancing UI elements and encapsulating new features like tappable dropdown menus. Several properties and parameters were also adjusted, such as the removal of onValueChange
and readOnly
.
Files Affected | Change Summary |
---|---|
catalog/.../BottomSheetConfigurator.kt , catalog/.../ButtonsConfigurator.kt , |
Replaced SelectTextField with Dropdown , removed onValueChange and readOnly properties. |
catalog/.../IconButtonsConfigurator.kt , catalog/.../IconToggleButtonsConfigurator.kt , |
Replaced SelectTextField with Dropdown , removed onValueChange parameters. |
catalog/.../popover/PopoverConfigurator.kt , catalog/.../progressbar/ProgressbarConfigurator.kt |
Replaced SelectTextField with Dropdown , removed onValueChange and readOnly properties. |
catalog/.../progresstracker/ProgressTrackerConfigurator.kt , catalog/.../slider/SliderConfigurator.kt |
Replaced SelectTextField with Dropdown , modified relevant parameters. |
catalog/.../tabs/TabsConfigurator.kt , catalog/.../text/TextLinkConfigurator.kt |
Replaced SelectTextField with Dropdown , removed onValueChange and readOnly properties, adjusted label property. |
catalog/.../textfields/ComboBoxConfigurator.kt |
Added @Suppress("DEPRECATION") before SelectTextField declaration in ComboBoxSample function. |
catalog/.../toggles/CheckboxConfigurator.kt , catalog/.../toggles/RadioButtonConfigurator.kt |
Replaced SelectTextField with Dropdown , removing onValueChange and adjusting properties where relevant. |
catalog/.../SwitchConfigurator.kt |
Replaced SelectTextField with Dropdown , affecting UI elements related to switch samples. |
catalog/.../themes/ThemePicker.kt |
Replaced SelectTextField with Dropdown , removed readOnly and onValueChange . |
spark-screenshot-testing/.../TextFieldDocScreenshot.kt |
Added ExperimentalSparkApi import, replaced SelectTextField with Dropdown , and updated function calls accordingly. |
spark/.../menu/DropdownMenu.kt |
Added DropdownMenuGroupItem and SectionHeadline composable functions; updated DropdownMenuItemPreview with changes. |
spark/.../textfields/AddonScope.kt |
Removed enabled parameter from SparkSelectTrailingIcon , retaining only expanded parameter. |
spark/.../textfields/Dropdown.kt |
Renamed SelectTextField to Dropdown , deprecated old component, introduced ExposedDropdownMenuBox , DropdownMenu components. |
Objective | Addressed | Explanation |
---|---|---|
#1161: Provide tappable dropdown version | โ |
[!TIP]
Early access features: enabled
We are currently testing the following features in early access: - **OpenAI `gpt-4o` model for code reviews and chat**: OpenAI claims that this model is better at understanding and generating code than the previous models. We seek your feedback over the next few weeks before making it generally available. Note: - You can enable or disable early access features from the CodeRabbit UI or by updating the CodeRabbit configuration file. - Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide feedback and report issues. - OSS projects are currently opted into early access features by default.
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?
@coderabbitai review
@spark-ui-bot spotless
๐จ UI regression detected! Checkout the paparazzi-delta artifact. If these changes are expected, you can either:
gradlew cleanRecordPaparazziRelease
and commit the new golden images@spark-ui-bot paparazzi golden images
in this PR@spark-ui-bot paparazzi golden images
๐ Changes
Wrap a Dropdown inside a Box to catch the pointer inputs and make the tap ripple nice with the TextField size.
๐ค Context
Allow for cases where items shown inside a Dropdown menu won't fit and need a larger display like a BottomSheet or another screen. This will avoid the Textfield from taking the focus.
Closes #1161
โ Checklist
Summary by CodeRabbit
New Features
SelectTextField
withDropdown
across various configurators for a more streamlined and interactive UI.Refactor
onValueChange
andreadOnly
properties fromDropdown
.Deprecation
SelectTextField
component in favor of the newDropdown
component.Enhancements
ExposedDropdownMenuBox
andDropdownMenu
components for enhanced dropdown functionality.Tests
SelectTextField
toDropdown
.