diff --git a/app/preprints/index/route.ts b/app/preprints/index/route.ts
index 565010db3a..ffaebdfcdc 100644
--- a/app/preprints/index/route.ts
+++ b/app/preprints/index/route.ts
@@ -3,6 +3,7 @@ import Route from '@ember/routing/route';
import RouterService from '@ember/routing/router-service';
import { inject as service } from '@ember/service';
import Theme from 'ember-osf-web/services/theme';
+import captureException from 'ember-osf-web/utils/capture-exception';
/**
* Loads all disciplines and preprint providers to the index page
@@ -38,7 +39,8 @@ export default class Preprints extends Route {
brandedProviders,
};
- } catch (e) {
+ } catch (error) {
+ captureException(error);
this.router.transitionTo('not-found', 'preprints');
return null;
}
diff --git a/app/preprints/index/styles.scss b/app/preprints/index/styles.scss
index 610fb832e8..94a18ffdbc 100644
--- a/app/preprints/index/styles.scss
+++ b/app/preprints/index/styles.scss
@@ -13,6 +13,10 @@
background-color: var(--secondary-color);
color: var(--primary-color) !important;
+ &.osf {
+ background: url('images/default-brand/bg-dark.jpg');
+ }
+
a:not(:global(.btn)) {
color: var(--primary-color);
text-decoration: underline;
diff --git a/app/preprints/index/template.hbs b/app/preprints/index/template.hbs
index b3f3eb94c0..ab16190782 100644
--- a/app/preprints/index/template.hbs
+++ b/app/preprints/index/template.hbs
@@ -1,9 +1,11 @@
{{page-title (t 'preprints.title')}}
-
+
{{!HEADER}}
-
+
{{t 'preprints.header.powered_by'}}
@@ -30,7 +32,7 @@
{{t 'preprints.header.or'}}
{{t 'preprints.header.example'}}
@@ -65,7 +67,7 @@
{{#if this.theme.provider.hasHighlightedSubjects}}
{{t 'preprints.subjects.links.seeAllSubjects'}}
@@ -94,7 +96,7 @@
{{#if (not-eq provider.id 'livedata') }}
{{t 'preprints.services.bottom.div.linkText1'}}
@@ -123,7 +125,7 @@
@@ -135,7 +137,7 @@
diff --git a/lib/osf-components/addon/components/branded-header/template.hbs b/lib/osf-components/addon/components/branded-header/template.hbs
index 1cb4ccc6d5..cb74dd0d82 100644
--- a/lib/osf-components/addon/components/branded-header/template.hbs
+++ b/lib/osf-components/addon/components/branded-header/template.hbs
@@ -58,6 +58,8 @@
{{yield (hash row=(element ''))}}
-
+
diff --git a/lib/osf-components/addon/components/preprints/taxonomy-top-list/component.ts b/lib/osf-components/addon/components/preprints/taxonomy-top-list/component.ts
index 7addf545d5..40a6daa261 100644
--- a/lib/osf-components/addon/components/preprints/taxonomy-top-list/component.ts
+++ b/lib/osf-components/addon/components/preprints/taxonomy-top-list/component.ts
@@ -1,5 +1,4 @@
import Component from '@glimmer/component';
-import { computed } from '@ember/object';
import SubjectModel from 'ember-osf-web/models/subject';
interface InputArgs {
@@ -14,8 +13,6 @@ interface PairModel {
export default class TaxonomyTopList extends Component
{
routerPrefix = 'http://localhost:4200';
-
- @computed('args.list')
get sortedList() {
if (!this.args.list) {
return;
diff --git a/lib/osf-components/addon/components/search-help-modal/component.ts b/lib/osf-components/addon/components/search-help-modal/component.ts
index 28c40dfc0c..c6b4ce0aa3 100644
--- a/lib/osf-components/addon/components/search-help-modal/component.ts
+++ b/lib/osf-components/addon/components/search-help-modal/component.ts
@@ -15,6 +15,7 @@ import { inject as service } from '@ember/service';
interface InputArgs {
isOpen: false;
+ onClose: () => void;
}
export default class SearchHelpModal extends Component {
diff --git a/lib/osf-components/addon/components/search-help-modal/template.hbs b/lib/osf-components/addon/components/search-help-modal/template.hbs
index ee3b226eea..79ff2f6e03 100644
--- a/lib/osf-components/addon/components/search-help-modal/template.hbs
+++ b/lib/osf-components/addon/components/search-help-modal/template.hbs
@@ -1,7 +1,7 @@
diff --git a/lib/registries/addon/discover/template.hbs b/lib/registries/addon/discover/template.hbs
index da00795fcd..d26027f5d4 100644
--- a/lib/registries/addon/discover/template.hbs
+++ b/lib/registries/addon/discover/template.hbs
@@ -14,15 +14,15 @@
searchable=this.searchable
}}
- {{#registries-discover-search
- results=this.results
- isLoading=this.doSearch.isIdle
- searchOptions=this.searchOptions
- additionalFilters=this.additionalFilters
- provider=this.providerModel
+
{{#if this.searchOptions}}
@@ -104,5 +104,5 @@
- {{/registries-discover-search}}
+
diff --git a/mirage/scenarios/preprints.ts b/mirage/scenarios/preprints.ts
index fac2d9d356..b86188a118 100644
--- a/mirage/scenarios/preprints.ts
+++ b/mirage/scenarios/preprints.ts
@@ -16,7 +16,10 @@ function buildOSF(
currentUser: ModelInstance,
) {
const osf = server.schema.preprintProviders.find('osf') as ModelInstance;
- const brand = server.create('brand');
+ const brand = server.create('brand', {
+ primaryColor: '#286090',
+ secondaryColor: '#fff',
+ });
const currentUserModerator = server.create('moderator',
{ id: currentUser.id, user: currentUser, provider: osf }, 'asAdmin');
@@ -43,7 +46,10 @@ function buildThesisCommons(
currentUser: ModelInstance,
) {
const thesisCommons = server.schema.preprintProviders.find('thesiscommons') as ModelInstance;
- const brand = server.create('brand');
+ const brand = server.create('brand', {
+ primaryColor: '#721a0e',
+ secondaryColor: '#fec216',
+ });
const currentUserModerator = server.create('moderator',
{ id: currentUser.id, user: currentUser, provider: thesisCommons }, 'asAdmin');