- Issue created by @lauriii
- Status changed to Needs work
over 1 year ago 11:09am 3 July 2023 - š®š³India shailja179 India
This feature is not working in other Drupal versions as well. For this we will have to enable the child links in toolbar as well.
- š«š®Finland lauriii Finland
Thanks @shailja179! That is indeed the current behavior. š This issue is to address that bug. Hopefully we can find a way to indicate the active menu trail even when the child links are not in Toolbar.
- Assigned to omkar.podey
- last update
over 1 year ago Custom Commands Failed - @omkarpodey opened merge request.
- last update
over 1 year ago Custom Commands Failed - š®š³India omkar.podey
The toolbar seems to be working as expected (The active trail is maintained through the menu even if we traverse deeper into feild settings) in vertical orientation but not in the horizontal one, they basically have different UI's so i'm not sure if the same behaviour should be expected anyways.
- š®š³India omkar.podey
ToolbarTest.php is just copied over and i used it to debug initially, might delete it completely or convert into an actual test.
- last update
over 1 year ago 29,814 pass, 1 fail - last update
over 1 year ago 29,813 pass, 3 fail - last update
over 1 year ago 29,815 pass, 1 fail - last update
over 1 year ago 29,815 pass, 1 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,815 pass, 2 fail - last update
over 1 year ago 29,816 pass - last update
over 1 year ago 29,816 pass - last update
over 1 year ago 29,817 pass - last update
over 1 year ago 29,817 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:48am 18 July 2023 - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 10:50am 18 July 2023 - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - š®š³India omkar.podey
Still need to create an issue for broken breadcrumb under the
Appearance
tab. - last update
over 1 year ago Build Successful - last update
over 1 year ago 29,828 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:21am 20 July 2023 - Status changed to Needs work
over 1 year ago 10:35am 20 July 2023 - š®š³India Shiv_Sharma
@omkar.podey PR does have 4 unresolved threads please resolve them,
- Status changed to Needs review
over 1 year ago 10:45am 20 July 2023 - š®š³India omkar.podey
I'm unable to log in into gitlab as of now (just keeps redirecting me to the home page, when clicking signIn), hence the unresolved threads, but i have addressed all of it.
- last update
over 1 year ago 29,828 pass - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 5:33am 26 July 2023 - š®š³India omkar.podey
I mostly caused this behaviour so closed š Change in orientation doesn't load collapsible icons until page refresh. Closed: cannot reproduce and start fixing it here.
- last update
over 1 year ago 29,883 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:22am 26 July 2023 - Status changed to Needs work
over 1 year ago 9:27am 26 July 2023 - š«š®Finland lauriii Finland
I'm not sure if I'm doing something wrong, but I tried to take the MR locally and it isn't changing the behavior at all. Wondering if some of the changes broke this for Drupal instances that are not running in a subdirectory?
- š®š³India omkar.podey
That's weird, I am not running drupal in a subdirectory it does seem to be working for me.
- Status changed to Needs review
over 1 year ago 11:53am 26 July 2023 - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - šŗšøUnited States tim.plunkett Philadelphia
Note that in addition to clearing Drupal caches I also ran
sessionStorage.clear();localStorage.clear();
in the browser console while testing this just to be sure. Works for me. Pushed a small clean-up - last update
over 1 year ago 29,883 pass, 1 fail - First commit to issue fork.
- last update
over 1 year ago 29,885 pass, 1 fail - š®š³India rajeshreeputra Pune
Tested this locally, I can see the current active menu trail. Nice work here. š
- Status changed to Needs work
over 1 year ago 2:24pm 27 July 2023 - Assigned to omkar.podey
- last update
over 1 year ago 29,909 pass, 1 fail - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,912 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:02pm 31 July 2023 - Status changed to Needs work
over 1 year ago 9:03pm 31 July 2023 - šŗšøUnited States hooroomoo
The bold and underline indicating the active tab is hard to see in my opinion. I think this could benefit from changing the background color to highlight it as well.
Current MR:
Suggestion of highlighted tab (#f5f5f5 is used in the screenshot for the active tab):
- Assigned to omkar.podey
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,913 pass - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Build Successful - last update
over 1 year ago 29,914 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:06pm 1 August 2023 - last update
over 1 year ago 29,914 pass - š®š³India omkar.podey
i did try to change the highlight colour on the css file but it seemed to show no effect on my local, is there something that i'm missing?
- last update
over 1 year ago 29,948 pass - šŗšøUnited States hooroomoo
#33 It looks like if on Claro, then
claro/css/state/toolbar.menu.pcss.css
is used so the bg color needed to be added there - Assigned to omkar.podey
- Status changed to Needs work
over 1 year ago 7:14am 3 August 2023 - last update
over 1 year ago 29,948 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:43am 3 August 2023 - last update
over 1 year ago 29,948 pass - Status changed to Needs work
over 1 year ago 5:52pm 3 August 2023 - šŗšøUnited States smustgrave
Applied the MR on an Umami install
Went to /en/admin/structure/types/manage/article/fields
But "Content types" doesn't appear to be highlighted.There a step I'm missing?
- š®š³India omkar.podey
Maybe try
- clearing caches first
- restarting local server
- last update
over 1 year ago 29,955 pass - Status changed to Needs review
over 1 year ago 7:41pm 4 August 2023 - Status changed to RTBC
over 1 year ago 12:08am 5 August 2023 - šŗšøUnited States smustgrave
Retested MR 4366 and on admin/structure/types/manage/article/fields I see that the "Content types" link is highlighted as expected
Woo!
- last update
over 1 year ago 29,955 pass - last update
over 1 year ago 29,955 pass - šŗšøUnited States hooroomoo
Uploading static patch for 11.x. Please ignore this and continue further work on MR.
- last update
over 1 year ago 29,960 pass - last update
over 1 year ago 29,960 pass - last update
over 1 year ago 29,960 pass - Status changed to Needs work
over 1 year ago 7:56am 15 August 2023 - Assigned to omkar.podey
- last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - š®š³India omkar.podey
The problem right now is a line in night watch js test
Drupal.toolbar.models.toolbarModel.set('orientation', 'vertical');
should have triggeredDrupal.toolbar.models.toolbarModel.on( 'change:activeTab change:orientation change:isOriented change:isTrayToggleVisible chan
in
core/modules/toolbar/js/toolbar.js
and which should have the toolbar in vertical state but it doesn't. - last update
over 1 year ago 29,969 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 5:31am 17 August 2023 - last update
over 1 year ago Build Successful - Assigned to omkar.podey
- last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago Build Successful - last update
over 1 year ago 29,973 pass - š«š®Finland lauriii Finland
Confirmed with @ckrina that the background change this issue is introducing is acceptable.
- last update
over 1 year ago 29,973 pass - Status changed to Needs work
over 1 year ago 4:30am 18 August 2023 Left a comment suggesting a small change so marking it back to needs work.
- last update
over 1 year ago 30,046 pass - Status changed to Needs review
over 1 year ago 6:12am 18 August 2023 - š«š®Finland lauriii Finland
Thanks for the review @Utkarsh_33! Addressed feedback š
- last update
over 1 year ago 30,046 pass - š®š³India omkar.podey
While reviewing I found a bug when the toolbar is expanded down
Configuration-->Development
the horizontal orientation button disappears and can't be scrolled down to but this can be a separate issue. - last update
over 1 year ago 30,058 pass - š®š³India omkar.podey
I think we should also test
Horizontal->Vertical
and vice-versa that tests, the state is maintained properly after orientation change. - last update
over 1 year ago 30,034 pass, 2 fail - š®š³India omkar.podey
Just a bit concerned about
render()
as we are always calling boththis.renderVertical(); this.renderHorizontal();
but it does seem to work fine and the code is much simpler this way. - Issue was unassigned.
- last update
over 1 year ago 30,058 pass - Status changed to Needs work
over 1 year ago 9:22am 23 August 2023 - š§šŖBelgium wim leers Ghent š§šŖšŖšŗ
- Can we get before vs after screenshots? š For the horizontal orientation as well as the vertical orientation. And in vertical orientation also for a top-level vs sub-level vs sub-sub-level item.
-
+++ b/core/modules/toolbar/js/toolbar.menu.js @@ -14,6 +14,34 @@ + const dataDrupalPath = `${basePath}${path}`.startsWith('/')
This logic exists in two places ā let's extract it into a helper function? š
-
+++ b/core/modules/toolbar/js/toolbar.menu.js @@ -23,7 +51,7 @@ - * @param {jQuery} $item + * @param {*|jQuery} $item
Why this change? (Not yet explained on issue or MR AFAICT.)
-
+++ b/core/modules/toolbar/js/toolbar.menu.js @@ -161,16 +190,37 @@ + const dataDrupalPath = `${basePath}${path}`.startsWith('/') + ? `${basePath}${path}`.substring(1) + : `${basePath}${path}`;
AFAICT the
startsWith
will always be true due to presence of the base path.Shouldn't this be
path.startsWith('/')
instead? š¤
-
+++ b/core/modules/toolbar/js/views/MenuVisualView.js @@ -13,8 +13,20 @@ + /** + * Renders the horizontal toolbar with the right focus. + */ + renderHorizontal() { + if ('drupalToolbarMenu' in $.fn) { + this.$el.children('.toolbar-menu').drupalToolbarMenuHorizontal(); + } },
š¤ The comment mentions "focus", but I don't see anything focus-related here?
-
+++ b/core/modules/toolbar/tests/src/FunctionalJavascript/ToolbarActiveTrailTest.php @@ -0,0 +1,76 @@ + * Tests that the active trail is maintained even when traversed deeper.
š
-
+++ b/core/modules/toolbar/toolbar.module @@ -350,6 +350,14 @@ function toolbar_preprocess_html(&$variables) { + foreach ($links as $link) { + $paths[] = $link->getUrl()->getInternalPath(); + } + $variables['#attached']['drupalSettings']['breadcrumb_paths'] = $paths;
Breadcrumbs can only ever refer to local/internal links! š
- Assigned to omkar.podey
- last update
over 1 year ago 30,058 pass - š®š³India omkar.podey
RE Comment#54 / 4
I think we are majorly concerned with the
basePath
rather thanpath
which comes from a list of internal paths which is always relative I think, @hooroomoo thoughts?.RE Comment#54 / 3 and RE Comment#54 / 5
It's no more the case, based on a previous commit.
- last update
over 1 year ago 30,058 pass 54:27 16:01 Running- šŗšøUnited States hooroomoo
Added screenshots to IS of before and after changes with both vertical and horizontal orientations for top level (/structure), sub level (/structure/types) , and sub sub level (/admin/structure/types/manage/article/fields)
- Status changed to RTBC
over 1 year ago 9:27pm 23 August 2023 - šŗšøUnited States hooroomoo
I believe all the remaining feedback has been addressed or no longer applies. Tested and code looks good to me.
- last update
over 1 year ago 30,059 pass - last update
over 1 year ago 30,057 pass, 1 fail - last update
over 1 year ago 30,057 pass, 1 fail - Status changed to Needs work
over 1 year ago 11:51am 24 August 2023 - š«š®Finland lauriii Finland
Posted feedback regarding caching + how we could handle custom breadcrumb builders more gracefully. Crediting @catch for discussing this in Slack.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Build Successful - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Build Successful - last update
over 1 year ago 30,062 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:28pm 28 August 2023 - last update
over 1 year ago 30,062 pass - Status changed to Needs work
over 1 year ago 4:53pm 28 August 2023 - šŗšøUnited States hooroomoo
It looks like there was a regression somewhere because I am not getting the active tab anymore when I tested locally. I think the tests also need to be updated since it didn't catch the regression.
- šŗšøUnited States tim.plunkett Philadelphia
According to manually testing with git bisect, https://git.drupalcode.org/project/drupal/-/merge_requests/4366/diffs?co... is the offending commit.
Reverting that fixes things, but I'm not sure why @omkar.podey added that.
And as @hooroomoo points out, we're definitely missing test coverage
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,062 pass - Status changed to Needs review
over 1 year ago 8:36am 29 August 2023 - last update
over 1 year ago 30,065 pass - Status changed to RTBC
over 1 year ago 3:58pm 29 August 2023 - šŗšøUnited States hooroomoo
Feedback has been addressed. Removing needs test tag. Looks good to me.
- last update
over 1 year ago 30,065 pass - Status changed to Needs review
over 1 year ago 6:41am 30 August 2023 - š«š®Finland lauriii Finland
One more thread in the MR because we can probably get rid of the breadcrumb dependency with the latest solution š
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,098 pass, 1 fail - last update
over 1 year ago 30,098 pass, 1 fail - last update
over 1 year ago 30,098 pass, 1 fail - last update
over 1 year ago 30,098 pass, 1 fail - last update
over 1 year ago 30,100 pass - last update
over 1 year ago 30,100 pass - last update
over 1 year ago 30,100 pass - Status changed to RTBC
over 1 year ago 6:35pm 30 August 2023 -
lauriii ā
committed 3165269b on 11.x
Issue #3371005 by omkar.podey, lauriii, hooroomoo, tim.plunkett,...
-
lauriii ā
committed 3165269b on 11.x
- Status changed to Fixed
over 1 year ago 6:55pm 30 August 2023 Automatically closed - issue fixed for 2 weeks with no activity.