Skip to content

feat(ui, localization): redesign poll dialogs as modal bottom sheets#2630

Open
xsahil03x wants to merge 3 commits intov10.0.0from
refactor/poll-remaining-screens
Open

feat(ui, localization): redesign poll dialogs as modal bottom sheets#2630
xsahil03x wants to merge 3 commits intov10.0.0from
refactor/poll-remaining-screens

Conversation

@xsahil03x
Copy link
Copy Markdown
Member

Description of the pull request

Refactored the existing poll dialogs into modal bottom sheets to provide a more modern and integrated user experience.

  • Renamed StreamPollOptionsDialog, StreamPollResultsDialog, StreamPollOptionVotesDialog, and StreamPollCommentsDialog (and their associated helpers/themes) to ...Sheet.
  • Converted these components to use showModalBottomSheet with DraggableScrollableSheet instead of full-screen routes.
  • Redesigned the theme architecture for polls, introducing shared style classes: StreamPollCardStyle, StreamPollQuestionStyle, and StreamPollOptionVotesStyle.
  • Replaced Scaffold and AppBar in poll views with StreamSheetHeader.
  • Added a total vote count footer and "View all" footer actions to poll results.
  • Updated Translations to include new labels for total vote counts, "View all" actions, and pluralized question labels.
  • Migrated StreamPollInteractor to support the new sheet-based navigation and styling.
  • Reworded various English poll-related localizations (e.g., "End Vote" to "End Poll").

Refactored the existing poll dialogs into modal bottom sheets to provide a more modern and integrated user experience.

- Renamed `StreamPollOptionsDialog`, `StreamPollResultsDialog`, `StreamPollOptionVotesDialog`, and `StreamPollCommentsDialog` (and their associated helpers/themes) to `...Sheet`.
- Converted these components to use `showModalBottomSheet` with `DraggableScrollableSheet` instead of full-screen routes.
- Redesigned the theme architecture for polls, introducing shared style classes: `StreamPollCardStyle`, `StreamPollQuestionStyle`, and `StreamPollOptionVotesStyle`.
- Replaced `Scaffold` and `AppBar` in poll views with `StreamSheetHeader`.
- Added a total vote count footer and "View all" footer actions to poll results.
- Updated `Translations` to include new labels for total vote counts, "View all" actions, and pluralized question labels.
- Migrated `StreamPollInteractor` to support the new sheet-based navigation and styling.
- Reworded various English poll-related localizations (e.g., "End Vote" to "End Poll").
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 24, 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: 9e944f70-909e-4d4a-bd25-eea5293997fd

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/poll-remaining-screens

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.

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.

2 participants