I've created an initial mockup of how I see a "Discussion nudge" system implemented in drupal.org issue queue. This is by no means a final mockukp, nor has anything been decided about if/how/when it is implemented.

The general idea is that a as-yet-undetermined groups of Drupal.org user will have the ability to post "nudges" in issue queue discussions when necessary. These "nudges" will be pre-written and generic in nature and serve as a reminder of the Code of Conduct, and our Values and Principles.

The goal of this mockup is to encourage discussion about its possible implementation.

Mockup 1

Initial mockup

Mockup 2 (token-based nudges)

Token-based nudges mockup

Summary of comments (as of Oct 11, 2020):

  • Suggestion that nudges be visually distinct from other comments.
  • Suggestion that nudges posted anonymously not allowed to be customized.
  • Suggestion that custom text only be allowed before or after the standard nudge text.
  • Suggestion that nudges be added via a token.

Related issues:

Comments

ultimike created an issue. See original summary.

ultimike’s picture

ultimike’s picture

Some questions/options to consider:

  • Should the nudges be editable?
  • If a nudge is added, should other text before/after the nudge be allowed?
ultimike’s picture

Issue summary: View changes
jrockowitz’s picture

My experience with "nudges" is that they should not be editable but allow text to be added before and after the "nudge."

Visually a "nudge" should standout. Below is example of the only nudge that I am currently using the Webform issue queue.

The Webform module's issue queue is for bugs, feature requests, and planning. Please post general support questions to Drupal Answers. You can also ask questions or help answer questions on the #webform channel on Drupal Slack.

I also include this "nudge" on the Webform's module create an issue page.

Here is the list of all the Webform nudges.

Maybe a "nudge" could be inserted using a token. ([nudge: help], [nudge: inclusion], etc...)

volkswagenchick’s picture

I like @jrockowitz suggestion for the nudges to visually stand out. This will bring awareness around certain behaviors and perhaps illicit good behavior through example.

Nudges should be editable, but only when posted by a user and not anonymously. I think if posted from a shared account, the nudges should always read the same.

hussainweb’s picture

+1 to @jrockowitz and @volkswagenchick's suggestion of a visually distinguishable nudge. I would go as far as to say that if the nudges can be posted only by a subset of users (such as maintainers), the nudges should appear separate in the comment flow (similar to how we have automated issue transitions right now).

For nudges to not be editable, they have to be minimal and generic and they should mostly point to resources rather than trying to say a mouthful. I am leaning towards having them uneditable; editing opens up a can of worms around how much deviation should be allowed from the original nudge text and if it starts becoming unhelpful to everyone involved, especially to whom we intend to help.

Further, I would want the ability to select multiple nudges. For example, a nudge can cater to both a cultural difference to respond to a personal attack. Someone able to create a nudge will select all that apply so that there is only one message that goes out (which would not escalate the situation as much as multiple nudges), and all the relevant links are included.

Lastly, while I prefer nudges to not be editable, I would like a field to describe the nudge with an example. For example, if a user selects "Personal attack", they could also write quote from the offender's text to describe why it is a personal attack.

ultimike’s picture

Issue summary: View changes
ultimike’s picture

Thanks to all for the comments so far.

@hussainweb: please see #3174958: Determine access to nudge templates for the discussion about who will be able to post nudges.

I think the idea of selecting multiple nudges is interesting and worthy of additional discussion.

thanks,
-mike

ultimike’s picture

Issue summary: View changes
StatusFileSize
new39.87 KB
ultimike’s picture

volkswagenchick’s picture

ultimike’s picture

In talking with @AmyJune about what nudges should look like (see example above from a Webform nudge) - it probably makes sense to have the nudge HTML require the "Full HTML" text format so that they can't be spoofed. Then again, if/when we implement them using tokens, it may be irrelevant.

ultimike’s picture

I was thinking - do we want to add something like a "request nudge" button so that those who don't have permission to post nudges can request one? Maybe the result of this is an automated posting to an issue that all "nudgers" are following?

volkswagenchick’s picture

StatusFileSize
new315.66 KB

As per CWG slack conversation

Transcript from CWG internal slack:

ultimike
I think we’re close on the 5 initial nudges.
We are looking for a designer to help.
Once we finalize the nudges and design, we’ll do a blog post to announce the (manual) pilot program.

Neil Drumm
We can probably keep it simple for design. Nudges shouldn’t have much more visual importance than the (productive parts) of the discussion.

Donna Bungard
What about an icon like this to go in a box as shown.
[file attached]

aburrows
maybe a druaplicon

volkswagenchick’s picture

Adding attributions to those who contributed.

volkswagenchick’s picture

Issue tags: +design

Tagging for design

volkswagenchick’s picture

Issue tags: +Europe2020
ultimike’s picture

StatusFileSize
new1.71 KB

Below are three examples that I've come up with (disclaimer: I'm not a designer) of how the nudges could potentially appear in the issue queue.

The first design is based on similar "nudges" from the Webform module (including the "hand wave" icon).

All three designs below utilize the "hand wave" icon - perhaps the Druplicon (or something else) would be better?

Nudge output sample 1

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

Nudge output sample 2

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

Nudge output sample 3

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

volkswagenchick’s picture

Thanks @ultimike for these samples.

Initial feedback.

  • Links should be underlined. The blue on lt green does not meet color contrast standards for accessibility. (3.82:1 ratio).
  • I think the background should be free of images for accessibility as well.

I think the Druplicon will be an appropriate image.

ultimike’s picture

During our weekly call today, we decided:

  1. We like the dark text on light green background.
  2. We need to underline the links and make the link text darker (#08447a).
  3. We will keep the hand-wave icon, but make it a little bit bigger.
  4. We will use an .svg version of the hand-wave icon.

Once we decide on the final template, @drumm will move the necessary styles into the drupal.org theme.

-mike

ultimike’s picture

I've gone ahead and purchased the .svg version of the hand-wave icon (attached as an .svg.txt file) and have created a new mockup based on the previous comment:

Nudge output sample 4

Waving hand icon

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article about not feigning surprise.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

ultimike’s picture

Based on advice from @drumm during today's meeting, we'll lose the border and rounded corners:

Nudge output sample 5

Waving hand icon

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article about not feigning surprise.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

ultimike’s picture

The "nudge output sample 5" template was agreed upon during today's meeting. @ulitmike will pull out the relevant CSS into a separate file for @drumm to do what he needs to do with it.

-mike

ultimike’s picture

Repeat of "Nudge output sample 5" with styles not inline.

.nudge { margin: 2rem; padding: 1rem; display:flex; background-color: #d4efcc; } .nudge a { color: #08447a; text-decoration: underline; } .nudge-icon { flex: 0 0 auto; width: calc(70px + 1rem); }
Waving hand icon

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article about not feigning surprise.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

<style>
.nudge {
  margin: 2rem; 
  padding: 1rem; 
  display:flex; 
  background-color: #d4efcc;
}

.nudge a {
  color: #08447a; 
  text-decoration: underline;
}

.nudge-icon {
  flex: 0 0 auto;
  width: calc(70px + 1rem);
}
</style>
drumm’s picture

This is now deployed and looks like:

This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.

For more information, please refer to Drupal’s Values and Principles #3 of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or this article about not feigning surprise.

Principle #9 can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions. By being helpful, you encourage people to accept feedback and act on it.

This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit the meta issue for this project.

With code:

<div class="nudge"><p>This discussion appears to discourage contribution from some participants by assuming a level of education or exposure to information. This can discourage folks that are new to a conversation from asking for help or getting involved. Consider providing the new contributor with links to help them learn the topic or concept.</p>
<p>For more information, please refer to <a href="https://www.drupal.org/about/values-and-principles#foster-a-learning-environment">Drupal’s Values and Principles #3</a> of fostering a learning environment: long-term contributors should be role models by admitting their own shortcomings and mistakes, being vulnerable, and by giving others the same respect that was once given to them or <a  href="https://jvns.ca/blog/2017/04/27/no-feigning-surprise">this article about not feigning surprise</a>.</p>
<p><a href="https://www.drupal.org/about/values-and-principles#be-constructively-honest-and-relentlessly-optimistic">Principle #9</a> can also be useful here: be constructively honest, and relentlessly optimistic. You can be optimistic and supportive by giving suggestions for how to improve their contributions.  By being helpful, you encourage people to accept feedback and act on it.</p>
<p>This comment is provided as a service (currently being tested) of the Drupal Community Health Team as part of a project to encourage all participants to engage in positive discourse. For more information, please visit <a  href="https://www.drupal.org/project/drupal_cwg/issues/3129687">the meta issue for this project</a>.</p></div>

This made a little incremental progress on #3080422: Links inside surrounding text fail WCAG Use-of-Color in Bluecheese theme, now all help and status messages underline links instead of bolding them. I also made some small changes to the colors and margins to align the nudge styling with other messages & help in the theme.

drumm’s picture

(I edited #29 to use the regular filtered HTML text format instead of full HTML. Inline styles and one-off style tags always cause problems in the long run, and this conflicted right away.)

volkswagenchick’s picture

gdemet’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.