Giter Site home page Giter Site logo

opencleveland / refundcleveland Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 10.0 409 KB

website for residents to adjust the city of Cleveland proposed budget to reflect their priorities.

License: MIT License

Python 21.13% HTML 32.54% SCSS 13.00% JavaScript 33.28% Procfile 0.05%

refundcleveland's People

Contributors

adamfishman avatar austindavis avatar gsvolt avatar haileyhoyat avatar miksm1th avatar paulr-docs avatar shuxrei avatar skorasaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

refundcleveland's Issues

ward field is not populated when find ward button is run

On the website,
I noticed that when an address is input into the field
and find ward button is pressed, the ward number wasn't not being populated/filled into the id_ward input field.

when the find ward button is pressed, lookup_address does make a fetch query -
lookup_address

and this is the response:
HTTP/1.1 200 OK Connection: keep-alive Server: gunicorn/20.0.4 Date: Thu, 11 Feb 2021 15:48:17 GMT Content-Type: text/html; charset=utf-8 X-Frame-Options: DENY Content-Length: 19 X-Content-Type-Options: nosniff Referrer-Policy: same-origin Via: 1.1 vegur

Disabled submit button event listener

I think we could add an event listener to the submit button on the /change-the-budget page that displays a message when a user clicks the disabled button (something like, "Please make sure all funds are allocated before submitting your budget").

License

finalize the license of the code.

require email address?

We are currently requiring users to enter an email address; this is turning all users who ; also have to keep in mind if whether this would lead abuse/spamming of the submissions

Clarify the file names

include in the readme what each of the files do; although they are somewhat self-evident; to someone who is not completely familiar with it would struggle a little bit.

Adding dollar values to budget displays

I was thinking we can enhance these budget display interfaces to include dollar amounts so people have a better idea of the scale of the budget when they are making their own version. Intuitively people think in thousands, millions, and billions instead of percentage points, and it could make the interaction more accessible and provoking to show those numbers as they adjust them. There is a visceral feeling to seeing 9 figure amounts for policing that dwarfs over things like community services and bike infrastructure, etc.

Attached photo of idea below.
image

I am going to try this in my own branch, but it may take me a while! So I am sharing my idea here to the real programmers, in case we want to implement this sooner (if there is consensus to add this).

form submissions with Email addresses that do not contain periods return error

When submitting the form and the email value not contain a period in it (e.g. "sfdfsd@ss2com");

error is returned

ValueError at /store-data/

The view peoples_budget.views.store_data didn't return an HttpResponse object. It returned None instead.

full error messages at https://gist.github.com/skorasaurus/6c8a7014164f43d440b4afb224a03cc8

Perhaps will need to write a validator? (https://docs.djangoproject.com/en/3.1/ref/validators/#django.core.validators.EmailValidator)

Enter your Own Number on Change the Budget

For specific accessibility reasons as well as general ease of use, it'd be helpful to have the ability to enter in a specific number that someone wants for a given budget category. IE they could tap a part of the Health section and enter in "23" percent.

send email to user upon submission

  • Send an email to the user after submission with a link to their budget, so they can go back to it later and share it easily.
  • create nice/accessible html/text content of email

Clarify what happens when you hit the "find my ward" button

The find my ward button is a miracle, in that it just pops my ward number in instantaneously when I put in my addresses. But two things:

  1. It doesn't indicate that it's filled in the ward number. A user could be looking at the "find my ward" button and would click it over and over, without realizing that the button had successfully filled in the ward number above.
  2. There's no "you actually don't have a ward because your address is not in Cleveland" response. (This is related to the other conversation about a proposed null ward.)

View an existing budget

Add url: refundcleveland.com/<budget_id>/view

retrieve data from database, show to user, add links on the bottom to:

  • share via social, email, etc

bonus:

  • edit (only original user)
  • duplicate to edit - make a copy, take to /change-the-budget/

Submission Retrospective?

I forgot that we actually do save submission results (because that's how we're able to send links to people to view their budget).

What about a retrospective where we compare submissions to the final budget. Ex: The average desired Police budget submitted was 25%, and the final Police budget ended up being 37%.

Could be a cool way to see if the city reflects what people want in the budget.

Stats / summary page

creating a page that has the stats of the averages (and perhaps the median as well); of what proposed budgets submitted were

(This page can also be shared with councilperson as well. )

will need #97

(This page could be shared independent of any other page)

Admin on the "Change" Screen

People keep getting confused why there are seven bars on the main screen but only six on the Change the Budget screen. We have a good reason why, but fair enough.

It'd be helpful to have the seventh bar, the Admin bar, at least appear in the Change the Budget screen so people don't get confused. I agree that it shouldn't be edit-able. Maybe we can have a red X drawn across it, or put a free SVG of a lock over it. But I've gotten this feedback about the seventh bar multiple times.

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.