-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stats): add 'actifs' in dashboard
- Loading branch information
Showing
36 changed files
with
242 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
packages/backend/src/_common/model/stats/AdminStructureStatsData.type.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+91 Bytes
(100%)
packages/backend/src/excel/_templates/export-stats-deploiement.xlsx
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
packages/common/src/stats/interfaces/AdminStructureStatsData.interface.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { type InteractionType } from "../../interactions"; | ||
|
||
export interface AdminStructureStatsData { | ||
usersCount: number; | ||
structuresCount: number; | ||
usagersDocumentsCount: number; | ||
usagersActifs: { | ||
domicilies: number; | ||
ayantsDroits: number; | ||
actifs: number; | ||
}; | ||
structuresCountByRegion: Array<{ | ||
region: string; | ||
count: number; | ||
}>; | ||
structuresCountByTypeMap: Record<string, number>; | ||
structuresCountBySmsEnabled: number; | ||
interactionsCountByTypeMap: { | ||
[statut in InteractionType]: number; | ||
}; | ||
usagersCountByStatutMap: Record<string, number>; | ||
usagersValidCountByStructureMap: Record<string, number>; | ||
usagersAllCountByStructureMap: Record<string, number>; | ||
usagersAyantsDroitsCountByStructureMap: Record<string, number>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./AdminStructureStatsData.interface"; | ||
export * from "./HomeStats.interface"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...s/frontend/src/app/modules/usager-dossier/components/step-footer/step-footer.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
import { Component, Input } from "@angular/core"; | ||
|
||
import { UsagerFormModel } from "./../../../usager-shared/interfaces/UsagerFormModel"; | ||
import { UserStructure } from "../../../../../_common/model"; | ||
import { AuthService } from "../../../shared/services"; | ||
|
||
@Component({ | ||
selector: "app-step-footer", | ||
templateUrl: "./step-footer.component.html", | ||
}) | ||
export class StepFooterComponent { | ||
@Input() public usager!: UsagerFormModel; | ||
|
||
public me!: UserStructure | null; | ||
|
||
constructor(private readonly authService: AuthService) { | ||
this.me = this.authService.currentUserValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.