Import: bring the RPE other apps already recorded

Hevy and Strong both write an RPE next to every set and the importer was
dropping the column, so a history imported from either arrived flatter than
the file it came from. It is read now, along with an RIR column if a file
happens to have one.

A blank cell stays unrated rather than becoming 0, and a written-out 0 is
only a rating on the RIR scale — RIR 0 is a set taken to failure, while RPE
runs 1-10, so an app writing 0 there means "nothing here" and reading it as
an effort would stamp one on every unrated set in the file. Ratings above
the scale are capped rather than thrown away, junk is ignored, and effort
only rides along on weighted rep sets — a treadmill row has nowhere to show
it. A file carrying both columns is read as RIR, the precedence setLabel
already reads them back with.

The import summary reports how many sets brought a rating, and says where
to switch the column on when the profile is not logging effort yet —
otherwise the ratings arrive invisibly and look like they were lost.

Export needed no change: the backup is the whole state serialised, so both
fields and the setting travel with it. There is a test pinning that now,
along with 11 for the import paths.
This commit is contained in:
Duarte Santos committed 2026-07-30 23:59:01 +02:00
1 parent 6905117352
commit 54fb14be13
14 files changed
+206 -3

No files matched your search

+2
View File
@@ -513,6 +513,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Körpergewicht — dieselbe Vorgabe, bis jeder Satz sauber sitzt.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} Sätze bringen ein {1} mit — schalte in den Einstellungen „Anstrengung pro Satz“ ein, um es zu sehen.',
'{0} sets bring an {1} with them.': '{0} Sätze bringen ein {1} mit.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Anstrengung pro Satz',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Peso corporal: el mismo objetivo hasta que todas las series salgan limpias.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} series traen un {1} — activa «Esfuerzo por serie» en Ajustes para verlo.',
'{0} sets bring an {1} with them.': '{0} series traen un {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Esfuerzo por serie',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Poids du corps — même objectif jusqu’à ce que chaque série soit propre.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} séries arrivent avec un {1} — active « Effort par série » dans les réglages pour le voir.',
'{0} sets bring an {1} with them.': '{0} séries arrivent avec un {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Effort par série',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'बॉडीवेट — जब तक हर सेट साफ़ न हो, वही लक्ष्य।',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} सेट अपने साथ {1} लाते हैं — इसे देखने के लिए सेटिंग्स में “प्रति सेट मेहनत” चालू करें।',
'{0} sets bring an {1} with them.': '{0} सेट अपने साथ {1} लाते हैं।',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'हर सेट की मेहनत',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Corpo libero — stesso obiettivo finché ogni serie non è pulita.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} serie portano con sé un {1} — attiva «Sforzo per serie» nelle impostazioni per vederlo.',
'{0} sets bring an {1} with them.': '{0} serie portano con sé un {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Sforzo per serie',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': '맨몸 운동 — 모든 세트가 깔끔해질 때까지 같은 목표로.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0}개 세트에 {1}이(가) 함께 들어 있습니다 — 설정에서 ‘세트당 강도’를 켜면 보입니다.',
'{0} sets bring an {1} with them.': '{0}개 세트에 {1}이(가) 함께 들어 있습니다.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': '세트당 강도',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Masa własna — ten sam cel, dopóki każda seria nie będzie czysta.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} serii ma zapisane {1} — włącz „Wysiłek w serii” w ustawieniach, aby to zobaczyć.',
'{0} sets bring an {1} with them.': '{0} serii ma zapisane {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Wysiłek na serię',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Peso do corpo — o mesmo objetivo até todas as séries saírem limpas.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} séries trazem um {1} — liga «Esforço por série» nas definições para o veres.',
'{0} sets bring an {1} with them.': '{0} séries trazem um {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Esforço por série',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Собственный вес — та же цель, пока все подходы не станут чистыми.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} подходов несут с собой {1} — включите «Усилие в подходе» в настройках, чтобы увидеть.',
'{0} sets bring an {1} with them.': '{0} подходов несут с собой {1}.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Усилие в подходе',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': 'Vücut ağırlığı — her set temiz çıkana kadar aynı hedef.',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} set beraberinde bir {1} getiriyor — görmek için Ayarlar’da «Set başına efor» seçeneğini aç.',
'{0} sets bring an {1} with them.': '{0} set beraberinde bir {1} getiriyor.',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': 'Set başına zorluk',
+2
View File
@@ -495,6 +495,8 @@ export default {
'Bodyweight — same target again until every set is clean.': '徒手动作——保持同样的目标,直到每组都做干净。',
// --- effort per set (RIR / RPE) ---
'{0} sets bring an {1} with them — switch on Effort per set in Settings to see it.': '{0} 组自带 {1}——在设置中打开“每组强度”即可看到。',
'{0} sets bring an {1} with them.': '{0} 组自带 {1}。',
'RIR': 'RIR',
'RPE': 'RPE',
'Effort per set': '每组强度',