Skip to content

refactor(ui): redesign and modernize poll creator components#2611

Open
xsahil03x wants to merge 5 commits intov10.0.0from
refactor/create-poll-redesign
Open

refactor(ui): redesign and modernize poll creator components#2611
xsahil03x wants to merge 5 commits intov10.0.0from
refactor/create-poll-redesign

Conversation

@xsahil03x
Copy link
Copy Markdown
Member

Description of the pull request

  • 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.

Screenshots / Videos

Before After
Screenshot 2026-04-10 at 13 30 39 simulator_screenshot_8A6A46EE-32DF-4FEB-A0F6-936F258FB925

* 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`.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 10, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 726b8fc4-dec6-4c0d-a0a7-3c729b8983a1

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/create-poll-redesign

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

❌ Patch coverage is 94.16667% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.62%. Comparing base (4428a96) to head (284dac6).

Files with missing lines Patch % Lines
...oll/creator/poll_option_reorderable_list_view.dart 93.47% 6 Missing ⚠️
...chat_flutter/lib/src/theme/poll_creator_theme.dart 42.85% 4 Missing ⚠️
...b/src/poll/creator/stream_poll_creator_dialog.dart 90.32% 3 Missing ⚠️
...b/src/poll/creator/stream_poll_creator_widget.dart 96.29% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant