bearbob / bearbob/LiftingLog

Overwrite entry if better score is entered

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Use case: A user saves an entry for an exercise. Shortly after, he manages to do a better entry with higher weight or reps.
The entry should be updated.

For a given date D, given exercise X an entry A with A.weight and A.reps is saved.
A new entry B with date D for exercise X will replace A if B.reps > A.reps or B.weight > A.weight. Otherwise B is not stored.

Contributor guide

Open the contributing guide

Research direction

No file or test is named. Start by locating the entry-saving flow and the data model for date, exercise, weight, and reps; verify how existing entries are looked up. Done means a same-date, same-exercise entry is retained only when its weight or reps is higher, with other entries unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.