Add per-series completion percent to /series view title #572
No reviewers
Labels
No labels
blocked
duplicate
high priority
needs
approval
needs
criteria
needs
estimate
needs
tests
question
step
doing
step
review
step
testing
step
todo
step
uat
type
admin
type
alert
type
bug
type
change
type
defect
type
dependencies
type
development
type/documentation
type
epic
type
idea
type
incident
type
investigation
type
spike
type
story
type
tests
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
External/card-drop!572
Loading…
Reference in a new issue
No description provided.
Delete branch "cursor/540-series-view-completion"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds per-series completion percentage to the
/series viewembed title (e.g.Series · 67% complete), using the same owned/total inventory rules as/series listlines.Related: #540
Changes
GenerateSeriesViewPageand compute unique owned / series totalClaimedCardIdsFromInventory,SeriesCompletionPercent{name} · {n}% complete)SeriesHelpertests (0%, partial, 100%, qty-zero, pagination title invariant)Test plan
npx tsc --noEmitnpx 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`)To keep it consistent with everywhere else, lets use the bullet (·) to separate them