Skip to content

Commit 7ab0e8a

Browse files
Adding a study page that is currently only available via direct url (#228)
* Adding a study page that is currently only available via direct url call (emergency fix for accessions for nature publication). * Hide the sid facet in the metadata browser. * Fixed Prettier's behaviour with Angular blocks * Added mocks Some minor a11y, responsiveness fixes Minor fix to navigation button colour * Update src/app/metadata/features/study-details/study-details.spec.ts Co-authored-by: Jordy <31940280+ac-jorellanaf@users.noreply.github.com> Signed-off-by: Pascal Kraft <35356122+SilverLinings89@users.noreply.github.com> * Update src/app/metadata/features/study-details/study-details.spec.ts Co-authored-by: Jordy <31940280+ac-jorellanaf@users.noreply.github.com> Signed-off-by: Pascal Kraft <35356122+SilverLinings89@users.noreply.github.com> --------- Signed-off-by: Pascal Kraft <35356122+SilverLinings89@users.noreply.github.com> Co-authored-by: ac-jorellanaf <31940280+ac-jorellanaf@users.noreply.github.com>
1 parent a3efb10 commit 7ab0e8a

File tree

13 files changed

+650
-265
lines changed

13 files changed

+650
-265
lines changed

.prettierrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,13 @@
55
"singleQuote": true,
66
"printWidth": 88,
77
"proseWrap": "preserve",
8-
"endOfLine": "lf"
8+
"endOfLine": "lf",
9+
"overrides": [
10+
{
11+
"files": "*.html",
12+
"options": {
13+
"parser": "angular"
14+
}
15+
}
16+
]
917
}

src/app/app-routes.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ export const routes: Routes = [
5252
),
5353
title: 'Dataset Details',
5454
},
55+
{
56+
path: 's/:id',
57+
loadComponent: () =>
58+
import('./metadata/features/study-details/study-details').then(
59+
(m) => m.StudyDetailsComponent,
60+
),
61+
title: 'Study Details',
62+
},
63+
{
64+
path: 'study/:id',
65+
loadComponent: () =>
66+
import('./metadata/features/study-details/study-details').then(
67+
(m) => m.StudyDetailsComponent,
68+
),
69+
title: 'Study Details',
70+
},
5571
// routes that need user authentication
5672
{
5773
path: 'work-package',

0 commit comments

Comments
 (0)