Skip to content

CollapseToggle

The Toggle Directive src/vendor/bootstrap-vue/src/directives/toggle/toggle.js does not seem to be dependent on other files and can be migrated. It is re-exported as CollapseToggle.

The migration process involves the following steps:

  1. Assess Usage: Before starting, verify if the directive is actually in use(*). If it is not, consider removing it entirely to avoid unnecessary work.
  2. Evaluate Functionality: Review whether the original BootstrapVue files contain functionality, properties, events, or other features not documented in Storybook or the Pajamas Design System. If any undocumented features are found, assess whether they are used(*). If not, consider omitting them in the migration, even though this may introduce a breaking change.
  3. Perform Migration: Proceed with migrating any features that need to be retained. If opportunities for improvement arise during the migration, you may choose to address them immediately or as a follow-up. However, prioritize completing the migration/refactoring over implementing improvements, unless doing both is simpler or more efficient.
  4. Integration Branch: Even without breaking changes, consider creating an integration branch at least for gitlab to check if all jobs in the pipeline are still green.
  5. Update Documentation: Ensure that any necessary documentation updates are made.

(*) "Being used" refers to usage within GitLab or one of its satellite projects (customers-gitlab-com, design.gitlab.com, gitlab-docs, gitlab-docs-hugo, handbook, status-page, switchboard, www-gitlab-com).

Edited by Vanessa Otto