Update the admin poll view

Created on 17 October 2024, 4 months ago

Problem/Motivation

I've been comparing the poll overview with the Drupal core view and there are a few things that are not logical or could be improved. Since it's a view we can bundle a few things together.

Steps to reproduce

Compare the poll view with the core node view

Proposed resolution

Button label:
Change "Add a poll" to "Add poll"

Filter labels:
Published -> Published status
Active -> Voting active
Change "Apply" to "Filter"

Filter options:
Change published "Yes/no" to "Published/Unpublished"
Change active "Yes/no" to "Active/Inactive"

New filter:
Language (only show when content translation for poll is enabled)

View headers:
Add author
Published -> Status

View data:
Add VBO
Change published "Yes/no" to "Published/Unpublished"
Change active "Yes/no" to "Active/Inactive"
Change Allow anonymous votes "On/Off" to "Yes/No"
Change created field to updated field
Move total votes to the second position after the question
Add "Language" when content translation is enabled as last option (before the operations)

Remaining tasks

Update the view and export into the default config
Update any failing tests because of the changes

User interface changes

The poll admin view is changed to be more in line with core.

API changes

N/A

Data model changes

N/A

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024