Skip to content
This repository has been archived by the owner on Jul 1, 2022. It is now read-only.

Issue 846 Add Breadcrumbs component #935

Merged
merged 21 commits into from Feb 7, 2018
Merged

Issue 846 Add Breadcrumbs component #935

merged 21 commits into from Feb 7, 2018

Conversation

anprok
Copy link
Contributor

@anprok anprok commented Feb 1, 2018

Make sure these boxes are checked before asking for review of your pull request - thank you!

General checks

  • All coding styles are fulfilled and there are no any issues reported by CodeSniffer CI.
    CI code sniffer errors
  • All tests are running and there are no failed tests reported by CI.
    Behat test results
  • Documentation has been updated according to PR changes.
  • Steps for review have been provided according to PR changes.
    Steps for review
  • Make sure you've provided all necessary hook_update_N to support upgrade path.
  • Make sure your git email is associated with account on drupal.org, otherwise you won't get commits there.
    drupal.org email
  • If you would like to get credits on drupal.org, check documentation.

Thank you for your contribution!
#846

Steps for review

  • login as admin
  • open any page, for example programs/health-and-fitness/weight-loss/lose-win-weight-loss-program/class-times?location=1
  • see breadcrumb line under header menu
  • see in breadcrumb missing part without own page - programs , lose-win-weight-loss-program
  • switch to mobile - breadcrumb is missing

@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 1, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 2, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 2, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 2, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 2, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 2, 2018
@ddrozdik ddrozdik added Type: Feature Completely new functionality. PR: Needs Review Needs someone review ( code ) PR: Needs Testing Manual testing is needed labels Feb 2, 2018
@ddrozdik ddrozdik added this to the Version 1.8 milestone Feb 2, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 5, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 5, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 5, 2018
@ymcatwincities ymcatwincities deleted a comment from anprok Feb 5, 2018
@ddrozdik
Copy link
Contributor

ddrozdik commented Feb 5, 2018

I do not like the implementation via paragraph. In 90-95% all pages should have breadcrumbs enabled by default. Using paragraph requires adding it all the time manually. This is a lot of work if you need to create 1000 pages. We do not need a new paragraph in the list of paragraphs.
For example, YMCA of Greater TwinCities, YMCA of Long Island and YMCA of Metropolitan Dallas uses breadcrumbs almost on each page.

I think what we need here:

  • add easy_breadcrumb module

  • add a region to openy_roze to support breadcrumbs

  • add breadcrumbs block to the region
    block layout site-install 2018-02-05 14-39-13

  • add styles to breadcrumbs. See examples:
    news site-install 2018-02-05 14-36-10
    about the ymca site-install 2018-02-05 14-35-02

  • add a fix for this issue Breadcrumbs component #846 (comment)

  • add Behat tests, to check breadcrumbs are available on the page

  • add documentation where to find breadcrumbs and how to configure in case you want to hide them from specific pages.

@ddrozdik ddrozdik added PR: Needs Work Unfinished task. Issues still there and removed PR: Needs Review Needs someone review ( code ) labels Feb 5, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@AlexNetman AlexNetman added PR: Tested Manually tested. Green light for merging and removed PR: Needs Testing Manual testing is needed labels Feb 6, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 6, 2018
@@ -145,9 +145,6 @@
"drupal/entity_embed": {
"2511404 - Image entities/fields embedded using Entity Embed cannot be linked in CKEditor": "https://www.drupal.org/files/issues/entity_embed_links-2511404-31.patch"
},
"drupal/datalayer": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this patch removed?

Copy link
Contributor Author

@anprok anprok Feb 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This patch already added to the latest version of datalayer module https://www.drupal.org/node/2857270

drupal-org.make Outdated
@@ -67,6 +67,7 @@ projects[views_field_formatter] = 1.5
projects[lndr] = 1.11
projects[crop] = 1.3
projects[focal_point] = 1.0-beta5
projects[east_breadcrumb] = 1.6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

incorrect name of the module.

@@ -126,7 +126,11 @@

{{ page.header }}

{{ page.breadcrumb }}
<div class="breadcrumbs">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should not print region wrappers in case there is no content inside. I would recommend you move these wrappers into block template. You can find an example in the classy theme from the core.

@ddrozdik
Copy link
Contributor

ddrozdik commented Feb 6, 2018

Please update config to enable following settings by default:
easy breadcrumb site-install 2018-02-06 16-58-10

@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@ymcatwincities ymcatwincities deleted a comment from gundevel Feb 7, 2018
@gundevel
Copy link
Collaborator

gundevel commented Feb 7, 2018

Build comment file:

Environment Link
Fresh OpenY installation http://ci.openymca.org/build280
Upgraded(upgrade path) installation http://upgrade.openy-dev.ffwua.com/build280
Installation process http://install.openy-dev.ffwua.com/build280/install.php

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://ci.openymca.org:8080/job/PR_BUILDER_COMPOSER/280/

@gundevel
Copy link
Collaborator

gundevel commented Feb 7, 2018

Acessibility Sniffer: front page checking WCAG2AA http://ci.openymca.org/build280/frontWCAG2AAhtmlcs.txt
Acessibility Sniffer: join page checking WCAG2AA http://ci.openymca.org/build280/joinWCAG2AAhtmlcs.txt
Acessibility Sniffer: locations page checking WCAG2AA http://ci.openymca.org/build280/locationsWCAG2AAhtmlcs.txt
Acessibility Sniffer: schedules page checking WCAG2AA http://ci.openymca.org/build280/schedulesWCAG2AAhtmlcs.txt
Acessibility Sniffer: blog page checking WCAG2AA http://ci.openymca.org/build280/blogWCAG2AAhtmlcs.txt

@gundevel
Copy link
Collaborator

gundevel commented Feb 7, 2018

@ddrozdik ddrozdik added PR: Code Reviewed Code reviewed. Ready for QA and removed PR: Needs Work Unfinished task. Issues still there labels Feb 7, 2018
@ddrozdik ddrozdik merged commit eea6daf into ymcatwincities:8.x-1.x Feb 7, 2018
@anprok anprok deleted the issue-846 branch August 27, 2018 15:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR: Code Reviewed Code reviewed. Ready for QA PR: Tested Manually tested. Green light for merging Type: Feature Completely new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants