Skip to content
This repository was archived by the owner on Oct 7, 2026. It is now read-only.

feat(admin): show sidecar counts in library and server stats - #125

Merged
everpcpc merged 2 commits into
masterfrom
feat/admin-sidecar-counts
Oct 6, 2026
Merged

everpcpc merged 2 commits into
masterfrom
feat/admin-sidecar-counts

Conversation

@everpcpc

@everpcpc everpcpc commented Oct 6, 2026

Copy link
Copy Markdown
Member

Summary

Surface the admin-only sidecars counts added to GET /api/v1/stats/libraries in kmworks/kmrs#172: per-library on the library cards, and the global count in the server content panel.

Changes

  • LibraryStatsDto and the libraries-stats total gain an optional sidecars field (admin-only on the server, absent otherwise).
  • LibraryCard appends the sidecar count to the stats line; the line template gains a {{sidecars}} segment in every locale.
  • ContentCounts adds a sidecars tile fed by the libraries total.
  • i18n: new libraries.stats.sidecars_* plural keys and a content.sidecars label in all 10 locales, reusing the existing metadata translations of "sidecar" and each locale's CLDR plural categories.

Testing

  • pnpm build (tsc + vite) and pnpm lint pass.

@everpcpc
everpcpc merged commit 1789722 into master Oct 6, 2026
2 checks passed
@everpcpc
everpcpc deleted the feat/admin-sidecar-counts branch October 6, 2026 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant