Open tkaragianes opened 8 months ago
Potential concern: We pull back one page of labs at a time, ordered by status then date. What happens when the first page is all in one category but the user goes to look at a different category? Additionally, how does that play with the infinite-scroll logic?
Will all successfully completed labs appear under Results Posted regardless of date? I like the layout as long as all labs with results are grouped under that tab and only suspended labs are grouped under Archived. I assume labs will continue to be organized by date within each tab. Two-year timescale is good for archive status.
Summary
This makes the lab page easier to understand, highlighting the labs that are currently accepting submissions and giving context for other labs based on their phase in the experimental pipeline.
Before:
After:
Implementation Notes
The LabExplore page now uses a computed property to segment the labs by experimental phase, and displays the lab cards in collapsible sections. Any lab without an experimental phase or that is older than 2 years (just a suggested timescale, can easily adjust) is placed into an "Archived" section, as some old labs are paused at various stages of the experimental pipeline.
Testing
Visually verified on local environment.
Related Issues
Closes #94.