Add per-series completion percent to /series view title #572

Merged
Vylpes merged 4 commits from cursor/540-series-view-completion into release/0.11.0 2026-11-14 12:15:55 +00:00
Member

Summary

Adds per-series completion percentage to the /series view embed title (e.g. Series · 67% complete), using the same owned/total inventory rules as /series list lines.

Related: #540

Changes

  • Load user inventory in GenerateSeriesViewPage and compute unique owned / series total
  • Shared helpers: ClaimedCardIdsFromInventory, SeriesCompletionPercent
  • Title uses middle-dot separator for consistency with embed footers ({name} · {n}% complete)
  • Extend SeriesHelper tests (0%, partial, 100%, qty-zero, pagination title invariant)
  • CHANGELOG entry under Unreleased

Test plan

  • npx tsc --noEmit
  • eslint on touched files
  • npx jest tests/helpers/SeriesHelper.test.ts (21 passed)

Ready for human review/approval. Does not auto-close the issue (needs testing after merge).

## Summary Adds per-series completion percentage to the `/series view` embed title (e.g. `Series · 67% complete`), using the same owned/total inventory rules as `/series list` lines. Related: #540 ## Changes - Load user inventory in `GenerateSeriesViewPage` and compute unique owned / series total - Shared helpers: `ClaimedCardIdsFromInventory`, `SeriesCompletionPercent` - Title uses middle-dot separator for consistency with embed footers (`{name} · {n}% complete`) - Extend `SeriesHelper` tests (0%, partial, 100%, qty-zero, pagination title invariant) - CHANGELOG entry under Unreleased ## Test plan - [x] `npx tsc --noEmit` - [x] eslint on touched files - [x] `npx jest tests/helpers/SeriesHelper.test.ts` (21 passed) Ready for human review/approval. Does not auto-close the issue (needs testing after merge).
@ -33,3 +63,3 @@
const embed = new EmbedBuilder()
.setTitle(series.name)
.setTitle(`${series.name} — ${completionPercent}% complete`)
Owner

To keep it consistent with everywhere else, lets use the bullet (·) to separate them

To keep it consistent with everywhere else, lets use the bullet (·) to separate them
Vylpes marked this conversation as resolved
Vylpes merged commit 514141683f into release/0.11.0 2026-11-14 12:15:55 +00:00
Vylpes deleted branch cursor/540-series-view-completion 2026-11-14 12:15:55 +00:00
Sign in to join this conversation.
No description provided.