Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Polls Widget on ZT. #1551

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Commits on Nov 4, 2024

  1. widget: Add process_poll_widget function.

    Added process_poll_widget function to process submessages
    containing a poll widget. Returns the question of the poll
    along with options and their voters in a dict.
    rsashank committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    827ef2c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    af39cee View commit details
    Browse the repository at this point in the history
  3. keys: Add SHOW_POLL_VOTES hotkey.

    SHOW_POLL_VOTES : 'v' to check votes for a given poll.
    rsashank committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    17d3ade View commit details
    Browse the repository at this point in the history
  4. views: Add PollResultsView class.

    Takes poll_question and options as an input and displays
    voters for each option.
    rsashank committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    3b29642 View commit details
    Browse the repository at this point in the history
  5. core: Add show_poll_vote method to Controller.

    Creates an instance of PollResultsView class and shows the popup.
    rsashank committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    990118a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    78fd5df View commit details
    Browse the repository at this point in the history
  7. messages: Update poll_question with a default text if empty.

    This prevents an empty-title popup in the Poll Results view.
    rsashank committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    9d75f50 View commit details
    Browse the repository at this point in the history