App: napis dnia w naglowku edytora jako Planujesz teraz [dzien] + odstep od koszy (dayHeading w i18n pl/en, testy unit)

This commit is contained in:
tisachi
2026-11-05 23:36:46 +01:00
parent d6ee7acef3
commit 14e5207873
4 changed files with 14 additions and 6 deletions

View File

@@ -161,6 +161,7 @@
"removeDayLabel": "Remove day",
"removeDayAria": "Remove day",
"historyBadge": "History",
"dayHeading": "Now planning {{day}}",
"removeLockedTitle": "Remove a day with history?",
"removeLockedDesc": "{{day}} has training history (sessions or a settled status). The day will disappear from the plan, calendar and stats, but the training history will be kept. The change is recorded in the plan history along with your note.",
"removeLockedLabel": "Remove despite history",

View File

@@ -161,6 +161,7 @@
"removeDayLabel": "Usuń dzień",
"removeDayAria": "Usuń dzień",
"historyBadge": "Historia",
"dayHeading": "Planujesz teraz {{day}}",
"removeLockedTitle": "Usunąć dzień z historią?",
"removeLockedDesc": "{{day}} ma historię treningów (sesje lub rozliczony status). Dzień zniknie z planu, kalendarza i statystyk, ale historia treningowa zostanie zachowana. Zmiana trafi do historii planu razem z notatką.",
"removeLockedLabel": "Usuń mimo historii",

View File

@@ -767,8 +767,8 @@ export default function PlanEditor() {
>
<Trash2 className="h-5 w-5" />
</button>
<H3 aria-live="polite" className="mb-0 min-w-0">
{dayName(activeDay.dayOfWeek)}
<H3 aria-live="polite" className="mb-0 ml-1 min-w-0">
{t('wizard.dayHeading', { day: dayName(activeDay.dayOfWeek) })}
</H3>
{isPlanActive && activeDay.hasHistory && (
<Badge className="shrink-0" color="yellow">