Order hour nav by the day, not by build/declaration order
Deploy / deploy (push) Successful in 1m9s

HOUR_IDS drove the nav's render order but was declared arbitrarily;
reorder to Matins, Lauds, Prime, Terce, Sext, None, Vespers, Compline
so the nav reads left-to-right the way the office actually unfolds.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 09:33:58 -04:00
parent 4373b60f07
commit 784e0fb5ba
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -9,14 +9,14 @@ export type HourId =
| 'matins';
export const HOUR_IDS: readonly HourId[] = [
'matins',
'lauds',
'prime',
'compline',
'terce',
'sext',
'none',
'lauds',
'vespers',
'matins',
'compline',
];
/** Reference into one of the proper-text stores (data/propers/**). Not built yet — placeholder shape. */
+3 -3
View File
@@ -26,14 +26,14 @@ describe('shell', () => {
const hourNames = Array.from(root.querySelectorAll('.hour-name')).map((el) => el.textContent);
expect(hourNames).toEqual([
'Matins',
'Lauds',
'Prime',
'Compline',
'Terce',
'Sext',
'None',
'Lauds',
'Vespers',
'Matins',
'Compline',
]);
expect(root.querySelector('.hour-item.is-selected .hour-name')?.textContent).toBe('Prime');