Skip to content

Polls + Files send impl#255

Merged
gdlbo merged 5 commits intodevelopfrom
polls-impl
Apr 15, 2026
Merged

Polls + Files send impl#255
gdlbo merged 5 commits intodevelopfrom
polls-impl

Conversation

@gdlbo
Copy link
Copy Markdown
Member

@gdlbo gdlbo commented Apr 15, 2026

No description provided.

gdlbo added 5 commits April 14, 2026 22:46
- introduce `PollComposerSheet` and `PollDraft` to support creating and sending polls with options for quiz mode, anonymity, multiple answers, and scheduling
- add document attachment support by implementing `copyUriToTempDocumentPath` and updating `ChatInputBar` to handle file selection
- update `ChatInputBar` and `InputPreviewSection` to display previews for pending document attachments with file size and name metadata
- extend `MessageRepository` and `MessageRemoteDataSource` with `sendPoll` and `sendDocument` functionality using TDLib
- refine `GalleryScreen` and `AttachBotsSection` to include quick action buttons for "File" and "Create poll"
- adjust `SettingsTextField` and `PollSwitchRow` to improve UI consistency in the poll composer and chat creation screens
- enhance `InputBarSendButton` logic to correctly handle the send/record state when files or polls are pending
- add necessary string resources for poll configuration and file attachment labels
- replace `ModalBottomSheet` with a custom `Dialog` implementation to provide better control over drag-to-dismiss behavior and layout
- implement drag-and-drop reordering for poll options using `detectDragGesturesAfterLongPress` and `graphicsLayer` transformations
- add `PollOptionInputRow` component to handle individual option inputs with integrated drag handles and removal actions
- ensure `correctOptionIds` are automatically remapped when poll options are moved to maintain quiz integrity
- enhance the UI with smoother animations for vertical dragging and dismissal
- refine `poll_multiple_choice` string resource by removing the leading bullet point separator
…alization

- update `Poll` and `PollType.Quiz` models to support optional descriptions, multiple correct answers, revoting, and shuffled options
- redesign `PollMessageBubble` with a more modern "Hero" header, detailed metadata pills, and improved option cards with animations
- implement a comprehensive `PollComposerSheet` featuring drag-and-drop reordering, interactive quiz mode settings, and a deadline picker
- add localized strings for poll creation and metadata across multiple languages (pt-rBR, hy, ru-rRU, sk, es, tr, uk, zh-rCN)
- enhance `MessageContentMapper` to handle multiple correct option IDs for quiz-type polls
- improve poll UI feedback with specialized "Correct" and "Wrong" state indicators and animated content transitions
- fix poll closing logic with real-time countdown timers and "results hidden until close" status indicators
…tion

- convert `chats_selected_format` from a static string to a `<plurals>` resource across multiple locales (English, Portuguese, Armenian, Russian, Slovak, Spanish, Ukrainian, and Chinese)
- update `ChatListContent.kt` to use `pluralStringResource` for the selection counter in the UI
- fix character escaping in Ukrainian localization for poll creation labels
- add missing localized strings for poll creation (questions, options, quiz mode, and expiration settings) across multiple languages including pt-BR, hy, ru, sk, es, tr, uk, and zh-CN
@gdlbo gdlbo merged commit 6f1e6dd into develop Apr 15, 2026
1 check passed
@gdlbo gdlbo deleted the polls-impl branch April 15, 2026 14:22
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