Skip to content

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.

Offer clubbell and macebell as loaded equipment.

Tufail Akram04136bcee03d
diff --git a/frontend/src/lib/equipment-extra.test.js b/frontend/src/lib/equipment-extra.test.js
new file mode 100644
index 000000000..b08996d5e
--- /dev/null
+++ b/frontend/src/lib/equipment-extra.test.js
@@ -0,0 +1,16 @@
+import { describe, expect, it } from 'vitest'
+import { ALL_EQUIPMENT } from './equipment.js'
+import { isLoadedEq } from './exercises.js'
+
+// Issue #393: clubbell and macebell are real loaded tools with no catalogue entries yet.
+describe('clubbell and macebell', () => {
+ it('appends both to the equipment list when the catalogue does not use them', () => {
+ expect(ALL_EQUIPMENT.slice(-2)).toEqual(['clubbell', 'macebell'])
+ })
+
+ it('treats a set on either as a loaded set', () => {
+ expect(isLoadedEq({ eq: 'clubbell' })).toBe(true)
+ expect(isLoadedEq({ eq: 'macebell' })).toBe(true)
+ expect(isLoadedEq({ eq: 'kettlebell' })).toBe(true)
+ })
+})
diff --git a/frontend/src/lib/equipment.js b/frontend/src/lib/equipment.js
index b2087b298..bdcf5a939 100644
--- a/frontend/src/lib/equipment.js
+++ b/frontend/src/lib/equipment.js
@@ -6,7 +6,11 @@ import { EXDB } from './exercises-data.js'
export const ALL_EQUIPMENT = (() => {
const c = {}
EXDB.forEach(e => { if (e.eq) c[e.eq] = (c[e.eq] || 0) + 1 })
- return Object.keys(c).sort((a, b) => c[b] - c[a] || (a < b ? -1 : 1))
+ const ranked = Object.keys(c).sort((a, b) => c[b] - c[a] || (a < b ? -1 : 1))
+ // Clubbell and macebell have no catalogue entries yet (issue #393). They still belong on the
+ // profile checklist and the custom-exercise chips, after everything the catalogue already uses.
+ for (const extra of ['clubbell', 'macebell']) if (!ranked.includes(extra)) ranked.push(extra)
+ return ranked
})()
// Body weight is never gated by a profile — no gym or home setup can take it away from you,
diff --git a/frontend/src/lib/exercises.js b/frontend/src/lib/exercises.js
index a341b903d..980514711 100644
--- a/frontend/src/lib/exercises.js
+++ b/frontend/src/lib/exercises.js
@@ -154,7 +154,7 @@ export const isBodyweightEq = idOrEx =>
// bodyweight — an ab wheel, a stability ball, a bosu, a rope, a roller, the "assisted" straps —
// often has no load to enter at all, so 0 there is the honest number and progression moves the
// reps instead (lib/progression.js).
-const LOADED_EQ = new Set(['barbell', 'ez barbell', 'olympic barbell', 'trap bar', 'dumbbell', 'kettlebell', 'cable', 'leverage machine', 'smith machine', 'sled machine', 'weighted'])
+const LOADED_EQ = new Set(['barbell', 'ez barbell', 'olympic barbell', 'trap bar', 'dumbbell', 'kettlebell', 'clubbell', 'macebell', 'cable', 'leverage machine', 'smith machine', 'sled machine', 'weighted'])
export const isLoadedEq = idOrEx =>
LOADED_EQ.has((typeof idOrEx === 'string' ? EXIDX[idOrEx] : idOrEx)?.eq)
diff --git a/frontend/src/locales/ar.js b/frontend/src/locales/ar.js
index 07697206c..c69411381 100644
--- a/frontend/src/locales/ar.js
+++ b/frontend/src/locales/ar.js
@@ -370,12 +370,14 @@ export default {
'body weight': 'وزن الجسم',
'bosu ball': 'كرة بوسو',
'cable': 'كيبل',
+ 'clubbell': 'كلوب بيل',
'dumbbell': 'دمبل',
'elliptical machine': 'جهاز الإليبتيكال',
'ez barbell': 'بار EZ',
'hammer': 'مطرقة',
'kettlebell': 'كيتل بيل',
'leverage machine': 'جهاز الروافع',
+ 'macebell': 'صولجان',
'medicine ball': 'كرة طبية',
'olympic barbell': 'بار أولمبي',
'resistance band': 'شريط مقاومة',
diff --git a/frontend/src/locales/de.js b/frontend/src/locales/de.js
index 663a5a5bb..b5503b411 100644
--- a/frontend/src/locales/de.js
+++ b/frontend/src/locales/de.js
@@ -526,7 +526,7 @@ export default {
'assisted': 'assistiert', 'band': 'Band', 'barbell': 'Langhantel', 'body weight': 'Körpergewicht',
'bosu ball': 'Bosu-Ball', 'cable': 'Kabelzug', 'dumbbell': 'Kurzhantel',
'elliptical machine': 'Crosstrainer', 'ez barbell': 'SZ-Stange', 'hammer': 'Hammer',
- 'kettlebell': 'Kettlebell', 'leverage machine': 'Hebelmaschine', 'medicine ball': 'Medizinball',
+ 'kettlebell': 'Kettlebell', 'clubbell': 'Clubbell', 'macebell': 'Macebell', 'leverage machine': 'Hebelmaschine', 'medicine ball': 'Medizinball',
'olympic barbell': 'Olympia-Langhantel', 'resistance band': 'Widerstandsband', 'roller': 'Rolle',
'rope': 'Seil', 'skierg machine': 'SkiErg', 'sled machine': 'Schlitten',
'smith machine': 'Multipresse', 'stability ball': 'Gymnastikball', 'stationary bike': 'Ergometer',
diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js
index 8e1d9aa99..13febe90d 100644
--- a/frontend/src/locales/es.js
+++ b/frontend/src/locales/es.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'asistido', 'band': 'banda', 'barbell': 'barra', 'body weight': 'peso corporal',
'bosu ball': 'bosu', 'cable': 'polea', 'dumbbell': 'mancuerna',
'elliptical machine': 'elíptica', 'ez barbell': 'barra EZ', 'hammer': 'martillo',
- 'kettlebell': 'kettlebell', 'leverage machine': 'máquina de palanca', 'medicine ball': 'balón medicinal',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'máquina de palanca', 'medicine ball': 'balón medicinal',
'olympic barbell': 'barra olímpica', 'resistance band': 'banda de resistencia', 'roller': 'rodillo',
'rope': 'cuerda', 'skierg machine': 'SkiErg', 'sled machine': 'trineo',
'smith machine': 'máquina Smith', 'stability ball': 'fitball', 'stationary bike': 'bici estática',
diff --git a/frontend/src/locales/fr.js b/frontend/src/locales/fr.js
index ee904194c..b8756a021 100644
--- a/frontend/src/locales/fr.js
+++ b/frontend/src/locales/fr.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'assisté', 'band': 'élastique', 'barbell': 'barre', 'body weight': 'poids du corps',
'bosu ball': 'bosu', 'cable': 'poulie', 'dumbbell': 'haltère',
'elliptical machine': 'vélo elliptique', 'ez barbell': 'barre EZ', 'hammer': 'marteau',
- 'kettlebell': 'kettlebell', 'leverage machine': 'machine à levier', 'medicine ball': 'médecine-ball',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'machine à levier', 'medicine ball': 'médecine-ball',
'olympic barbell': 'barre olympique', 'resistance band': 'bande de résistance', 'roller': 'rouleau',
'rope': 'corde', 'skierg machine': 'SkiErg', 'sled machine': 'traîneau',
'smith machine': 'machine Smith', 'stability ball': 'swiss ball', 'stationary bike': 'vélo stationnaire',
diff --git a/frontend/src/locales/hi.js b/frontend/src/locales/hi.js
index ccb0ca2aa..a934de18f 100644
--- a/frontend/src/locales/hi.js
+++ b/frontend/src/locales/hi.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'सहायता प्राप्त', 'band': 'बैंड', 'barbell': 'बारबेल', 'body weight': 'शरीर का वज़न',
'bosu ball': 'बोसु बॉल', 'cable': 'केबल', 'dumbbell': 'डम्बल',
'elliptical machine': 'एलिप्टिकल मशीन', 'ez barbell': 'EZ बारबेल', 'hammer': 'हैमर',
- 'kettlebell': 'केटलबेल', 'leverage machine': 'लीवरेज मशीन', 'medicine ball': 'मेडिसिन बॉल',
+ 'kettlebell': 'केटलबेल', 'clubbell': 'क्लबबेल', 'macebell': 'मेसबेल', 'leverage machine': 'लीवरेज मशीन', 'medicine ball': 'मेडिसिन बॉल',
'olympic barbell': 'ओलंपिक बारबेल', 'resistance band': 'रेज़िस्टेंस बैंड', 'roller': 'रोलर',
'rope': 'रस्सी', 'skierg machine': 'स्कीअर्ग', 'sled machine': 'स्लेड मशीन',
'smith machine': 'स्मिथ मशीन', 'stability ball': 'स्टेबिलिटी बॉल', 'stationary bike': 'स्थिर साइकिल',
diff --git a/frontend/src/locales/hu.js b/frontend/src/locales/hu.js
index 61b151edc..c2f3603d2 100644
--- a/frontend/src/locales/hu.js
+++ b/frontend/src/locales/hu.js
@@ -511,7 +511,7 @@ export default {
'assisted': 'segített', 'band': 'gumiszalag', 'barbell': 'rúd', 'body weight': 'testsúly',
'bosu ball': 'bosu labda', 'cable': 'kábel', 'dumbbell': 'súlyzó',
'elliptical machine': 'elliptikus tréner', 'ez barbell': 'EZ-rúd', 'hammer': 'kalapácsfogás',
- 'kettlebell': 'kettlebell', 'leverage machine': 'emelőkaros gép', 'medicine ball': 'medicinlabda',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'emelőkaros gép', 'medicine ball': 'medicinlabda',
'olympic barbell': 'olimpiai rúd', 'resistance band': 'ellenállószalag', 'roller': 'henger',
'rope': 'kötél', 'skierg machine': 'SkiErg', 'sled machine': 'szán',
'smith machine': 'Smith-gép', 'stability ball': 'fitneszlabda', 'stationary bike': 'szobabicikli',
diff --git a/frontend/src/locales/it.js b/frontend/src/locales/it.js
index 48e5dd34d..687f194cb 100644
--- a/frontend/src/locales/it.js
+++ b/frontend/src/locales/it.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'assistito', 'band': 'elastico', 'barbell': 'bilanciere', 'body weight': 'corpo libero',
'bosu ball': 'bosu', 'cable': 'cavo', 'dumbbell': 'manubrio',
'elliptical machine': 'ellittica', 'ez barbell': 'bilanciere EZ', 'hammer': 'martello',
- 'kettlebell': 'kettlebell', 'leverage machine': 'macchina a leva', 'medicine ball': 'palla medica',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'macchina a leva', 'medicine ball': 'palla medica',
'olympic barbell': 'bilanciere olimpico', 'resistance band': 'banda elastica', 'roller': 'rullo',
'rope': 'corda', 'skierg machine': 'SkiErg', 'sled machine': 'slitta',
'smith machine': 'macchina Smith', 'stability ball': 'fitball', 'stationary bike': 'cyclette',
diff --git a/frontend/src/locales/ko.js b/frontend/src/locales/ko.js
index 02628fa0a..60512dab0 100644
--- a/frontend/src/locales/ko.js
+++ b/frontend/src/locales/ko.js
@@ -508,7 +508,7 @@ export default {
'assisted': '보조', 'band': '밴드', 'barbell': '바벨', 'body weight': '맨몸',
'bosu ball': '보수볼', 'cable': '케이블', 'dumbbell': '덤벨',
'elliptical machine': '일립티컬', 'ez barbell': 'EZ바', 'hammer': '해머',
- 'kettlebell': '케틀벨', 'leverage machine': '레버리지 머신', 'medicine ball': '메디신볼',
+ 'kettlebell': '케틀벨', 'clubbell': '클럽벨', 'macebell': '메이스벨', 'leverage machine': '레버리지 머신', 'medicine ball': '메디신볼',
'olympic barbell': '올림픽 바벨', 'resistance band': '저항 밴드', 'roller': '롤러',
'rope': '로프', 'skierg machine': '스키에르그', 'sled machine': '슬레드',
'smith machine': '스미스 머신', 'stability ball': '짐볼', 'stationary bike': '실내 자전거',
diff --git a/frontend/src/locales/pl.js b/frontend/src/locales/pl.js
index f5910a684..a19f79179 100644
--- a/frontend/src/locales/pl.js
+++ b/frontend/src/locales/pl.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'z asystą', 'band': 'guma', 'barbell': 'sztanga', 'body weight': 'masa ciała',
'bosu ball': 'bosu', 'cable': 'wyciąg', 'dumbbell': 'hantla',
'elliptical machine': 'orbitrek', 'ez barbell': 'sztanga łamana', 'hammer': 'młot',
- 'kettlebell': 'kettlebell', 'leverage machine': 'maszyna dźwigniowa', 'medicine ball': 'piłka lekarska',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'maszyna dźwigniowa', 'medicine ball': 'piłka lekarska',
'olympic barbell': 'sztanga olimpijska', 'resistance band': 'guma oporowa', 'roller': 'wałek',
'rope': 'lina', 'skierg machine': 'SkiErg', 'sled machine': 'sanie',
'smith machine': 'maszyna Smitha', 'stability ball': 'piłka gimnastyczna', 'stationary bike': 'rower stacjonarny',
diff --git a/frontend/src/locales/pt-BR.js b/frontend/src/locales/pt-BR.js
index 41505d76e..c406849a0 100644
--- a/frontend/src/locales/pt-BR.js
+++ b/frontend/src/locales/pt-BR.js
@@ -1008,6 +1008,8 @@ export const PT_BR_OVERRIDES = {
'Teal': 'Turquesa',
'Yellow': 'Amarelo',
'Enter how long it took — at least 1 minute.': 'Informe quanto tempo levou — pelo menos 1 minuto.',
+ 'clubbell': 'clubbell',
+ 'macebell': 'macebell',
}
export default { ...pt, ...PT_BR_OVERRIDES }
diff --git a/frontend/src/locales/pt.js b/frontend/src/locales/pt.js
index 65dd8ff54..0b1ab6d2a 100644
--- a/frontend/src/locales/pt.js
+++ b/frontend/src/locales/pt.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'assistido', 'band': 'banda', 'barbell': 'barra', 'body weight': 'peso corporal',
'bosu ball': 'bosu', 'cable': 'cabo', 'dumbbell': 'haltere',
'elliptical machine': 'elíptica', 'ez barbell': 'barra EZ', 'hammer': 'martelo',
- 'kettlebell': 'kettlebell', 'leverage machine': 'máquina de alavanca', 'medicine ball': 'bola medicinal',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'máquina de alavanca', 'medicine ball': 'bola medicinal',
'olympic barbell': 'barra olímpica', 'resistance band': 'banda de resistência', 'roller': 'rolo',
'rope': 'corda', 'skierg machine': 'SkiErg', 'sled machine': 'trenó',
'smith machine': 'máquina Smith', 'stability ball': 'bola de estabilidade', 'stationary bike': 'bicicleta estática',
diff --git a/frontend/src/locales/ru.js b/frontend/src/locales/ru.js
index 2df1568f7..f5626dff9 100644
--- a/frontend/src/locales/ru.js
+++ b/frontend/src/locales/ru.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'с поддержкой', 'band': 'лента', 'barbell': 'штанга', 'body weight': 'свой вес',
'bosu ball': 'босу', 'cable': 'блок', 'dumbbell': 'гантель',
'elliptical machine': 'эллипсоид', 'ez barbell': 'EZ-гриф', 'hammer': 'молот',
- 'kettlebell': 'гиря', 'leverage machine': 'рычажный тренажёр', 'medicine ball': 'медбол',
+ 'kettlebell': 'гиря', 'clubbell': 'клаббелл', 'macebell': 'булава', 'leverage machine': 'рычажный тренажёр', 'medicine ball': 'медбол',
'olympic barbell': 'олимпийская штанга', 'resistance band': 'эспандер', 'roller': 'ролик',
'rope': 'канат', 'skierg machine': 'SkiErg', 'sled machine': 'сани',
'smith machine': 'машина Смита', 'stability ball': 'фитбол', 'stationary bike': 'велотренажёр',
diff --git a/frontend/src/locales/th.js b/frontend/src/locales/th.js
index 3604d80fa..b10efb075 100644
--- a/frontend/src/locales/th.js
+++ b/frontend/src/locales/th.js
@@ -511,7 +511,7 @@ export default {
'assisted': 'มีตัวช่วย', 'band': 'ยางยืด', 'barbell': 'บาร์เบล', 'body weight': 'น้ำหนักตัว',
'bosu ball': 'บอลโบซู', 'cable': 'สายเคเบิล', 'dumbbell': 'ดัมเบล',
'elliptical machine': 'เครื่องเอลลิปติคัล', 'ez barbell': 'อีซีบาร์', 'hammer': 'แฮมเมอร์',
- 'kettlebell': 'เคทเทิลเบล', 'leverage machine': 'เครื่องคานงัด', 'medicine ball': 'เมดิซินบอล',
+ 'kettlebell': 'เคทเทิลเบล', 'clubbell': 'คลับเบล', 'macebell': 'เมซเบล', 'leverage machine': 'เครื่องคานงัด', 'medicine ball': 'เมดิซินบอล',
'olympic barbell': 'บาร์เบลโอลิมปิก', 'resistance band': 'ยางยืดออกกำลังกาย', 'roller': 'ลูกกลิ้ง',
'rope': 'เชือก', 'skierg machine': 'เครื่องสกีเอิร์ก', 'sled machine': 'สเลด',
'smith machine': 'สมิธแมชชีน', 'stability ball': 'บอลออกกำลังกาย', 'stationary bike': 'จักรยานปั่นอยู่กับที่',
diff --git a/frontend/src/locales/tr.js b/frontend/src/locales/tr.js
index 1c96ebc30..2ee784174 100644
--- a/frontend/src/locales/tr.js
+++ b/frontend/src/locales/tr.js
@@ -508,7 +508,7 @@ export default {
'assisted': 'destekli', 'band': 'bant', 'barbell': 'halter', 'body weight': 'vücut ağırlığı',
'bosu ball': 'bosu topu', 'cable': 'kablo', 'dumbbell': 'dambıl',
'elliptical machine': 'eliptik bisiklet', 'ez barbell': 'EZ bar', 'hammer': 'çekiç',
- 'kettlebell': 'kettlebell', 'leverage machine': 'kaldıraçlı makine', 'medicine ball': 'sağlık topu',
+ 'kettlebell': 'kettlebell', 'clubbell': 'clubbell', 'macebell': 'macebell', 'leverage machine': 'kaldıraçlı makine', 'medicine ball': 'sağlık topu',
'olympic barbell': 'olimpik halter', 'resistance band': 'direnç bandı', 'roller': 'silindir',
'rope': 'ip', 'skierg machine': 'SkiErg', 'sled machine': 'kızak',
'smith machine': 'Smith makinesi', 'stability ball': 'pilates topu', 'stationary bike': 'kondisyon bisikleti',
diff --git a/frontend/src/locales/uk.js b/frontend/src/locales/uk.js
index ba239e0c8..de0b9b5f9 100644
--- a/frontend/src/locales/uk.js
+++ b/frontend/src/locales/uk.js
@@ -344,7 +344,7 @@ export default {
'assisted': 'з підтримкою', 'band': 'стрічка', 'barbell': 'штанга', 'body weight': 'своя вага',
'bosu ball': 'босу', 'cable': 'блок', 'dumbbell': 'гантель',
'elliptical machine': 'еліптичний тренажер', 'ez barbell': 'EZ-гриф', 'hammer': 'молот',
- 'kettlebell': 'гиря', 'leverage machine': 'важільний тренажер', 'medicine ball': 'медбол',
+ 'kettlebell': 'гиря', 'clubbell': 'клаббел', 'macebell': 'булава', 'leverage machine': 'важільний тренажер', 'medicine ball': 'медбол',
'olympic barbell': 'олімпійська штанга', 'resistance band': 'еспандер', 'roller': 'ролик',
'rope': 'канат', 'skierg machine': 'SkiErg', 'sled machine': 'сани',
'smith machine': 'машина Сміта', 'stability ball': 'фітбол', 'stationary bike': 'велотренажер',
diff --git a/frontend/src/locales/zh.js b/frontend/src/locales/zh.js
index 84237894a..1dd527861 100644
--- a/frontend/src/locales/zh.js
+++ b/frontend/src/locales/zh.js
@@ -508,7 +508,7 @@ export default {
'assisted': '辅助', 'band': '弹力带', 'barbell': '杠铃', 'body weight': '自重',
'bosu ball': '波速球', 'cable': '绳索', 'dumbbell': '哑铃',
'elliptical machine': '椭圆机', 'ez barbell': '曲杆杠铃', 'hammer': '锤',
- 'kettlebell': '壶铃', 'leverage machine': '杠杆器械', 'medicine ball': '药球',
+ 'kettlebell': '壶铃', 'clubbell': '棍铃', 'macebell': '锤铃', 'leverage machine': '杠杆器械', 'medicine ball': '药球',
'olympic barbell': '奥杆', 'resistance band': '阻力带', 'roller': '滚轴',
'rope': '绳', 'skierg machine': '滑雪机', 'sled machine': '雪橇',
'smith machine': '史密斯机', 'stability ball': '健身球', 'stationary bike': '动感单车',