Skip to content

Commit 0bface3

Browse files
committed
Merge branch 'release/20.13.0'
2 parents 0c038c9 + a24c3c3 commit 0bface3

File tree

21 files changed

+541
-293
lines changed

21 files changed

+541
-293
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ 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+
## [20.13.0] - 2020-12-17
8+
### Added
9+
- moderation tests
10+
- the embargo end date to the moderation dropdown on the registration overview page
11+
- sub-dependency security (minor) upgrades
12+
713
## [20.12.1] - 2020-12-09
814
### Added
915
- help text to the license metadata section when submitting registration
@@ -1682,7 +1688,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
16821688
### Added
16831689
- Quick Files
16841690

1685-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/20.12.1...develop
1691+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/20.13.0...develop
1692+
[20.13.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.13.0
16861693
[20.12.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.12.1
16871694
[20.12.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.12.0
16881695
[20.11.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/20.11.0

lib/registries/addon/components/registration-list/card/component.ts renamed to lib/osf-components/addon/components/registries/registration-list/card/component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Component from '@glimmer/component';
2-
32
import RegistrationModel, { RegistrationReviewStates } from 'ember-osf-web/models/registration';
43

54
const iconMap: Partial<Record<RegistrationReviewStates, string>> = {

lib/registries/addon/components/registration-list/card/styles.scss renamed to lib/osf-components/addon/components/registries/registration-list/card/styles.scss

File renamed without changes.

lib/registries/addon/components/registration-list/card/template.hbs renamed to lib/osf-components/addon/components/registries/registration-list/card/template.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
{{@registration.title}}
1919
{{else}}
2020
<OsfLink
21+
data-test-registration-title-link
2122
@route='registries.overview'
2223
@models={{array @registration.id}}
2324
@queryParams={{hash mode='moderator'}}

lib/registries/addon/components/registration-list/list/styles.scss renamed to lib/osf-components/addon/components/registries/registration-list/list/styles.scss

File renamed without changes.

lib/registries/addon/components/registration-list/list/template.hbs renamed to lib/osf-components/addon/components/registries/registration-list/list/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
>
1010
<list.item as |registration|>
1111
{{#if registration}}
12-
<RegistrationList::Card
12+
<Registries::RegistrationList::Card
1313
@registration={{registration}}
1414
@state={{@manager.state}}
1515
/>

lib/registries/addon/components/registration-list/manager/component.ts renamed to lib/osf-components/addon/components/registries/registration-list/manager/component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import Component from '@ember/component';
22
import { action, computed } from '@ember/object';
3-
3+
import { layout } from 'ember-osf-web/decorators/component';
44
import { RegistrationReviewStates } from 'ember-osf-web/models/registration';
5+
import template from './template';
56

7+
@layout(template)
68
export default class RegistrationListManager extends Component {
79
reloadRegistrationsList!: () => void;
810
state!: RegistrationReviewStates | string;

lib/registries/addon/components/registration-list/manager/template.hbs renamed to lib/osf-components/addon/components/registries/registration-list/manager/template.hbs

File renamed without changes.

lib/osf-components/addon/components/registries/review-actions-list/review-action/component.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ export default class ReviewAction extends Component<Args> {
3838
});
3939
}
4040
if ([ReviewActionTrigger.RequestWithdrawal,
41-
ReviewActionTrigger.Submit,
4241
ReviewActionTrigger.RequestEmbargoTermination].includes(reviewAction.actionTrigger)) {
4342
return this.intl.t('registries.reviewAction.contributorAction',
4443
{
@@ -47,6 +46,21 @@ export default class ReviewAction extends Component<Args> {
4746
date: formattedTimeSince(reviewAction.dateModified),
4847
});
4948
}
49+
if (reviewAction.actionTrigger === ReviewActionTrigger.Submit) {
50+
if (this.args.embargoEndDate) {
51+
return this.intl.t('registries.reviewAction.submitActionWithEmbargo',
52+
{
53+
contributor: reviewAction.creator.get('fullName'),
54+
date: formattedTimeSince(reviewAction.dateModified),
55+
embargoEndDate: this.intl.formatDate(this.args.embargoEndDate, { locale: this.intl.locale }),
56+
});
57+
}
58+
return this.intl.t('registries.reviewAction.submitActionWithoutEmbargo',
59+
{
60+
contributor: reviewAction.creator.get('fullName'),
61+
date: formattedTimeSince(reviewAction.dateModified),
62+
});
63+
}
5064
return this.intl.t('registries.reviewAction.moderatorAction',
5165
{
5266
action: reviewAction.triggerPastTense,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from 'osf-components/components/registries/registration-list/card/component';

0 commit comments

Comments
 (0)