Skip to content

Commit 9806391

Browse files
authored
* fix(menu): added new items * fix(menu): updated naming * fix(menu): changed overview to discover and replaced some icons * fix(menu): added margin
1 parent a7dad8c commit 9806391

36 files changed

Lines changed: 121 additions & 141 deletions

src/app/core/constants/nav-items.constant.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,14 +394,14 @@ export const MENU_ITEMS: MenuItem[] = [
394394
visible: false,
395395
routerLink: null,
396396
routerLinkActiveOptions: { exact: false },
397-
styleClass: 'mt-5',
397+
styleClass: 'my-5',
398398
},
399399
{
400400
id: 'log-out',
401401
label: 'navigation.logOut',
402402
visible: false,
403403
routerLink: null,
404404
routerLinkActiveOptions: { exact: false },
405-
styleClass: 'mt-5',
405+
styleClass: 'my-5',
406406
},
407407
];

src/app/features/home/pages/dashboard/dashboard.component.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,14 @@
3434
/>
3535
</div>
3636

37-
<div class="public-projects-container flex flex-row pt-6 pb-4 px-3 md:px-4 xl:py-6">
38-
<i class="osf-icon-search"></i>
37+
<div class="public-projects-container flex align-items-center flex-row pt-6 pb-4 px-3 md:px-4 xl:py-6">
38+
<osf-icon class="mr-2" iconClass="fas fa-2xl fa-magnifying-glass"></osf-icon>
3939
<h1>{{ 'home.loggedIn.publicProjects.title' | translate }}</h1>
4040
</div>
4141

42-
<div class="latest-research-container flex flex-column py-6 px-3 md:px-4 xl:flex-row xl:justify-content-between">
42+
<div
43+
class="latest-research-container flex flex-column gap-4 py-6 px-3 md:px-4 xl:flex-row xl:justify-content-between"
44+
>
4345
<div>
4446
<h1>{{ 'home.loggedIn.latestResearch.title' | translate }}</h1>
4547
<p class="m-t-12">{{ 'home.loggedIn.latestResearch.subtitle' | translate }}</p>
@@ -48,7 +50,7 @@ <h1>{{ 'home.loggedIn.latestResearch.title' | translate }}</h1>
4850
<p-button routerLink="/preprints" [label]="'home.loggedIn.latestResearch.button' | translate" severity="success" />
4951
</div>
5052

51-
<div class="hosting-container flex flex-column py-6 px-3 md:px-4 xl:flex-row xl:justify-content-between">
53+
<div class="hosting-container flex flex-column gap-4 py-6 px-3 md:px-4 xl:flex-row xl:justify-content-between">
5254
<div class="text-container">
5355
<h1>{{ 'home.loggedIn.hosting.title' | translate }}</h1>
5456
<p class="m-t-12">{{ 'home.loggedIn.hosting.subtitle' | translate }}</p>

src/app/features/home/pages/dashboard/dashboard.component.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@use "assets/styles/mixins" as mix;
2-
31
:host {
42
display: flex;
53
flex-direction: column;
@@ -20,20 +18,12 @@
2018

2119
.public-projects-container {
2220
background-color: var(--gradient-1);
23-
24-
.osf-icon-search {
25-
color: var(--dark-blue-1);
26-
font-size: mix.rem(32px);
27-
margin-right: mix.rem(12px);
28-
}
2921
}
3022

3123
.latest-research-container {
3224
background-color: var(--bg-blue-3);
33-
row-gap: mix.rem(24px);
3425
}
3526

3627
.hosting-container {
3728
background-color: var(--bg-blue-2);
38-
row-gap: mix.rem(24px);
3929
}

src/app/features/home/pages/dashboard/dashboard.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
1616

1717
import { CreateProjectDialogComponent } from '@osf/features/my-projects/components';
1818
import { AccountSettingsService } from '@osf/features/settings/account-settings/services';
19-
import { MyProjectsTableComponent, SubHeaderComponent } from '@osf/shared/components';
19+
import { IconComponent, MyProjectsTableComponent, SubHeaderComponent } from '@osf/shared/components';
2020
import { MY_PROJECTS_TABLE_PARAMS } from '@osf/shared/constants';
2121
import { SortOrder } from '@osf/shared/enums';
2222
import { IS_MEDIUM } from '@osf/shared/helpers';
@@ -27,7 +27,7 @@ import { ConfirmEmailComponent } from '../../components';
2727

2828
@Component({
2929
selector: 'osf-dashboard',
30-
imports: [RouterLink, Button, SubHeaderComponent, MyProjectsTableComponent, TranslatePipe],
30+
imports: [RouterLink, Button, SubHeaderComponent, MyProjectsTableComponent, IconComponent, TranslatePipe],
3131
templateUrl: './dashboard.component.html',
3232
styleUrl: './dashboard.component.scss',
3333
providers: [DialogService],

src/app/features/my-profile/my-profile.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ <h1>{{ currentUser()?.fullName }}</h1>
4242
<div class="flex flex-column gap-3 md:flex-row xl:gap-4">
4343
@if (currentUser()?.education?.length) {
4444
<div class="flex flex-row align-items-center gap-2">
45-
<i class="osf-icon-institution"></i>
45+
<i class="fas fa-landmark"></i>
4646
<h3 class="font-bold">
4747
{{ currentUser()?.education?.[0]?.institution }}
4848
</h3>

src/app/features/preprints/components/preprint-services/preprint-services.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h2 class="text-2xl text-white">{{ 'preprints.services.title' | translate }}</h2
88
@for (preprintProvider of preprintProvidersToAdvertise(); track preprintProvider.id) {
99
<a
1010
class="preprint-provider-grid-item"
11-
[routerLink]="[preprintProvider.id]"
11+
[routerLink]="['/preprints', preprintProvider.id]"
1212
[style.background-image]="'url(' + preprintProvider.whiteWideImageUrl + ')'"
1313
[title]="preprintProvider.name"
1414
></a>

src/app/features/preprints/components/stepper/metadata-step/contributors/contributors.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<p-card class="w-full">
22
<h2>{{ 'project.overview.metadata.contributors' | translate }}</h2>
3+
34
<div class="warning-message m-t-24 m-b-12">
4-
<p-message severity="error">
5-
<i class="osf-icon-warning-sign mr-2"></i>
6-
Warning: Changing your permissions will prevent you from editing your draft.
5+
<p-message icon="fas fa-circle-exclamation" severity="error">
6+
{{ 'preprints.preprintContributorsWarning' | translate }}
77
</p-message>
88
</div>
9+
910
<osf-contributors-list
1011
class="w-full"
1112
[contributors]="contributors()"
@@ -22,9 +23,9 @@ <h2>{{ 'project.overview.metadata.contributors' | translate }}</h2>
2223
<p-button
2324
class="w-full md:w-auto"
2425
styleClass="w-full"
25-
label="Add Contributor By Search"
26+
[label]="'preprints.addContributorBySearch' | translate"
2627
type="submit"
27-
(click)="openAddContributorDialog()"
28+
(onClick)="openAddContributorDialog()"
2829
></p-button>
2930
</div>
3031
</p-card>

src/app/features/preprints/components/stepper/title-and-abstract-step/title-and-abstract-step.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2>{{ 'preprints.preprintStepper.titleAndAbstract.title' | translate }}</h2>
5050
styleClass="w-full"
5151
[label]="'common.buttons.back' | translate"
5252
severity="info"
53-
[routerLink]="['/preprints', 'overview', providerId(), 'discover']"
53+
[routerLink]="['/preprints', providerId(), 'discover']"
5454
/>
5555
<p-button
5656
class="w-6 md:w-9rem"

src/app/features/preprints/pages/landing/preprints-landing.component.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ <h1>{{ 'preprints.title' | translate }}</h1>
6565
<h2 class="text-2xl">{{ 'preprints.createServer.title' | translate }}</h2>
6666
<p class="mt-2">
6767
{{ 'preprints.createServer.description' | translate }}
68-
<a class="font-bold" href="https://github.com/CenterForOpenScience/ember-osf-web" target="_blank">{{
69-
'preprints.createServer.openSourceCode' | translate
70-
}}</a>
68+
<a class="font-bold" href="https://github.com/CenterForOpenScience/ember-osf-web" target="_blank">
69+
{{ 'preprints.createServer.openSourceCode' | translate }}
70+
</a>
7171
{{ 'preprints.createServer.and' | translate }}
72-
<a class="font-bold" href="https://www.cos.io/product-roadmap" target="_blank">{{
73-
'preprints.createServer.publicRoadmap' | translate
74-
}}</a
72+
<a class="font-bold" href="https://www.cos.io/product-roadmap" target="_blank">
73+
{{ 'preprints.createServer.publicRoadmap' | translate }} </a
7574
>. {{ 'preprints.createServer.inputWelcome' | translate }}
7675
</p>
7776
</div>

src/app/features/preprints/preprints.routes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,24 @@ export const preprintsRoutes: Routes = [
3636
{
3737
path: '',
3838
pathMatch: 'full',
39-
redirectTo: 'overview',
39+
redirectTo: 'discover',
4040
},
4141
{
42-
path: 'overview',
42+
path: 'discover',
4343
loadComponent: () =>
4444
import('@osf/features/preprints/pages/landing/preprints-landing.component').then(
4545
(c) => c.PreprintsLandingComponent
4646
),
4747
},
4848
{
49-
path: 'overview/:providerId',
49+
path: ':providerId',
5050
loadComponent: () =>
5151
import('@osf/features/preprints/pages/preprint-provider-overview/preprint-provider-overview.component').then(
5252
(c) => c.PreprintProviderOverviewComponent
5353
),
5454
},
5555
{
56-
path: 'overview/:providerId/discover',
56+
path: ':providerId/discover',
5757
loadComponent: () =>
5858
import('@osf/features/preprints/pages/preprint-provider-discover/preprint-provider-discover.component').then(
5959
(c) => c.PreprintProviderDiscoverComponent

0 commit comments

Comments
 (0)