Expand a rule into rows, two at a time
The lists exist to answer "what ends soonest", so a rule contributes the occurrence that has not finished and the one after it — no more, however often it repeats. A weekly rule would otherwise put thirteen rows into the list F1 is built to keep short. occurrencesIn answers the timeline's different question and covers a whole range. It skips non-repeating events deliberately: those are already in rows, and returning them twice would double every plain event on the board. useCustom takes the clock as an argument now, because the rows have to change as time passes — the occurrence on screen rolls to the next one when the current finishes. CustomForms.tsx now passes repeat: null when saving a draft — EventDraft gained the field but the form has no repeat control yet, so every event it saves stays a single occurrence. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c76a0b4e70
commit
f7f67fd305
+1
-1
@@ -108,7 +108,7 @@ export function App() {
|
||||
const ignored = useMarkSet(KEYS.ignored);
|
||||
const prog = useProgress();
|
||||
const daily = useDailyLog();
|
||||
const custom = useCustom();
|
||||
const custom = useCustom(now);
|
||||
// Colour only: which ground the page is drawn on, written to the document by
|
||||
// the hook. Nothing else in the app asks what it is — the tokens in
|
||||
// styles.css answer for every component — except the hues below.
|
||||
|
||||
Reference in New Issue
Block a user