Skip to content

Commit b307f05

Browse files
committed
Merge origin/main
2 parents e60f4c4 + bfbb518 commit b307f05

File tree

27 files changed

+106
-5255
lines changed

27 files changed

+106
-5255
lines changed

.github/workflows/eslint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99

1010
steps:
1111
# Checkout the repo
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313

1414
# Install Node
15-
- uses: actions/setup-node@v2
15+
- uses: actions/setup-node@v3
1616
with:
1717
cache: 'yarn'
1818
node-version: 18

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public/assets/*
1414
public/fonts/*
1515
public/images/*
1616
public/javascripts/*
17+
public/tinymce/skins/
1718
public/stylesheets/*
1819
public/system/*
1920
public/videos/*

CHANGELOG.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## v5.0.1
4+
- Updated seeds.rb file for identifier_schemes to include context value and removed logo_url and idenitifier_prefix for Shibboleth (as it was causing issues with SSO). [#3525](https://github.com/DMPRoadmap/roadmap/pull/3525)
5+
- Adjustments to style of select tags and plan download layout [#3509](https://github.com/DMPRoadmap/roadmap/pull/3509)
6+
- Fix failing eslint workflow / upgrade `actions/checkout` & `actions/setup-node` to v3 [#3503](https://github.com/DMPRoadmap/roadmap/pull/3503)
7+
- Remove Auto-Generated TinyMCE Skins and Add `public/tinymce/skins/` to `.gitignore` [#3466](https://github.com/DMPRoadmap/roadmap/pull/3466)
8+
39
## v5.0.0
410

511
- Updated app to Rails 7 [#3426](https://github.com/DMPRoadmap/roadmap/pull/3426), [#3496](https://github.com/DMPRoadmap/roadmap/pull/3496)
@@ -21,9 +27,9 @@
2127

2228
## v4.2.0
2329

24-
**Note this upgrade is mainly a migration from Bootstrap 3 to Bootstrap 5.**
30+
**Note this upgrade is mainly a migration from Bootstrap 3 to Bootstrap 5.**
2531

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

2834
The following links will be helpful:
2935

@@ -36,9 +42,9 @@ The following links will be helpful:
3642
[What happened to $grid-float-breakpoint in Bootstrap 4. And screen size breakpoint shift from 3 -> 4](
3743
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>
3844
[What are media queries in Bootstrap 4?](https://www.educative.io/answers/what-are-media-queries-in-bootstrap-4)<br>
39-
45+
4046
### Key changes
41-
47+
4248
- Node package changes:
4349
* Changed version of `bootstrap "^3.4.1"` --> `"^5.2.3"`
4450
* Added `@popperjs/core.`
@@ -56,7 +62,7 @@ https://bibwild.wordpress.com/2019/06/10/what-happened-to-grid-float-breakpoint-
5662
+ `@use "../../../../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss" as * ;`<br>
5763
with <br>
5864
`@use "../../../../node_modules/bootstrap/scss/bootstrap" as *;`
59-
+ Enclosed all division calculations using symbol `/` with `calc()` function,<br>
65+
+ Enclosed all division calculations using symbol `/` with `calc()` function,<br>
6066
e.g., replaced<br>
6167
`padding-right: $grid-gutter-width / 2;`<br>
6268
with<br>
@@ -65,7 +71,7 @@ https://bibwild.wordpress.com/2019/06/10/what-happened-to-grid-float-breakpoint-
6571
- `@media (max-width: $grid-float-breakpoint-max) {}`<br>
6672
with<br>
6773
`@include media-breakpoint-down(md){}`
68-
74+
6975
- `@media (max-width: $grid-float-breakpoint-max) {}`<br>
7076
with<br>
7177
`@include media-breakpoint-down(md) {}`
@@ -86,7 +92,7 @@ When we use a native DOM element in Javascript, we obtain it by applying get() t
8692
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/ )
8793

8894
+ Accordion & spinners
89-
- Bespoke versions replaced by Bootstrap 5 accordion and spinner now.
95+
- Bespoke versions replaced by Bootstrap 5 accordion and spinner now.
9096
- Accordion
9197
* 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:
9298
<br>// Accordion colors
@@ -102,7 +108,7 @@ We sometimes use the button native Dom element to programmatically click, as the
102108
- Bootstrap dropped `btn-block` class for utilities. So we removed any styling using it.
103109
- Close Buttons: Renamed `close` to`btn-close`.
104110
- Renamed `btn-default` to `btn-secondary` and variable `$btn-default-color` changed to `$btn-secondary-color`.
105-
+ Dropdowns
111+
+ Dropdowns
106112
- Dropdown list items with class `dropdown` have class `dropdown-item` added usually with`px-3` for positioning.
107113
- Added new `dropdown-menu-dark` variant and associated variables for on-demand dark dropdowns.
108114
- Data attributes changes required by Bootstrap 5 (as used by accordion and dropdown buttons):
@@ -111,7 +117,7 @@ We sometimes use the button native Dom element to programmatically click, as the
111117
* `data-target` --> `data-bs-target`
112118
* `data-toggle` --> `data-bs-toggle`
113119
- Bootstrap 5 Popover added to some dropdown-menu items by adding attribute `data-bs-toggle="popover"`
114-
+ Form
120+
+ Form
115121
- `form-group` class replaced with `form-control`.
116122
- 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.
117123
- Dropped form-specific layout classes for our grid system. Use Bootstrap grid and utilities instead of `form-group`, `form-row`, or `form-inline`.
@@ -138,7 +144,7 @@ We sometimes use the button native Dom element to programmatically click, as the
138144
- Bootstrap rewrote component with flexbox. Dropped nearly all > selectors for simpler styling via un-nested classes.
139145
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.)
140146
This makes your HTML more flexible while bringing along increased extensibility. So we have dropped HTML-specific selectors and css in `_navs.scss`
141-
e.g.,
147+
e.g.,
142148
<br>`.nav-tabs > li > a:hover` --> `nav-tabs nav-link:hover`,
143149
<br>`.nav-pills > li > a:hover` -->`nav-pills .nav-link:hover`.
144150
- 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.
@@ -150,8 +156,8 @@ We sometimes use the button native Dom element to programmatically click, as the
150156
+ Notifications
151157
- Notifications now use classes `d-block` and `d-none` to show and hide respectively.
152158
+ Panels, thumbnails & wells (replacements)
153-
- Bootstrap 5 dropped panels, thumbnails and wells. So pages with them updated with Bootstrap 5 replacements.
154-
* All views with css classes`panel, panel-body, panel-*` Have panel replaced by card to give `card, card_body, card-*`, etc.
159+
- Bootstrap 5 dropped panels, thumbnails and wells. So pages with them updated with Bootstrap 5 replacements.
160+
* All views with css classes`panel, panel-body, panel-*` Have panel replaced by card to give `card, card_body, card-*`, etc.
155161
* 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.
156162
+ Utilities
157163
- Bootstrap renamed several utilities to use logical property names instead of directional names with the addition of RTL support:
@@ -166,9 +172,9 @@ We sometimes use the button native Dom element to programmatically click, as the
166172
* 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
167173
* `text-*` utilities do not add hover and focus states to links anymore. `link-*` helper classes can be used instead.
168174

169-
### Fixed
170-
- Fixed rubocop errors after Bootstrap upgrade
171-
- Fixed RSpec tests after Bootstrap upgrade
175+
### Fixed
176+
- Fixed rubocop errors after Bootstrap upgrade
177+
- Fixed RSpec tests after Bootstrap upgrade
172178
- Fix "undefined" Tooltip Messages [#3364](https://github.com/DMPRoadmap/roadmap/pull/3364)
173179
- Fixed rubocop errors after V4.1.1 release
174180
- Fixed MySQL and PostgreSQL GitHub Actions [PR #3376](https://github.com/DMPRoadmap/roadmap/pull/3376)

app/views/devise/registrations/_personal_details.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
options_from_collection_for_select(departments, "id", "name", dept_id),
4646
include_blank: true,
4747
disabled: departments.count === 0,
48-
class: "form-control") %>
48+
class: "form-select") %>
4949
</div>
5050
<% end %>
5151

@@ -55,7 +55,7 @@
5555
<%= f.label(:language_id, _('Language'), class: 'form-label') %>
5656
<%= select_tag("user[language_id]",
5757
options_from_collection_for_select(@languages, "id", "name", lang_id),
58-
class: "form-control") %>
58+
class: "form-select") %>
5959
</div>
6060
<% end %>
6161

app/views/guidances/new_edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ end
3434
<%= f.label _('Guidance group'), for: :guidance_group_id, class: 'form-label' %>
3535
<%= f.collection_select(:guidance_group_id,
3636
GuidanceGroup.where(org_id: current_user.org_id).order("name ASC"),
37-
:id, :name, {prompt: false}, {multiple: false, 'data-toggle': 'tooltip', title: _('Select which group this guidance relates to.'), class: 'form-control', 'aria-required': true})%>
37+
:id, :name, {prompt: false}, {multiple: false, 'data-toggle': 'tooltip', title: _('Select which group this guidance relates to.'), class: 'form-select', 'aria-required': true})%>
3838
</div>
3939
<div class="form-check">
4040
<%= f.label :published do %>

app/views/layouts/modal_search/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Example definition of the :filters content:
138138
<%= select_tag :"research_output[subject_filter]",
139139
options_for_select(ResearchOutputPresenter.selectable_subjects),
140140
include_blank: _("- Select a subject area -"),
141-
class: "form-control",
141+
class: "form-select",
142142
title: by_subject_tooltip,
143143
data: { toggle: "tooltip", placement: "bottom" } %>
144144
</span>
@@ -147,7 +147,7 @@ Example definition of the :filters content:
147147
<%= select_tag :"research_output[type_filter]",
148148
options_for_select(ResearchOutputPresenter.selectable_repository_types),
149149
include_blank: _("- Select a repository type -"),
150-
class: "form-control",
150+
class: "form-select",
151151
title: by_type_tooltip,
152152
data: { toggle: "tooltip", placement: "bottom" } %>
153153
</span>

app/views/org_admin/questions/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:title,
3333
question.question_format_id),
3434
{},
35-
class: "form-control question_format",
35+
class: "form-select question_format",
3636
'data-toggle': 'tooltip',
3737
'data-html': true,
3838
title: _("You can choose from:<ul><li>- text area (large box for paragraphs);</li> <li>- text field (for a short answer);</li> <li>- checkboxes where options are presented in a list and multiple values can be selected;</li> <li>- radio buttons where options are presented in a list but only one can be selected;</li> <li>- dropdown like this box - only one option can be selected;</li> <li>- multiple select box allows users to select several options from a scrollable list, using the CTRL key;</li></ul>")

app/views/org_admin/users/edit.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<%= select_tag(:department_id,
3333
options_from_collection_for_select(@departments, "id", "name", dept_id),
3434
include_blank: true,
35-
class: "form-control",
35+
class: "form-select",
3636
name: 'user[department_id]') %>
3737
</div>
3838
<% end %>
@@ -44,7 +44,7 @@
4444
<%= select_tag(:org_admin_user_language_id,
4545
options_from_collection_for_select(Language.sorted_by_abbreviation, "id", "name", lang_id),
4646
disabled: true,
47-
class: "form-control", name: 'org_admin_user[language_id]') %>
47+
class: "form-select", name: 'org_admin_user[language_id]') %>
4848
</div>
4949
<% end %>
5050

0 commit comments

Comments
 (0)