refactor(ui): redesign and modernize poll creator components#2611
refactor(ui): redesign and modernize poll creator components#2611
Conversation
* Replace `PollSwitchListTile` and `PollSwitchTextField` with `PollConfigOption` for a card-style configuration UI. * Redesign `PollOptionListItem` to support both existing options and a dedicated "add option" button variant. * Integrate `StreamStepper` for managing maximum votes per person. * Replace custom `StreamPollTextField` with the standard `StreamTextInput` from `stream_core_flutter`. * Update `StreamPollCreatorThemeData` to use modernized sub-styles (`StreamPollConfigOptionStyle`, `StreamButtonThemeStyle`, and `StreamTextInputStyle`). * Improve poll option validation logic to handle duplicates and empty states more effectively. * Refresh `AlertDialog` styles within the poll creator to align with the new design language. * Update tests to reflect UI component changes and new finding logic. Note: Temporary dependency path update for `stream_core_flutter` in `melos.yaml` and `pubspec.yaml`.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v10.0.0 #2611 +/- ##
===========================================
+ Coverage 65.54% 65.62% +0.08%
===========================================
Files 427 426 -1
Lines 26274 26070 -204
===========================================
- Hits 17221 17109 -112
+ Misses 9053 8961 -92 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Description of the pull request
PollSwitchListTileandPollSwitchTextFieldwithPollConfigOptionfor a card-style configuration UI.PollOptionListItemto support both existing options and a dedicated "add option" button variant.StreamStepperfor managing maximum votes per person.StreamPollTextFieldwith the standardStreamTextInputfromstream_core_flutter.StreamPollCreatorThemeDatato use modernized sub-styles (StreamPollConfigOptionStyle,StreamButtonThemeStyle, andStreamTextInputStyle).AlertDialogstyles within the poll creator to align with the new design language.Screenshots / Videos