|
| 1 | +# SCFS Issue Scores — Chrome Extension |
| 2 | + |
| 3 | +A Chrome extension that adds AI-powered sentiment scores to [SeeClickFix](https://seeclickfix.com) service requests for Jersey City. Each issue gets an **Interaction** score and an **Outcome** score so you can quickly see how the city is handling reports. |
| 4 | + |
| 5 | +## What it does |
| 6 | + |
| 7 | +**On the issues map/list view** — scores appear inline on each issue card with a progress bar and filter buttons (Negative / Positive / Unscored): |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +**On an individual issue page** — a banner appears at the top showing Interaction and Outcome sentiment with confidence percentages: |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | +## Install from a release (recommended) |
| 16 | + |
| 17 | +1. Go to the [Releases page](https://github.com/HackJerseyCity/scfs-chrome/releases) and download the latest `scfs-chrome-vX.X.zip` |
| 18 | +2. Unzip the file |
| 19 | +3. Open Chrome and go to `chrome://extensions` |
| 20 | +4. Turn on **Developer mode** (toggle in the top-right corner) |
| 21 | +5. Click **Load unpacked** |
| 22 | +6. Select the unzipped folder |
| 23 | +7. Visit [seeclickfix.com](https://seeclickfix.com/web_portal/PTzvqioTdUqpwQchKJx1dMyo/issues/map) — scores will appear automatically |
| 24 | + |
| 25 | +## Install from source |
| 26 | + |
| 27 | +```sh |
| 28 | +git clone https://github.com/HackJerseyCity/scfs-chrome.git |
| 29 | +cd scfs-chrome |
| 30 | +``` |
| 31 | + |
| 32 | +Then follow steps 3–7 above, pointing "Load unpacked" at the cloned repo directory. |
| 33 | + |
| 34 | +## Updating |
| 35 | + |
| 36 | +When a new release is available: |
| 37 | + |
| 38 | +1. Download and unzip the new release (or `git pull` if you installed from source) |
| 39 | +2. Go to `chrome://extensions` |
| 40 | +3. Click the reload icon on the SCFS Issue Scores card |
| 41 | + |
| 42 | +## How it works |
| 43 | + |
| 44 | +The extension runs a content script on `seeclickfix.com` pages. It extracts issue IDs from the page, fetches sentiment scores from the SCFS API (`scfs-api.hackjc.org`), and injects the results into the page. Scores are cached per session to avoid redundant API calls. |
| 45 | + |
| 46 | +## Development |
| 47 | + |
| 48 | +```sh |
| 49 | +make zip # Build a distributable zip |
| 50 | +make tag # Tag the current version from manifest.json and push |
| 51 | +make release # Tag + zip (for use with GitHub Actions) |
| 52 | +``` |
| 53 | + |
| 54 | +## License |
| 55 | + |
| 56 | +MIT |
0 commit comments