feat(dashboards): add collections list view per organism#1098
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
For testing: I've created a little script you can run to create a few collections, it'll create them in the backend directly. this is so you can see collections in the table: |
3e567d5 to
e951f78
Compare
9e12812 to
db04b4b
Compare
8bf2b3d to
6c84134
Compare
website/src/components/collections/overview/CollectionsOverview.tsx
Outdated
Show resolved
Hide resolved
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new “Collections” feature area in the website dashboards, enabling users to navigate to a collections overview and view organism-specific collections in a table.
Changes:
- Added
/collectionsoverview page and/collections/[organism]organism-specific collections page. - Introduced a new React collections table component that fetches collections from the backend API.
- Updated header/mega-menu, main menu, and hamburger menu entries to include “Collections” with an optional separator.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| website/src/types/pages.ts | Adds route constants for collections pages. |
| website/src/pages/collections/index.astro | New overview page to select an organism. |
| website/src/pages/collections/[organism]/index.astro | New organism-specific collections page + breadcrumbs. |
| website/src/components/collections/overview/CollectionsOverview.tsx | New client-side fetched collections table UI. |
| website/src/layouts/base/header/getPathogenMegaMenuSections.ts | Adds “Collections” entry per organism in the mega menu, with separator support. |
| website/src/layouts/base/header/Navigation.tsx | Wires hasSeparatorAbove through to menu entries. |
| website/src/layouts/base/header/MegaMenu.tsx | Implements visual separator support for mega menu list entries. |
| website/src/layouts/base/header/HamburgerMenuSection.astro | Passes separator flag through to hamburger items. |
| website/src/layouts/base/header/HamburgerMenuItem.astro | Implements visual separator support for hamburger list items. |
| website/src/components/MainMenuItem.astro | Implements visual separator support for main menu list items. |
| website/src/components/MainMenu.astro | Passes separator flag through to main menu items. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Each organism's Pathogens menu now includes a Collections link, placed after dashboards and before external Browse data links, with a visual separator above it. Separator is threaded through desktop mega menu, mobile hamburger menu, and landing page organism tiles. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds /collections (organism selector) and /collections/:organism (overview table) as browsable-without-login pages. The overview fetches collections from the backend and displays them in a table. The isLoggedIn prop is wired through from SSR session but unused until create/edit is added in a follow-up PR. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use organism background colors, border decorations, and hover states matching the landing page tiles. Grid is 2→3→4 columns across breakpoints. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6c84134 to
aaa7e7d
Compare
fengelniederhammer
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Screenshots
new menu entry and separator:
Collections table:
collections overview:
PR Checklist
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com