eternagame / eternagame.org

Website for the Eterna citizen science game
https://eternagame.org
BSD 3-Clause "New" or "Revised" License
19 stars 17 forks source link

Segment Lab Explore gallery by experimental phase #369

Open tkaragianes opened 8 months ago

tkaragianes commented 8 months ago

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: Screenshot 2023-11-17 at 13-33-41 Eterna

After: Screenshot 2023-11-17 at 13-51-10 Eterna

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.

luxaritas commented 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?

DigitalEmbrace commented 8 months ago

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.