Brought up by @gábor-hojtsy in https://drupal.slack.com/archives/CJT807H7T/p1616581269020400

Olivero doesn't have any type of visual label indicating that the comment form is a comment form. Bartik does have this.

Comments

mherchel created an issue. See original summary.

gábor hojtsy’s picture

Thanks! I thought Olivero may actually be doing something to actively undo this title? Or just does not contain it in the template?

mherchel’s picture

🤷‍♂️ No clue without investigating. Either way, we need to do what Bartik does.

gauravvvv’s picture

StatusFileSize
new49.17 KB

Hi @mherchel, Now we're using the logic when we have comments then it will print the label, other wise it will not print it.

{% if comments and not label_hidden %}
    {{ title_prefix }}
    <h2{{ title_attributes.addClass('comments__title') }}>{{ label }} <span class="comments__count">{{ comment_count }}</span></h2>
    {{ title_suffix }}
  {% endif %}
gauravvvv’s picture

StatusFileSize
new669 bytes
new45.29 KB

I have removed the {{ comments }} the condition. Now comment label is visible without any comments. Added a patch and after patch screenshot for ref.

gauravvvv’s picture

Status: Active » Needs review
abhijith s’s picture

StatusFileSize
new17.76 KB
new12.57 KB

Applied patch #5 and it works fine.

Before patch;
before

After patch:
after

RTBC +1

gábor hojtsy’s picture

Status: Needs review » Needs work

Question is do we want the same title and the 0 counter or the different "Add new comment" title? How does the same form look like when there are comments already? (In Bartik and Olviero?)

vikashsoni’s picture

StatusFileSize
new204.38 KB
new193.85 KB

Applied patch # 5 working but showing only comment label not Add new comment lable sharing screenshot....

mherchel’s picture

Pretty sure we can just copy over the comment field template from Classy. See https://git.drupalcode.org/project/drupal/-/blob/9.2.x/core/themes/barti...

monojithalder’s picture

StatusFileSize
new821 bytes
new650 bytes

New Patch updated

monojithalder’s picture

Status: Needs work » Needs review

New Patch updated

Status: Needs review » Needs work

The last submitted patch, 11: 3205597-11.patch, failed testing. View results

prabhat burnwal’s picture

StatusFileSize
new669 bytes
new669 bytes
new669 bytes
prabhat burnwal’s picture

kiran.kadam911’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new363.22 KB
new359.32 KB

Patch #14 applied successfuly and It's working fine.

Before patch SS:

After patch SS:

RTBC +1

Thanks!

lauriii’s picture

Issue tags: +Usability

Based on #8, we probably should review this in one of the UX meetings.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

Moving to needs review based on #17.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

rinku jacob 13’s picture

StatusFileSize
new115.14 KB
new128.3 KB

Patch #14 applied successfuly.

chetanbharambe’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new275.81 KB
new249.59 KB

Verified and tested patch #14.
Patch applied successfully and looks good to me.

Testing Steps:
# Goto: admin/structure/types/manage/article/fields
# Click on Add field
# Select a Comment from "Add a new field"
# Mention the Label name
# Add into link field
# Save it.
# Create a Article content
# Save it
# User is not able to see "Comments" title on view page.

Expected Results:
# User should see "Comments" title on view page.

Actual Results:
# User is not able to see the "Comments" title on view page.

Looks good to me.
Can be a move to RTBC.

lauriii’s picture

Status: Reviewed & tested by the community » Needs review

Based on #17, we still need to address #8.

Agnesh Tank’s picture

StatusFileSize
new1.15 MB
new1.03 MB

Verified and tested patch #14.
Patch applied successfully and looks good

Testing Steps:


  1. Goto: admin/structure/types/manage/article/fields

  2. Click on Add field

  3. Select a Comment from "Add a new field"

  4. Mention the Label name

  5. Add into link field
 & Save it.

  6. Create a Article content
 & Save it

  7. verify the user is not able to see "Comments" title on view page.

Expected Results:
User should see "Comments" title on view page.
Actual Results:

User is not able to see the "Comments" title on view page.

This can be a move to RTBC.

marcusvsouza’s picture

I did a re-roll of the patch in comment #14, please revise!

andypost’s picture

Related issues: +#2546116: Allow a sitebuilder to change the Comment form heading

The related issue could improve UX but it still needs usability review

roshanibhangale’s picture

Assigned: Unassigned » roshanibhangale
roshanibhangale’s picture

StatusFileSize
new144.67 KB
new148.85 KB

Verified and tested patch #24 on the drupal 9.3.x-dev version. Patch applied successfully.

Testing Steps:

  • Goto admin/structure/types/manage/article/fields
  • Click on Add field
  • Select a Comment from "Add a new field" and Mention the Label name
  • Add into link field & Save it.
  • Create a Article content & Save it
  • Verify the user is able to see "Comments" title on page.

Expected Result:

  • User should see "Comments" title on page.

Actual Results:

  • User is able to see "Comments" title on page.

Please refer attached screenshot.
This is can be move to RTBC.

roshanibhangale’s picture

Status: Needs review » Reviewed & tested by the community
roshanibhangale’s picture

Assigned: roshanibhangale » Unassigned
mherchel’s picture

Status: Reviewed & tested by the community » Needs work

This is not passing tests, so should not be RTBC

djsagar’s picture

Status: Needs work » Needs review
StatusFileSize
new718 bytes

Rolling up patch.

mherchel’s picture

Priority: Normal » Minor
mherchel’s picture

It looks like we have a test that tests that the heading is not there!

[0;31m✖[0m Testing if element [0;33m<h2.comments__title>[0m is not present in 5000ms - expected [0;32m"is not present"[0m but got: [0;31m"present"[0m [0;90m(5127ms)[0m
[0;90m    at Object.Article without comments should not display count (/var/www/html/core/tests/Drupal/Nightwatch/Tests/Olivero/oliveroCommentTest.js:31:19)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)[0m 
mherchel’s picture

StatusFileSize
new1.57 KB
kiran.kadam911’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new381.95 KB
new140.39 KB

Patch applied successfully. Moving this to RTBC.

Before patch SS:

After patch SS:

Thanks!

  • catch committed 7b8ebde on 9.3.x
    Issue #3205597 by Prabhat Burnwal, mherchel, Gauravmahlawat,...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed 7b8ebde and pushed to 9.3.x. Thanks!

Note I've removed some issue credit where manual testing was done on similar patches - once something has been manually tested with screenshots, it doesn't need doing so again on the same issue unless the approach radically changes.

Status: Fixed » Closed (fixed)

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