Problem/Motivation

Recent change to Layout Builder has left Custom Logo Option without it's path and image size.

Steps to reproduce

- Using Drupal 11 dev line, install standard profile.
- enable Navigation module.
- goto 'Navigation settings' config page (admin/config/user-interface/navigation/settings)
- select 'custom logo'
- attach image to 'choose custom logo'
-save config
- notice: Navigation Logo is Still the 'default drupal logo'

Proposed resolution

Reconnect variable to twig.

Remaining tasks (this issue blocks others):

#3444391: Center small navigation logo on collapsed state
#3436526: Adjust custom navigation logo dimensions on upload branch will have conflicts now.

User interface changes

N/A.

API changes

N/A.

Data model changes

None.

Release notes snippet

Issue fork drupal-3443810

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

SKAUGHT created an issue. See original summary.

ckrina’s picture

Project: Navigation » Drupal core
Version: 1.x-dev » 11.x-dev
Component: Code » navigation.module
skaught’s picture

Assigned: Unassigned » skaught
skaught’s picture

Title: (navigation layout) logo settings are disconnected. » Custom Navigation logo is disconnected from new Layout template.

[]

skaught’s picture

Issue summary: View changes

skaught’s picture

Status: Active » Needs review
skaught’s picture

Issue summary: View changes
skaught’s picture

Issue summary: View changes
smustgrave’s picture

Shouldn't the tests be included with this fix?

skaught’s picture

In general, yes of course! As this break was so late before the MR and has the standing ticket for related tests, this as a direct repair could be seen to given the work now on dev line.

In general, the tests did shift too with moving to layout builder, I don't have a clear base for where to setup some of the testing. 3443556#35 #3443556: Enhance Navigation admin workflow with Managed Tabs..

divya.sejekan’s picture

Need Proper Steps to reproduce and screenshots

skaught’s picture

Issue summary: View changes
Issue tags: -Needs steps to reproduce
StatusFileSize
new119.05 KB
skaught’s picture

Issue summary: View changes
dishakatariya’s picture

StatusFileSize
new93.25 KB
new103.49 KB
new97.71 KB
new75.04 KB

Hi, I have verified and tested the drupal logo issue in our 11.x dev branch. It is working fine now.

Testing steps:
- Using Drupal 11 dev line, install standard profile.
- enable Navigation module.
- goto 'Navigation settings' config page (admin/config/user-interface/navigation/settings)
- select 'custom logo'
- attach image to 'choose custom logo'
-save config
- notice: Navigation Logo is Still the 'default drupal logo'

Testing Results:
Drupal logo is changing now when to the custom logo being uploaded.

Attached Before and After Screenshots as well.

Can be move to RTBC.
RTBC+1

finnsky’s picture

Issue summary: View changes
StatusFileSize
new26.26 KB

we probably need to define this behaviour:

i uploaded small 5X7 image in tugboat.

finnsky’s picture

Status: Needs review » Reviewed & tested by the community

Can be follow up issue i guess.

finnsky’s picture

smustgrave’s picture

I see the test coverage is in a follow up and this is experimental but are we adding fixes without coverage?

skaught’s picture

skaught’s picture

Status: Reviewed & tested by the community » Active
Related issues: +#3444673: Navigation Test names are disjointed.

Have been in communication around #3444673: Navigation Test names are disjointed. and #3443556: Enhance Navigation admin workflow with Managed Tabs.. It is clear that we have the scope to start a new test for this, this way.

skaught’s picture

Assigned: skaught » Unassigned
Status: Active » Needs work
Issue tags: +Needs tests

As I have some other work todo and there is much happening next week, i'll move to needs work so that it may be picked up meanwhile.

I have just added some outlining notes to this WIP in the test page for insights [see testNavigaitonSettingsForm()]. It does not actually test yet (:

ckrina’s picture

Issue tags: +Portland2024

jrperry made their first commit to this issue’s fork.

jrperry’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Thanks for working on this issue! Was previously tagged for tests which are still needed so moving to NW for those.

ckrina’s picture

SKAUGHT changed the visibility of the branch 3443810-custom-nav-logo-disconnect-fix to hidden.

skaught’s picture

Status: Needs work » Needs review
StatusFileSize
new160.85 KB

Tests for each of the 3 general logo handling options. A bit of a shortcut to setup for op3 to preset the config itself and verify the current fid will be ready for #3436526 and it's tests.

browser_output:

plopesc’s picture

Thank you for working on this.

Took a look locally and icon logic works well.

Added some minor comments in the MR.

It would require a review from someone with better knowledge of the HTML structure to confirm that everything is OK.

prashant.c’s picture

Another point I noticed that could confuse users configuring the settings is the lack of clarification that these settings are for the 'Site Logo' and not a specific logo for navigation.

It would be helpful to add a brief description to each option or a general help text to clarify the purpose of these settings.

Thank you.

skaught’s picture

#32, indeed there are some open conversations around this.

#3448729: [meta] Improve the navigation layout page maybe the best issue to point you to.

skaught’s picture

Issue tags: -Needs tests
needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new2.92 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

skaught’s picture

Status: Needs work » Needs review

test are running green again.

plopesc’s picture

Status: Needs review » Reviewed & tested by the community

Removed a couple of unnecessary dependencies from test class.

I think it is safe to mark this as RTBC now.

Thank you for your efforts here!

nod_’s picture

Status: Reviewed & tested by the community » Needs work

Question about the variables available inside the template and comment line length to fix.

skaught’s picture

Status: Needs work » Reviewed & tested by the community

i'll return to RTBC. thanks!

larowlan’s picture

Status: Reviewed & tested by the community » Needs review

Left some questions on the MR - thanks for working on this!

skaught’s picture

Status: Needs review » Reviewed & tested by the community

I'll returning to RTBC again, thanks!

skaught’s picture

Issue summary: View changes
nod_’s picture

Title: Custom Navigation logo is disconnected from new Layout template. » Custom Navigation logo is disconnected from new Layout template

  • nod_ committed 58c748be on 10.4.x
    Issue #3443810 by SKAUGHT, plopesc, DishaKatariya, finnsky, smustgrave,...

  • nod_ committed 85a4d771 on 11.0.x
    Issue #3443810 by SKAUGHT, plopesc, DishaKatariya, finnsky, smustgrave,...

  • nod_ committed f479374e on 11.x
    Issue #3443810 by SKAUGHT, plopesc, DishaKatariya, finnsky, smustgrave,...

nod_’s picture

Version: 11.x-dev » 10.4.x-dev
Status: Reviewed & tested by the community » Fixed

Committed and pushed f479374ee8 to 11.x and 85a4d771c1 to 11.0.x and 58c748be8e to 10.4.x. Thanks!

Status: Fixed » Closed (fixed)

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