Add Bootstrap ~5.3.0 JavaScript libraries in Varbase Components and only attache them with needed SDC components

Created on 22 February 2024, 9 months ago
Updated 16 April 2024, 7 months ago

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
📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024