refactor: make the reference week a dense one-row-per-day table

One card per day pushed the week to roughly 1100px, so checking a change
meant scrolling back up past the day you had just edited. All seven days
now fit on one phone screen.

Each row carries the day, an open switch, its slots inline and its two
actions. The per-row "duplicate onto the other open days" button was
repeated five times in prose; it is now a short labelled control on the
row itself, with the full sentence kept as its accessible name.

Unsaved days are marked with a dot rather than a badge, and the footer
still names which days are about to change — the point of the preview is
that it is readable without leaving the week.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012cSY9pVhZmJUKNN7wf1Myd
This commit is contained in:
2026-09-20 19:04:42 +02:00
co-authored by Claude Opus 5
parent eb23eb650b
commit c8235763b0
3 changed files with 164 additions and 137 deletions
+11
View File
@@ -12,6 +12,17 @@ import { validateSlots } from './validate';
/** Monday first: how the week is read, and how the screen draws it. */
export const WEEK_ORDER = [1, 2, 3, 4, 5, 6, 0] as const;
/** Three letters, for the dense week table. */
export const DAY_SHORT_FR: Record<number, string> = {
0: 'Dim',
1: 'Lun',
2: 'Mar',
3: 'Mer',
4: 'Jeu',
5: 'Ven',
6: 'Sam',
};
export const DAY_NAMES_FR: Record<number, string> = {
0: 'Dimanche',
1: 'Lundi',