Problem/Motivation

Loading all the Bootstrap ~5.3.0 Javascript behaviors in all pages.
Moving with Single Directory Components (SDC) needs to load all JS in all components too.

Needed for a better SDC way in Drupal and Storybook

Proposed resolution

Using the following libraries

  • Popperjs core: varbase_components/popper-script
  • Bootstrap Base component script: varbase_components/bs-base-component-script
  • --
  • Bootstrap alert script: varbase_components/bs-alert-script
  • Bootstrap button script: varbase_components/bs-button-script
  • Bootstrap carousel script: varbase_components/bs-carousel-script
  • Bootstrap collapse script: varbase_components/bs-collapse-script
  • Bootstrap dropdown script: varbase_components/bs-dropdown-script
  • Bootstrap modal script: varbase_components/bs-modal-script
  • Bootstrap offcanvas script: varbase_components/bs-offcanvas-script
  • Bootstrap popover script: varbase_components/bs-popover-script
  • Bootstrap scrollspy script: varbase_components/bs-scrollspy-script
  • Bootstrap tab script: varbase_components/bs-tab-script
  • Bootstrap toast script: varbase_components/bs-toast-script
  • Bootstrap tooltip script: varbase_components/bs-tooltip-script

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.0.0-rc2, varbase_components-2.0.0-beta3

Varbase update type

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

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3423174: Added Bootstrap ~5.3.0 JavaScript libraries in Varbase Components and only attache them with needed SDC components

Comments

Rajab Natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Title: Add Bootstrap ~5.3.0 JavaScript libraries in Varbase Components and only for needed SDC components » Add Bootstrap ~5.3.0 JavaScript libraries in Varbase Components and only attache them with needed SDC components
rajab natshah’s picture

Issue summary: View changes

  • Rajab Natshah committed eb9580d4 on 2.0.x
    Issue #3423174: Add Bootstrap ~5.3.0 JavaScript libraries in Varbase...
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes

  • Rajab Natshah committed a2e3b0aa on 2.0.x
    Issue #3423174: Change logic and order for  Bootstrap ~5.3.0 JavaScript...

rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Issue summary: View changes
Status: Active » Needs review
Issue tags: +varbase-10.0.0, +varbase_components-2.0.0-beta3
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Issue summary: View changes

Status: Fixed » Closed (fixed)

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

rajab natshah’s picture

Issue summary: View changes
Issue tags: -varbase-10.0.0 +varbase-10.0.0-rc2
rajab natshah’s picture

Issue summary: View changes

✅ Released varbase-10.0.0-rc2