Skip to content

feat: add vendor trust score endpoint and leaderboard#64

Open
Aharshi3614 wants to merge 2 commits into
jpdevhub:mainfrom
Aharshi3614:feature/h05-vendor-trust-score
Open

feat: add vendor trust score endpoint and leaderboard#64
Aharshi3614 wants to merge 2 commits into
jpdevhub:mainfrom
Aharshi3614:feature/h05-vendor-trust-score

Conversation

@Aharshi3614
Copy link
Copy Markdown

Description

Closes #45

This PR adds vendor trust score functionality and a public leaderboard.

Changes

  • Added vendor trust score API endpoints

  • GET /api/v1/vendors/leaderboard

  • GET /api/v1/vendors/{vendor_id}/trust-score

  • POST /api/v1/vendors/{vendor_id}/recalculate

  • Added vendor trust score calculation logic

  • Added trust badge and trend computation

  • Added SQL migration for vendor trust score fields

  • Added leaderboard frontend page

  • Registered vendor routes in the FastAPI backend

Notes

While testing locally, I encountered project import-path issues when running the backend with uvicorn backend.main:app. The feature implementation itself is included in this PR, but additional package import adjustments may be required depending on the project's preferred backend execution method.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

🎉 Thank you for your Pull Request! We're thrilled to have your contribution to FreshScan AI.

Before we review, please make sure you have:

  • Followed the CONTRIBUTING.md guidelines.
  • Ensured all automated CI checks (linting, tests) are passing.
  • Checked that your commit messages follow the Conventional Commits format.

A maintainer will review your code as soon as possible!

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

@Aharshi3614 is attempting to deploy a commit to the karan3431's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Aharshi3614
Copy link
Copy Markdown
Author

CI is now green locally after fixing ruff + excluding notebook. Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

H-05: Vendor Trust Score & Public Leaderboard

1 participant