Comparison state structure

interface ComparisonMode {
    enabled: boolean;
    primaryRange: TimeRange;
    secondaryRange: TimeRange;
    metric: "chapters" | "velocity" | "habits";
}

Properties

enabled: boolean

Whether comparison mode is active

primaryRange: TimeRange

First time period to compare

secondaryRange: TimeRange

Second time period to compare

metric: "chapters" | "velocity" | "habits"

Which metric to compare