STEP-Pod-Capstone-Project / Capstone-Project

https://book-book-app.appspot.com
Apache License 2.0
4 stars 0 forks source link

[UI] Book Search Tile #46

Closed antoniolinhart closed 4 years ago

antoniolinhart commented 4 years ago

Description

This PR focuses on the UI update of the BookSearchTile object, the view rendered on the Browse page after the User enters a search term and presses enter. It also sets the framework for the user to see lists of booklists they can add a book to.

Breakdown

Main Difficulties

Deciding which dropdown library to use - there are a lot of possibilities but I decided to use the ReactBootstrap components.

Setting up the test data to 'mock' the lists of BookLists I would get - I ended up just creating arrays with names and ids to show.

Ensuring that the dropdown was not covered by the buttons on the next lowest book element - with lots of help from Geoff, it now ensures that when the element is in focus, it will be the top layer seen.

Screenshot of Feature

Before this PR

Before Book Tile

Created in this PR

This screenshot shows the tile view after hovering over one of the tiles with a lightblue background. After Book Tile Hover

This screenshot shows the dropdown depicting the list of the user's clubs and communities that they can add the book to (currently dummy data). After Book Dropdown

New tile is optimized for mobile view too! After Book Mobile View

Linked Issue

9

Creates Issue #48 for handling empty BookLists or Club/Communities