Statistics page tabs #30

Merged
quoije merged 3 commits from cursor/statistics-page-tabs-4b57 into 2026 2025-12-21 15:49:43 -05:00
quoije commented 2025-12-21 15:44:25 -05:00 (Migrated from github.com)

Add Bootstrap tabs to the user statistics page to improve layout and enhance error handling for data fetching.

The user-stat.html page previously stacked ranking, winners, and 100% completion sections, leading to a cluttered view. This PR organizes them into distinct tabs. It also improves app_user-stat.js to show a clear error message and hide the spinner if the main stats fetch fails, while still rendering other available data and avoiding redundant API calls.


Open in Cursor Open in Web

Add Bootstrap tabs to the user statistics page to improve layout and enhance error handling for data fetching. The `user-stat.html` page previously stacked ranking, winners, and 100% completion sections, leading to a cluttered view. This PR organizes them into distinct tabs. It also improves `app_user-stat.js` to show a clear error message and hide the spinner if the main stats fetch fails, while still rendering other available data and avoiding redundant API calls. --- <a href="https://cursor.com/background-agent?bcId=bc-f832febf-49df-4ddf-b7c5-1ad500817011"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-cursor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-cursor-light.svg"><img alt="Open in Cursor" src="https://cursor.com/open-in-cursor.svg"></picture></a>&nbsp;<a href="https://cursor.com/agents?id=bc-f832febf-49df-4ddf-b7c5-1ad500817011"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/open-in-web-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/open-in-web-light.svg"><img alt="Open in Web" src="https://cursor.com/open-in-web.svg"></picture></a>
cursor[bot] commented 2025-12-21 15:44:26 -05:00 (Migrated from github.com)

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Cursor Agent can help with this pull request. Just `@cursor` in comments and I'll start working on changes in this branch. <sub>[Learn more](https://cursor.com/docs/background-agent/web-and-mobile) about Cursor Agents</sub>
Sign in to join this conversation.