Add GitHub-style activity contribution graph
Record create/update/delete events across novel content (chapters, beats, characters, arc stages, tags, locations, questions) into an append-only ActivityEvent log, aggregate by UTC day, and surface as a heatmap on the novels list and each novel's dashboard. Backfills history from existing CreatedAt timestamps on first boot after the migration.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
namespace Novelly.Api.Activity;
|
||||
|
||||
public record ActivityDayResponse(DateOnly Date, int Words, int Edits);
|
||||
|
||||
public record ActivityCalendarResponse(DateOnly From, DateOnly To, int TotalWords, int TotalEdits, IReadOnlyList<ActivityDayResponse> Days);
|
||||
Reference in New Issue
Block a user