Git Product home page Git Product logo

gift_manager's People

Contributors

bricestacey avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gift_manager's Issues

Refactor faceting in index views

The scope buttons in the index views should be refactored as helpers

e.g. this needs to go away

= link_to "Active (#{Bin.active.count})", bins_path(:scope => 'active'), :class => "button pill#{(params[:scope] == 'active' or params[:scope].nil?) ? ' primary' : ''}"
= link_to "Inactive (#{Bin.inactive.count})", bins_path(:scope => 'inactive'), :class => "button pill#{(params[:scope] == 'inactive') ? ' primary' : ''}"

and be more like

= facet_to :active
= facet_to :inactive

or maybe

= facets_to(:active, :inactive)

User doesn't know how to move an item to a different bin

A user doesn't know how to move an item to a different bin.

This can be accomplished by going to "Books", finding the item, editing it, and you can select from the drop down menu a list of bins. When you are working under a particular bin, that option is not provided.

Must come up with a better UX for this.

Refactor OCLC model

  • rename .find_by_isbn to .attributes_for_isbn
  • extract methods .get_bib_data and .get_location_data

Refactor books controller

Remove the rubbish from when it was an included module. Filters by attribute can be handled by passing attributes as parameters instead of using scopes.

Extract recommendation changes into a Books::RecommendationController with an update action and refactor.

Refactor AMZN model

  • change .find_by_isbn to .attributes_for_isbn
  • make options variable a constant
  • handle specific errors, otherwise explain the collection of errors handled

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.