codeforamerica / civic-issue-finder

UNMAINTAINED. An embeddable widget to find issues on the Code for America API
http://www.codeforamerica.org/geeks/civicissues
33 stars 15 forks source link

Add search to the Civic Issue FInder #30

Open ondrae opened 9 years ago

ondrae commented 9 years ago

Description

One of the most requested features is to search for specific types of Issues. This is already possible somewhat through labels and organization attributes, but it leaves out programming language, project status, etc.

We just added search to the CfAPI. Examples are: http://codeforamerica.org/api/projects?q=Bicycle http://codeforamerica.org/api/organizations/Code-for-San-Francisco/projects?q=elections

This means we can now add search to the Civic Issue Finder.

To start we'd pass through the search parameter q=bicycles to the call to the CfAPI. Later we'd consider adding in the contents of issues and labels to the values being searched.

One question is should we change the embedded issues to include a search box? They'd all become interactive then. Might be simpler to just have the search term hardcoded in each embed through the embed form.

Files

app.py, templates/index.html, templates/widget.html, templates/embed.html, static/main.js

Tasks

ondrae commented 9 years ago

@tmaybe Having search included in each embed will probably lead to the most use of your recent work on the CfAPI.

werdnanoslen commented 7 years ago

I just noticed this once had ready tag on it. What's the status on this?