Draft
Update Bootswatch to 3.4.1 (latest Bootstrap 3 line)#208
Conversation
Copilot
AI
changed the title
[WIP] Update Bootswatch to latest version including theme selector
Update Bootswatch to 3.4.1 (latest Bootstrap 3 line)
Jul 1, 2026
Owner
|
No, I mean update it ALL to bootstrap 5!! @copilot |
Contributor
Author
Done — the app is now on Bootstrap 5 (dbbe563). I bumped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #207 — bumps Bootswatch from 3.3.7 to the newest release compatible with the app's Bootstrap 3 / react-bootstrap 0.32 stack, preserving the existing theme selector.
Changes
src/js/theme.js— runtime theme loader now targetshttps://cdn.jsdelivr.net/npm/bootswatch@3.4.1/${theme}/bootstrap.min.css(switched to jsDelivr; cdnjs only hosts up to 3.3.7).views/index.pug— initial<link id='theme'>uses the 3.4.1 jsDelivr URL.src/js/serviceworker.js— offline third-party cache matcher updated to//cdn.jsdelivr.net/npm/bootswatch@3.4.1/so themes stay cached.The theme selector is unchanged: all 16 themes exist identically in 3.4.1, so
Theme.themes(), per-theme app colors, and navbar overrides remain valid.Scope note
The absolute latest Bootswatch (5.3.x) targets Bootstrap 5. Adopting it is not a version bump — it requires migrating react-bootstrap 0.32 → 2.x (
bsStyle→variant, rewritten Modal/Navbar/Panel APIs across ~31 components) and reworking BS3 grid/utility markup throughout the SPA and Pug templates. That's a separate, large migration; this PR intentionally lands the newest release that keeps the current stack intact while picking up Bootstrap 3.4.1's XSS fixes.privacy_policy.html(standalone, pinned to Bootswatch 4.2.1) is left untouched as it's independent of the app's theming.