Coalesce start and end dates of drafts with the student_ranks
history
#12
Labels
bug
Something isn't working
student_ranks
history
#12
Currently, we display the log entries events in the following pattern:
drap/src/routes/history/[draft]/+page.svelte
Lines 81 to 95 in b1435fb
drap/src/routes/history/[draft]/+page.svelte
Lines 96 to 149 in b1435fb
drap/src/routes/history/[draft]/+page.svelte
Lines 150 to 161 in b1435fb
This setup unfortunately sections off
startDate
andendDate
from theevents
history. IfendDate
happens to be the same as the latest event inevents
, it would not be coalesced; it would be its own entry in the timeline. The solution is to merge the events under a single discriminated union, where thestartDate
and theendDate
variants sandwich the internalevents
.The text was updated successfully, but these errors were encountered: