Repository navigation
Redesign Part 4 - New design for public competitions page - #2722
Conversation
|
@ihsaan-ullah Very nice. I just wanted to warn you that @Mindr0ide's PR we just merged might be conflicting with this one, so you'll need some rebasing / conflict merging: Indeed, he added tags in the filters of the public competitions page. You'll need to move the tag select interface into your new filter interface.
|
b247cb0 to
40fc06f
Compare
1e0682b to
4f584d2
Compare
The search works when you press enter. If that is a problem we can change this behaviour in next PR. |
I think this is much better than what we have now since it will make a lot less requests to the database. Right now, if someone wants to search something and types out the request in the search bar, it will spam the database with requests |
|
Yes, this is a nice design. I'll try again because I think nothing happened when I pressed enter. |
|
Indeed there was a problem with the search. The latest commit fixes it. |
|
Works perfectly now. It is nice to have a GET query for the search. |
- Add one file with the button styles for the redesigned pages - Add a large and a small size - Use them on the home page, the Organizations page and the empty page message
- Show competitions with the home page cards, 12 per page - Add search, filters that can be opened and closed, and a sort menu - Keep the search, filters and sort in the page address and in the page links - Show the empty page message when nothing is found - Hide Create, Upload and the personal filters for logged out visitors - Keep a fixed order for competitions with the same count, so none shows on two pages - Use the new theme for the external competitions banner - Use the same filters for the page and the public competitions API - Remove the old page code - Add tests for the new page
- Hide the Create and Upload icons from screen readers so the links are named only by their text - Find the Create and Upload links by their text in the e2e tests, so changing an icon does not break them
…w design Cards - The cards on the home page and the public competitions page have a new layout - The organizer is shown on its own line with their profile photo, or the first letter of their name when there is no photo - The start date, participants, submissions and prize are shown as small pills with new icons - The tags are shown on one line at the bottom of the card, with a +N more label when they do not fit - The tags use the page colors instead of one color per category - Hovering a tag shows its category, hovering +N more lists the hidden tags, and hovering a pill shows what it is - Cards without tags show No tags - All tags of a competition are now shown on the card, sorted by category and name, instead of at most five per category Public competitions page - The tag, date and match filters are adapted to the redesigned page - Tags are picked from one dropdown for each tag category, with a search to find a tag - Tag choices apply when the dropdown closes, so several tags can be picked at once - The match option shows Any filter first, as the default, and All filters second - Has reward is renamed to Has a prize, in its own Prize group - The search also finds competitions by the name of the organizer, like the API - Each filter is shown as a label under the search bar, with its category or type in front, for example Conference: NeurIPS - When filtering by tags, the matching tags are shown first on the cards and highlighted - The page keeps its scroll position after a filter change - The Upload button uses an icon that matches the style of the Create button API - The public competitions API and the page share the same filter and sort code - Tags can be sent as repeated values or as a comma separated list - The has_reward filter is renamed to has_a_prize - The API documentation lists every filter of the public competitions API with its type, values and an example - The API documentation now shows the parameters of every endpoint in the order they are written in the code, instead of A to Z, so related ones stay together, for example start_date before end_date Tests - Updated the home page card tests for the new card - Added tests for the tag, date and match filters on the page, the filter labels, the tag dropdowns and the matching tags on the cards - Added tests for reading tag ids and dates from the URL, and for sending tags in both ways to the API Documentation - Added a section to the participant guide about finding a benchmark or competition with the search, sort and filters
ebd6fed to
e4cf2da
Compare






Description
Public competitions page
Layout
Search, filters and sort
Logged out visitors
Shared styles
Other
Tests
Screenshots
New page without any filters applied

With filters applied

Checklist