[PR #3335] [CLOSED] New View: Server Stats #3938

Closed
opened 2026-04-25 00:17:39 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3335
Author: @Vito0912
Created: 8/25/2024
Status: Closed

Base: masterHead: feat/all-stats-page


📝 Commits (10+)

  • 89f6473 added libraries/stats endpoint
  • 858ea50 fixed wrong ide completions
  • 3d90634 added library to be returned instead of libraryId and fixed stupid req.library asignment
  • 0e205b5 copy pasted and edited some parts in all-stats
  • cbd042d refactored libraries-stats and changed path
  • 27b5d0c removed redirect
  • df15c22 Merge branch 'advplyr:master' into feat/all-stats-page
  • 39d40d5 first draft controller
  • 793ef0e updated controller
  • b127f0c delete old stats view and added all library stats view

📊 Changes

10 files changed (+341 additions, -44 deletions)

View changed files

📝 client/components/app/BookShelfToolbar.vue (+5 -1)
📝 client/components/app/ConfigSideNav.vue (+3 -3)
📝 client/components/app/SideRail.vue (+9 -1)
📝 client/components/stats/PreviewIcons.vue (+15 -3)
client/pages/config/server-stats.vue (+168 -0)
📝 client/pages/library/_library/stats.vue (+0 -3)
📝 client/strings/en-us.json (+4 -0)
📝 server/controllers/LibraryController.js (+90 -33)
📝 server/routers/ApiRouter.js (+1 -0)
📝 server/utils/libraryHelpers.js (+46 -0)

📄 Description

Based on #3330

This PR introduces a new page titled "All Libraries Stats," which mirrors the existing "Library Stats" view but combines data from all libraries.

We might want to consider refactoring the design since this results in some duplicated code. While there are slight modifications, primarily in the computed section, much of the functionality remains the same.

Image:
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/3335 **Author:** [@Vito0912](https://github.com/Vito0912) **Created:** 8/25/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/all-stats-page` --- ### 📝 Commits (10+) - [`89f6473`](https://github.com/advplyr/audiobookshelf/commit/89f64736f432aa0f25e668b0521c1eae02cca9b8) added libraries/stats endpoint - [`858ea50`](https://github.com/advplyr/audiobookshelf/commit/858ea5010a1f2743dcfeb448c9fa7ad9e1b00821) fixed wrong ide completions - [`3d90634`](https://github.com/advplyr/audiobookshelf/commit/3d906347c3a00af8bcb3a08bd383c0a7167f920c) added library to be returned instead of libraryId and fixed stupid req.library asignment - [`0e205b5`](https://github.com/advplyr/audiobookshelf/commit/0e205b59d84f307fecfe1648a66b197c7c999e27) copy pasted and edited some parts in all-stats - [`cbd042d`](https://github.com/advplyr/audiobookshelf/commit/cbd042dd8eeaa2db74061055d6a5ef9f14c7c930) refactored libraries-stats and changed path - [`27b5d0c`](https://github.com/advplyr/audiobookshelf/commit/27b5d0c67ae02fad52e677e4aace0dacf4aceb03) removed redirect - [`df15c22`](https://github.com/advplyr/audiobookshelf/commit/df15c22c6decb93f8d69b2b89d59c27979a561c1) Merge branch 'advplyr:master' into feat/all-stats-page - [`39d40d5`](https://github.com/advplyr/audiobookshelf/commit/39d40d5ef30cf7ab991c2e5a1315e400ff7d526e) first draft controller - [`793ef0e`](https://github.com/advplyr/audiobookshelf/commit/793ef0e9ec4c3f7a4d3691ebfa132fc4f3d9a248) updated controller - [`b127f0c`](https://github.com/advplyr/audiobookshelf/commit/b127f0c4068152f4307bfce1ca8a03aa93cae6be) delete old stats view and added all library stats view ### 📊 Changes **10 files changed** (+341 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `client/components/app/BookShelfToolbar.vue` (+5 -1) 📝 `client/components/app/ConfigSideNav.vue` (+3 -3) 📝 `client/components/app/SideRail.vue` (+9 -1) 📝 `client/components/stats/PreviewIcons.vue` (+15 -3) ➕ `client/pages/config/server-stats.vue` (+168 -0) 📝 `client/pages/library/_library/stats.vue` (+0 -3) 📝 `client/strings/en-us.json` (+4 -0) 📝 `server/controllers/LibraryController.js` (+90 -33) 📝 `server/routers/ApiRouter.js` (+1 -0) 📝 `server/utils/libraryHelpers.js` (+46 -0) </details> ### 📄 Description Based on #3330 This PR introduces a new page titled "All Libraries Stats," which mirrors the existing "Library Stats" view but combines data from all libraries. We might want to consider refactoring the design since this results in some duplicated code. While there are slight modifications, primarily in the computed section, much of the functionality remains the same. Image: ![image](https://github.com/user-attachments/assets/573755da-c7f9-4dde-b72e-2bf7768e8f21) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:39 +02:00
adam closed this issue 2026-04-25 00:17:39 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3938