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 & realign themes #3506

Open
wants to merge 84 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 70 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
f8e1e58
117631: upgraded bootstrap, ng-bootstrap and installed popper.js
LotteHofstede Aug 28, 2024
de513ba
117631: SASS to CSS variables
ybnd Mar 18, 2022
cc9c158
117631: Bootstrap 4 to 5 html/css fixes
LotteHofstede Aug 28, 2024
6e13b4b
117631: Theming fixes after bootstrap upgrade
LotteHofstede Aug 29, 2024
76920dc
117631: More theming fixes: accordions, spacing, search components etc
LotteHofstede Aug 30, 2024
d877d65
117631: Fixed tests
LotteHofstede Aug 30, 2024
b32b850
117631: Fixed offset issues
LotteHofstede Aug 30, 2024
37eb758
117631: Fixed contrast ratio issue
LotteHofstede Sep 2, 2024
8eeb0f4
117631: Fixed variables, removed unnecessary mapping, fixed tables, u…
LotteHofstede Sep 2, 2024
fecb39c
118113: vertical footer deviders
Wout-atmire Sep 5, 2024
0b287b7
118113: remove button shadow
Wout-atmire Sep 6, 2024
f95276e
118113: old checkboxes
Wout-atmire Sep 6, 2024
9ad28a0
118113: Custom icons font-family
Wout-atmire Sep 11, 2024
bbb14cf
118113: accordion color
Wout-atmire Sep 11, 2024
98ce20f
118113: table striped customizable background-color
Wout-atmire Sep 11, 2024
75d51b0
118113: revert vertical deviders in footer bs-secondary change
Wout-atmire Sep 11, 2024
2bf113d
118113: modal close button
Wout-atmire Sep 11, 2024
ca588e8
118113: add w-100 to btn-block elements
Wout-atmire Sep 11, 2024
d616b06
118113: border radius
Wout-atmire Sep 11, 2024
b23e758
118113: The date selector on the submission page gets squished to the…
Wout-atmire Sep 11, 2024
8d264dc
118113: adding margins to dynamic-form-control-containers
Wout-atmire Sep 11, 2024
759038b
118113: adding gaps between sections of item submission form
Wout-atmire Sep 11, 2024
4b10994
118113: icon font-family removed !important
Wout-atmire Sep 12, 2024
28b838c
118113: removed !important from #legend_dc_date_issued
Wout-atmire Sep 12, 2024
3ac4858
118113: move --bs-border-radius to $bs-border-radius
Wout-atmire Sep 12, 2024
b8e9340
118113: remove new SCSS variable
Wout-atmire Sep 12, 2024
758c3aa
118113: reduce size for Item type labels
Wout-atmire Sep 12, 2024
b3c5d94
118113: date picker border - transparent
Wout-atmire Sep 12, 2024
586f5ea
118113: drag-item-container elements on same line
Wout-atmire Sep 12, 2024
4ce65dd
118113: specific border color for ds-number-picker buttons
Wout-atmire Sep 13, 2024
e11beaf
Simplify variables & styles
ybnd Sep 16, 2024
792e824
Merge remote-tracking branch 'ds/main' into w2p-118627_realing-standa…
Wout-atmire Sep 19, 2024
3998af4
118627: html files
Wout-atmire Sep 20, 2024
92ce74e
Fix new SCSS compile issues, remove yarn.lock
ybnd Sep 20, 2024
72431e4
118627: remove footer button shadow
Wout-atmire Sep 25, 2024
d38788b
118627: custom login button radius
Wout-atmire Sep 25, 2024
6b25d5b
118627: success button - white text
Wout-atmire Sep 25, 2024
b1eed67
118627: table alternate colors
Wout-atmire Sep 25, 2024
4f0c578
Fix ghostly Bootstrap version, again
ybnd Sep 26, 2024
f454e02
Override (ng-)bootstrap versions for @ng-dynamic-forms
ybnd Sep 26, 2024
24e5eb9
118627: Feedback - fix login button radius
Wout-atmire Sep 26, 2024
6eae16e
118627: Feedback - fix footer button shadows
Wout-atmire Sep 27, 2024
02200a7
118627: Feedback - login border radius use $bs-border-radius-lg + cha…
Wout-atmire Sep 27, 2024
8df999f
118627: Tooltip issue
Wout-atmire Sep 27, 2024
dae5048
118627: Metadata white authority badge
Wout-atmire Sep 27, 2024
4dd5132
118627: Align Back button
Wout-atmire Sep 27, 2024
5e13587
118627: Bitstreams under Item's Metadata issue fix
Wout-atmire Sep 27, 2024
9395a71
118627: select on edit collection page "arrow icon"
Wout-atmire Sep 27, 2024
531207d
118627: fix alignment issues
Wout-atmire Sep 27, 2024
85ba7ed
118627: fix admin sidebar "Managment" label
Wout-atmire Sep 27, 2024
cad330b
118627: Feedback - login button
Wout-atmire Sep 27, 2024
3832b2a
118627: Line above table heads
Wout-atmire Sep 27, 2024
f0db5ed
118627: Remove HMTL accordion expandable arrow
Wout-atmire Sep 30, 2024
f0788e0
118627: bitstream table
Wout-atmire Sep 30, 2024
d23db95
118627: notification "close button"
Wout-atmire Sep 30, 2024
0f17c1f
118627: faint border/shadow around the expand buttons on hierarchical…
Wout-atmire Sep 30, 2024
92ec894
118627: tooltip margin
Wout-atmire Sep 30, 2024
355ca55
118627: Bootstrap 5 changed the default gutter size to 24px
Wout-atmire Sep 30, 2024
e88ca3a
118627: custom-aligning -> custom-alignment
Wout-atmire Sep 30, 2024
f7e7889
118627: lint-fix
Wout-atmire Oct 16, 2024
ca3f9a1
Merge remote-tracking branch 'ds/main' into w2p-118627_realing-standa…
Wout-atmire Oct 16, 2024
2196138
118627: lint fix
Wout-atmire Oct 16, 2024
fcede75
118627: e2e Fix with new "btn-close"
Wout-atmire Oct 17, 2024
38a92c6
118627: e2e Fix heading order for access-control-form-container
Wout-atmire Oct 18, 2024
94d446e
118627: access-control-form-container mr-4 to me-4
Wout-atmire Oct 18, 2024
5442dc3
118627: update mr to me & ml to ms & pr to ps & pl to ps
Wout-atmire Oct 18, 2024
0c6c918
118627: Access Control "Mode" radiobuttons under Text
Wout-atmire Oct 18, 2024
57ec6e5
118627: Item submission Publisher select icon positioning
Wout-atmire Oct 18, 2024
3f1d510
Merge remote-tracking branch 'ds/main' into w2p-118627_realign-standa…
Wout-atmire Oct 25, 2024
5c541c4
118627: resolved merge conflict with main (and npm install)
Wout-atmire Oct 25, 2024
a801fb0
118627: cherrypicking 3553 commits
tdonohue Oct 23, 2024
6ce8172
Remove unused angular-idle-preload
tdonohue Oct 23, 2024
3818360
118627: npm install - to fix package-lock.json
tdonohue Oct 23, 2024
6884ac0
Merge remote-tracking branch 'ds/main' into w2p-118627_realign-standa…
Wout-atmire Oct 30, 2024
327c02e
Merge remote-tracking branch 'ds/main' into w2p-118627_realign-standa…
Wout-atmire Nov 18, 2024
6fb26c0
120594: hamberger menu not showing fix
Wout-atmire Nov 27, 2024
1910cd2
120594: big logo header issue
Wout-atmire Nov 27, 2024
77d2178
120594: remove faint shadow
Wout-atmire Nov 29, 2024
6e2eddf
120594: btn-transparent class
Wout-atmire Nov 29, 2024
d315929
Merge remote-tracking branch 'origin/main' into w2p-118627_realign-st…
ybnd Dec 4, 2024
a1282c8
120594: badge-* to bg-*
Wout-atmire Dec 4, 2024
c848cce
120594: add padding-right & -left for rounded-pill
Wout-atmire Dec 4, 2024
90474f9
Merge branch 'w2p-120594_fix-bootstrap5-feedback' into w2p-118627_rea…
Wout-atmire Dec 10, 2024
b23c151
120594: update test variables to fit the new bootstrap variables
Wout-atmire Dec 18, 2024
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
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion cypress/e2e/submission.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe('New Submission page', () => {
});

// Close popup window
cy.get('ds-dynamic-lookup-relation-modal button.close').click();
cy.get('ds-dynamic-lookup-relation-modal button.btn-close').click();

// Back on the form, click the discard button to remove new submission
// Clicking it will display a confirmation, which we will confirm with another click
Expand Down
57 changes: 28 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
"@angular/forms": "^17.3.11"
},
"@ng-dynamic-forms/ui-ng-bootstrap": {
"ngx-mask": "14.2.4"
"ngx-mask": "14.2.4",
"@ng-bootstrap/ng-bootstrap": "^12.0.0",
"bootstrap": "^5.3"
},
"@ngtools/webpack": {
"@angular/compiler-cli": "^17.3.11",
Expand Down Expand Up @@ -110,17 +112,20 @@
"@angular/ssr": "^17.3.10",
"@babel/runtime": "7.25.9",
"@kolkov/ngx-gallery": "^2.0.1",
"@ng-bootstrap/ng-bootstrap": "^11.0.0",
"@ng-bootstrap/ng-bootstrap": "^12.0.0",
"@ng-dynamic-forms/core": "^16.0.0",
"@ng-dynamic-forms/ui-ng-bootstrap": "^16.0.0",
"@ngrx/effects": "^17.1.1",
"@ngrx/router-store": "^17.1.1",
"@ngrx/store": "^17.1.1",
"@ngx-translate/core": "^14.0.0",
"@nicky-lenaers/ngx-scroll-to": "^14.0.0",
"@popperjs/core": "^2.9.2",
"@types/grecaptcha": "^3.0.4",
"angular-idle-preload": "3.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

@Wout-atmire : Please don't add @types/grecaptcha back in the main dependencies. This was moved to devDependencies in #3553, and you are reverting those changes.

You've also reverted the removal of angular-idle-preload, which is no longer used in DSpace (again this was removed in #3553).

"angulartics2": "^12.2.0",
"axios": "^1.7.4",
"bootstrap": "^4.6.1",
"bootstrap": "^5.3",
"cerialize": "0.1.18",
"cli-progress": "^3.12.0",
"colors": "^1.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
<ngb-accordion #acc="ngbAccordion" [activeIds]="'browse'">
<ngb-panel [id]="'browse'">
<ng-template ngbPanelHeader>
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle('browse')"
<ng-template ngbPanelTitle>
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" (click)="acc.toggle('browse')"
data-test="browse">
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()"
[attr.aria-expanded]="acc.isExpanded('browse')"
aria-controls="bulk-access-browse-panel-content">
{{ 'admin.access-control.bulk-access-browse.header' | translate }}
</button>
<div class="text-right d-flex gap-2">
<div class="d-flex my-auto">
<span *ngIf="acc.isExpanded('browse')" class="fas fa-chevron-up fa-fw"></span>
<span *ngIf="!acc.isExpanded('browse')" class="fas fa-chevron-down fa-fw"></span>
</div>
</div>
</div>
</ng-template>
<ng-template ngbPanelContent>
Expand All @@ -22,7 +16,7 @@
<li [ngbNavItem]="'search'" role="presentation">
<a ngbNavLink>{{'admin.access-control.bulk-access-browse.search.header' | translate}}</a>
<ng-template ngbNavContent>
<div class="mx-n3">
<div class="bulk-access-search">
<ds-search [configuration]="'administrativeBulkAccess'"
[selectable]="true"
[selectionConfig]="{ repeatable: true, listId: listId }"
Expand All @@ -42,7 +36,7 @@
[showPaginator]="false"
(prev)="pagePrev()"
(next)="pageNext()">
<ul *ngIf="(objectsSelected$|async)?.hasSucceeded" class="list-unstyled ml-4">
<ul *ngIf="(objectsSelected$|async)?.hasSucceeded" class="list-unstyled ms-4">
<li *ngFor='let object of (objectsSelected$|async)?.payload?.page | paginate: { itemsPerPage: (paginationOptions$ | async).pageSize,
currentPage: (paginationOptions$ | async).currentPage, totalItems: (objectsSelected$|async)?.payload?.page.length }; let i = index; let last = last '
class="mt-4 mb-4 d-flex"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.bulk-access-search {
margin-right: calc(var(--bs-gutter-x, 1.5rem) / -2);
margin-left: calc(var(--bs-gutter-x, 1.5rem) / -2);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1>{{ 'admin.access-control.bulk-access.title' | translate }}</h1>
<hr>

<div class="d-flex justify-content-end">
<button class="btn btn-outline-primary mr-3" (click)="reset()">
<button class="btn btn-outline-primary me-3" (click)="reset()">
{{ 'access-control-cancel' | translate }}
</button>
<button class="btn btn-primary" [disabled]="!canExport()" (click)="submit()">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<ngb-accordion #acc="ngbAccordion" [activeIds]="'settings'">
<ngb-panel [id]="'settings'">
<ng-template ngbPanelHeader>
<ng-template ngbPanelTitle>
<div class="w-100 d-flex gap-3 justify-content-between collapse-toggle" ngbPanelToggle (click)="acc.toggle('settings')" data-test="settings">
<button type="button" class="btn btn-link p-0" (click)="$event.preventDefault()" [attr.aria-expanded]="acc.isExpanded('settings')"
aria-controls="bulk-access-settings-panel-content">
{{ 'admin.access-control.bulk-access-settings.header' | translate }}
</button>
<div class="text-right d-flex gap-2">
<div class="d-flex my-auto">
<span *ngIf="acc.isExpanded('settings')" class="fas fa-chevron-up fa-fw"></span>
<span *ngIf="!acc.isExpanded('settings')" class="fas fa-chevron-down fa-fw"></span>
</div>
</div>
</div>
</ng-template>
<ng-template ngbPanelContent>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<h1 id="header" class="pb-2">{{labelPrefix + 'head' | translate}}</h1>

<div>
<button class="mr-auto btn btn-success addEPerson-button"
<button class="me-auto btn btn-success addEPerson-button"
[routerLink]="'create'">
<i class="fas fa-plus"></i>
<span class="d-none d-sm-inline ml-1">{{labelPrefix + 'button.add' | translate}}</span>
<span class="d-none d-sm-inline ms-1">{{labelPrefix + 'button.add' | translate}}</span>
</button>
</div>
</div>
Expand All @@ -18,17 +18,17 @@ <h2 id="search" class="border-bottom pb-2">
</h2>
<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
<div>
<select name="scope" id="scope" formControlName="scope" class="form-control" aria-label="Search scope">
<select name="scope" id="scope" formControlName="scope" class="form-select" aria-label="Search scope">
<option value="metadata">{{labelPrefix + 'search.scope.metadata' | translate}}</option>
<option value="email">{{labelPrefix + 'search.scope.email' | translate}}</option>
</select>
</div>
<div class="flex-grow-1 mr-3 ml-3">
<div class="form-group input-group">
<div class="flex-grow-1 me-3 ms-3">
<div class="mb-3 input-group">
<input type="text" name="query" id="query" formControlName="query"
class="form-control" [attr.aria-label]="labelPrefix + 'search.placeholder' | translate"
[placeholder]="(labelPrefix + 'search.placeholder' | translate)">
<span class="input-group-append">
<span class="input-group-append">
<button type="submit" class="search-button btn btn-primary">
<i class="fas fa-search"></i> {{ labelPrefix + 'search.button' | translate }}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h1 class="border-bottom pb-2">{{messagePrefix + '.edit' | translate}}</h1>
<i class="fa fa-key"></i> {{'admin.access-control.epeople.actions.reset' | translate}}
</button>
</div>
<div *ngIf="canImpersonate$ | async" between class="btn-group">
<div *ngIf="canImpersonate$ | async" between class="btn-group ms-1">
<button *ngIf="!isImpersonated" class="btn btn-primary" type="button" (click)="impersonate()">
<i class="fa fa-user-secret"></i> {{'admin.access-control.epeople.actions.impersonate' | translate}}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ <h3 id="search" class="border-bottom pb-2">
</h3>

<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
<div class="flex-grow-1 mr-3">
<div class="form-group input-group mr-3">
<div class="flex-grow-1 me-3">
<div class="form-group input-group me-3">
<input type="text" name="query" id="query" formControlName="query"
class="form-control" aria-label="Search input">
<span class="input-group-append">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ <h4 id="search" class="border-bottom pb-2">

</h4>
<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
<div class="flex-grow-1 mr-3">
<div class="form-group input-group mr-3">
<div class="flex-grow-1 me-3">
<div class="mb-3 input-group me-3">
<input type="text" name="query" id="query" formControlName="query"
class="form-control" aria-label="Search input">
<span class="input-group-append">
Expand All @@ -75,7 +75,7 @@ <h4 id="search" class="border-bottom pb-2">
</div>
</div>
<div>
<button (click)="clearFormAndResetResult();" class="btn btn-secondary float-right">
<button (click)="clearFormAndResetResult();" class="btn btn-secondary float-end">
{{messagePrefix + '.button.see-all' | translate}}
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
<div class="d-flex justify-content-between border-bottom mb-3">
<h1 id="header" class="pb-2">{{messagePrefix + 'head' | translate}}</h1>
<div>
<button class="mr-auto btn btn-success"
<button class="me-auto btn btn-success"
[routerLink]="'create'">
<i class="fas fa-plus"></i>
<span class="d-none d-sm-inline ml-1">{{messagePrefix + 'button.add' | translate}}</span>
<span class="d-none d-sm-inline ms-1">{{messagePrefix + 'button.add' | translate}}</span>
</button>
</div>
</div>

<h2 id="search" class="border-bottom pb-2">{{messagePrefix + 'search.head' | translate}}</h2>
<form [formGroup]="searchForm" (ngSubmit)="search(searchForm.value)" class="d-flex justify-content-between">
<div class="flex-grow-1 mr-3">
<div class="form-group input-group">
<div class="flex-grow-1 me-3">
<div class="mb-3 input-group">
<input type="text" name="query" id="query" formControlName="query"
class="form-control" [attr.aria-label]="messagePrefix + 'search.placeholder' | translate"
[placeholder]="(messagePrefix + 'search.placeholder' | translate)" >
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h1 id="header">{{'admin.batch-import.page.header' | translate}}</h1>
<p>
<button class="btn btn-primary" (click)="this.selectCollection();">{{'admin.metadata-import.page.button.select-collection' | translate}}</button>
</p>
<div class="form-group">
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="validateOnly" [(ngModel)]="validateOnly">
<label class="form-check-label" for="validateOnly">
Expand All @@ -25,7 +25,7 @@ <h1 id="header">{{'admin.batch-import.page.header' | translate}}</h1>
[uncheckedLabel]="'admin.metadata-import.page.toggle.url' | translate"
[checked]="isUpload"
(change)="toggleUpload()" ></ui-switch>
<small class="form-text text-muted">
<small class="form-text text-muted d-block">
{{'admin.batch-import.page.toggle.help' | translate}}
</small>

Expand All @@ -38,7 +38,7 @@ <h1 id="header">{{'admin.batch-import.page.header' | translate}}</h1>
[dropMessageLabelReplacement]="'admin.batch-import.page.dropMsgReplace'">
</ds-file-dropzone-no-uploader>

<div class="form-group mt-2" *ngIf="!isUpload">
<div class="mb-3 mt-2" *ngIf="!isUpload">
<input class="form-control" type="text" placeholder="{{'admin.metadata-import.page.urlMsg' | translate}}"
data-test="file-url-input" [(ngModel)]="fileURL">
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container">
<h1 id="header">{{'admin.metadata-import.page.header' | translate}}</h1>
<p>{{'admin.metadata-import.page.help' | translate}}</p>
<div class="form-group">
<div class="mb-3">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="validateOnly" [(ngModel)]="validateOnly">
<label class="form-check-label" for="validateOnly">
Expand Down
Loading
Loading