Skip to content

Commit 7cea5bc

Browse files
committed
Merge branch 'release/22.5.0'
2 parents 8efe662 + 44ac5cf commit 7cea5bc

File tree

22 files changed

+77
-33
lines changed

22 files changed

+77
-33
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ 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+
## [22.5.0] - 2022-5-02
8+
### Changed
9+
- Misc bug fixes
10+
- Update more help links
11+
12+
### Added
13+
- Files page redesign phase 1
14+
- Use helpscout links for support pages
15+
16+
717
## [22.4.0] - 2022-3-31
818
### Added
919
- Files page redesign phase 1
@@ -1836,6 +1846,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
18361846
### Added
18371847
- Quick Files
18381848

1849+
[22.5.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/22.5.0
18391850
[22.4.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/22.4.0
18401851
[22.3.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/22.3.0
18411852
[22.2.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/22.2.0

app/const/service-links.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ const serviceLinks = {
1010
preprintsDiscover: `${osfUrl}preprints/discover/`,
1111
preprintsHome: `${osfUrl}preprints/`,
1212
preprintsSubmit: `${osfUrl}preprints/submit/`,
13-
preprintsSupport: 'https://openscience.zendesk.com/hc/en-us/categories/360001530554',
13+
preprintsSupport: 'https://help.osf.io/article/376-preprints-home-page',
1414
profile: `${osfUrl}profile/`,
1515
registriesDiscover: `${osfUrl}registries/discover/`,
1616
registriesHome: `${osfUrl}registries/`,
17-
registriesSupport: 'https://openscience.zendesk.com/hc/en-us/categories/360001550953',
17+
registriesSupport: 'https://help.osf.io/article/330-welcome-to-registrations',
1818
search: `${osfUrl}search/`,
1919
settings: `${osfUrl}settings/`,
2020
reviewsHome: `${osfUrl}reviews/`,

app/guid-file/-components/file-detail-layout/styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
.MainColumn {
88
flex-grow: 3;
9+
10+
h3 {
11+
text-overflow: ellipsis;
12+
overflow: hidden;
13+
white-space: nowrap;
14+
max-width: 70vw;
15+
}
916
}
1017

1118
.RightColumn {

app/guid-file/styles.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
padding: 0 20px 20px;
2020
}
2121

22+
.FlexContainerRow > h2 {
23+
text-overflow: ellipsis;
24+
overflow: hidden;
25+
white-space: nowrap;
26+
max-width: 70vw;
27+
}
28+
2229
.ProjectLink {
2330
margin: 20px;
2431
}

app/guid-node/registrations/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
{{/if}}
4747
<p>
4848
{{t 'node.registrations.learn_more'
49-
learnMoreLink='https://help.osf.io/hc/en-us/categories/360001550953-Registrations'
49+
learnMoreLink='https://help.osf.io/'
5050
htmlSafe=true
5151
}}
5252
</p>
@@ -79,7 +79,7 @@
7979
{{/if}}
8080
<p>
8181
{{t 'node.registrations.learn_more'
82-
learnMoreLink='https://help.osf.io/hc/en-us/categories/360001550953-Registrations'
82+
learnMoreLink='https://help.osf.io/'
8383
htmlSafe=true
8484
}}
8585
</p>

app/support/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<OsfLink
6666
data-analytics-name='contact_form'
6767
class='text-bigger'
68-
@href='https://openscience.zendesk.com/hc/en-us'
68+
@href='https://help.osf.io/'
6969
>
7070
{{t 'support.contact_form'}}
7171
</OsfLink>

lib/osf-components/addon/components/dropzone-widget/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export default class DropzoneWidget extends Component.extend({
143143
autoQueue: false,
144144
clickable: this.clickable.length ? this.clickable : '',
145145
dictDefaultMessage: this.defaultMessage,
146+
previewsContainer: false,
146147
sending(file: any, xhr: XMLHttpRequest) {
147148
authorizeXHR(xhr);
148149

lib/osf-components/addon/components/file-renderer/component.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Component from '@ember/component';
33
import { action, computed } from '@ember/object';
44
import { next } from '@ember/runloop';
55
import config from 'ember-get-config';
6-
import $ from 'jquery';
76

87
import { layout } from 'ember-osf-web/decorators/component';
98

@@ -52,15 +51,25 @@ export default class FileRenderer extends Component {
5251
@computed('download', 'params', 'version')
5352
get downloadUrl(): string {
5453
const { download, params, version } = this;
55-
56-
return `${download}?${$.param({ ...params, ...(version ? { version } : {}) })}`;
54+
if (!download) {
55+
return '';
56+
}
57+
const downloadLink = new URL(download);
58+
downloadLink.searchParams.set('direct', params.direct || '');
59+
downloadLink.searchParams.set('mode', params.mode);
60+
if (version) {
61+
downloadLink.searchParams.set('version', version.toString());
62+
}
63+
return downloadLink.toString();
5764
}
5865

5966
@computed('downloadUrl', 'isLoading')
6067
get mfrUrl(): string {
6168
// Waiting until the iframe is loaded then changing the URL avoids a race condition in the MFR iframe
6269
// This is most apparent in 3D files
63-
return this.isLoading ? '' : `${renderUrl}?url=${encodeURIComponent(this.downloadUrl)}`;
70+
const urlWithParams = new URL(renderUrl);
71+
urlWithParams.searchParams.set('url', this.downloadUrl);
72+
return this.isLoading ? '' : urlWithParams.toString();
6473
}
6574

6675
didReceiveAttrs(): void {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default class FilesManagerComponent extends Component {
202202

203203
this.lastUploaded.pushObject(file);
204204

205-
this.toast.success(this.intl.t('file_browser.file_added_toast'));
205+
this.toast.success(this.intl.t('osf-components.files-widget.file_add_success'));
206206
if (this.onAddFile) {
207207
this.onAddFile(file);
208208
}

lib/osf-components/addon/components/join-osf-banner/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
data-analytics-name='learn_more'
3131
target='_blank'
3232
rel='noreferrer'
33-
@href='https://openscience.zendesk.com/hc/en-us'
33+
@href='https://help.osf.io/'
3434
>
3535
{{t 'join_osf.learn_more'}}
3636
</OsfLink>

0 commit comments

Comments
 (0)