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:
+3
-3
@@ -9,14 +9,14 @@ export type HourId =
|
|||||||
| 'matins';
|
| 'matins';
|
||||||
|
|
||||||
export const HOUR_IDS: readonly HourId[] = [
|
export const HOUR_IDS: readonly HourId[] = [
|
||||||
|
'matins',
|
||||||
|
'lauds',
|
||||||
'prime',
|
'prime',
|
||||||
'compline',
|
|
||||||
'terce',
|
'terce',
|
||||||
'sext',
|
'sext',
|
||||||
'none',
|
'none',
|
||||||
'lauds',
|
|
||||||
'vespers',
|
'vespers',
|
||||||
'matins',
|
'compline',
|
||||||
];
|
];
|
||||||
|
|
||||||
/** Reference into one of the proper-text stores (data/propers/**). Not built yet — placeholder shape. */
|
/** Reference into one of the proper-text stores (data/propers/**). Not built yet — placeholder shape. */
|
||||||
|
|||||||
@@ -26,14 +26,14 @@ describe('shell', () => {
|
|||||||
|
|
||||||
const hourNames = Array.from(root.querySelectorAll('.hour-name')).map((el) => el.textContent);
|
const hourNames = Array.from(root.querySelectorAll('.hour-name')).map((el) => el.textContent);
|
||||||
expect(hourNames).toEqual([
|
expect(hourNames).toEqual([
|
||||||
|
'Matins',
|
||||||
|
'Lauds',
|
||||||
'Prime',
|
'Prime',
|
||||||
'Compline',
|
|
||||||
'Terce',
|
'Terce',
|
||||||
'Sext',
|
'Sext',
|
||||||
'None',
|
'None',
|
||||||
'Lauds',
|
|
||||||
'Vespers',
|
'Vespers',
|
||||||
'Matins',
|
'Compline',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
expect(root.querySelector('.hour-item.is-selected .hour-name')?.textContent).toBe('Prime');
|
expect(root.querySelector('.hour-item.is-selected .hour-name')?.textContent).toBe('Prime');
|
||||||
|
|||||||
Reference in New Issue
Block a user