Skip to content

Commit 14bbdde

Browse files
committed
Back merge branch 'release/21.2.0' into develop
2 parents 830b80e + 28eb4c3 commit 14bbdde

File tree

21 files changed

+196
-67
lines changed

21 files changed

+196
-67
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [21.2.0] - 2021-04-19
8+
### Added
9+
- field and relationship for custom metadata field and its schema to registration providers
10+
- a link to the registration metadata to the Internet Archive copy
11+
12+
### Removed
13+
- "powered by Share" logo on discover pages
14+
15+
### Changed
16+
- show provider description on provider's discover page
17+
- allow branded provider descriptions to have color options
18+
19+
## [21.1.1] - 2021-04-12
20+
### Fixed
21+
- `draftRegistration.branchedFrom` node permission errors
22+
- Make it so the draft page doesn't break when a contributor on the draft doesn't have access to the `branched_from` node.
23+
724
## [21.1.0] - 2021-03-30
825
### Added
926
- no-project registrations
@@ -1692,7 +1709,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
16921709
### Added
16931710
- Quick Files
16941711

1695-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.1.0...develop
1712+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/21.2.0...develop
1713+
[21.2.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.2.0
1714+
[21.1.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.1.1
16961715
[21.1.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/21.1.0
16971716
[20.13.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.13.0
16981717
[20.12.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.12.1

app/styles/_variables.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ $color-alt: #c7ffc7;
120120
$color-select: #337ab7;
121121
$color-grey: #333;
122122
$color-filter-bg: #a4b3bd;
123+
$color-red: #f00;
124+
$color-green: #090;
125+
$color-yellow: #ff0;
126+
$color-turquoise: rgb(64, 224, 211);
127+
$color-purple: rgb(154, 0, 192);
128+
$color-black: #000;
123129

124130
.bg-color-blue {
125131
background-color: $color-blue;

lib/app-components/addon/components/project-contributors/search/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
</h3>
4848
{{#if this.search.isRunning}}
4949
<div class='text-center'>
50-
<FaIcon @icon='spinner' @pulse={{true}} @size={{2}} />
50+
<FaIcon @icon='spinner' @pulse={{true}} @size='2x' />
5151
</div>
5252
{{else if this.results.length}}
5353
<table class='table'>

lib/collections/addon/components/collections-submission/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<FaIcon
6262
@icon='spinner'
6363
@pulse={{true}}
64-
@size={{2}}
64+
@size='2x'
6565
/>
6666
</div>
6767
{{/if}}

lib/collections/addon/components/discover-page/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
class='text-center p-v-md'
170170
aria-label={{t 'collections.discover_page.searchLoading'}}
171171
>
172-
<FaIcon @icon='spinner' @pulse={{true}} @size={{3}} />
172+
<FaIcon @icon='spinner' @pulse={{true}} @size='3x' />
173173
</div>
174174
{{else}}
175175
{{#if this.numberOfResults}}

lib/osf-components/addon/components/file-browser/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@
441441
<div class='file-browser-list' local-class='file-browser-list'>
442442
<div local-class='shade {{unless this.dropping 'transparent'}}'>
443443
<div local-class='upload-drop'>
444-
<div local-class='upload-text'>{{fa-icon 'upload' size=5}}</div>
444+
<div local-class='upload-text'>{{fa-icon 'upload' size='5x'}}</div>
445445
<div local-class='upload-text'>{{t 'file_browser.drop_reminder'}}</div>
446446
</div>
447447
</div>
@@ -480,7 +480,7 @@
480480
<div local-class='file-placeholder'>
481481
{{#if this.canEdit}}
482482
<div local-class='file-placeholder-content'>
483-
<div>{{fa-icon 'upload' size=5}}</div>
483+
<div>{{fa-icon 'upload' size='5x'}}</div>
484484
<div local-class='file-placeholder-text'>{{t 'file_browser.drop_placeholder'}}</div>
485485
</div>
486486
{{else}}

lib/osf-components/addon/components/files/list/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{{else}}
99
{{#if @filesManager.canEdit}}
1010
<div data-test-no-files-placeholder local-class='placeholder'>
11-
<FaIcon @icon='upload' @size='4' />
11+
<FaIcon @icon='upload' @size='4x' />
1212
{{t 'osf-components.files-widget.drag_drop_files'}}
1313
</div>
1414
{{/if}}

lib/osf-components/addon/components/files/manager/component.ts

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { tagName } from '@ember-decorators/component';
22
import Component from '@ember/component';
3-
import { assert } from '@ember/debug';
43
import { action, computed } from '@ember/object';
54
import { alias, or } from '@ember/object/computed';
65
import { inject as service } from '@ember/service';
@@ -130,19 +129,19 @@ export default class FilesManagerComponent extends Component {
130129

131130
@task({ withTestWaiter: true, restartable: true, on: 'didReceiveAttrs' })
132131
getRootItems = task(function *(this: FilesManagerComponent) {
133-
assert('@node is required', Boolean(this.node));
134-
135-
const fileProviders = yield this.node.files;
136-
const fileProvider = fileProviders.findBy('name', 'osfstorage') as FileProvider;
137-
const rootFolder = yield fileProvider.rootFolder;
138-
139-
yield rootFolder.files;
140-
141-
this.setProperties({
142-
fileProvider,
143-
rootFolder,
144-
currentFolder: rootFolder,
145-
});
132+
if (this.node) {
133+
const fileProviders = yield this.node.files;
134+
const fileProvider = fileProviders.findBy('name', 'osfstorage') as FileProvider;
135+
const rootFolder = yield fileProvider.rootFolder;
136+
137+
yield rootFolder.files;
138+
139+
this.setProperties({
140+
fileProvider,
141+
rootFolder,
142+
currentFolder: rootFolder,
143+
});
144+
}
146145
});
147146

148147
@task({ withTestWaiter: true })

lib/osf-components/addon/components/files/menu/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
@onClick={{action dropdownMenu.toggle}}
1212
@type='success'
1313
>
14-
<FaIcon @icon='plus' @size='2' @fixedWidth={{true}} />
14+
<FaIcon @icon='plus' @size='2x' @fixedWidth={{true}} />
1515
</OsfButton>
1616
</div>
1717
<dropdownMenu.content>

lib/osf-components/addon/components/node-doi-create/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div local-class='CreateMessage'>
2-
<FaIcon @icon='info-circle' @size='4' @fixedWidth={{true}} />
2+
<FaIcon @icon='info-circle' @size='4x' @fixedWidth={{true}} />
33
<div>
44
<p>{{t 'registries.registration_metadata.mint_doi.header'}}</p>
55
<p>{{t 'registries.registration_metadata.mint_doi.text'}}</p>

0 commit comments

Comments
 (0)