Skip to content

Conversation

@slifty
Copy link
Contributor

@slifty slifty commented Jan 16, 2026

This PR removes our "vendor" setup for Bootstrap and moves us to using an npm package instead. This will make it easier to avoid version drift and also allows us to remove third party code from our repository.

🚨 🚨 This adds a new dependency, so you'll need to run docker compose build web-app 🚨 🚨

This PR should not be merged until #894 is merged.

Resolves #895
Related to #127

@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.87%. Comparing base (e30817f) to head (83f9ced).

Additional details and impacted files
@@                       Coverage Diff                       @@
##           893-ionicons-web-components     #896      +/-   ##
===============================================================
+ Coverage                        47.79%   47.87%   +0.07%     
===============================================================
  Files                              351      351              
  Lines                            11292    11292              
  Branches                          1889     1889              
===============================================================
+ Hits                              5397     5406       +9     
+ Misses                            5702     5694       -8     
+ Partials                           193      192       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This was referenced Jan 16, 2026
@slifty slifty force-pushed the 893-ionicons-web-components branch from f28de58 to be10eb6 Compare January 16, 2026 17:29
@slifty slifty force-pushed the 895-package-bootstrap branch from 5697c84 to dd5550f Compare January 16, 2026 17:29
@slifty slifty force-pushed the 893-ionicons-web-components branch from be10eb6 to e30817f Compare January 16, 2026 21:11
We had included Bootstrap v4 as vendored scss instead of loading it via
npm / packages.  This isn't a great practice for a couple of reasons,
not the least of which being the fact that we can't benefit from things
like dependabot and dependency tree checks.

This intentionally does not migrate to Bootstrap v5, but simply changes
how v4 is being installed.

Issue #895 Remove vendored bootstrap
@slifty slifty force-pushed the 895-package-bootstrap branch from dd5550f to 83f9ced Compare January 16, 2026 21:12
Copy link
Contributor

@aasandei-vsp aasandei-vsp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems we might be needing to figure out multiple dependencies, not only the bootstrap one.

"@types/openseadragon": "^4.1.0",
"angular-shepherd": "^20.0.0",
"binaryjs": "0.2.1",
"bootstrap": "^4.1.1",
Copy link
Contributor

@aasandei-vsp aasandei-vsp Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have ng-bootstrap apparently...
image

It seems ng-bootstrap 19.x is designed for Bootstrap 5, not Bootstrap 4.
Also, if we want to move to angular 21, it seems we might be needing ng-bootstrap 20.(the change is already present in the angular 21 PR)
Maybe it's worth having a look at this? https://www.npmjs.com/package/@ng-bootstrap/ng-bootstrap

@import 'bootstrap/scss/type';
@import 'bootstrap/scss/tables';
@import 'bootstrap/scss/forms';
@import 'bootstrap/scss/buttons';
Copy link
Contributor

@aasandei-vsp aasandei-vsp Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one might have some issues, I noticed on 127-remove-vendor branch that the upload button orange background is not showing.

image

And another one, seems to be for orange buttons?

image

@aasandei-vsp
Copy link
Contributor

Also, the merge button is green and I do not think that is correct, right?

@slifty
Copy link
Contributor Author

slifty commented Jan 20, 2026

Also, the merge button is green and I do not think that is correct, right?

Just because this PR is currently merging into a branch (not main)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants