opensanctions / opensanctions/poliloom

Add user stats page with progress bars

Open
#96 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

gui
Dominant language
Python
Stars
22
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Overview

Add a stats page that gives users a sense of accomplishment without over-gamifying the experience. The goal is to support intrinsic motivation rather than replace it with extrinsic rewards.

Feature Description

Display progress bars for measurable metrics (e.g., total evaluations, sessions completed). Each bar uses a logarithmic scale with tiers:

Range Tier
1-10 Bronze
10-100 Silver
100-1000 Gold
1000+ Platinum

The tier color changes as users progress, providing visual feedback on their contribution level.

Implementation

Backend
  • New API endpoint: GET /api/user/stats returning user metrics
  • Track total evaluations submitted, sessions completed, etc.
Frontend
  • New page at /app/stats/page.tsx
  • Progress bar component with tier-based coloring
  • Link in Header for authenticated users
  • Use existing UI components and Tailwind styling
Stats to track
  • Total evaluations submitted
  • Number of sessions completed
  • (Optional) Breakdown by property type

Design Notes

  • Keep the UI minimal and informative, not flashy
  • Avoid language like "achievements" or "rewards"
  • Frame as contribution metrics, not game scores

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the backend entry point for GET /api/user/stats and the frontend page at /app/stats/page.tsx, then review the Header and existing UI components with Tailwind styling. Done means authenticated users can open a minimal stats page showing contribution metrics with logarithmic progress bars and tier-based colors, backed by the new endpoint.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tailwindcss, typescript
Domain
backend-api-design, frontend, full-stack
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.