Add Phase 3 community voting and issue reporting (THE-109, THE-110)#588
Merged
Add Phase 3 community voting and issue reporting (THE-109, THE-110)#588
Conversation
…113) Populate enrichment fields for all 17 tools in the Username category (Username Search Engines + Specific Sites). Each tool now includes description, status, pricing, bestFor, input/output, opsec rating, and badge flags (localInstall, googleDork, registration, editUrl, api, invitationOnly, deprecated). All URLs verified as live on 2026-03-26. Co-Authored-By: Paperclip <noreply@paperclip.ing>
Backend (src/worker.js):
- Add POST /api/vote: upvote/downvote with toggle behavior, one vote per
session per tool, returns net score
- Add POST /api/report: flag tools as dead_link/paywalled/incorrect_info;
auto-creates GitHub issue via GitHub API when REPORT_THRESHOLD (3) unique
reports of the same type are received (requires GITHUB_TOKEN secret)
- Update GET /api/tool-stats to include votes { up, down, score }
- Extract validateCommon() and isRateLimited() helpers to reduce duplication
Frontend (public/js/arf.js):
- Replace static rating placeholder with _renderVoteUI(): renders thumbs
up/down buttons, reads cached vote from sessionStorage, fetches live score
async from /api/tool-stats
- Add _castVote(): fires POST /api/vote, updates button active state and
score display, persists user vote in sessionStorage
- Add _resetReportButtons() and _submitReport(): wire report buttons per
panel open, POST /api/report, show inline feedback message
HTML (public/index.html):
- Replace static rating span with vote row (thumbs up, score, thumbs down)
- Replace static GitHub report link with three report buttons + feedback div
CSS (public/css/panel.css):
- Add .vote-btn, .vote-score (.positive/.negative/.zero) styles
- Add .report-btn, .panel-report-feedback styles
- Remove old #panel-report-link styles (replaced by button row)
Co-Authored-By: Paperclip <noreply@paperclip.ing>
Contributor
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
osint-framework | 7412c6a | Commit Preview URL Branch Preview URL |
Mar 26 2026, 04:56 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements both Phase 3 community features from the Tool Details Panel plan.
Voting system (THE-109)
Backend (
src/worker.js):POST /api/voteendpoint: accepts{ tool_id, direction, session_hash }where direction is"up","down", ornull{ ok, score, userVote }so the frontend can update UI without a follow-up fetchGET /api/tool-statsnow includesvotes: { up, down, score }alongsideclicksFrontend (
public/js/arf.js+public/index.html+public/css/panel.css):.activeclass)Issue reporting system (THE-110)
Backend (
src/worker.js):POST /api/reportendpoint: accepts{ tool_id, report_type, session_hash }where report_type isdead_link,paywalled, orincorrect_infoGITHUB_TOKENWorker secret; if absent, reporting still works but no GitHub issue is createdFrontend:
Deployment note
Add the GitHub token secret before deploying:
wrangler secret put GITHUB_TOKEN