Automattic / Automattic/crowdsignal-forms

Poll Block: add option to view results

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
15
Forks
10
Avg merge
13m
Merged PRs (30d)
1

Description

When you use the Poll Block there is no way to view the results unless you submit the form.

### Steps to reproduce
1. Start a new post/page
2. Add the Poll Block
3. Save and check the page

### What I expected
I expected to see a link to `View Results` before submitting the poll as I see on the actual poll link (https://poll.fm/10642169) or when using the shortcode:

Captura de Tela 2020-11-11 às 12 43 35

This could be an option in the block itself: **show/hide view results** link before submitting it.

### What happened instead

The “View Results” link isn’t there:

Captura de Tela 2020-11-11 às 12 45 13

My test: https://eduardoistesting.blog/2020/10/30/testing-polls/

### Context / Source
#dogfooding

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Poll Block by reproducing the three steps in the issue and compare its behavior with the linked poll and shortcode example. Trace where the block renders its controls and determine how an optional “View Results” link should be exposed. Done means users can show or hide that link before submitting the poll.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.