Skip to content

serval-admin: serval-builds: add training book total summary stats#3866

Open
marksvc wants to merge 1 commit intomasterfrom
task/sb-book-ct
Open

serval-admin: serval-builds: add training book total summary stats#3866
marksvc wants to merge 1 commit intomasterfrom
task/sb-book-ct

Conversation

@marksvc
Copy link
Copy Markdown
Collaborator

@marksvc marksvc commented May 7, 2026

This adds information to the Serval builds tab in the summary area. The new items are
"Total unique training books" and
"Total training books". I plan to do similar for translation books in followup.

Screenshot (you can ignore the numbers in this poor example):
image


This change is Reviewable

@marksvc marksvc requested a review from Copilot May 7, 2026 22:59
@marksvc marksvc added the e2e Run e2e tests for this pull request label May 7, 2026
@marksvc marksvc marked this pull request as draft May 7, 2026 22:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional summary statistics to the Serval Admin “Serval builds” view so admins can see aggregate training-book totals (both deduped and non-deduped) for the currently visible build rows.

Changes:

  • Extended ServalBuildSummary to include totalUniqueTrainingBooks and totalTrainingBooks.
  • Implemented unique-book counting (countUniqueBooks) and populated both totals in buildSummary.
  • Added/updated unit tests to validate total vs. unique training book counting across builds.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.ts Adds new summary fields and displays them as hidden summary items in the builds UI.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds.component.spec.ts Adds assertions and a dedicated test covering total vs. unique training book counts.
src/SIL.XForge.Scripture/ClientApp/src/app/serval-administration/serval-builds-statistics.ts Adds countUniqueBooks and computes/publishes the new training book totals in buildSummary.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@marksvc marksvc marked this pull request as ready for review May 7, 2026 23:03
@marksvc marksvc temporarily deployed to screenshot_diff May 7, 2026 23:05 — with GitHub Actions Inactive
@codecov
Copy link
Copy Markdown

codecov Bot commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.05%. Comparing base (1feb822) to head (60ebef3).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3866      +/-   ##
==========================================
+ Coverage   81.04%   81.05%   +0.01%     
==========================================
  Files         630      630              
  Lines       40592    40605      +13     
  Branches     6588     6588              
==========================================
+ Hits        32898    32914      +16     
  Misses       6661     6661              
+ Partials     1033     1030       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This adds information to the summary area regarding "Total unique
training books" and "Total training books". I plan to do similar for
translation books in followup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run e2e tests for this pull request testing not required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants