Skip to content

Feature Request: PDF Generation Tracker for User Profiles #651

Description

@datdamnzotz

Motivation / Use Case

We’d like to add a simple counter that tracks how many times each user clicks the “Create PDF” button.
On every click, increment pdfCreation by 1 and store it in the user’s record. Then display this total on the user’s profile page.

Beyond PDFs, this could be extended to show other stats such as total characters processed, account creation date, or last login time - providing a quick snapshot of usage directly within the users profile.

No changes are required to the existing PDF workflow; we just need a database field and a UI update.

Area What to add
User‑Level Metrics • Total PDFs generated (current request)
• Total characters processed across all PDFs
• Number of uploads/downloads per month
Account History • Date the account was created
• Last login / last PDF generation timestamp, last login
Dashboard / Reporting • API endpoint /api/users/:id/metrics that returns JSON with all counters, enabling future analytics dashboards or admin reports.
Scalability Planning • Use DB updates (e.g., pdf_generation_count = pdf_generation_count + 1) to avoid race conditions under high concurrency.
Tiering • Leverage the counter as a basis for tiered badges
UX Enhancements • Show a small badge or progress bar in the profile (“PDFs created: X / Y”) to encourage engagement.
• Optional tooltip explaining what the number represents.
Tier PDF Count Range Badge Label Color / Icon
Bronze 1 – 49 PDFs Novice 🥉 (brown)
Silver 50 – 199 PDFs Regular ⚪️ (silver)
Gold 200 – 499 PDFs Proficient 🏅 (gold)
Platinum 500+ PDFs Expert 👑 (platinum)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions