Coder Social home page Coder Social logo

openoakland / adopt-a-drain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeforamerica/adopt-a-siren

11.0 11.0 14.0 7.76 MB

AdoptaDrain is an online civic tool that supports the City of Oakland's Adopta-Spot program.

Home Page: http://adoptadrainoakland.com

License: BSD 2-Clause "Simplified" License

Ruby 91.87% JavaScript 0.67% CSS 7.46%

adopt-a-drain's Introduction

openoakland

This is a Github page, so check out the gh-pages branch

adopt-a-drain's People

Contributors

criscristina avatar daguar avatar danmelton avatar eddietejeda avatar kmacedo avatar kshimabukuro avatar max-mapper avatar mick avatar robertstewart avatar sferik avatar spjika avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adopt-a-drain's Issues

Submit email subscription request to govapi servers when drain adopted

The City of Oakland uses GovDelivery to manage email lists. After a user adopts a drain, we need to make an HTTP request to the GovDelivery govapi production servers to subscribe that user to a mailing list that will be used to send reminders about cleaning drains.

The easiest solution would be to automatically subscribe the user. However, it would probably be better to give them the opportunity to opt out of the email list.

Currently, when you click on a drain icon, a dialog appears that allows you to name the drain and optionally adopt it. Perhaps a checkbox that defaults to checked could be added that indicates you are willing to be signed up to a mailing list.

Contact me for more details on the private API endpoint and URL parameters.

FYI, if you submit an invalid topic ID, the response will be

({"message":"Topic not found."})

Analytics

Is our google analytics code loaded yet?

Support Google Maps satellite view

Request from City:

Is it possible to give the user a choice between viewing the map in “map” (what it’s currently showing) and satellite view?

Google Analytics and Kiss Metrics references need updates

The code references a Google Analytics account for Honolulu. In application.html.haml:

_gaq=_gaq||[];_gaq.push(["_setAccount","UA-32915849-3"]),_gaq.push(["_setDomainName","sirens.honolulu.gov"]),_gaq.push(["_trackPageview"]

and also

  var _kmk = _kmk || '5777639af0958fe4f5ee441531f98fe4823dce2c';
  function _kms(u){
  setTimeout(function(){
  var d = document, f = d.getElementsByTagName('script')[0],
  s = d.createElement('script');
  s.type = 'text/javascript'; s.async = true; s.src = u;
  f.parentNode.insertBefore(s, f);
  }, 1);
  }
  _kms('//i.kissmetrics.com/i.js');
  _kms('//doug1izaerwt3.cloudfront.net/' + _kmk + '.1.js');

Reset password notice

Needs to include site name or url in the notice- it doesn't indicate who it's from when you ask to reset password.

Not able to get to login form

Previously, when you chose the "I've already signed up" radio button in the sidebar, the sidebar would change from a signup form to a login form. This no longer seems to work.

Oddly enough, I'm seeing the same incorrect behavior at http://adoptahydrant.org/.

Train city staff

This seemed as good a place as any to track this.

Nicole asked that she and the Environmental Services Staff be given training on the system and access to the backend. She also asked to be trained on how the backed notification system works.

Using https prevents jQuery from loading

If you access the site using https, Chrome will silently refuse to load assets such as jQuery that are hard-coded to be loaded from another domain using http. This is to avoid loading mixed secure and insecure content. The result is the the sidebar is unstyled and the Google map does not appear.

I use the HTTPS Everywhere plugin on Chrome. Since it detects that Heroku supports https, it makes Chrome automatically switch to https.

The easiest fix is to load the assets using https. This will be a bit slower, but Chrome won't complain about mixed content if the page is accessed using http, since that is an upgrade.

The best fix would be to load assets using the same scheme as was used to access the page.

Email template refers to Honolulu

app/views/thing_mailer/send_personalized.html.erb has lots of references to Honolulu. Would we even use this feature to send emails, or will the City of Oakland send all the emails?

Multiple adopters needs to be removed

City staff are adamant that no drain can be adopted by more than one person - we need to roll back this feature - here's the commit where Mick changed this in our code base when porting from the boston version which is limited to one user per feature.
codeforamerica@4d45eff

Terms of Service refer to Massachusetts

Maybe this is something that got missed in the customization of our fork and the Honolulu siren fork. I'd be surprised if either of us were using the laws of the Commonwealth of Massachusetts for the agreement with adopters.

"Governing Law and Venue
This Agreement is governed by the laws of the Commonwealth of Massachusetts without regard to any conflict of law provisions. You agree that any claim or dispute with the City relating in any way to your use of AAS shall be brought exclusively before a state or federal court sitting in Oakland, CA, and you irrevocably waive any jurisdictional, venue, or inconvenient forum objections to such courts."

Signup Issues

Couldn't create a new account. It freezes on the homepage after clicking "sign up"

Chrome 22.0.1229.94
Mountain Lion 10.7.5
Photo emailed to OpenOakland group

Data on existing adopters

Nicole has data on the roughly 60 people who have adopted a drain pre Adopta. We should make a decision on whether we ask them to sign up after the app goes live or if we just add them to the users table.

I wasn't clear if the city had collected an email address from the adopters. By signing up, we would then have an email address for them. The constraints on the users table may prevent us from auto signing them up just based on the data that was collected previously.

Remove home phone from sign up page

Nicole asked that we remove one of the phone number fields to make it quicker for people to sign up. Unless we really need a mobile phone number because we think we might want to send people text messages (we would need to get them to agree to this, since some people have to pay to receive text messages), maybe we could replace the home phone number and mobile phone number fields with just a phone number field.

send_personalized.html.erb still refers to sirens

send_personalized.html.erb has an amusing mix of siren and drain information. For example, "At 11:45am this morning the Drains will be tested. The test involves a 45-second steady tone on all the Drains." I'm not sure I want to be around when the drains are being tested with tones.

I had originally added this to issue #21, but am pulling it out separately.

Change main title and remove logo

Requests from the City:

  1. At the top of the webpage, change the title from:

Oakland Adopt a Spot
[Maintain a Drain]

to:
Adopt a Drain
Part of the Oakland Adopt a Spot Program (with a link to www.oaklandadoptaspot.org)

  1. Remove the “Adopt a Storm Drain” logo (again, just to stick with consistency)

Needs a better follow-up experience

After you adopt a drain it would be really helpful if there was some follow-up screen that tells you what's going to happen next. As it is it's not clear at all what the adopter is responsible for and what action they should be taking next.

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.