Problem/Motivation

Follow up issue after #3563965: Switch from custom Varbase Dashboard icon to the Dashboard block icon, which was messing
When upgrading Varbase or enabling the Dashboard and Navigation modules, the Dashboard Navigation block is not automatically added to the Navigation sidebar layout.

This results in:

  • The Dashboard feature being enabled
  • But no visible Dashboard entry in the Navigation sidebar
  • Manual intervention required to place the block

This causes an inconsistent admin experience and breaks the expected default behavior.

Proposed resolution

  • Checks that both navigation and dashboard modules are enabled
  • Loads the navigation.block_layout configuration
  • Verifies that the navigation_dashboard block is not already present
  • Automatically adds the Dashboard Navigation block to the Navigation sidebar layout
  • Ensures the update is safe, idempotent, and does not duplicate blocks

An update hook which adds the navigation_dashboard block to the Navigation layout only when missing, using a generated UUID and preserving existing layout sections.

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release varbase-10.1.1, varbase_dashboards-2.0.1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

After the fix:
when we run drush updb
Dashboard Navigation block in the Navigation Side bar

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • fix: #3566085 Add Dashboard Navigation block to Navigation sidebar on update

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed ee7f1d00 on 2.0.x
    fix: #3566085 Add Dashboard Navigation block to Navigation sidebar on...
rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new267.11 KB
rajab natshah’s picture

rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

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