Skip to content

Commit 3b651a1

Browse files
committed
Merge branch 'release/19.10.0'
2 parents bb4f5ac + 29fe2ab commit 3b651a1

File tree

282 files changed

+5584
-651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

282 files changed

+5584
-651
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ root = true
66

77

88
[*]
9-
end_of_line = lf
9+
# end_of_line = lf (https://github.com/editorconfig/editorconfig/issues/226)
1010
charset = utf-8
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ module.exports = {
4343
asyncArrow: 'always',
4444
}],
4545
'no-underscore-dangle': 'off',
46+
'linebreak-style': ['error', (process.platform === 'win32' ? 'windows' : 'unix')],
4647
},
4748
overrides: [
4849
{

CHANGELOG.md

Lines changed: 190 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,194 @@ 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+
## [19.10.0] - 2019-10-02
8+
### Added
9+
- Models
10+
- `institutional-user`
11+
- Helpers
12+
- `random-text`
13+
- generates random text
14+
- `unique-id`
15+
- generate a unique-enough string for use in a DOM element's `id`
16+
- `has-validation-error`
17+
- check if a list of validator results contains a validation error
18+
- Components
19+
- `subjects/`
20+
- `browse`
21+
- `browse/animated-expand`
22+
- `browse/browse-manager`
23+
- `browse/item-list`
24+
- `browse/item`
25+
- `display`
26+
- `manager`
27+
- `manager/single`
28+
- `search`
29+
- `search/search-result`
30+
- `widget`
31+
- `editable-field/subject-field-manager`
32+
- `files/`
33+
- `browse`
34+
- `item`
35+
- `list`
36+
- `manager`
37+
- `selected-list`
38+
- `upload-zone`
39+
- `widget`
40+
- Validators
41+
- `list` - apply a validator to a list
42+
- Tests
43+
- Unit
44+
- helpers
45+
- `has-validation-error`
46+
- validators
47+
- `validateList`
48+
- Integration
49+
- `unique-id`
50+
- `random-text`
51+
- `Files::Widget`
52+
- Ember Optional Features
53+
- `template-only-glimmer-components`
54+
- Mirage
55+
- Factories
56+
- `subject`
57+
- `file-provider`
58+
- Serializers
59+
- `subject`
60+
- `file-provider`
61+
- Views
62+
- `provider-subjects`
63+
- `file`
64+
- Types
65+
- `ember-animated`
66+
- Packages
67+
- `ember-animated`
68+
- `ember-element-helper` (`fix-engines` branch)
69+
- Handbook
70+
- `Subjects::Widget` component to gallery
71+
- `Files::Widget` component to gallery
72+
- `validateList` validator
73+
- `has-validation-error` helper
74+
75+
### Changed
76+
- Models
77+
- `taxonomy`
78+
- renamed to `subject` and updated for new subjects-as-relationships architecture
79+
- `node`
80+
- changed `subjects` attribute into a hasMany relationship
81+
- `preprint`
82+
- changed `subjects` attribute into a hasMany relationship
83+
- removed `uniqueSubjects` computed property
84+
- `preprint-provider`
85+
- changed `hasHighlightedSubjects` alias to use `highlighted_subjects` related link meta
86+
- `provider`
87+
- renamed `taxonomies` hasMany relationship to `subjects`
88+
- renamed `highlightedTaxonomies` hasMany relationship to `highlightedSubjects`
89+
- `file`
90+
- rename `node` belongsTo relationship to `target`
91+
- Serializers
92+
- `taxonomy`
93+
- renamed to `subject`
94+
- Adapters
95+
- `taxonomy`
96+
- renamed to `subject`
97+
- Components
98+
- `editable-field`
99+
- use `osf-dialog` instead of `bs-modal`
100+
- pass `@fixedWidth` through to `OsfDialog`
101+
- use `@manager.isSaving` to disable submit & cancel buttons
102+
- `category-manager`
103+
- expose `isSaving` as alias for `save.isRunning`
104+
- `description-manager`
105+
- expose `isSaving` as alias for `save.isRunning`
106+
- `institutions-manager`
107+
- expose `isSaving` as alias for `save.isRunning`
108+
- `license-manager`
109+
- expose `isSaving` as alias for `save.isRunning`
110+
- `publication-doi-manager`
111+
- expose `isSaving` as alias for `save.isRunning`
112+
- `tags-manager`
113+
- expose `isSaving` as alias for `save.isRunning`
114+
- `node-category-picker`
115+
- remove `@renderInPlace={{true}}` from `PowerSelect` invocation
116+
- `zoom-to-route`
117+
- remove `@renderInPlace={{true}}` from `PowerSelect` invocation
118+
- `registries/registries-license-picker`
119+
- remove `@renderInPlace={{true}}` from `PowerSelect` invocation
120+
- `registries/license-viewer`
121+
- use `osf-dialog` instead of `bs-modal`
122+
- `file-icon`
123+
- folders should always use folder icon
124+
- `sort-button`
125+
- suppress box-shadow when active
126+
- `osf-dialog`
127+
- darken background overlay
128+
- `registries/registries-metadata`
129+
- use `Subjects::Widget` and `Subjects::Display` (and related managers) for subjects editable field
130+
- Tests
131+
- renamed `taxonomy` to `subject` in `preprint-provider` FactoryGuy factory
132+
- Unit
133+
- `adapters/taxonomy-test` renamed to `adapters/subject-test`
134+
- `models/taxonomy-test` renamed to `models/subject-test`
135+
- `serializers/taxonomy-test` renamed to `serializers/subject-test`
136+
- `models/preprint-test`
137+
- removed test for `subject` attribute
138+
- Mirage
139+
- Factories
140+
- `node`
141+
- removed `subjects` attribute
142+
- added `withFiles` trait
143+
- `registration`
144+
- added `widthSubjects` trait
145+
- `file`
146+
- added `target` association
147+
- addded `asFolder` trait
148+
- Serializers
149+
- `registration-provider`
150+
- added subjects related link
151+
- `registration`
152+
- added subjects self and related links
153+
- `file`
154+
- s/`node`/`target`/
155+
- added folder links
156+
- `node`
157+
- added files link
158+
- Views
159+
- `osf-resource`
160+
- added self link patch handling
161+
- Scenarios
162+
- `registration`
163+
- create some subjects
164+
- `handbook`
165+
- create a file tree for the handbook
166+
- Types
167+
- `ember-changeset-validations`
168+
- added `ValidatorFunction` and `ValidatorResult`
169+
- Config
170+
- updated to use API version 2.16
171+
- Packages
172+
- upgrade to `ember-animated@0.8.1`
173+
174+
### Removed
175+
- Tests
176+
- `taxonomy` FactoryGuy factory
177+
178+
### Fixed
179+
- Components
180+
- `home/support-section/support-item`
181+
- s/this./@/ because this is template-only
182+
- added splattributes because this is template-only
183+
- `registries/registries-advisory-board`
184+
- fixed template lint
185+
- added splattributes because this is template-only
186+
- `meetings/index/meetings-footer`
187+
- added splattributes because this is template-only
188+
- `registries/registries-advisory-board`
189+
- added splattributes because this is template-only
190+
- `registries/sharing-icons/popover`
191+
- added splattributes because this is template-only
192+
- Handbook
193+
- `osf-dialog` `demo-is-open` needs component file because it muts `isOpen`
194+
7195
## [19.9.0] - 2019-09-06
8196
### Added
9197
- Components
@@ -1167,7 +1355,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11671355
### Added
11681356
- Quick Files
11691357

1170-
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/19.9.0...develop
1358+
[Unreleased]: https://github.com/CenterForOpenScience/ember-osf-web/compare/19.10.0...develop
1359+
[19.10.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/19.10.0
11711360
[19.9.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/19.9.0
11721361
[19.8.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/19.8.0
11731362
[19.7.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/19.7.1

app/adapters/institutional-user.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import OsfAdapter from './osf-adapter';
2+
3+
export default class InstitutionalUserAdapter extends OsfAdapter {
4+
parentRelationship = 'institution';
5+
}
6+
7+
declare module 'ember-data/types/registries/adapter' {
8+
export default interface AdapterRegistry {
9+
'institutional-user': InstitutionalUserAdapter;
10+
} // eslint-disable-line semi
11+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import OsfAdapter from './osf-adapter';
22

3-
export default class TaxonomyAdapter extends OsfAdapter {
3+
export default class SubjectAdapter extends OsfAdapter {
44
}
55

66
declare module 'ember-data/types/registries/adapter' {
77
export default interface AdapterRegistry {
8-
taxonomy: TaxonomyAdapter;
8+
subject: SubjectAdapter;
99
} // eslint-disable-line semi
1010
}

app/app.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const App = Application.extend({
4343
'i18n',
4444
'ready',
4545
'router',
46+
'session',
4647
'store',
4748
'toast',
4849
'osf-modal-state',
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<div local-class='container'>
2-
{{#if (eq this.icon 'search')}}
3-
<img data-test-icon-image src='/assets/images/new-home/search.svg' alt={{this.icon}}>
4-
{{else if (eq this.icon 'pencil-alt')}}
5-
<img data-test-icon-image src='/assets/images/new-home/pencil-alt.svg' alt={{this.icon}}>
6-
{{else if (eq this.icon 'chart-area')}}
7-
<img data-test-icon-image src='/assets/images/new-home/chart-area.svg' alt={{this.icon}}>
8-
{{else if (eq this.icon 'file-alt')}}
9-
<img data-test-icon-image src='/assets/images/new-home/file-alt.svg' alt={{this.icon}}>
1+
<div local-class='container' ...attributes>
2+
{{#if (eq @icon 'search')}}
3+
<img data-test-icon-image src='/assets/images/new-home/search.svg' alt={{@icon}}>
4+
{{else if (eq @icon 'pencil-alt')}}
5+
<img data-test-icon-image src='/assets/images/new-home/pencil-alt.svg' alt={{@icon}}>
6+
{{else if (eq @icon 'chart-area')}}
7+
<img data-test-icon-image src='/assets/images/new-home/chart-area.svg' alt={{@icon}}>
8+
{{else if (eq @icon 'file-alt')}}
9+
<img data-test-icon-image src='/assets/images/new-home/file-alt.svg' alt={{@icon}}>
1010
{{/if}}
1111
<h2 data-test-support-header>
12-
{{this.header}}
12+
{{@header}}
1313
</h2>
1414
<p data-test-support-description>
15-
{{this.description}}
15+
{{@description}}
1616
</p>
1717
</div>

app/locales/en/translations.ts

Lines changed: 41 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export default {
7575
warning: 'Warning',
7676
sort_asc: 'Sort ascending',
7777
sort_desc: 'Sort descending',
78+
last_modified: 'Last modified',
7879
sort: 'Sort',
7980
asc_paren: '(asc)',
8081
desc_paren: '(desc)',
@@ -1160,32 +1161,34 @@ export default {
11601161
},
11611162

11621163
registration_metadata: {
1163-
contributors: 'Contributors',
1164-
description: 'Description',
1165-
show_more: 'Show more',
1166-
show_less: 'Show less',
1167-
no_description: 'No description given.',
1168-
registration_type: 'Registration type',
1169-
date_registered: 'Date registered',
1170-
date_created: 'Date created',
1171-
registered_from: 'Registered from',
1172-
category: 'Category',
1173-
registration_doi: 'Registration DOI',
1174-
publication_doi: 'Publication DOI',
1164+
add_description: 'Add description',
1165+
add_license: 'Add license',
11751166
affiliated_institutions: 'Affiliated institutions',
1176-
license: 'License',
1177-
no_license: 'No license',
1178-
no_publication_doi: 'No publication DOI given',
1179-
disciplines: 'Disciplines',
1180-
tags: 'Tags',
1167+
category: 'Category',
11811168
citation: 'Citation',
1182-
add_description: 'Add description',
1169+
contributors: 'Contributors',
11831170
create_doi: 'Create DOI',
1171+
date_created: 'Date created',
1172+
date_registered: 'Date registered',
1173+
description: 'Description',
1174+
disciplines: 'Disciplines',
11841175
edit_field: 'Edit {{field}}',
1176+
license: 'License',
1177+
no_description: 'No description',
11851178
no_doi: 'No DOI assigned',
1186-
add_license: 'Add license',
1187-
select_license: 'Select license',
1179+
no_license: 'No license',
11881180
no_matches: 'No matches found',
1181+
no_publication_doi: 'No publication DOI',
1182+
no_subjects: 'No subjects',
1183+
publication_doi: 'Publication DOI',
1184+
registered_from: 'Registered from',
1185+
registration_doi: 'Registration DOI',
1186+
registration_type: 'Registration type',
1187+
select_license: 'Select license',
1188+
show_less: 'Show less',
1189+
show_more: 'Show more',
1190+
subjects: 'Subjects',
1191+
tags: 'Tags',
11891192

11901193
edit_description: {
11911194
success: 'Description successfully updated.',
@@ -1217,6 +1220,7 @@ export default {
12171220
success: 'Tags successfully updated.',
12181221
error: 'Unable to save tags.',
12191222
},
1223+
save_subjects_error: 'Unable to save subjects',
12201224
},
12211225

12221226
form_view: {
@@ -1610,6 +1614,23 @@ export default {
16101614
editContributorsOnYourProject: 'Edit contributors on your project',
16111615
},
16121616
},
1617+
'files-widget': {
1618+
no_files: 'Drag and drop files here to upload files to this folder',
1619+
message: 'Only files from root project on OSF Storage are available to attach. To attach files from components or non "OSF Storage" addons, first add them to your root project files.',
1620+
},
1621+
subjects: {
1622+
browse: {
1623+
browse_all: 'Browse all subjects',
1624+
},
1625+
search: {
1626+
search_all: 'Search subjects',
1627+
placeholder: 'Type to search',
1628+
no_results: 'No matching subjects found. Try a less specific search.',
1629+
},
1630+
display: {
1631+
placeholder: 'Your selections will appear here',
1632+
},
1633+
},
16131634
},
16141635
settings: {
16151636
toggleNav: 'Toggle navigation',

app/meetings/index/-components/meetings-footer/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class='row icon-bar m-v-lg'>
1+
<div class='row icon-bar m-v-lg' ...attributes>
22
<div class='col-md-4 col-sm-4 text-center '>
33
<div class='p-v-md m-t-xl m-h-md'>
44
<FaIcon

app/models/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default class FileModel extends BaseFileItem {
5656

5757
// TODO: In the future apiv2 may also need to support this pointing at nodes OR registrations
5858
@belongsTo('node')
59-
node!: DS.PromiseObject<NodeModel> & NodeModel;
59+
target!: DS.PromiseObject<NodeModel> & NodeModel;
6060

6161
@belongsTo('user')
6262
user!: DS.PromiseObject<UserModel> & UserModel;

0 commit comments

Comments
 (0)