feat(detail): let an event's goal be points, entered in the sheet
Some events want a number of points rather than a number of days. The goal control gains Days and Points. Switching period keeps the measure and the number, and the sheet keeps this period's number editable in place. A target is capped where the schema reads it back, so a huge number can't silently become no goal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
595ae55f4a
commit
d0b295c02f
5 files changed
+196
-13
No files matched your search
@@ -789,6 +789,8 @@ export function App() {
|
||||
dailyDays={daily.daysFor(openRow.event.id)}
|
||||
goal={goalOf(openRow.event.id)}
|
||||
hasStoredGoal={prog.progress[openRow.event.id]?.goal !== undefined}
|
||||
amounts={amounts.amountsFor(openRow.event.id)}
|
||||
onSetAmount={amounts.setAmount}
|
||||
onDaily={prog.setDaily}
|
||||
onGoal={prog.setGoal}
|
||||
onToggleDay={daily.toggleDay}
|
||||
|
||||
Reference in new issue
Block a user