Show rank in the day label for every winner kind, not just sanctoral
Deploy / deploy (push) Successful in 1m3s

Rank display (added in 1fc4bd7) only fired for a plain sanctoral
winner. Every other case -- an active octave day, a named temporal
feast, a season anchor day (Easter, Trinity Sunday, Epiphany), or the
plain ordinal Sunday/feria fallback -- showed no rank at all, which is
what made today's octave day (Aug 18, day 4 of the Assumption's
octave) show no rank. Octave days use the octave's own already-computed
effective rank; anchor days get a fixed Duplex I Class (Ash Wednesday
excepted -- a privileged feria has no duplex-scale rank); the plain
fallback derives a Semiduplex/Feria label from the day's own
temporalCategory, since Sundays/ferias aren't on the duplex scale at
all.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-18 07:41:57 -04:00
parent a68ab716b7
commit 427ba6756a
5 changed files with 70 additions and 26 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ describe('Marian Saturday (applyMarianSaturday)', () => {
const day = resolveDay('2026-07-04');
expect(day.winner).toEqual({ kind: 'temporal', id: 'marian-saturday' });
expect(day.commemorations).toEqual([]);
expect(getDayLabel(day)).toBe("Our Lady's Saturday");
expect(getDayLabel(day)).toBe("Our Lady's Saturday (Simplex)");
});
it('wins over a Simplex saint, who is commemorated instead of winning outright', () => {