Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Bootstrap 5 #1020

Merged
merged 75 commits into from
Jul 22, 2024
Merged

Upgrade to Bootstrap 5 #1020

merged 75 commits into from
Jul 22, 2024

Conversation

jacbn
Copy link
Contributor

@jacbn jacbn commented Jul 12, 2024

Upgrades from Bootstrap 4.6 to 5.3. We would ideally like version 5.3.4 to fit this problem with console warnings in dev; this patch should not change anything visually.

jacbn added 30 commits May 16, 2024 16:29
jsharkey13 and others added 11 commits July 16, 2024 16:50
This icon was added recently, but does not now replace the Bootstrap
default icon which is used in all other select elements across the Ada
site. There is little difference between them, especially at ~10px
across!
The whole point of classNames is to allow you to dynamically generate
the correct class string without needing to do string manipulation.
Also fix poor TSX formatting in the file too.
Previously Bootstrap added spacing to buttons next to one another if
both were using the now-removed "btn-block" class.
@popperjs is now an explicit import rather than being bundled in bootstrap. Similarly, katex was upgraded on this branch. Both of these use ESM rather CJS and so where causing import errors as they were not converted. They are no ignored in the ignore list (that is they are actively converted) into the required format.
Versions after this cause MSW request handling to fail. Hopefully a
MSW upgrade will fix this, but that's a job for later.
Addresses "tearing" issue in screenshots, see
cypress-io/cypress#2681
Resolves test failure caused by attempting to parse an image in Leaflet.
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 32.24490% with 166 lines in your changes missing coverage. Please review.

Project coverage is 37.16%. Comparing base (fa5eb1c) to head (8413d80).

Files Patch % Lines
src/app/components/content/IsaacCard.tsx 0.00% 10 Missing ⚠️
...pp/components/elements/AnonymisationCheckboxes.tsx 9.09% 8 Missing and 2 partials ⚠️
src/app/components/elements/cards/NewsCard.tsx 9.09% 10 Missing ⚠️
src/app/components/elements/cards/BoardCard.tsx 50.00% 7 Missing ⚠️
src/app/components/pages/Registration.tsx 0.00% 7 Missing ⚠️
src/app/components/pages/quizzes/SetQuizzes.tsx 0.00% 7 Missing ⚠️
...mponents/elements/views/QuestionProgressCharts.tsx 0.00% 6 Missing ⚠️
src/app/components/pages/AssignmentSchedule.tsx 0.00% 6 Missing ⚠️
src/app/components/elements/RelatedContent.tsx 0.00% 5 Missing ⚠️
...p/components/elements/inputs/UserContextPicker.tsx 16.66% 5 Missing ⚠️
... and 60 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1020      +/-   ##
==========================================
- Coverage   37.28%   37.16%   -0.12%     
==========================================
  Files         420      420              
  Lines       18538    18486      -52     
  Branches     5425     6033     +608     
==========================================
- Hits         6911     6871      -40     
+ Misses      11588    11001     -587     
- Partials       39      614     +575     

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

@@ -8,6 +8,7 @@
import {NEWS_PODS_PER_PAGE} from "../../services";
import { IsaacPodDTO } from "../../../IsaacApiTypes";
import { PageFragment } from "../elements/PageFragment";
import classNames from "classnames";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import classNames.
@jsharkey13 jsharkey13 merged commit c8b6a1a into master Jul 22, 2024
4 checks passed
@jsharkey13 jsharkey13 deleted the improvement/bootstrap-5 branch July 22, 2024 12:07
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.

5 participants