Skip to content

Commit c867b98

Browse files
authored
[ENG-4005][ENG-4006][ENG-4014] ember-source.deprecation-without-for/since and Fontawesome (#1652)
- Tickets: - [ENG-4005] - [ENG-4006] - [ENG-4014] ## Purpose Turn off some deprecation warning silencing and fix the related deprecations. The two major deprecation warnings are `ember-source.deprecation-without-for` and `ember-source.deprecation-without-since`, which affect other deprecation warnings from addons. The addons affected were ember-fontawesome and ember-composable-helpers, so I've fixed those deprecations while I was here. This also fixes resolution of `@embroider/macros` to 1.0.0 because just about every addon we update wants to use a newer version of `ember-get-config` that updates `@embroider/macros` to a version that conflicts with engines. So far, fixing the resolution is working fine, so hopefully that trend will continue as we do more deprecation fixing. ## Summary of Changes 1. Turn on deprecation warnings for `ember-source.deprecation-without-for`, `ember-source.deprecation-without-since`, and `@fortawesome/ember-fontawesome.no-positional-params` 2. Fix problem icons 3. Use `includes` instead of `contains` 4. Upgrade Fontawesome 5. Fix resolution of `@embroider/macros` to 1.0.0 so it won't conflict with engines 6. Update caniuse-lite database ## Side Effects The FontAwesome upgrade will cause improperly called icons to not display. All of the normal invocations have been caught, but if you look at [lib/registries/addon/components/registries-navbar/template.hbs](https://github.com/CenterForOpenScience/ember-osf-web/compare/develop...brianjgeiger:feature/ember-source.deprecation-without-for?expand=1#diff-0ce0e492c8262f290e43171d03065b878c2d088fc69a8ea6525fcf57f462a02f) you'll see someone was getting clever with their invocation of FaIcon which made it hard to find. Hopefully there aren't any more of those, but if there are, you'll see a warning in the JS Console that the icon with name of `null` couldn't be found. ## QA Notes The biggest change was the icons, and hoooopefully Percy will pick up most of those.
1 parent 1428cf8 commit c867b98

File tree

37 files changed

+126
-196
lines changed

37 files changed

+126
-196
lines changed

app/guid-node/forks/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class='close'
1919
@onClick={{action (mut this.newModal) false}}
2020
>
21-
{{fa-icon 'times' size='sm'}}
21+
<FaIcon @icon='times' @size='sm' />
2222
</BsButton>
2323
<h3>{{t 'forks.create_fork_modal'}}</h3>
2424
</modal.body>
@@ -56,7 +56,7 @@
5656
@route='guid-node.analytics'
5757
@models={{array this.model.guid}}
5858
>
59-
{{fa-icon 'arrow-left'}} {{t 'forks.back'}}
59+
<FaIcon @icon='arrow-left' /> {{t 'forks.back'}}
6060
</OsfLink>
6161
<p
6262
data-test-forks-info

app/guid-node/registrations/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<div>
131131
{{schema.name}}
132132
<span>
133-
{{fa-icon 'info-circle'}}
133+
<FaIcon @icon='info-circle' />
134134
<BsTooltip>
135135
{{schema.schema.description}}
136136
</BsTooltip>

app/guid-registration/forks/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class='close'
2323
@onClick={{action this.closeNewModal}}
2424
>
25-
{{fa-icon 'times' size='sm'}}
25+
<FaIcon @icon='times' @size='sm' />
2626
</BsButton>
2727
<h3>{{t 'forks.create_fork_modal'}}</h3>
2828
</modal.body>
@@ -61,7 +61,7 @@
6161
@route='guid-registration.analytics'
6262
@models={{array this.model.guid}}
6363
>
64-
{{fa-icon 'arrow-left'}} {{t 'forks.back'}}
64+
<FaIcon @icon='arrow-left' /> {{t 'forks.back'}}
6565
</OsfLink>
6666
<p
6767
data-test-forks-info

app/institutions/index/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
@type='link'
105105
@onClick={{action 'next'}}
106106
>
107-
{{fa-icon 'chevron-down' class='Institutions__pagination'}}
107+
<FaIcon @icon='chevron-down' class='Institutions__pagination' />
108108
</BsButton>
109109
{{/if}}
110110
</div>

app/settings/developer-apps/-components/client-secret/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
@onClick={{action this.toggleShowSecret}}
1616
>
1717
{{#if this.shouldShowSecret}}
18-
{{fa-icon 'eye-slash'}}
18+
<FaIcon @icon='eye-slash' />
1919
{{t 'settings.developer-apps.hideSecret'}}
2020
{{else}}
21-
{{fa-icon 'eye'}}
21+
<FaIcon @icon='eye' />
2222
{{t 'settings.developer-apps.showSecret'}}
2323
{{/if}}
2424
</BsButton>

app/settings/developer-apps/create/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
data-analytics-name='Back to list'
55
@route='settings.developer-apps'
66
>
7-
{{fa-icon 'arrow-left'}}
7+
<FaIcon @icon='arrow-left' />
88
{{t 'settings.developer-apps.backToList'}}
99
</OsfLink>
1010
</div>

app/settings/developer-apps/edit/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
data-analytics-scope='Back to list'
55
@route='settings.developer-apps'
66
>
7-
{{fa-icon 'arrow-left'}}
7+
<FaIcon @icon='arrow-left' />
88
{{t 'settings.developer-apps.backToList'}}
99
</OsfLink>
1010

app/settings/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@type='link'
1111
@onClick={{action (mut this.navCollapsed) (not this.navCollapsed)}}
1212
>
13-
{{fa-icon 'bars'}}
13+
<FaIcon @icon='bars' />
1414
</BsButton>
1515
</h2>
1616
</div>

app/settings/tokens/create/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
data-analytics-name='Back to list'
66
@route='settings.tokens'
77
>
8-
{{fa-icon 'arrow-left'}}
8+
<FaIcon @icon='arrow-left' />
99
{{t 'settings.tokens.backToList'}}
1010
</OsfLink>
1111
</div>

app/settings/tokens/edit/template.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
data-analytics-name='Back to list'
66
@route='settings.tokens'
77
>
8-
{{fa-icon 'arrow-left'}}
8+
<FaIcon @icon='arrow-left' />
99
{{t 'settings.tokens.backToList'}}
1010
</OsfLink>
1111
</div>

0 commit comments

Comments
 (0)