Download & Extend

"Create a label" should be off by default, with an opt-in for style plugins

Project:Drupal core
Version:8.x-dev
Component:views_ui.module
Category:task
Priority:normal
Assigned:Unassigned
Status:needs work
Issue tags:BADCamp2012UX, Novice, Usability, VDC

Issue Summary

Problem/Motivation

During the testing at BADcamp we noticed all the participant disabling the "Create a label" checkbox. For tables this makes sense, but for most of the other format settings it doesn't make sense.

When adding a field, “Create a label” is checked by default but we observed most people deselecting this. It’s only mostly useful for table display. (P4, P6, P7, P3).

Proposed resolution

We propose that this default is removed, arguably there are cases where a label is the 80% for instance with a table. We might want to do something more smart there, but in all other cases its likely you don't want it.

Remaining tasks

  • Remove default setting

User interface changes

The checkbox is not checked by default.

API changes

-

AttachmentSizeStatusTest resultOperations
create-a-label-by-default.png7.85 KBIgnored: Check issue status.NoneNone

Comments

#1

Title:By default disable “Create a label” » “Create a label” by default is a confusing default

#2

Title:“Create a label” by default is a confusing default» By default disable “Create a label”

There is currently one way of behavior for checkboxes in views: they all just toggles options in the actual UI.

Let's say when you uncheck the label checkbox and hit save, the actual value of the label internally get's removed (if the user might have entered something before).

When we do now hide the label by default you will never have a proper default value for the label, which would
be probably a problem. It seems to be that we really have to store the actual checkbox as well?

#3

Title:By default disable “Create a label” » “Create a label” by default is a confusing default

-using solutions as issue title.

#4

Status:active» needs review

This patch enables labels by default for tables, but disables them for all other styles.

AttachmentSizeStatusTest resultOperations
drupal-1831674-4.patch33.16 KBIdleFAILED: [[SimpleTest]]: [MySQL] 48,036 pass(es), 20 fail(s), and 5 exception(s).View details | Re-test

#5

Good try to bring the snapshots patch in as part of a UX improvement :)

AttachmentSizeStatusTest resultOperations
drupal-1831674-2.patch1.98 KBIdleFAILED: [[SimpleTest]]: [MySQL] 48,021 pass(es), 17 fail(s), and 2 exception(s).View details | Re-test

#6

Status:needs review» needs work

The last submitted patch, drupal-1831674-2.patch, failed testing.

#7

Status:needs work» needs review

Some of tests used no label, so let's add them.

AttachmentSizeStatusTest resultOperations
drupal-1831674-7.patch4.85 KBTest request sentPASSED: [[SimpleTest]]: [MySQL] 48,007 pass(es).View details
interdiff.txt2.41 KBIgnored: Check issue status.NoneNone

#8

#7: drupal-1831674-7.patch queued for re-testing.

#9

Title:“Create a label” by default is a confusing default» "Create a label" should be off by default, with an opt-in for style plugins
Status:needs review» needs work
Issue tags:+Needs tests

While manually testing this, creating a view with table as the style plugin didn't create a label by default. We should add tests for that, and then fix it.

#10

Just to be sure, did you created a view and choosed table in the wizard or did you created
a view and then switched to table? It feels odd that when you switch to table that the lables are switched then.

#11

I tried both, I didn't expect it to change for a built view, but from the wizard it didn't work and I expected it to.

#12

Assigned to:Anonymous» dawehner

Wait i even remember when i wrote that.

#13

Assigned to:dawehner» Anonymous
Status:needs work» needs review
Issue tags:-Needs tests

The current patch actually disables the feature for tables, see interdiff :)

AttachmentSizeStatusTest resultOperations
drupal-1831674-13.patch9.26 KBIdleFAILED: [[SimpleTest]]: [MySQL] 48,796 pass(es), 28 fail(s), and 0 exception(s).View details | Re-test
interdiff.txt4.64 KBIgnored: Check issue status.NoneNone

#14

Status:needs review» needs work

The last submitted patch, drupal-1831674-13.patch, failed testing.

#15

Status:needs work» needs review

#13: drupal-1831674-13.patch queued for re-testing.

#16

Status:needs review» needs work

The last submitted patch, drupal-1831674-13.patch, failed testing.

#17

Status:needs work» needs review

#13: drupal-1831674-13.patch queued for re-testing.

#18

Status:needs review» needs work

The last submitted patch, drupal-1831674-13.patch, failed testing.

#19

The problem seems to be that by initializing the Style Plugin and querying for defaultFieldLabels() you miss the right configuration of the fields handlers, because they actually uses the override method of handlers. It seems to that we might have to find a better way to initialize the groupby handlers but well this is for sure out of scope of this issue.

#20

Is there a better way to do this? Seems like this might create quite an efficiency boost.

#21

Status:needs work» needs review

Rerolled, let's see how much fails after 4 months.

AttachmentSizeStatusTest resultOperations
drupal-1831674-21.patch8.83 KBIdleFAILED: [[SimpleTest]]: [MySQL] 54,201 pass(es), 42 fail(s), and 27 exception(s).View details | Re-test

#22

Status:needs review» needs work

The last submitted patch, drupal-1831674-21.patch, failed testing.

#23

Could this get another reroll? It would be nice to see this in core.

#24

Issue tags:+Novice

This looks like something anyone could do.

#25

Category:feature request» task

Going to make this a task, since we are doing this for usability purposes. Its not really a feature.

#26

Status:needs work» needs review

Okay lets see how this does.

AttachmentSizeStatusTest resultOperations
drupal-1831674-21-reroll.patch8.83 KBIdleFAILED: [[SimpleTest]]: [MySQL] 55,635 pass(es), 42 fail(s), and 0 exception(s).View details | Re-test

#27

Status:needs review» needs work

The last submitted patch, drupal-1831674-21-reroll.patch, failed testing.

#28

Status:needs work» needs review

#26: drupal-1831674-21-reroll.patch queued for re-testing.

#29

Status:needs review» needs work

The last submitted patch, drupal-1831674-21-reroll.patch, failed testing.