Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"rxjs": "~7.8.0",
"svg-pan-zoom": "^3.6.1",
"svgcanvas": "^2.6.0",
"swagger-ui-dist": "^5.32.0",
"tinacms": "^3.4.1",
"tslib": "^2.3.0",
"vectorious": "^6.1.12",
Expand Down
11 changes: 11 additions & 0 deletions projects/website-angular/src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const routes: Routes = [
{ path: 'community/collaboration', loadComponent: () => import('./community/collaboration/collaboration.component').then(m => m.CollaborationComponent), pathMatch: 'full' },
{ path: 'community/icon-lib', loadComponent: () => import('./community/icon-lib/icon-lib.component').then(m => m.IconLibComponent), pathMatch: 'full' },
{ path: 'community/icon-lib/:id', loadComponent: () => import('./community/icon-lib/icon-lib.component').then(m => m.IconLibComponent), pathMatch: 'full' },
{ path: 'community/contributors', loadComponent: () => import('./content/contributors/contributors.component').then(m => m.ContributorsComponent), pathMatch: 'full' },

//Documentation Pages
{ path: 'documentation/faq', loadComponent: () => import('./documentation/faq/faq.component').then(m => m.FaqComponent), pathMatch: 'full' },
Expand All @@ -29,10 +30,20 @@ export const routes: Routes = [
{ path: 'content/reactome-research-spotlight', loadComponent: () => import('./article/article-page/article-page.component').then(m => m.ArticlePageComponent), pathMatch: 'full' },
{ path: 'content/reactome-research-spotlight/:slug', loadComponent: () => import('./article/article/article.component').then(m => m.ArticleComponent), pathMatch: 'full' },

//Content Pages (TOC, DOI, Schema)
{ path: 'content/toc', loadComponent: () => import('./content/toc/toc.component').then(m => m.TocComponent), pathMatch: 'full' },
{ path: 'content/doi', loadComponent: () => import('./content/doi/doi.component').then(m => m.DoiComponent), pathMatch: 'full' },
{ path: 'content/schema', loadComponent: () => import('./content/schema/schema.component').then(m => m.SchemaComponent), pathMatch: 'full' },
{ path: 'content/schema/:className', loadComponent: () => import('./content/schema/schema.component').then(m => m.SchemaComponent), pathMatch: 'full' },

//Search Pages
{ path: 'content/query', loadComponent: () => import('./search/search.component').then(m => m.SearchComponent) },
{ path: 'tools/site-search', loadComponent: () => import('./site-search/site-search.component').then(m => m.SiteSearchComponent) },

//API Documentation (Swagger UI)
{ path: 'ContentService', loadComponent: () => import('./swagger-page/swagger-page.component').then(m => m.SwaggerPageComponent), data: { serviceName: 'ContentService' } },
{ path: 'AnalysisService', loadComponent: () => import('./swagger-page/swagger-page.component').then(m => m.SwaggerPageComponent), data: { serviceName: 'AnalysisService' } },

//404 Page
{ path: '404', loadComponent: () => import('./page-not-found/page-not-found.component').then(m => m.PageNotFoundComponent) }, //TODO: Remove?
/* Non - CMS Pages Above this Line */
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<app-page-layout>
<article class="contributors-page">
<header class="page-header">
<span class="category-badge">Content</span>
<h1>Contributors</h1>
<p class="description">
Reactome authors and reviewers who have contributed pathways and reactions.
</p>
</header>

<!-- Search bar -->
<div class="search-bar">
<div class="search-input-wrapper">
<span class="material-symbols-rounded search-icon">search</span>
<input
type="text"
placeholder="Search by name or ORCID..."
[value]="searchQuery"
(input)="onSearchInput($event)"
/>
@if (searchQuery) {
<button class="clear-btn" (click)="clearSearch()">
<span class="material-symbols-rounded">close</span>
</button>
}
</div>
</div>

<!-- Letter filter bar -->
@if (!loading && !error) {
<div class="letter-filter">
<button
class="letter-chip"
[class.active]="!activeLetter && !searchQuery"
(click)="selectAll()"
>All</button>
@for (letter of letters; track letter) {
<button
class="letter-chip"
[class.active]="activeLetter === letter"
(click)="selectLetter(letter)"
>{{ letter }}</button>
}
</div>

<div class="results-info">
{{ resultCount }} contributor{{ resultCount !== 1 ? 's' : '' }}
@if (activeLetter) {
<span> starting with "{{ activeLetter }}"</span>
}
@if (searchQuery) {
<span> matching "{{ searchQuery }}"</span>
}
</div>
}

@if (loading) {
<div class="loading-state">
<div class="spinner"></div>
<p>Loading contributors...</p>
</div>
}

@if (error && !loading) {
<div class="error-state">
<span class="material-symbols-rounded">error</span>
<p>Unable to load data. Please try again later.</p>
</div>
}

@if (!loading && !error) {
@if (filteredContributors.length === 0) {
<div class="empty-state">
<span class="material-symbols-rounded">search_off</span>
<p>No contributors found.</p>
</div>
} @else {
<div class="contributors-table-wrapper">
<table class="contributors-table">
<thead>
<tr>
<th class="col-name sortable" (click)="toggleSort('displayName')">
Name
<span class="material-symbols-rounded sort-icon">{{ sortIcon('displayName') }}</span>
</th>
<th class="col-orcid">ORCID</th>
<th class="col-num sortable" (click)="toggleSort('authoredPathways')">
Authored Pathways
<span class="material-symbols-rounded sort-icon">{{ sortIcon('authoredPathways') }}</span>
</th>
<th class="col-num sortable" (click)="toggleSort('reviewedPathways')">
Reviewed Pathways
<span class="material-symbols-rounded sort-icon">{{ sortIcon('reviewedPathways') }}</span>
</th>
<th class="col-num sortable" (click)="toggleSort('authoredReactions')">
Authored Reactions
<span class="material-symbols-rounded sort-icon">{{ sortIcon('authoredReactions') }}</span>
</th>
<th class="col-num sortable" (click)="toggleSort('reviewedReactions')">
Reviewed Reactions
<span class="material-symbols-rounded sort-icon">{{ sortIcon('reviewedReactions') }}</span>
</th>
</tr>
</thead>
<tbody>
@for (c of pagedContributors; track c.person.dbId) {
<tr>
<td class="col-name">
<a [href]="personUrl(c.person.dbId)" class="person-link">{{ c.person.displayName }}</a>
</td>
<td class="col-orcid">
@if (c.person.orcidId) {
<a class="orcid-link" [href]="orcidUrl(c.person.orcidId)" target="_blank" rel="noopener">
{{ c.person.orcidId }}
</a>
}
</td>
<td class="col-num">{{ c.authoredPathways }}</td>
<td class="col-num">{{ c.reviewedPathways }}</td>
<td class="col-num">{{ c.authoredReactions }}</td>
<td class="col-num">{{ c.reviewedReactions }}</td>
</tr>
}
</tbody>
</table>
</div>

@if (maxPage > 1) {
<div class="pagination">
<button class="page-btn" [disabled]="currentPage <= 1" (click)="prevPage()">
<span class="material-symbols-rounded">chevron_left</span>
Previous
</button>
<span class="page-info">Page {{ currentPage }} of {{ maxPage }}</span>
<button class="page-btn" [disabled]="currentPage >= maxPage" (click)="nextPage()">
Next
<span class="material-symbols-rounded">chevron_right</span>
</button>
</div>
}
}
}
</article>
</app-page-layout>
Loading
Loading