Skip to content

Conversation

@alyssaditroia
Copy link
Contributor

Updates the dojo stats function and updates the stats dashboard to simplify the displayed stats. The get_dojo_stats() function now uses direct SQL queries, removed chart and trend data. The stat dashboard has been redesigned to fit the updated results of the stats function.

(Award logic is unchanged; I do not have any awards data locally)

Backend stats calculation:

  • Replaced stats and trend calculation with raw SQL queries for total solves, users, and recent solves.
  • Removed chart/trend logic and related.
  • Query time reduced from ~800ms to < ~400ms using my local mock data with ~2M solves and 6,000 users.

Frontend dashboard redesign:

  • Removed chart and trend display, restructured dashboard to show total solves, challenges, recent solves, unique hackers, and awards.
  • Award icons and emojis are now displayed in the dashboard, and the chart component/script is removed.
  • Removed duplicate award display from the main dojo page since it is now shown in the dashboard.

UI and styling improvements:

  • Updated stat card layout
  • Added award styling
  • Updated recent activity/award display
  • Removed chart/trend styles.
Screenshot 2025-10-21 at 2 17 11 PM

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant