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

Bootstrap 5 #375

Draft
wants to merge 115 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
35fb4a4
add error message and update saving message for plan writing
pengyin-shan Nov 8, 2022
ade7f8c
use yellow or warnign for saving process
pengyin-shan Nov 8, 2022
e9148b3
Merge branch 'development' into add_error_message
pengyin-shan Nov 29, 2022
d8cd8d4
Merge branch 'development' into add_error_message
pengyin-shan Feb 27, 2023
2295d49
update github action to use node 16 only
pengyin-shan Feb 27, 2023
66522fe
merge development branch
pengyin-shan Feb 27, 2023
60e0a09
add changelog
pengyin-shan Feb 27, 2023
ae24901
Merge branch 'add_error_message' of github.com:DMPRoadmap/roadmap int…
pengyin-shan Feb 27, 2023
5c893ad
Merge branch 'development' into add_error_message
briri Apr 12, 2023
e4f8830
added .gitkeep file to assets/builds to address issues in production …
briri May 1, 2023
d7d64e6
Merge pull request #3312 from DMPRoadmap/main
briri May 1, 2023
927e885
added note to CHANGELOG
briri May 1, 2023
9b73b34
Merge branch 'development' into cssbundling-deploy-fix
briri May 1, 2023
1c7a126
Solved issue where spring was loaded in production mode
benjaminfaure Jun 14, 2023
df693dc
Updated CHANGELOG
benjaminfaure Jun 14, 2023
b2d55c6
fix typo, probably introduced by v1 code
nicolasfranck Jul 13, 2023
b0cbb37
Updated fontawesome to V6
benjaminfaure Jul 18, 2023
76c53a5
Added JS constants to be used in the Research Outputs feature
gjacob24 Aug 4, 2023
488072a
Updated the font_face value in DEFAULT_SETTINGS from 'Arial, Helvetic…
dstuckey-uoe Sep 15, 2023
06bd855
Added entry to in Fixed section for this change.
dstuckey-uoe Sep 15, 2023
5d1281b
Moved the fixed-entry for this issue to the top the CHANGELOG.md file.
dstuckey-uoe Sep 18, 2023
7d163b0
update CHANGELOG.md as requested by closed PR https://github.com/DMPR…
nicolasfranck Sep 18, 2023
3e417e2
Updated missing icons to fontawesome v6
benjaminfaure Oct 16, 2023
05a5223
Merge pull request #3339 from DMPRoadmap/issue_3337_default_font_down…
martaribeiro Oct 16, 2023
fbcd2c9
Merge branch 'development' into add_js_constants_for_research_outputs
martaribeiro Oct 16, 2023
a9e5d8b
Merge pull request #3334 from DMPRoadmap/add_js_constants_for_researc…
martaribeiro Oct 16, 2023
78e7349
Merge branch 'development' into fontawesome-v6
martaribeiro Oct 16, 2023
292019e
Merge pull request #3329 from DMPRoadmap/fontawesome-v6
martaribeiro Oct 16, 2023
a0980f4
Merge branch 'development' into main
martaribeiro Oct 16, 2023
83ad549
Merge pull request #3325 from nicolasfranck/main
martaribeiro Oct 16, 2023
79a8384
Merge branch 'development' into issue3316
martaribeiro Oct 16, 2023
c1b3e54
Merge pull request #3320 from DMPRoadmap/issue3316
martaribeiro Oct 16, 2023
db6ac9b
Merge branch 'development' into cssbundling-deploy-fix
martaribeiro Oct 16, 2023
ebe76db
Merge pull request #3314 from DMPRoadmap/cssbundling-deploy-fix
martaribeiro Oct 16, 2023
64eef3a
Merge branch 'development' into add_error_message
martaribeiro Oct 16, 2023
9ab03b7
Merge pull request #3232 from DMPRoadmap/add_error_message
martaribeiro Oct 16, 2023
6ed6960
Update Gemfile.lock and yarn.lock
Oct 16, 2023
3652114
Merge pull request #3351 from DMPRoadmap/4.1.1-gem-and-yarn
martaribeiro Oct 16, 2023
c375492
Revert "Update Gemfile.lock and yarn.lock"
martaribeiro Oct 16, 2023
a644ed2
Merge pull request #3352 from DMPRoadmap/revert-3351-4.1.1-gem-and-yarn
martaribeiro Oct 16, 2023
dd6cba3
Update tp gems.
Oct 16, 2023
ba149a0
Merge pull request #3353 from DMPRoadmap/4.1.1-bundle-update
martaribeiro Oct 16, 2023
8a0d0fb
Merge pull request #3354 from DMPRoadmap/development
martaribeiro Oct 16, 2023
518b97a
Rubocop fix after v4.1.1
gjacob24 Nov 13, 2023
ca7825b
Merge pull request #273 from DMPRoadmap/main
benjaminfaure Dec 12, 2023
932e31e
Issue #3144 - Upgrade to Bootstrap 5
gjacob24 Oct 27, 2023
df75226
Use selenium-webdriver gem / Remove webdrivers
aaronskiba Jan 30, 2024
e0c62da
Don't limit sign-in attempts on test environment
aaronskiba Jan 30, 2024
de5afd5
replace 'safe_email' with 'email' for Faker
aaronskiba Jan 30, 2024
d89c897
Small tweaks to fix existing tests
aaronskiba Jan 30, 2024
b1b38ec
Remove duplicate `node-version:` from workflows
aaronskiba Jan 31, 2024
620674d
Minor fix for Copy link modal
gjacob24 Feb 6, 2024
1d35aec
Make rubocop happy
aaronskiba Feb 7, 2024
b7b09d2
Fix for issue 2. raised by Aaron.
gjacob24 Mar 13, 2024
bd7bfc5
IssueID #3144 - Rspec fixes for Bootstrap 5 upgrade:
Mar 14, 2024
7565cb6
Merge pull request #3359 from DMPRoadmap/rubocop_fixes
martaribeiro Mar 25, 2024
6ec87f5
Merge pull request #3376 from DMPRoadmap/aaron/fix-rspec-tests
martaribeiro Mar 25, 2024
3304792
Merge branch 'development' into issue_3144_upgrade_to_bootstrap_5
martaribeiro Mar 25, 2024
07c2082
Update modal_search_spec.rb
martaribeiro Mar 25, 2024
da4033b
Issue #3144 - Upgrade to Bootstrap 5
gjacob24 Oct 27, 2023
d6b2db6
Minor fix for Copy link modal
gjacob24 Feb 6, 2024
cb9b344
Fix for issue 2. raised by Aaron.
gjacob24 Mar 13, 2024
11a7ec8
IssueID #3144 - Rspec fixes for Bootstrap 5 upgrade:
Mar 14, 2024
b90ffcd
Update modal_search_spec.rb
martaribeiro Mar 25, 2024
84533cf
Merge branch 'issue_3144_upgrade_to_bootstrap_5' of github-as-johnpin…
Mar 25, 2024
6785bf3
Changes in this PR:
gjacob24 Mar 26, 2024
d96561c
Changes in this PR:
gjacob24 Apr 8, 2024
687fb08
Merge pull request #3374 from DMPRoadmap/issue_3144_upgrade_to_bootst…
benjaminfaure Apr 8, 2024
7312151
Call getConstant() after constants.js callback
aaronskiba Jan 15, 2024
83f16f8
Put back constant for passwordHelper.js
aaronskiba Jan 15, 2024
831d6d3
Update CHANGELOG.md
aaronskiba Mar 27, 2024
7bef45f
Merge pull request #3364 from DMPRoadmap/aaron/issues/3361
gjacob24 Apr 8, 2024
2d69584
Prevent duplicate options in 'Select Guidance'
aaronskiba Jan 15, 2024
7d04741
refactor / make rubocop happy
aaronskiba Jan 15, 2024
a3676ab
Add Changelog entries for PR #3365 and #3376
aaronskiba Mar 26, 2024
5f5795e
Merge pull request #3365 from DMPRoadmap/aaron/issues/3343
benjaminfaure Apr 9, 2024
b1cf120
Bumped bootstrap to 5.3 & updated JS dependencies
benjaminfaure Apr 9, 2024
03365f4
Added net-stmp & updated Gems
benjaminfaure Apr 9, 2024
c5df391
Made rubocop happy
benjaminfaure Apr 9, 2024
0f805f6
Upgrade github actions node version to 18
benjaminfaure Apr 9, 2024
55321d0
Fix for failing Rubocop tests.
Apr 9, 2024
708dee4
Increase window-size for headless features tests
aaronskiba Feb 8, 2024
56759df
Merge pull request #3405 from DMPRoadmap/fix_rspec_tests_for_bootstra…
benjaminfaure Apr 11, 2024
fc047ac
Merge pull request #3403 from DMPRoadmap/development
benjaminfaure Apr 11, 2024
7b145ed
Merge pull request #349 from DMPRoadmap/main
benjaminfaure Jul 1, 2024
6a746b7
Merge branch 'roadmap-master' into feat/bootstrap5
benjaminfaure Jul 1, 2024
75e347d
refactor: migrated branded views to bootstrap 5
benjaminfaure Jul 2, 2024
b750679
refactor: removed & renamed sass variables & migrated some of the sas…
benjaminfaure Jul 2, 2024
a3d2dac
refactor: further views & helpers migration to bootstrap 5
benjaminfaure Jul 2, 2024
2485da2
refactor: migrated to bootstrap 5 data attributes
benjaminfaure Jul 3, 2024
d5e3d63
refactor: migrated dmp video to bootstrap 5
benjaminfaure Jul 3, 2024
76aa892
refactor: site navigation to bootstrap 5
benjaminfaure Jul 4, 2024
572cae2
fix: link class declaration
benjaminfaure Jul 4, 2024
ba22bc7
fix: improved dropdown display when hovering
benjaminfaure Jul 9, 2024
5481ad5
fix: button secondary css
benjaminfaure Jul 9, 2024
8a9e7e0
fix: improved sign in dropdown indentation
benjaminfaure Jul 9, 2024
9709a96
fix: migrated missin btn classes
benjaminfaure Jul 9, 2024
cd908ec
fix: improved display of tables following bootstrap upgrade
benjaminfaure Jul 9, 2024
bbcaafe
fix: link classes on org admin templates list & user menu
benjaminfaure Jul 9, 2024
1ff4b45
fix: removed useless div tags
benjaminfaure Jul 9, 2024
a0134f4
refactor: fixed tables line colors
benjaminfaure Jul 18, 2024
fdb4bdd
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Sep 17, 2024
e6ce930
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Nov 8, 2024
b25bfc7
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Nov 21, 2024
10489ca
refactor: CSS fixes following dev merge
benjaminfaure Nov 21, 2024
0ed66a1
chore: removed duplicated net-stmp gem
benjaminfaure Nov 21, 2024
77d95ad
refactor: removed unused import plan code
benjaminfaure Nov 21, 2024
34cd27c
fix: added missing margin bottom in form fields
benjaminfaure Nov 21, 2024
dc4da2a
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Dec 6, 2024
07afa03
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Jan 24, 2025
337763e
fix: module html & welcome page CSS following dev merge
benjaminfaure Jan 24, 2025
cad1dd8
fix: (bootstrap 5) dropdowns in super admin & static page tabs
benjaminfaure Jan 24, 2025
973a087
refactor: removed unused react-proptypes dependency
benjaminfaure Jan 24, 2025
60553af
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Feb 11, 2025
c34f8dc
Merge branch 'dev' into feat/bootstrap5
benjaminfaure Feb 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
with:
ruby-version: '3.3'
bundler-cache: true
## - run: echo 'NODE_OPTIONS="--openssl-legacy-provider"' >> $GITHUB_ENV

## - run: echo 'NODE_OPTIONS="--openssl-legacy-provider"' >> $GITHUB_ENV
## /home/runner/runners/2.301.1/externals/node12/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS

# Install Node
- uses: actions/setup-node@v3
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ yarn-debug.log*
.yarn-integrity
/app/assets/builds/*
!/app/assets/builds/.keep
!/app/assets/builds/.gitkeep

# Ignore briley AWS cloud9 script to start the application
cloud9-start.sh
Expand Down
174 changes: 174 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,178 @@
# Changelog

## v4.2.0

**Note this upgrade is mainly a migration from Bootstrap 3 to Bootstrap 5.**

Note that this will have a significant impact on any scss and html customizations you may have made to your fork of this project.

The following links will be helpful:

[Get started with Bootstrap v5.2.3](https://getbootstrap.com/docs/5.2/getting-started/introduction/)<br>
[Migrating to v4](https://getbootstrap.com/docs/4.0/migration)<br>
[How to Migrate from Bootstrap Version 3 to 4](https://designmodo.com/migrate-bootstrap-4/)<br>
[Migrating to v5](https://getbootstrap.com/docs/5.0/migration)<br>
[How to Migrate from Bootstrap Version 4 to 5](https://designmodo.com/migrate-bootstrap-5/)<br>
[Use Bootstrap 5 with Ruby on Rails 6 and webpack](https://medium.com/daily-web-dev/use-bootstrap-4-with-ruby-on-rails-6-and-webpack-fe7300604267)<br>
[What happened to $grid-float-breakpoint in Bootstrap 4. And screen size breakpoint shift from 3 -> 4](
https://bibwild.wordpress.com/2019/06/10/what-happened-to-grid-float-breakpoint-in-bootstrap-4-and-screen-size-breakpoint-shift-from-3-4/)<br>
[What are media queries in Bootstrap 4?](https://www.educative.io/answers/what-are-media-queries-in-bootstrap-4)<br>

### Key changes

- Node package changes:
* Changed version of `bootstrap "^3.4.1"` --> `"^5.2.3"`
* Added `@popperjs/core.`
* Removed `bootstrap-3-typeahead, bootstrap-sass & popper.js`
- Stylesheet changes
* In `app/assets/stylesheets/application.scss`:
+ removed `bootstrap-sass` import <br>
and replaced with<br>
`@import "../../../node_modules/bootstrap/scss/bootstrap";`

* The order of the `import` statements have been changed to import the `blocks/` and `utils/` after the default bootstrap stylesheets

* In `app/assets/stylesheets/blocks/`:
+ Replaced in relevant files:
+ `@use "../../../../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss" as * ;`<br>
with <br>
`@use "../../../../node_modules/bootstrap/scss/bootstrap" as *;`
+ Enclosed all division calculations using symbol `/` with `calc()` function,<br>
e.g., replaced<br>
`padding-right: $grid-gutter-width / 2;`<br>
with<br>
`padding-right: calc($grid-gutter-width / 2);`<br>
+ Replaced breaking media queries since Bootstrap 3:
- `@media (max-width: $grid-float-breakpoint-max) {}`<br>
with<br>
`@include media-breakpoint-down(md){}`

- `@media (max-width: $grid-float-breakpoint-max) {}`<br>
with<br>
`@include media-breakpoint-down(md) {}`
* Deleted `app/javascript/src/utils/popoverHelper.js`.
+ Mixins
- Media query mixins parameters have changed for a more logical approach.
* `media-breakpoint-down()` uses the breakpoint itself instead of the next breakpoint (e.g., `media-breakpoint-down(lg)` instead of `media-breakpoint-down(md)` targets viewports smaller than lg).
+ Color system
- All `lighten()`and `darken()` functions replaced. These functions will mix the color with either white or black instead of changing its lightness by a fixed amount.
* Replaced `lighten()` by `tint-color()`.
* Replaced `darken()` by `shade-color()`.

#### Components & HTML

Note many of these Bootstrap changes has required us to rewrite or change some of the Javascript files.

When we use a native DOM element in Javascript, we obtain it by applying get() to the Jquery element (cf., https://api.jquery.com/get/).
We sometimes use the button native Dom element to programmatically click, as the Jquery button element with trigger('click') won't work because the trigger() function cannot be used to mimic native browser events, such as clicking (cf., https://learn.jquery.com/events/triggering-event-handlers/ )

+ Accordion & spinners
- Bespoke versions replaced by Bootstrap 5 accordion and spinner now.
- Accordion
* Changed the default Bootstrap arrow icon for the accordion to use the fontawesome icons plus and minus icons. Created a several accordion specific colour variables:
<br>// Accordion colors
<br> `$color-accordion-button: $color-primary-text`;
<br> `$color-accordion-button-icon: $color-primary-text`;
<br> `$color-accordion-button-bg: $color-primary-background`;
<br> `$color-accordion-button-active-bg: shade-color($color-accordion-button-bg, 30%)`;
<br>(See `app/assets/stylesheets/blocks/_accordion.scss` and `app/assets/stylesheets/variables/_colours.scss` for details.)
* The drag icon in `app/views/org_admin/sections/_section.html.erb` now appears after the plus (or minus) icon.
- The spinner block now uses class`d-none` instead of`hidden` to hide.
- In views with multiple accordion sections with "expand all" or "collapse all" links, we use the native Dom element of the accordion buttons to programmatically click, (cf. to note above).
+ Buttons
- Bootstrap dropped `btn-block` class for utilities. So we removed any styling using it.
- Close Buttons: Renamed `close` to`btn-close`.
- Renamed `btn-default` to `btn-secondary` and variable `$btn-default-color` changed to `$btn-secondary-color`.
+ Dropdowns
- Dropdown list items with class `dropdown` have class `dropdown-item` added usually with`px-3` for positioning.
- Added new `dropdown-menu-dark` variant and associated variables for on-demand dark dropdowns.
- Data attributes changes required by Bootstrap 5 (as used by accordion and dropdown buttons):
* `data-display` --> `data-bs-display`
* `data-parent` --> `data-bs-parent`
* `data-target` --> `data-bs-target`
* `data-toggle` --> `data-bs-toggle`
- Bootstrap 5 Popover added to some dropdown-menu items by adding attribute `data-bs-toggle="popover"`
+ Form
- `form-group` class replaced with `form-control`.
- Form labels now require `form-label` or `form-check-label` to go with `form-control` and `form-check` respectively. So all obsolete `control-label` replaced by `form-label` and missing ones added.
- Dropped form-specific layout classes for our grid system. Use Bootstrap grid and utilities instead of `form-group`, `form-row`, or `form-inline`.
- `form-text` no longer sets display, allowing you to create inline or block help text as you wish just by changing the HTML element.
- Input group addons are now specific to their placement relative to an input. So `input-group-addon` and in our case we replaced with
`input-group-addon`.
- Renamed `checkbox` and `radio` into `form-check`.
+ Images
- Renamed `img-responsive` to `img-fluid`.
+ Labels and badges
- Class `label` has been removed and replaced by `badge` to disambiguate from the `<label>` element.
* Renamed `label` class to `badge`
* Replaced `label-default` by `bg-secondary`
* Replaced `label-info` by `bg-info`
* Replaced `label-warning` by `bg-warning .text-dark`
* Replaced `label-danger` by `bg-danger`
+ Links
- Links are underlined by default (not just on hover), unless they're part of specific components. So we had to add css to remove underline in many cases.
+ Modals
- To programmatically show or hide a Bootstrap modal, we have followed both these approaches:
* Either, get access to the Jquery modal element and call functions `modal('show')` or `modal('hide')`.
* Or, apply click() to the native Dom element of the button to trigger the modal (cf. to note above).
+ Navs & navbars
- Bootstrap rewrote component with flexbox. Dropped nearly all > selectors for simpler styling via un-nested classes.
Instead of HTML-specific selectors like .nav > li > a, we use separate classes for `navs, nav-items, and nav-links`. (Note because the `nav-link` class has not always been added as it comes with styles not appropriate for our styling for links.)
This makes your HTML more flexible while bringing along increased extensibility. So we have dropped HTML-specific selectors and css in `_navs.scss`
e.g.,
<br>`.nav-tabs > li > a:hover` --> `nav-tabs nav-link:hover`,
<br>`.nav-pills > li > a:hover` -->`nav-pills .nav-link:hover`.
- Pages with css classes `nav` and`navbar` updated to work with Bootstrap 5. So `app/assets/stylesheets/blocks/_navbars.scss` and `app/assets/stylesheets/blocks/_navs.scss` updated.
* Replaced`nav navbar-nav` combination --> `navbar-nav`
* Replaced`navbar-toggle` --> `navbar-toggler`
* Replaced multiple spans in`navbar-toggle` button with class`icon-bar`<br> --> single span with`toggler-icon`
* Lists with `nav navbar-nav` have class`nav-item` added to list elements.
- Note because the `nav-link` class include styling that is not appropriate in many places, we have not included it in those cases.
+ Notifications
- Notifications now use classes `d-block` and `d-none` to show and hide respectively.
+ Panels, thumbnails & wells (replacements)
- Bootstrap 5 dropped panels, thumbnails and wells. So pages with them updated with Bootstrap 5 replacements.
* All views with css classes`panel, panel-body, panel-*` Have panel replaced by card to give `card, card_body, card-*`, etc.
* As `panel-default` and some otherpanel css classes don't have card equivalents with same suffixes we have added these classes temporarily in `_cards.sccs`, e.g.,`.card-default`, etc.
+ Utilities
- Bootstrap renamed several utilities to use logical property names instead of directional names with the addition of RTL support:
* Renamed `left-*` and `right-*` to `start-*` and `end-*`.
* Renamed `float-left` and `float-right` to `float-start` and `float-end`.
* Renamed `ml-*` and `mr-*` to `ms-*` and `me-*`.
* Renamed `pl-*` and `pr-*` to `ps-*` and `pe-*`.
* Renamed `text-left` and `text-right` to `text-start` and `text-end`.
- The `hidden` and `show` classes have been removed because they conflicted with jQuery's.
* Replaced `hidden` with `d-none`.
- Text utilities
* As Bootstrap 5.2 dropped class `text-justify` we have created a custom version based on comment https://github.com/twbs/bootstrap/pull/29793#issuecomment-1814683346
* `text-*` utilities do not add hover and focus states to links anymore. `link-*` helper classes can be used instead.

### Fixed
- Fixed rubocop errors after Bootstrap upgrade
- Fixed RSpec tests after Bootstrap upgrade
- Fix "undefined" Tooltip Messages [#3364](https://github.com/DMPRoadmap/roadmap/pull/3364)
- Fixed rubocop errors after V4.1.1 release
- Fixed MySQL and PostgreSQL GitHub Actions [PR #3376](https://github.com/DMPRoadmap/roadmap/pull/3376)
- Removed duplicate `node-version:` statements from the `mysql.yml` and `postgres.yml` workflows
- Replaced `webdrivers` gem with `selenium-webdriver` gem
- Disabled `rack-attack` gem from throttling `/users/sign_in` path in Rails test environment
- Addressed `Faker` deprecation warnings
- Made some small changes to fix some existing tests
- Prevent Duplicate Options in 'Select Guidance' [PR #3365](https://github.com/DMPRoadmap/roadmap/pull/3365)

## V4.1.1

### Added
- Added `MORE_INFO` and `LESS_INFO` JS constants (for the Research Outputs feature)
- Added a .gitkeep file to the app/assets/builds directory to address potential issues when building the application.css file during production deploys #3314

### Fixed
- Updated the default font on the 'Download page' to be 'Roboto, Arial, Sans-Serif'
- Fixed an issue with API V0 that was causing a 500 Internal Server error
- Solved issue where spring was loaded in production mode : ran `bin/spring binstub --all`
- Updated fontawesome to V6


## v4.1.0

**Note this upgrade is a migration from Ruby v2.7.6 to v3.0.5.** Note that this could have an impact on any customizations you may have made to your fork of this project. Please see https://www.fastruby.io/blog/ruby/upgrades/upgrade-ruby-from-2.7-to-3.0.html for further information on what to check. In particular, please note the changes to the way [Ruby 3 handles keyword arguments](https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/)
Expand Down Expand Up @@ -104,3 +277,4 @@ For more detailed explanation, please refer to this video : https://www.youtube.

- Added scss files to EditorConfig
- Change csv file name for statistics from 'Completed' to 'Created'
- Added error message and updated saving message for plan writing session to improve user experience
7 changes: 5 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ gem 'rswag-ui'
# https://github.com/tzinfo/tzinfo-data
gem 'tzinfo-data'

# This library provides functionality to send internet mail via SMTP, the Simple Mail Transfer Protocol.
# https://github.com/ruby/net-smtp
gem 'net-smtp'

# ================================= #
# ENVIRONMENT SPECIFIC DEPENDENCIES #
# ================================= #
Expand Down Expand Up @@ -274,7 +278,7 @@ group :test do
gem 'capybara'

# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
gem 'selenium-webdriver'

# RSpec::CollectionMatchers lets you express expected outcomes on
# collections of an object in an example.
Expand Down Expand Up @@ -363,7 +367,6 @@ group :development do
gem 'yard-tomdoc'
end

gem 'net-smtp'
# ======================#
# MADMP OPIDOR FEATURES #
# ===================== #
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ DEPENDENCIES
rubocop-i18n
rubocop-performance
ruby-progressbar
selenium-webdriver
shoulda
spring
spring-commands-rspec
Expand All @@ -734,7 +735,6 @@ DEPENDENCIES
turbo-rails
tzinfo-data
web-console
webdrivers
webmock
wicked_pdf
wkhtmltopdf-binary
Expand Down
Empty file added app/assets/builds/.gitkeep
Empty file.
30 changes: 25 additions & 5 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Import locally defined variables. Load this before 'bootstrap'

@use "variables";

@use "blocks";
@use "utils";

// Pull in the webpacker managed copy of Bootstrap Stylesheets
@import "../../../node_modules/bootstrap-sass/assets/stylesheets/bootstrap";
@import "../../../node_modules/bootstrap/scss/bootstrap";
@import "../../../node_modules/bootstrap-select/sass/bootstrap-select.scss";

// Pull in the webapcker managed copy of JQuery-UI Stylesheets
Expand All @@ -21,4 +17,28 @@ $fa-font-path: '.';

@import 'sweetalert2/src/sweetalert2.scss';

// Custom.scss
// Option B: Include parts of Bootstrap

// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import "../../../node_modules/bootstrap/scss/functions";

// 2. Include any default variable overrides here

// 3. Include remainder of required Bootstrap stylesheets
@import "../../../node_modules/bootstrap/scss/variables";
@import "../../../node_modules/bootstrap/scss/mixins";

// 4. Include any optional Bootstrap components as you like
@import "../../../node_modules/bootstrap/scss/root";
@import "../../../node_modules/bootstrap/scss/reboot";
@import "../../../node_modules/bootstrap/scss/type";
@import "../../../node_modules/bootstrap/scss/images";
@import "../../../node_modules/bootstrap/scss/containers";
@import "../../../node_modules/bootstrap/scss/grid";

//Importing customised stylesheets after Bootstrap defaults
@import "blocks";
@import "utils";

@import "./dmpopidor";
13 changes: 2 additions & 11 deletions app/assets/stylesheets/blocks/_accessibility.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ div.skip a:focus {
}

/** Focus outline required for accessibility */
// a, input, select, .form-control {
// a, input, select, .form-control input, .form-control textarea {
// &:focus,
// &:hover,
// &:active {
Expand All @@ -60,15 +60,6 @@ ul.header-links li {
padding: 0;
}
}

ul.header-links li {
a {
&:hover,
&:active {
background-color: $dark-blue;
}
}
}

/** button outline-width increased for better visibility of outline */
// button {
Expand All @@ -87,7 +78,7 @@ ul.header-links li {
&:focus,
&:hover {
outline-style: solid !important;
outline-color: $white !important;
outline-color: #fff !important;
outline-width: 2px !important;
}
}
Loading
Loading