fix: complete stub implementations in UserStatsService #59

Open
Charon wants to merge 0 commits from feat/complete-user-stats-stubs into dev
Member

Fixes #13

Summary

  • Replace 5 TODO stubs with real database queries in UserStatsService
  • Social accounts: sum across user workspaces via socialAccounts()
  • Scheduled posts: count posts with scheduled status across workspaces
  • Storage usage: sum media file sizes converted to GB
  • Service stats: populate BioHost, AnalyticsHost, TrustHost with real counts
  • Recent activity: query EntitlementLog for user workspace activity

All external module queries wrapped in try/catch for graceful degradation.

Fixes #13 ## Summary - Replace 5 TODO stubs with real database queries in `UserStatsService` - **Social accounts**: sum across user workspaces via `socialAccounts()` - **Scheduled posts**: count posts with `scheduled` status across workspaces - **Storage usage**: sum media file sizes converted to GB - **Service stats**: populate BioHost, AnalyticsHost, TrustHost with real counts - **Recent activity**: query `EntitlementLog` for user workspace activity All external module queries wrapped in try/catch for graceful degradation.
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/complete-user-stats-stubs:feat/complete-user-stats-stubs
git checkout feat/complete-user-stats-stubs

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout dev
git merge --no-ff feat/complete-user-stats-stubs
git checkout feat/complete-user-stats-stubs
git rebase dev
git checkout dev
git merge --ff-only feat/complete-user-stats-stubs
git checkout feat/complete-user-stats-stubs
git rebase dev
git checkout dev
git merge --no-ff feat/complete-user-stats-stubs
git checkout dev
git merge --squash feat/complete-user-stats-stubs
git checkout dev
git merge --ff-only feat/complete-user-stats-stubs
git checkout dev
git merge feat/complete-user-stats-stubs
git push origin dev
Sign in to join this conversation.
No description provided.