Skip to content

Commit

Permalink
feat: Refine the weekly stats (#64)
Browse files Browse the repository at this point in the history
* fix-build

* improve stats charts
  • Loading branch information
alexfauquette authored Dec 2, 2024
1 parent d7f9312 commit 80478c4
Show file tree
Hide file tree
Showing 6 changed files with 335 additions and 207 deletions.
203 changes: 0 additions & 203 deletions app/depute/[slug]/WeeklyActivity.tsx

This file was deleted.

23 changes: 23 additions & 0 deletions app/depute/[slug]/WeeklyActivity/WeeklyActivity.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { StateHebdoType } from "@prisma/client";

export type DeputeWeeklyActivity = {
semaineIndex: number;
valeur: number;
type: StateHebdoType;
acteurUid: string;
};

export type StatsOnWeeklyActivity = {
semaineIndex: number;
valeur: number;
type: StateHebdoType;
acteurUid: string;
};

export type WeekActivity = {
[key in StateHebdoType]: {
depute?: number;
max?: number;
median?: number;
};
};
Loading

0 comments on commit 80478c4

Please sign in to comment.