Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Rotation copy: your loop speaks in rounds, and adopting a coach queue warns about it
Duarte Santoscec1db7ab270
diff --git a/frontend/src/components/QueueRow.jsx b/frontend/src/components/QueueRow.jsxindex 7588ad3fd..d2f7184f4 100644--- a/frontend/src/components/QueueRow.jsx+++ b/frontend/src/components/QueueRow.jsx@@ -25,15 +25,16 @@ export default function QueueRow({ S, today, onStart, managed }) {const shownToday = !!next && effectiveRoutineIds(S, today, today).includes(next.id)// A pass this app manages refills itself (lib/rotation.js) — "ask the coach" and naming a// whole week are a planner's copy, wrong for a pass with no coach and no week shape at all.- const status = v.complete ? (managed ? t('Pass complete') : t('Week complete, ask the coach'))- : v.waiting ? (managed ? t('Next pass starts {0}', fmtDate(v.startsOn, true)) : t('Next week starts {0}', fmtDate(v.startsOn, true)))+ const status = v.complete ? (managed ? t('Round complete') : t('Week complete, ask the coach'))+ : v.waiting ? (managed ? t('Next round starts {0}.', fmtDate(v.startsOn, true)) : t('Next week starts {0}', fmtDate(v.startsOn, true))): shownToday ? t('Next: {0}, today', next.name): next ? t('Next: {0}', next.name): t('Next: {0}', pinned.name + ' · ' + fmtDate(pinned.on, true))return <div className="queue"><div className="row between" style={{ marginBottom: 8 }}><div className="small muted" style={{ fontWeight: 500 }}>{v.label}</div>- <div className="small muted">{v.items.length - v.remaining.length} / {v.items.length}</div>+ {/* Your own loop speaks in rounds, as Plan does; a coach's week keeps its plain count. */}+ <div className="small muted">{managed ? t('{0} of {1} done this round.', v.items.length - v.remaining.length, v.items.length) : `${v.items.length - v.remaining.length} / ${v.items.length}`}</div></div>{/* three chips do not fit one phone row and .chips hides its scrollbar — wrap instead */}<div className="chips" style={{ flexWrap: 'wrap' }}>diff --git a/frontend/src/lib/pt-br-locale.test.js b/frontend/src/lib/pt-br-locale.test.jsindex a2bead1e6..5391baa06 100644--- a/frontend/src/lib/pt-br-locale.test.js+++ b/frontend/src/lib/pt-br-locale.test.js@@ -41,7 +41,7 @@ describe('Brazilian Portuguese locale', () => {// has to be taught is a number nobody reads. What the numbers stood for is asserted above.// If the hash fails, review the changed keys and wording before accepting a new one. From// frontend/: node scripts/pt-br-inheritance-fingerprint.mjs --list- expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('18a2fce113caf2bb80eecab23a2abb3c6174ab480da3394121d1d55d0c81a329')+ expect(fingerprint, 'pt-PT inheritance changed; review the inherited pt-BR wording').toBe('d33fb42b34f4c5325a1a8f05b08a4686fe7b2f23d05c5e30a77cf840e0f384d7')})test('does not leak European Portuguese UI terms', () => {diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.jsindex 89c2b06be..f7a8deafa 100644--- a/frontend/src/locales/ar.js+++ b/frontend/src/locales/ar.js@@ -1723,6 +1723,7 @@ export default {'Up next': 'التالي','Later': 'لاحقًا','Coach week': 'أسبوع المدرب',+ 'Your loop': 'دورتك','Rotation': 'التناوب','Fixed Week': 'الأسبوع الثابت',@@ -1734,6 +1735,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'لا يوجد تناوب بعد. أضف الروتينات بالترتيب الذي تريد أداءها به. يبقى أول روتين لم تسجّله هو التالي.','Use this rotation': 'استخدام هذا التناوب','Use this rotation?': 'استخدام هذا التناوب؟',+ 'Your own loop gets replaced.': 'سيتم استبدال دورتك الخاصة.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'يتخلى مدربك عن التحكم في هذا الأسبوع: يتولى openGym إدارة قائمة الجلسات من الآن فصاعدًا ويكررها من تلقاء نفسه بعد اكتمالها جميعًا. وأي أسبوع جديد يصل من تطبيق المدرب سيحل محل هذا التناوب.','Start new pass': 'بدء دورة جديدة','Start pass': 'بدء الدورة',@@ -1742,8 +1744,8 @@ export default {'Use Fixed Week': 'استخدام الأسبوع الثابت','No rotation yet. Add routines to it in Plan.': 'لا يوجد تناوب بعد. أضِف الروتينات إليه من الخطة.','Set up in Plan': 'الإعداد في الخطة',- 'Pass complete': 'الدورة مكتملة',- 'Next pass starts {0}': 'تبدأ الدورة التالية {0}',+ 'Round complete': 'الجولة مكتملة',+ 'Next round starts {0}.': 'تبدأ الجولة التالية {0}.','Pyramid sets': 'مجموعات هرمية','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'هدف تكرارات مختلف لكل مجموعة، مثل 12 · 8 · 6 · أقصى · 12.','Max': 'أقصى',diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.jsindex f637aa39c..b3c624839 100644--- a/frontend/src/locales/de.js+++ b/frontend/src/locales/de.js@@ -1690,6 +1690,7 @@ export default {'Your AI provider couldn’t answer.': 'Dein KI-Anbieter konnte nicht antworten.','Something went wrong on this phone.': 'Auf diesem Handy ist etwas schiefgelaufen.','Coach week': 'Coach-Woche',+ 'Your loop': 'Dein Kreislauf',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotation','Fixed Week': 'Feste Woche',@@ -1701,6 +1702,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Noch keine Rotation. Füge Routinen in der Reihenfolge hinzu, in der du sie trainieren willst. Die erste, die du noch nicht eingetragen hast, bleibt die nächste.','Use this rotation': 'Diese Rotation übernehmen','Use this rotation?': 'Diese Rotation übernehmen?',+ 'Your own loop gets replaced.': 'Dein eigener Kreislauf wird dabei ersetzt.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Dein Coach gibt die Kontrolle über diese Woche ab: Die Warteschlange gehört ab jetzt openGym, das diese Einheiten von selbst wiederholt, sobald sie alle abgeschlossen sind. Eine neue Woche aus der App deines Coaches würde diese Rotation ersetzen.','Start new pass': 'Neuen Durchgang starten','Start pass': 'Durchgang starten',@@ -1709,8 +1711,8 @@ export default {'Use Fixed Week': 'Feste Woche verwenden','No rotation yet. Add routines to it in Plan.': 'Noch keine Rotation. Füge im Plan Routinen hinzu.','Set up in Plan': 'Im Plan einrichten',- 'Pass complete': 'Durchgang abgeschlossen',- 'Next pass starts {0}': 'Nächster Durchgang beginnt {0}',+ 'Round complete': 'Runde geschafft',+ 'Next round starts {0}.': 'Nächste Runde beginnt {0}.','Pyramid sets': 'Pyramidensätze','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Ein eigenes Wiederholungsziel für jeden Satz, z. B. 12 · 8 · 6 · Max · 12.','Max': 'Max',diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.jsindex 39051c02c..2977380c4 100644--- a/frontend/src/locales/es.js+++ b/frontend/src/locales/es.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'Tu proveedor de IA no pudo responder.','Something went wrong on this phone.': 'Algo ha salido mal en este teléfono.','Coach week': 'Semana del entrenador',+ 'Your loop': 'Tu bucle',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotación','Fixed Week': 'Semana fija',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Aún no hay rotación. Añade rutinas en el orden en que quieres entrenarlas. La primera que no hayas registrado sigue siendo la siguiente.','Use this rotation': 'Usar esta rotación','Use this rotation?': '¿Usar esta rotación?',+ 'Your own loop gets replaced.': 'Tu propio bucle se sustituye.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Tu entrenador cede el control de esta semana: la cola pasa a ser de openGym a partir de ahora y repite estas sesiones por su cuenta en cuanto estén todas terminadas. Una semana nueva desde la app de tu entrenador reemplazaría esta rotación.','Start new pass': 'Iniciar nueva pasada','Start pass': 'Iniciar pasada',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Usar Semana fija','No rotation yet. Add routines to it in Plan.': 'Aún no hay rotación. Añade rutinas en el Plan.','Set up in Plan': 'Configurar en el Plan',- 'Pass complete': 'Pasada completada',- 'Next pass starts {0}': 'La próxima pasada empieza {0}',+ 'Round complete': 'Vuelta completada',+ 'Next round starts {0}.': 'La próxima vuelta empieza {0}.','Pyramid sets': 'Series piramidales','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Un objetivo de repeticiones distinto para cada serie, p. ej. 12 · 8 · 6 · Máx · 12.','Max': 'Máx',diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.jsindex 9ed82f20c..4f4c00634 100644--- a/frontend/src/locales/fr.js+++ b/frontend/src/locales/fr.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'Ton fournisseur d’IA n’a pas pu répondre.','Something went wrong on this phone.': 'Une erreur est survenue sur ce téléphone.','Coach week': 'Semaine du coach',+ 'Your loop': 'Ta boucle',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotation','Fixed Week': 'Semaine fixe',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Aucune rotation pour l’instant. Ajoute des routines dans l’ordre où tu veux les faire. La première que tu n’as pas encore enregistrée reste la suivante.','Use this rotation': 'Utiliser cette rotation','Use this rotation?': 'Utiliser cette rotation ?',+ 'Your own loop gets replaced.': 'Ta propre boucle sera remplacée.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Ton coach abandonne le contrôle de cette semaine : la file appartient désormais à openGym, qui répète ces séances automatiquement une fois qu’elles sont toutes terminées. Une nouvelle semaine venue de l’appli de ton coach remplacerait cette rotation.','Start new pass': 'Démarrer un nouveau passage','Start pass': 'Démarrer un passage',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Utiliser Semaine fixe','No rotation yet. Add routines to it in Plan.': 'Aucune rotation pour l’instant. Ajoute des routines dans le Plan.','Set up in Plan': 'Configurer dans le Plan',- 'Pass complete': 'Passage terminé',- 'Next pass starts {0}': 'Le prochain passage commence {0}',+ 'Round complete': 'Tour terminé',+ 'Next round starts {0}.': 'Le prochain tour commence {0}.','Pyramid sets': 'Séries pyramidales','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Un objectif de répétitions différent pour chaque série, p. ex. 12 · 8 · 6 · Max · 12.','Max': 'Max',diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.jsindex 69cd115e0..1ae0d87fe 100644--- a/frontend/src/locales/hi.js+++ b/frontend/src/locales/hi.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'आपका AI प्रदाता जवाब नहीं दे सका।','Something went wrong on this phone.': 'इस फ़ोन पर कुछ गड़बड़ हो गई।','Coach week': 'कोच का सप्ताह',+ 'Your loop': 'आपका चक्र',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'रोटेशन','Fixed Week': 'नियत सप्ताह',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'अभी कोई रोटेशन नहीं। रूटीन को उसी क्रम में जोड़ें जिसमें आप उन्हें ट्रेन करना चाहते हैं। जिसे आपने अभी तक लॉग नहीं किया, वही अगला बना रहता है।','Use this rotation': 'इस रोटेशन का उपयोग करें','Use this rotation?': 'इस रोटेशन का उपयोग करें?',+ 'Your own loop gets replaced.': 'आपका अपना चक्र बदल दिया जाएगा।','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'आपका कोच इस सप्ताह का नियंत्रण छोड़ देता है: अब से यह कतार openGym की है और वह सभी सत्र पूरे होते ही उन्हें अपने आप दोहराता है। कोच के ऐप से आया कोई नया सप्ताह इस रोटेशन की जगह ले लेगा।','Start new pass': 'नया पास शुरू करें','Start pass': 'पास शुरू करें',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'नियत सप्ताह का उपयोग करें','No rotation yet. Add routines to it in Plan.': 'अभी कोई रोटेशन नहीं। योजना में इसमें रूटीन जोड़ें।','Set up in Plan': 'योजना में सेट करें',- 'Pass complete': 'पास पूरा हुआ',- 'Next pass starts {0}': 'अगला पास {0} से शुरू होगा',+ 'Round complete': 'चक्कर पूरा हुआ',+ 'Next round starts {0}.': 'अगला चक्कर {0} से शुरू होगा।','Pyramid sets': 'पिरामिड सेट','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'हर सेट के लिए अलग रेप लक्ष्य, जैसे 12 · 8 · 6 · मैक्स · 12।','Max': 'मैक्स',diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.jsindex 52defecf4..6e36046c0 100644--- a/frontend/src/locales/hu.js+++ b/frontend/src/locales/hu.js@@ -1673,6 +1673,7 @@ export default {'Your AI provider couldn’t answer.': 'Az MI-szolgáltatód nem tudott válaszolni.','Something went wrong on this phone.': 'Hiba történt ezen a telefonon.','Coach week': 'Edzői hét',+ 'Your loop': 'A te köröd',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotáció','Fixed Week': 'Fix hét',@@ -1684,6 +1685,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Még nincs rotáció. Add hozzá a rutinokat abban a sorrendben, ahogy edzeni szeretnéd őket. Amit még nem naplóztál, az marad a következő.','Use this rotation': 'Ezen rotáció használata','Use this rotation?': 'Ezt a rotációt használod?',+ 'Your own loop gets replaced.': 'A saját köröd lecserélődik.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Az edződ lemond ennek a hétnek az irányításáról: mostantól az openGymé a várólista, és magától megismétli ezeket az edzéseket, amint mindegyik kész van. Az edződ alkalmazásából érkező új hét felülírná ezt a rotációt.','Start new pass': 'Új menet indítása','Start pass': 'Menet indítása',@@ -1692,8 +1694,8 @@ export default {'Use Fixed Week': 'Fix hét használata','No rotation yet. Add routines to it in Plan.': 'Még nincs rotáció. Adj hozzá rutinokat a Tervben.','Set up in Plan': 'Beállítás a Tervben',- 'Pass complete': 'Menet kész',- 'Next pass starts {0}': 'A következő menet {0}-kor kezdődik',+ 'Round complete': 'Kör kész',+ 'Next round starts {0}.': 'A következő kör kezdete: {0}.','Pyramid sets': 'Piramis sorozatok','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Minden sorozatnak saját ismétlésszám-célja van, pl. 12 · 8 · 6 · Max · 12.','Max': 'Max',diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.jsindex 396aa5192..ec05322dd 100644--- a/frontend/src/locales/it.js+++ b/frontend/src/locales/it.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'Il tuo provider di IA non è riuscito a rispondere.','Something went wrong on this phone.': 'Qualcosa è andato storto su questo telefono.','Coach week': 'Settimana del coach',+ 'Your loop': 'Il tuo ciclo',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotazione','Fixed Week': 'Settimana fissa',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Ancora nessuna rotazione. Aggiungi le routine nell’ordine in cui vuoi allenarle. La prima che non hai ancora registrato resta la prossima.','Use this rotation': 'Usa questa rotazione','Use this rotation?': 'Usare questa rotazione?',+ 'Your own loop gets replaced.': 'Il tuo ciclo verrà sostituito.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Il tuo coach rinuncia al controllo di questa settimana: la coda passa a openGym da ora in poi, che ripete queste sessioni da solo una volta completate tutte. Una nuova settimana dall’app del tuo coach sostituirebbe questa rotazione.','Start new pass': 'Avvia nuovo giro','Start pass': 'Avvia giro',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Usa Settimana fissa','No rotation yet. Add routines to it in Plan.': 'Ancora nessuna rotazione. Aggiungi routine nel Piano.','Set up in Plan': 'Configura nel Piano',- 'Pass complete': 'Giro completato',- 'Next pass starts {0}': 'Il prossimo giro inizia {0}',+ 'Round complete': 'Giro completato',+ 'Next round starts {0}.': 'Il prossimo giro inizia {0}.','Pyramid sets': 'Serie piramidale','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Un target di ripetizioni diverso per ogni serie, es. 12 · 8 · 6 · Max · 12.','Max': 'Max',diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.jsindex c39b52817..afb2b98d5 100644--- a/frontend/src/locales/ko.js+++ b/frontend/src/locales/ko.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'AI 제공자가 응답하지 못했습니다.','Something went wrong on this phone.': '이 휴대폰에서 문제가 발생했습니다.','Coach week': '코치 주간',+ 'Your loop': '내 순환',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': '로테이션','Fixed Week': '고정 주간',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': '아직 로테이션이 없어요. 훈련하고 싶은 순서대로 루틴을 추가하세요. 아직 기록하지 않은 첫 번째 루틴이 계속 다음 차례가 돼요.','Use this rotation': '이 로테이션 사용하기','Use this rotation?': '이 로테이션을 사용할까요?',+ 'Your own loop gets replaced.': '내가 만든 순환은 대체돼요.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': '코치가 이번 주의 통제권을 내려놓아요: 이제부터 대기열은 openGym의 것이 되고, 모든 세션이 끝나면 openGym이 알아서 반복해요. 코치의 앱에서 온 새로운 주간은 이 로테이션을 대체하게 될 거예요.','Start new pass': '새 패스 시작','Start pass': '패스 시작',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': '고정 주간 사용','No rotation yet. Add routines to it in Plan.': '아직 로테이션이 없어요. 계획에서 루틴을 추가하세요.','Set up in Plan': '계획에서 설정',- 'Pass complete': '패스 완료',- 'Next pass starts {0}': '다음 패스는 {0}에 시작해요',+ 'Round complete': '이번 바퀴 완료',+ 'Next round starts {0}.': '다음 바퀴는 {0}에 시작해요.','Pyramid sets': '피라미드 세트','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': '세트마다 다른 목표 반복 수, 예: 12 · 8 · 6 · 최대 · 12.','Max': '최대',diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.jsindex 029d5a2d9..a9651a370 100644--- a/frontend/src/locales/pl.js+++ b/frontend/src/locales/pl.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'Twój dostawca AI nie mógł odpowiedzieć.','Something went wrong on this phone.': 'Coś poszło nie tak na tym telefonie.','Coach week': 'Tydzień trenera',+ 'Your loop': 'Twoja pętla',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotacja','Fixed Week': 'Stały tydzień',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Brak rotacji. Dodawaj plany w kolejności, w jakiej chcesz je trenować. Pierwszy jeszcze niezapisany jest następny w kolejce.','Use this rotation': 'Użyj tej rotacji','Use this rotation?': 'Użyć tej rotacji?',+ 'Your own loop gets replaced.': 'Twoja własna pętla zostanie zastąpiona.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Twój trener oddaje kontrolę nad tym tygodniem: od teraz kolejka należy do openGym, który automatycznie powtarza te sesje, gdy wszystkie zostaną ukończone. Nowy tydzień z aplikacji trenera zastąpiłby tę rotację.','Start new pass': 'Rozpocznij nowe przejście','Start pass': 'Rozpocznij przejście',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Użyj Stałego tygodnia','No rotation yet. Add routines to it in Plan.': 'Brak rotacji. Dodaj do niej plany w Planie.','Set up in Plan': 'Skonfiguruj w Planie',- 'Pass complete': 'Przejście ukończone',- 'Next pass starts {0}': 'Następne przejście zaczyna się {0}',+ 'Round complete': 'Runda ukończona',+ 'Next round starts {0}.': 'Następna runda zaczyna się {0}.','Pyramid sets': 'Serie piramidalne','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Inny cel powtórzeń dla każdej serii, np. 12 · 8 · 6 · Maks · 12.','Max': 'Maks',diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.jsindex f974bf202..226862b96 100644--- a/frontend/src/locales/pt-BR.js+++ b/frontend/src/locales/pt-BR.js@@ -1030,6 +1030,7 @@ export const PT_BR_OVERRIDES = {'Up next': 'Próximo','Later': 'Depois','Coach week': 'Semana do Coach',+ 'Your loop': 'Seu ciclo',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotação','Fixed Week': 'Semana fixa',@@ -1041,6 +1042,7 @@ export const PT_BR_OVERRIDES = {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Ainda sem rotação. Adicione as rotinas na ordem em que quer treiná-las. A primeira que você ainda não registrou continua sendo a próxima.','Use this rotation': 'Usar esta rotação','Use this rotation?': 'Usar esta rotação?',+ 'Your own loop gets replaced.': 'Seu próprio ciclo é substituído.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Seu treinador abre mão do controle desta semana: o openGym passa a ser dono da fila a partir de agora e repete essas sessões sozinho assim que todas estiverem concluídas. Uma nova semana vinda do aplicativo do seu treinador substituiria esta rotação.','Start new pass': 'Iniciar nova passagem','Start pass': 'Iniciar passagem',@@ -1049,8 +1051,7 @@ export const PT_BR_OVERRIDES = {'Use Fixed Week': 'Usar Semana fixa','No rotation yet. Add routines to it in Plan.': 'Ainda sem rotação. Adicione rotinas no Plano.','Set up in Plan': 'Configurar no Plano',- 'Pass complete': 'Passagem concluída',- 'Next pass starts {0}': 'A próxima passagem começa em {0}',+ 'Next round starts {0}.': 'A próxima volta começa em {0}.','Add routine': 'Adicionar rotina','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Uma meta de repetições diferente para cada série, ex.: 12 · 8 · 6 · Máx · 12.','Max: as many reps as you can': 'Máx: o máximo de repetições que você conseguir',diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.jsindex 795c6e5cb..409f36c43 100644--- a/frontend/src/locales/pt.js+++ b/frontend/src/locales/pt.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'O teu fornecedor de IA não conseguiu responder.','Something went wrong on this phone.': 'Algo correu mal neste telemóvel.','Coach week': 'Semana do treinador',+ 'Your loop': 'O teu ciclo',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotação','Fixed Week': 'Semana fixa',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Ainda sem rotação. Adiciona as rotinas pela ordem em que as queres treinar. A primeira que ainda não registaste continua a ser a seguinte.','Use this rotation': 'Usar esta rotação','Use this rotation?': 'Usar esta rotação?',+ 'Your own loop gets replaced.': 'O teu próprio ciclo é substituído.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'O teu treinador cede o controlo desta semana: a partir de agora a fila passa a ser da openGym, que repete estas sessões sozinha assim que estiverem todas concluídas. Uma nova semana vinda da app do teu treinador substituiria esta rotação.','Start new pass': 'Iniciar nova passagem','Start pass': 'Iniciar passagem',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Usar Semana fixa','No rotation yet. Add routines to it in Plan.': 'Ainda sem rotação. Adiciona rotinas no Plano.','Set up in Plan': 'Configurar no Plano',- 'Pass complete': 'Passagem concluída',- 'Next pass starts {0}': 'A próxima passagem começa a {0}',+ 'Round complete': 'Volta concluída',+ 'Next round starts {0}.': 'A próxima volta começa a {0}.','Pyramid sets': 'Séries em pirâmide','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Um objetivo de repetições diferente para cada série, p. ex. 12 · 8 · 6 · Máx · 12.','Max': 'Máx',diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.jsindex 826824c89..79af1ebe8 100644--- a/frontend/src/locales/ru.js+++ b/frontend/src/locales/ru.js@@ -1626,6 +1626,7 @@ export default {'Your AI provider couldn’t answer.': 'Ваш провайдер ИИ не смог ответить.','Something went wrong on this phone.': 'На этом телефоне что-то пошло не так.','Coach week': 'Неделя тренера',+ 'Your loop': 'Твой круг',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Ротация','Fixed Week': 'Фиксированная неделя',@@ -1637,6 +1638,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Ротации пока нет. Добавляй программы в том порядке, в котором хочешь их тренировать. Первая незаписанная всегда идёт следующей.','Use this rotation': 'Использовать эту ротацию','Use this rotation?': 'Использовать эту ротацию?',+ 'Your own loop gets replaced.': 'Твой собственный круг будет заменён.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Твой тренер отказывается от контроля над этой неделей: очередь с этого момента принадлежит openGym, который сам повторяет эти сессии, как только они все завершены. Новая неделя из приложения тренера заменит эту ротацию.','Start new pass': 'Начать новый проход','Start pass': 'Начать проход',@@ -1645,8 +1647,8 @@ export default {'Use Fixed Week': 'Использовать фиксированную неделю','No rotation yet. Add routines to it in Plan.': 'Ротации пока нет. Добавь в неё программы в разделе «План».','Set up in Plan': 'Настроить в Плане',- 'Pass complete': 'Проход завершён',- 'Next pass starts {0}': 'Следующий проход начнётся {0}',+ 'Round complete': 'Круг пройден',+ 'Next round starts {0}.': 'Следующий круг начнётся {0}.',// --- plural forms, read by tn(). Russian needs three where English has two, so these// --- keys answer with the forms instead of one string. The key stays the English plural.'{0} exercises': { one: '{0} упражнение', few: '{0} упражнения', many: '{0} упражнений' },diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.jsindex 321a6c72a..b327fef27 100644--- a/frontend/src/locales/th.js+++ b/frontend/src/locales/th.js@@ -1681,6 +1681,7 @@ export default {'Your AI provider couldn’t answer.': 'ผู้ให้บริการ AI ของคุณตอบกลับไม่ได้','Something went wrong on this phone.': 'มีบางอย่างผิดพลาดบนโทรศัพท์นี้','Coach week': 'สัปดาห์ของโค้ช',+ 'Your loop': 'การวนรอบของคุณ',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'การหมุนเวียน','Fixed Week': 'สัปดาห์คงที่',@@ -1692,6 +1693,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'ยังไม่มีการหมุนเวียน เพิ่มรูทีนตามลำดับที่อยากฝึก รูทีนแรกที่ยังไม่ได้บันทึกจะเป็นคิวถัดไปเสมอ','Use this rotation': 'ใช้การหมุนเวียนนี้','Use this rotation?': 'ใช้การหมุนเวียนนี้?',+ 'Your own loop gets replaced.': 'การวนรอบของคุณเองจะถูกแทนที่','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'โค้ชของคุณสละการควบคุมสัปดาห์นี้: ต่อจากนี้ openGym จะดูแลคิวเอง และจะทำเซสชันเหล่านี้ซ้ำเองเมื่อทำครบทุกรายการแล้ว สัปดาห์ใหม่จากแอปของโค้ชจะมาแทนที่การหมุนเวียนนี้','Start new pass': 'เริ่มรอบใหม่','Start pass': 'เริ่มรอบ',@@ -1700,8 +1702,8 @@ export default {'Use Fixed Week': 'ใช้สัปดาห์คงที่','No rotation yet. Add routines to it in Plan.': 'ยังไม่มีการหมุนเวียน เพิ่มรูทีนได้ในแผน','Set up in Plan': 'ตั้งค่าในแผน',- 'Pass complete': 'รอบเสร็จสมบูรณ์',- 'Next pass starts {0}': 'รอบถัดไปเริ่ม {0}',+ 'Round complete': 'รอบนี้ครบแล้ว',+ 'Next round starts {0}.': 'รอบถัดไปเริ่ม {0}','Pyramid sets': 'เซ็ตพีระมิด','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'เป้าหมายจำนวนครั้งแยกสำหรับแต่ละเซ็ต เช่น 12 · 8 · 6 · สูงสุด · 12','Max': 'สูงสุด',diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.jsindex a1a9b0987..1df7f5264 100644--- a/frontend/src/locales/tr.js+++ b/frontend/src/locales/tr.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': 'Yapay zekâ sağlayıcın yanıt veremedi.','Something went wrong on this phone.': 'Bu telefonda bir şeyler ters gitti.','Coach week': 'Koç haftası',+ 'Your loop': 'Döngün',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': 'Rotasyon','Fixed Week': 'Sabit Hafta',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Henüz rotasyon yok. Rutinleri antrenman yapmak istediğin sırayla ekle. Henüz kaydetmediğin ilk rutin hep sıradaki olur.','Use this rotation': 'Bu rotasyonu kullan','Use this rotation?': 'Bu rotasyon kullanılsın mı?',+ 'Your own loop gets replaced.': 'Kendi döngünün yerini bu alır.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Koçun bu hafta üzerindeki kontrolü bırakıyor: kuyruk artık openGym’e ait ve hepsi tamamlandığında bu seansları kendiliğinden tekrarlar. Koçunun uygulamasından gelecek yeni bir hafta bu rotasyonun yerini alır.','Start new pass': 'Yeni tur başlat','Start pass': 'Tur başlat',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': 'Sabit Haftayı kullan','No rotation yet. Add routines to it in Plan.': 'Henüz rotasyon yok. Plan’da rutin ekle.','Set up in Plan': "Plan'da ayarla",- 'Pass complete': 'Tur tamamlandı',- 'Next pass starts {0}': 'Sıradaki tur {0} tarihinde başlıyor',+ 'Round complete': 'Tur tamamlandı',+ 'Next round starts {0}.': 'Sıradaki tur {0} tarihinde başlıyor.','Pyramid sets': 'Piramit setler','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Her set için ayrı bir tekrar hedefi, ör. 12 · 8 · 6 · Maks · 12.','Max': 'Maks',diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.jsindex 1b14737c1..3565a1887 100644--- a/frontend/src/locales/uk.js+++ b/frontend/src/locales/uk.js@@ -1667,6 +1667,7 @@ export default {'Up next': 'Далі','Later': 'Пізніше','Coach week': 'Тиждень тренера',+ 'Your loop': 'Твоє коло','Rotation': 'Ротація','Fixed Week': 'Фіксований тиждень',@@ -1678,6 +1679,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': 'Ротації поки немає. Додай програми в тому порядку, у якому хочеш їх виконувати. Наступною лишається перша, яку ти ще не записав.','Use this rotation': 'Використати цю ротацію','Use this rotation?': 'Використати цю ротацію?',+ 'Your own loop gets replaced.': 'Твоє власне коло буде замінено.','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': 'Твій тренер більше не керуватиме цим тижнем: відтепер чергою займатиметься openGym і сам повторюватиме ці тренування, щойно всі їх буде виконано. Новий тиждень із застосунку тренера замінить цю ротацію.','Start new pass': 'Почати новий цикл','Start pass': 'Почати цикл',@@ -1686,8 +1688,8 @@ export default {'Use Fixed Week': 'Використати фіксований тиждень','No rotation yet. Add routines to it in Plan.': 'Ротації поки немає. Додай до неї програми в Плані.','Set up in Plan': 'Налаштувати в Плані',- 'Pass complete': 'Цикл завершено',- 'Next pass starts {0}': 'Наступний цикл починається {0}',+ 'Round complete': 'Коло пройдено',+ 'Next round starts {0}.': 'Наступне коло почнеться {0}.','Pyramid sets': 'Піраміда','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': 'Окрема ціль повторів для кожного підходу, наприклад 12 · 8 · 6 · Макс · 12.','Max': 'Макс',diff --git a/frontend/src/locales/zh-TW.js b/frontend/src/locales/zh-TW.jsindex bf01451cd..6d385d218 100644--- a/frontend/src/locales/zh-TW.js+++ b/frontend/src/locales/zh-TW.js@@ -1644,6 +1644,7 @@ export default {'Up next': '接下來','Later': '稍後','Coach week': '教練週',+ 'Your loop': '你的循環','Rotation': '輪替','Fixed Week': '固定週','Externally managed': '由外部管理',@@ -1654,6 +1655,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': '尚未建立輪替。依你想訓練的順序加入課表。第一份還沒記錄的課表會一直排在下一個。','Use this rotation': '使用這個輪替','Use this rotation?': '要使用這個輪替嗎?',+ 'Your own loop gets replaced.': '你自己的循環會被取代。','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': '你的教練將交出這一週的控制權:從現在起由 openGym 管理排程,所有訓練完成後會自動重複這些訓練。教練應用程式送來的新一週會取代這個輪替。','Start new pass': '開始新一輪','Start pass': '開始這一輪',@@ -1662,8 +1664,8 @@ export default {'Use Fixed Week': '使用固定週','No rotation yet. Add routines to it in Plan.': '尚未建立輪替。請在「計畫」中加入課表。','Set up in Plan': '在「計畫」中設定',- 'Pass complete': '本輪已完成',- 'Next pass starts {0}': '下一輪從 {0} 開始',+ 'Round complete': '本輪已完成',+ 'Next round starts {0}.': '下一輪從 {0} 開始。','Pyramid sets': '金字塔組','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': '每一組設定不同的目標次數,例如 12 · 8 · 6 · 力竭 · 12。','Max': '力竭',diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.jsindex 312685c42..b32846b78 100644--- a/frontend/src/locales/zh.js+++ b/frontend/src/locales/zh.js@@ -1670,6 +1670,7 @@ export default {'Your AI provider couldn’t answer.': '你的 AI 提供商未能给出回答。','Something went wrong on this phone.': '此手机上出了点问题。','Coach week': '教练周',+ 'Your loop': '你的循环',// Rotation (lib/rotation.js) — an in-app alternative to the weekday plan.'Rotation': '轮换','Fixed Week': '固定周',@@ -1681,6 +1682,7 @@ export default {'No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.': '还没有轮换。按你想训练的顺序添加训练日。第一个还没记录的训练日会一直排在下一个。','Use this rotation': '使用此轮换','Use this rotation?': '使用此轮换?',+ 'Your own loop gets replaced.': '你自己的循环会被替换。','Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.': '你的教练放弃对本周的控制权:从现在起队列归 openGym 所有,它会在这些训练全部完成后自动重复它们。教练的应用推送的新一周会替换这个轮换。','Start new pass': '开始新一轮','Start pass': '开始一轮',@@ -1689,8 +1691,8 @@ export default {'Use Fixed Week': '使用固定周','No rotation yet. Add routines to it in Plan.': '还没有轮换。在计划中添加训练日。','Set up in Plan': '在计划中设置',- 'Pass complete': '本轮已完成',- 'Next pass starts {0}': '下一轮从 {0} 开始',+ 'Round complete': '本轮已完成',+ 'Next round starts {0}.': '下一轮从 {0} 开始。','Pyramid sets': '金字塔组','A different rep target for each set, e.g. 12 · 8 · 6 · Max · 12.': '每组设定不同的目标次数,例如 12 · 8 · 6 · 力竭 · 12。','Max': '力竭',diff --git a/frontend/src/sheets.dayoverride.test.jsx b/frontend/src/sheets.dayoverride.test.jsxindex a32914ada..febf9c685 100644--- a/frontend/src/sheets.dayoverride.test.jsx+++ b/frontend/src/sheets.dayoverride.test.jsx@@ -113,6 +113,14 @@ describe('Day sheet list in a coach week', () => {expect(plain).toEqual(['US W1 D1', 'Core', 'Rest / skip this day'])})+ it('your own loop is headed Your loop, not Coach week', () => {+ setS({ queue: { ...queue, rotationId: 'r1' }, rotation: { id: 'r1', sequence: ['d1', 'd2'], label: 'Rotation' } })+ try {+ dayOverrideSheet(todayISO())+ expect(heading(renderTop())).toBe('Your loop')+ } finally { useStore.setState(s => ({ S: { ...s.S, rotation: null } })) }+ })+it('picking a coach row pins that session to the day', () => {const friday = daysFromToday(2)setS()diff --git a/frontend/src/sheets.jsx b/frontend/src/sheets.jsxindex 990160d2e..a4deef965 100644--- a/frontend/src/sheets.jsx+++ b/frontend/src/sheets.jsx@@ -1953,6 +1953,8 @@ function DayOverride({ iso, close }) {// already pinned to another day says so in place of its exercise count. Done sessions and// your own routines follow in the plain list.const remaining = queueRemaining(st)+ // Your own rotation's pass (its rotationId matches the saved rotation) is your loop, not a coach's week.+ const ownLoop = !!st.queue && !!st.rotation && st.queue.rotationId === st.rotation.idconst coach = remaining.map(id => st.routines.find(r => r.id === id)).filter(Boolean)// Active pins straight from the plan (earliest day per session, today or later) — not the// row's 'pinned' items, which leave out the session pinned to today itself.@@ -1972,7 +1974,7 @@ function DayOverride({ iso, close }) {<div className="muted small" style={{ marginBottom: 12 }}>{t('Weekly plan:')} {weeklyNames.length ? deriveSessionName(weeklyNames) : t('Rest')}{changed && <span style={{ color: 'var(--orange)' }}> · {t('changed for this day')}</span>}<br />{t('Sick, missed a day or want a different session? Pick what to train instead.')}</div>{missed && <div style={{ marginBottom: 14 }}><Button variant="primary" icon="checkCircle" onClick={logIt}>{t('Log this workout')}</Button></div>}{coach.length > 0 && <>- <h4 className="sec" style={{ marginTop: 0 }}>{t('Coach week')}</h4>+ <h4 className="sec" style={{ marginTop: 0 }}>{ownLoop ? t('Your loop') : t('Coach week')}</h4><div className="list" style={{ marginBottom: 8 }}>{coach.map(row)}</div></>}<div className="list">diff --git a/frontend/src/views/Home.queue.test.jsx b/frontend/src/views/Home.queue.test.jsxindex e8ebfd346..198e23051 100644--- a/frontend/src/views/Home.queue.test.jsx+++ b/frontend/src/views/Home.queue.test.jsx@@ -144,7 +144,9 @@ describe('Home — coach week progress row', () => {workouts: [logged('d1'), logged('d2'), logged('d3')],})mount()- expect(status()).toBe('Pass complete')+ expect(status()).toBe('Round complete')+ // your own loop counts in rounds, like Plan; a coach week keeps the bare count (above)+ expect(host.querySelectorAll('.queue .row .small')[1].textContent).toBe('3 of 3 done this round.')})it('a managed pass waiting on its startsOn says so without naming a coach week', () => {@@ -154,7 +156,7 @@ describe('Home — coach week progress row', () => {rotation: { id: 'r1', sequence: ['d1', 'd2', 'd3'], label: 'US W1' },})mount()- expect(status()).toBe('Next pass starts ' + fmtDate(startsOn, true))+ expect(status()).toBe('Next round starts ' + fmtDate(startsOn, true) + '.')})it('own routines on the weekday ride along beside the queue session', () => {@@ -208,7 +210,7 @@ describe('Home — coach week progress row', () => {})mount()expect(card()).toMatch(/^2 \/ 4 this week · 2 workouts total$/)- expect(host.querySelectorAll('.queue .row .small')[1].textContent).toBe('1 / 3')+ expect(host.querySelectorAll('.queue .row .small')[1].textContent).toBe('1 of 3 done this round.')})it('without a queue the weekday dots are back', () => {diff --git a/frontend/src/views/Plan.jsx b/frontend/src/views/Plan.jsxindex 94ef22e87..a4d44adef 100644--- a/frontend/src/views/Plan.jsx+++ b/frontend/src/views/Plan.jsx@@ -142,9 +142,13 @@ function Schedule({ S, update, nav, mode }) {// later week written by the coach's app simply replaces it (the whole queue object, token and all).// The rotation takes a name of its own here rather than the planner's (e.g. "US W1") — that// name is this one pass's, and refillAfter would otherwise repeat it on every pass after it.+ // A loop of your own saved here is overwritten by the adoption, so the confirm says so.+ const ownSeq = S.rotation?.sequence || []+ const replacesOwn = ownSeq.length > 0 && (ownSeq.length !== seq.length || ownSeq.some((id, i) => id !== seq[i]))const adopt = () => confirmSheet({title: t('Use this rotation?'),- message: t('Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.'),+ message: t('Your coach gives up control of this week: openGym owns the queue from here on and repeats these sessions by itself once they are all done. A new week from the coach’s app would replace this rotation.')+ + (replacesOwn ? ' ' + t('Your own loop gets replaced.') : ''),confirmText: t('Use this rotation'),onConfirm: () => update(s => saveRotation(s, seq, t('Rotation'))),})@@ -236,7 +240,7 @@ function Schedule({ S, update, nav, mode }) {})}</div> : <div className="empty">{t('No rotation yet. Add routines in the order you want to train them. The first one you haven’t logged stays up next.')}</div>}{seq.length > 0 && <p className="sect-f">- {qv ? (qv.waiting ? t('Next pass starts {0}', fmtDate(qv.startsOn, true)) : t('{0} of {1} done this round.', doneCount, qv.items.length)) + ' ' : ''}+ {qv ? (qv.waiting ? t('Next round starts {0}.', fmtDate(qv.startsOn, true)) : t('{0} of {1} done this round.', doneCount, qv.items.length)) + ' ' : ''}{external ? '' : editing ? t('Drag to reorder. Tap the minus to take one out.') : t('Trained out of order? Just pick another routine on Home.')}</p>}<div className="row" style={{ gap: 8, marginTop: 4, flexWrap: 'wrap' }}>diff --git a/frontend/src/views/Plan.rotation.test.jsx b/frontend/src/views/Plan.rotation.test.jsxindex 3cc4bc45f..74cc3e713 100644--- a/frontend/src/views/Plan.rotation.test.jsx+++ b/frontend/src/views/Plan.rotation.test.jsx@@ -35,7 +35,7 @@ vi.mock('../lib/coach.js', () => ({ coachAvailable: () => false }))import Plan from './Plan.jsx'import { menuSheet, confirmSheet } from '../sheets.jsx'-import { todayISO } from '../lib/format.js'+import { todayISO, isoOf, fmtDate } from '../lib/format.js'const routines = [{ id: 'a', name: 'A', emoji: null, ex: [{ id: '0025' }] },@@ -221,6 +221,13 @@ describe('Plan — the loop', () => {expect(mocks.S.queue.strict).toBe(true)})+ it('a round waiting on its first day ends its sentence before the hint', () => {+ const d = new Date(); d.setDate(d.getDate() + 1)+ const tomorrow = isoOf(d)+ mount({ queue: live({ startsOn: tomorrow, rotationId: 'r1' }), rotation: saved })+ expect(host.querySelector('.rotation .sect-f').textContent).toBe('Next round starts ' + fmtDate(tomorrow, true) + '. Trained out of order? Just pick another routine on Home.')+ })+it('a saved loop with no round running offers Start the loop', () => {mount({ rotation: saved, scheduleMode: 'rotation' })expect(names()).toEqual(['A', 'B'])@@ -255,6 +262,16 @@ describe('Plan — someone else’s queue, and a broken one', () => {expect(selectedMode()).toBe('Rotation')})+ it('adopting a coach queue over a different loop of your own says the loop gets replaced', () => {+ mount({ queue: live({ ids: ['b', 'c'] }), rotation: { id: 'r0', sequence: ['a', 'b'], label: 'Mine' }, scheduleMode: 'rotation' })+ click(byLabel('Use this rotation'))+ expect(confirmSheet.mock.calls.at(-1)[0].message).toMatch(/ Your own loop gets replaced\.$/)+ // the same sessions in the same order: nothing of yours is lost, nothing to warn about+ mount({ queue: live({ ids: ['a', 'b'] }), rotation: { id: 'r0', sequence: ['a', 'b'], label: 'Mine' }, scheduleMode: 'rotation' })+ click(byLabel('Use this rotation'))+ expect(confirmSheet.mock.calls.at(-1)[0].message).not.toContain('Your own loop')+ })+it('a malformed queue offers recovery instead of a loop full of nothing', () => {mount({ queue: { ids: ['gone'], since: Date.now() } })expect(host.textContent).toContain('This rotation couldn’t be read')diff --git a/frontend/src/views/settings-pages.js b/frontend/src/views/settings-pages.jsindex 27b282e09..b5d3a2a1e 100644--- a/frontend/src/views/settings-pages.js+++ b/frontend/src/views/settings-pages.js@@ -82,7 +82,7 @@ export const SEARCH = [{ page: 'reminders', title: 'Nudge tone', icon: 'chat', tint: 'var(--blue)', kw: 'nudge tone friendly guilt drill sergeant', opts: ['Friendly', 'Guilt trip', 'Drill sergeant'], when: c => remind(c) && c.reminderOn && c.nudge, via: PUSH },{ page: 'reminders', title: 'Send test notification', icon: 'bell', tint: 'var(--red)', kw: 'test push notification try', when: c => !c.mobile && c.pushOK, via: PUSH },// Plan & schedule- { page: 'plan', title: 'How you train', icon: 'repeat', tint: 'var(--orange)', kw: 'scheduling schedule rotation fixed week split', opts: ['Fixed Week', 'Rotation'] },+ { page: 'plan', title: 'How you train', icon: 'repeat', tint: 'var(--orange)', kw: 'scheduling schedule rotation fixed week split loop round cycle', opts: ['Fixed Week', 'Rotation'] },{ page: 'plan', title: 'Week starts on', icon: 'calendar', tint: 'var(--orange)', kw: 'monday sunday first day week', opts: ['Monday', 'Sunday'], tkw: () => t('week start') },{ page: 'plan', title: 'Load starter plan', icon: 'clipboard', tint: 'var(--green)', kw: 'starter template beginner program routine' },// Units & languagediff --git a/frontend/src/views/settings-pages.test.jsx b/frontend/src/views/settings-pages.test.jsxindex 15c5d84f8..4343827a1 100644--- a/frontend/src/views/settings-pages.test.jsx+++ b/frontend/src/views/settings-pages.test.jsx@@ -185,6 +185,7 @@ describe('the search lands on a row', () => {expect(searchSettings('test notification', web, tr).map(h => h.title)).toEqual(['Send test notification'])expect(searchSettings('server', web, tr).map(h => h.title)).toContain('Sync now')expect(searchSettings('sync', web, tr).map(h => h.title)).toContain('Sync now')+ expect(searchSettings('loop', web, tr).map(h => h.title)).toContain('How you train')expect(searchSettings('home screen', web, tr).map(h => h.title)).toEqual(['In Safari: Share → Add to Home Screen'])expect(searchSettings('install', { ...web, androidWeb: true }, tr).map(h => h.title)).toEqual(['In Chrome: ⋮ menu → Add to Home screen'])expect(searchSettings('backup folder', { ...guestWeb, mobile: true, android: true, autoBackup: true }, tr).map(h => h.title)).toEqual(['Backup folder'])