Giter VIP home page Giter VIP logo

donors_select's People

Contributors

cstrahan avatar dkaufman avatar jkosz avatar mikesea avatar mrgilman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

dkaufman conanr

donors_select's Issues

build_uri should be it's own module

this isn't really related to a Project, so it should probably be extracted into it's own module.

  def self.build_uri(params=nil)
    if params
      BASE_URI + "&" + params.join("&")
    else
      BASE_URI
    end
  end

Defining singleton methods is inconsistent

The singleton class is opened up to expose the redis method, however you also define other singleton methods outside of the opening.

class << self
    attr_writer :redis

    def redis
      @redis ||= $redis
    end
  end

  def self.find_by(params)
    uri = build_uri(params)
    if projects = redis.get(uri)
      JSON.parse projects
    end
  end

Extract API Keys

 API_KEY = 'DONORSCHOOSE'
  BASE_URI = "http://api.donorschoose.org/common/json_feed.html?max=20&APIKey=#{API_KEY}"

UI ambiguity - "Clear Filters" button

It's not incredibly clear that this is a button until you mouse over it. The styling is really nice but ironically it is very similar to the "Top of Window" styling you see in the OS X Finder, and because of this I think we tend to read it as just a nice border on the top of the image. Maybe there could be a way to style this so it's a little more prominent.

UI Enhancement - Breadcrumbs

One slightly disorienting component of the UI is keeping track of what filters are currently active. Only the most recent button pressed stays in the "depressed" state, so it might be nice to have some "breadcrumb" feature that would list all the things you're currently filtering on.

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.