Coder Social home page Coder Social logo

library's Introduction

library's People

Contributors

joshuacrewe avatar

Watchers

 avatar  avatar

library's Issues

Data collection should not be in the controller

It should be in a model.

Create a model which will handle all the data manipulation. Normally this would be an eloquent model fetching data from the database. We have no database as we are dealing with data from another site so we will create the methods for this.

$book->all()
$book->get()

Something like that?

Set max number of results

The default to return is 10 items in a list. By adding &max=12 to the query we can choose how many to get.

Pagination is handled with &offset=12 FYI

App doesn't redrawer on browser back button

  1. go to home page with search form
  2. Make a search
  3. Click the back button

The app should clear the search and show the home page again. Similarly refreshing the back and clicking the back button to get the search results URL should show the search results.

Handle errors

At the moment the spinning wheel just never leaves. It would be useful to have some sort of log available to see errors. The front end should feedback with a polite message that the site has gone wrong.

Screenshot 2019-11-29 at 15 09 33

Back button doesn't remember search

  1. Search for a book
  2. Click on a result to see the single page
  3. Click the back button on the browser
  4. Search is empty no results.

We should save the current search I would think ... ?

Searches with a space causes an error

SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Fresh install of the app. composer install and yarn install && yarn watch .

Enter a single word and get results. Enter more than one word and get an error.

Smart quotes break search

From Alpha tester :

Load app on ios.
Search for "Don't be evil"
Wait forever as it always loads

It looks like ios is adding a smart (curly) quote which is breaking things.

Add data from logged in session

In order to reserve books via this interface we are going to have to be able to use the Library Membership Number form (https://capitadiscovery.co.uk/cornwall/login). I suspect that this form will set a cookie enabling access to other areas of the site.

We will need a way of saving this information to use in future requests of the web scraper. I am not sure if this is even possible at this stage.

https://symfony.com/doc/current/components/browser_kit.html#cookies

Feature Requests

  • Add to list button prominent (when logged in)
  • Smooth sensible content transitions
  • Help page. A page to showcase all the search terms
  • Icon for ios homecreen
  • Short blurb on the archive page?
  • Search bar always present (move Search.svelte out of router)
  • Back button from a item page
  • Click author to search for that author
  • Lazy load images ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.