Skip to content

Commit eb27042

Browse files
committed
Merge branch 'release/23.07.0'
2 parents 01454f7 + faca7a0 commit eb27042

File tree

104 files changed

+1464
-1465
lines changed

Some content is hidden

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

104 files changed

+1464
-1465
lines changed

.github/workflows/CI.yml

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
key: cached_node_modules_${{ secrets.CACHE_VERSION }}_${{ hashFiles('**/yarn.lock') }}
189189
restore-keys: cached_node_modules_${{ secrets.CACHE_VERSION }}_
190190
- run: yarn percy build:finalize
191+
if: ${{ env.PERCY_TOKEN != 0 }}
191192
env:
192193
PERCY_PARALLEL_NONCE: ${{ env.PERCY_PARALLEL_NONCE }}
193194
PERCY_PARALLEL_TOTAL: ${{ env.PERCY_PARALLEL_TOTAL }}

CHANGELOG.md

+9-1
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+
## [23.07.0] - 2023-05-01
8+
### Changed
9+
- Fix some deprecations
10+
- Removed Bootstrap Grid
11+
12+
713
## [23.06.0] - 2023-03-27
814
### Changed
915
- Removed Keen dependencies
@@ -1921,7 +1927,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
19211927
### Added
19221928
- Quick Files
19231929

1924-
[23.05.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.06.0
1930+
[23.07.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.07.0
1931+
[23.06.1]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.06.1
1932+
[23.06.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.06.0
19251933
[23.05.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.05.0
19261934
[23.04.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.04.0
19271935
[23.03.0]: https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.03.0

app/adapters/osf-adapter.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,7 @@ export default class OsfAdapter extends JSONAPIAdapter {
158158
ajaxOptions(url: string, type: RequestType, options?: { isBulk?: boolean }): object {
159159
const hash: any = super.ajaxOptions(url, type, options);
160160

161-
hash.xhrFields = {
162-
withCredentials: true,
163-
};
161+
hash.credentials = 'include';
164162

165163
if (options && options.isBulk) {
166164
hash.contentType = 'application/vnd.api+json; ext=bulk';

app/guid-node/forks/styles.scss

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.Forks {
22
display: grid;
33
grid-template-rows: auto;
4+
width: 100%;
45
}
56

67
@media screen and (max-width: 500px) {

app/register/controller.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Store from '@ember-data/store';
12
import Controller from '@ember/controller';
23
import { computed } from '@ember/object';
34
import { inject as service } from '@ember/service';
@@ -29,6 +30,7 @@ export const registerQueryParams = new QueryParams<RegisterQueryParams>({
2930

3031
export default class Register extends Controller.extend(registerQueryParams.Mixin) {
3132
@service analytics!: Analytics;
33+
@service store!: Store;
3234

3335
signUpCampaign?: string;
3436

app/settings/template.hbs

+28-28
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<div class='col-xs-12'>
44
<h2 class='page-header'>
55
{{t 'general.settings'}}
6-
<BsButton
6+
<Button
77
local-class='NavToggle'
88
aria-label={{t 'settings.toggleNav'}}
99
class='hidden-md hidden-lg'
10-
@type='link'
11-
@onClick={{action (mut this.navCollapsed) (not this.navCollapsed)}}
10+
@layout='fake-link'
11+
{{on 'click' (action (mut this.navCollapsed) (not this.navCollapsed))}}
1212
>
1313
<FaIcon @icon='bars' />
14-
</BsButton>
14+
</Button>
1515
</h2>
1616
</div>
1717
</div>
@@ -21,12 +21,12 @@
2121
<div class='panel panel-default'>
2222
<BsNav @type='pills' @stacked={{true}} as |nav|>
2323
<nav.item>
24-
<nav.link-to
24+
<OsfLink
2525
data-analytics-name='Settings'
26-
@params={{array 'settings.profile'}}
26+
@route='settings.profile'
2727
>
2828
{{t 'settings.profile.title'}}
29-
</nav.link-to>
29+
</OsfLink>
3030
<BsNav
3131
data-analytics-scope='Profile Nav'
3232
local-class='ProfileNav'
@@ -35,46 +35,46 @@
3535
as |profileNav|
3636
>
3737
<profileNav.item>
38-
<profileNav.link-to
38+
<OsfLink
3939
data-analytics-name='Name'
40-
@params={{array 'settings.profile.name'}}
40+
@route='settings.profile.name'
4141
>
4242
{{t 'settings.profile.name.title'}}
43-
</profileNav.link-to>
43+
</OsfLink>
4444
</profileNav.item>
4545
<profileNav.item>
46-
<profileNav.link-to
46+
<OsfLink
4747
data-analytics-name='Social'
48-
@params={{array 'settings.profile.social'}}
48+
@route='settings.profile.social'
4949
>
5050
{{t 'settings.profile.social.title'}}
51-
</profileNav.link-to>
51+
</OsfLink>
5252
</profileNav.item>
5353
<profileNav.item>
54-
<profileNav.link-to
54+
<OsfLink
5555
data-analytics-name='Education'
56-
@params={{array 'settings.profile.education'}}
56+
@route='settings.profile.education'
5757
>
5858
{{t 'settings.profile.education.title'}}
59-
</profileNav.link-to>
59+
</OsfLink>
6060
</profileNav.item>
6161
<profileNav.item>
62-
<profileNav.link-to
62+
<OsfLink
6363
data-analytics-name='Employment'
64-
@params={{array 'settings.profile.employment'}}
64+
@route='settings.profile.employment'
6565
>
6666
{{t 'settings.profile.employment.title'}}
67-
</profileNav.link-to>
67+
</OsfLink>
6868
</profileNav.item>
6969
</BsNav>
7070
</nav.item>
7171
<nav.item>
72-
<nav.link-to
72+
<OsfLink
7373
data-analytics-name='Account'
74-
@params={{array 'settings.account'}}
74+
@route='settings.account'
7575
>
7676
{{t 'settings.account.title'}}
77-
</nav.link-to>
77+
</OsfLink>
7878
</nav.item>
7979
<nav.item>
8080
<OsfLink
@@ -93,20 +93,20 @@
9393
</OsfLink>
9494
</nav.item>
9595
<nav.item>
96-
<nav.link-to
96+
<OsfLink
9797
data-analytics-name='Developer apps'
98-
@params={{array 'settings.developer-apps'}}
98+
@route='settings.developer-apps'
9999
>
100100
{{t 'settings.developer-apps.title'}}
101-
</nav.link-to>
101+
</OsfLink>
102102
</nav.item>
103103
<nav.item>
104-
<nav.link-to
104+
<OsfLink
105105
data-analytics-name='Personal access tokens'
106-
@params={{array 'settings.tokens'}}
106+
@route='settings.tokens'
107107
>
108108
{{t 'settings.tokens.title'}}
109-
</nav.link-to>
109+
</OsfLink>
110110
</nav.item>
111111
</BsNav>
112112
</div>

app/styles/_variables.scss

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $sizes: ('xs', 'sm', 'md', 'lg', 'xl');
1414
$margins: (5, 10, 15, 25, 50);
1515
$spinner-size: (10, 20, 30, 50, 75);
1616
$weights: (200, 300, 400, 500, 600);
17+
$mobile-width: 768px;
1718

1819
/* Defaults */
1920
$radius: 2px;

config/deprecation-workflow.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
self.deprecationWorkflow = self.deprecationWorkflow || {};
22
self.deprecationWorkflow.config = {
33
workflow: [
4-
{ handler: 'silence', matchId: 'ember-inflector.globals' },
54
{ handler: 'silence', matchId: 'manager-capabilities.modifiers-3-13' },
65
{ handler: 'silence', matchId: 'this-property-fallback' },
7-
{ handler: 'silence', matchId: 'ember-glimmer.link-to.positional-arguments' },
8-
{ handler: 'silence', matchId: 'ember-runtime.deprecate-copy-copyable' },
96
{ handler: 'silence', matchId: 'ember-bootstrap.subclassing#Alert' },
107
{ handler: 'silence', matchId: 'routing.transition-methods' },
11-
{ handler: 'silence', matchId: 'autotracking.mutation-after-consumption' },
12-
{ handler: 'silence', matchId: 'computed-property.override' },
138
{ handler: 'silence', matchId: 'ember-utils.try-invoke' },
14-
{ handler: 'silence', matchId: 'ember-data:legacy-test-helper-support' },
159
{ handler: 'silence', matchId: 'has-block-and-has-block-params' },
1610
{ handler: 'silence', matchId: 'ember-simple-auth.initializer.setup-session-restoration' },
1711
{ handler: 'silence', matchId: 'ember-simple-auth.events.session-service' },
1812
{ handler: 'silence', matchId: 'ember-cli-mirage.miragejs.import' },
1913
{ handler: 'silence', matchId: 'ember-cli-mirage-config-routes-only-export' },
14+
{ handler: 'silence', matchId: 'ember-engines.deprecation-router-service-from-host'},
15+
{ handler: 'silence', matchId: 'ember-test-waiters-legacy-module-name'},
2016
],
2117
};

config/optional-features.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"application-template-wrapper": false,
33
"default-async-observers": true,
4-
"jquery-integration": true,
4+
"jquery-integration": false,
55
"template-only-glimmer-components": true
66
}

handbook-docs/index/template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This handbook is a guide for developers contributing to
44
[ember-osf-web](https://github.com/CenterForOpenScience/ember-osf-web).
55

66
It is meant to be a living document, forever a work in progress.
7-
Feel free to {{#link-to 'docs.contributing'}}contribute{{/link-to}}
7+
Feel free to <LinkTo @route='docs.contributing'>contribute</LinkTo>
88
if you notice any omissions, gaps, or inaccuracies.
99

1010
Go science!

handbook-docs/troubleshooting/template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ Then, either in `beforeEach` or in the particular problematic test:
5656
`this.owner.register('service:router', OsfLinkRouterStub);`
5757

5858
## Buttons in modals aren't tracking analytics events
59-
Check out the {{#link-to 'docs.analytics'}}analytics documentation{{/link-to}} scopes section
59+
Check out the <LinkTo @route='docs.analytics'>analytics documentation</LinkTo> scopes section
6060
for the answer to this.

lib/analytics-page/addon/application/template.hbs

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
{{loading-indicator dark=true}}
1010
{{else}}
1111
<div local-class='Count'>{{this.forksCount}}</div>
12-
{{#link-to-external
13-
(if this.node.isProject 'nodeForks' 'registrationForks')
14-
this.node.id
15-
}}
12+
<LinkToExternal
13+
@route={{if this.node.isProject 'nodeForks' 'registrationForks'}}
14+
@models={{array this.node.id}}
15+
>
1616
{{t 'analytics.viewForks'}}
17-
{{/link-to-external}}
17+
</LinkToExternal>
1818
{{/if}}
1919
</div>
2020
</div>

lib/app-components/addon/components/branded-navbar/template.hbs

+21-12
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
>
77
<div local-class='nav-wrapper'>
88
<div class='navbar-header'>
9-
{{#link-to @brandRoute provider=this.theme.provider class='navbar-brand'}}
9+
<LinkTo
10+
@route={{@brandRoute}}
11+
@provider={{this.theme.provider}}
12+
class='navbar-brand'
13+
>
1014
<span local-class='navbar-image' class='navbar-image'></span>
1115
<span class='navbar-title'>{{this.brandTitle}}</span>
12-
{{/link-to}}
16+
</LinkTo>
1317

1418
{{! Navigation toggle - XS screen }}
1519
<button
@@ -52,20 +56,25 @@
5256
</a>
5357
</li>
5458
<li>
55-
{{#link-to
56-
'provider.submit'
57-
click=(action 'click' 'link' (concat 'Navbar - ' (t @addLinkKey) ' - ' this.theme.id) target=this.analytics)
58-
}}
59+
<LinkTo
60+
@route='provider.submit'
61+
onclick={{action
62+
'click'
63+
'link'
64+
(concat 'Navbar - ' (t @addLinkKey) ' - ' this.theme.id)
65+
target=this.analytics
66+
}}
67+
>
5968
<span role='button'>{{t @addLinkKey}}</span>
60-
{{/link-to}}
69+
</LinkTo>
6170
</li>
6271
<li>
63-
{{#link-to
64-
'provider.discover'
65-
click=(action 'click' 'link' 'Navbar - Search' target=this.analytics)
66-
}}
72+
<LinkTo
73+
@route='provider.discover'
74+
onclick={{action 'click' 'link' 'Navbar - Search' target=this.analytics}}
75+
>
6776
<span role='button'>{{t 'navbar.search'}}</span>
68-
{{/link-to}}
77+
</LinkTo>
6978
</li>
7079
<li>
7180
<a

lib/app-components/addon/components/error-page/template.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
}}
2929
</a>
3030
{{else}}
31-
{{#link-to-external 'home' class='btn btn-primary m-t-md'}}
31+
<LinkToExternal @route='home' class='btn btn-primary m-t-md'>
3232
{{t 'app_components.error_page.go_to' brand=(t 'general.OSF')}}
33-
{{/link-to-external}}
33+
</LinkToExternal>
3434
{{/if}}
3535
</div>
3636
</div>

lib/app-components/addon/components/provider-logo/template.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<img local-class='provider-logo' src={{this.logoAsset}} alt={{@provider.name}}>
44
</a>
55
{{else}}
6-
{{#link-to 'provider.discover' @provider.id}}
6+
<LinkTo @route='provider.discover' @models={{array @provider.id}}>
77
<img local-class='provider-logo' src={{this.logoAsset}} alt={{@provider.name}}>
8-
{{/link-to}}
8+
</LinkTo>
99
{{/if}}

lib/collections/addon/index/template.hbs

+7-6
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@
6262
</a>
6363
<div class='m-t-md'>
6464
{{!-- (route-prefix 'content') --}}
65-
{{#link-to
66-
'discover'
67-
(if this.theme.provider.example this.theme.provider.example 'khbvy')
68-
invokeAction=(action 'click' 'link' 'Index - See example')
69-
}}
65+
<LinkTo
66+
@route='discover'
67+
@models={{array
68+
(if this.theme.provider.example this.theme.provider.example 'khbvy')
69+
}}
70+
>
7071
{{t 'index.header.example'}}
71-
{{/link-to}}
72+
</LinkTo>
7273
</div>
7374
</div>
7475
</div>

lib/osf-components/addon/components/carousel/component.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { tagName } from '@ember-decorators/component';
22
import Component from '@ember/component';
3-
import { action, computed } from '@ember/object';
3+
import { action } from '@ember/object';
44

55
import { layout } from 'ember-osf-web/decorators/component';
66
import CarouselItem from 'osf-components/components/carousel/x-item/component';
@@ -14,19 +14,15 @@ export default class Carousel extends Component {
1414
// Private properties
1515
carouselItems: CarouselItem[] = [];
1616

17-
@computed('carouselItems.{length,@each.isActive}')
18-
get activeSlide() {
19-
return this.carouselItems.findBy('isActive');
20-
}
21-
2217
@action
2318
register(item: CarouselItem) {
2419
this.carouselItems.pushObject(item);
20+
this.carouselItems[0].set('isActive', true);
2521
}
2622

2723
@action
2824
changeSlide(direction: string) {
29-
const activeSlide = this.carouselItems.findBy('isActive');
25+
const activeSlide = this.carouselItems.findBy('active');
3026
const activeIndex = activeSlide!.index;
3127
let newIndex = direction === 'previous' ? activeIndex - 1 : activeIndex + 1;
3228

@@ -42,7 +38,7 @@ export default class Carousel extends Component {
4238

4339
@action
4440
navClick(item: CarouselItem) {
45-
const activeSlide = this.carouselItems.findBy('isActive');
41+
const activeSlide = this.carouselItems.findBy('active');
4642
const activeIndex = activeSlide!.index;
4743
const newIndex = item.index;
4844

0 commit comments

Comments
 (0)