-
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(frontend): add sort by rdv date
- Loading branch information
Showing
24 changed files
with
103 additions
and
91 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
21 changes: 9 additions & 12 deletions
21
...c/usager/functions/getRdvInfos.service.ts → ...rc/usager/functions/getRdvInfo.service.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
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,4 +1,4 @@ | ||
// @index('./*.ts', f => `export * from '${f.path}'`) | ||
export * from "./generateMotifLabel.service"; | ||
export * from "./getRdvInfos.service"; | ||
export * from "./getRdvInfo.service"; | ||
export * from "./getUsagerNomComplet"; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./rdv"; | ||
export * from "./Usager.interface"; | ||
export * from "./UsagerAyantDroit.interface"; | ||
export * from "./UsagerDecision.interface"; | ||
export * from "./UsagerDoc.interface"; | ||
export * from "./UsagerEntretien.interface"; | ||
export * from "./UsagerLastInteraction.interface"; | ||
export * from "./UsagerNote.interface"; | ||
export * from "./UsagerRdv.interface"; | ||
export * from "./UsagerRdvInfos.interface"; |
File renamed without changes.
3 changes: 1 addition & 2 deletions
3
...er/interfaces/UsagerRdvInfos.interface.ts → ...interfaces/rdv/UsagerRdvInfo.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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export interface UsagerRdvInfos { | ||
display: boolean; | ||
export interface UsagerRdvInfo { | ||
class: "danger" | "warning" | ""; | ||
content: string; | ||
} |
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,3 @@ | ||
// @index('./*', f => `export * from '${f.path}'`) | ||
export * from "./UsagerRdv.interface"; | ||
export * from "./UsagerRdvInfo.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
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
11 changes: 11 additions & 0 deletions
11
packages/frontend/src/app/modules/usager-shared/utils/countStanbyInteractions.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,11 @@ | ||
import { INTERACTIONS_IN, UsagerLastInteraction } from "@domifa/common"; | ||
|
||
export const countStandByInteractions = ( | ||
lastInteraction: UsagerLastInteraction | ||
): number => { | ||
let standByInteractions = 0; | ||
INTERACTIONS_IN.forEach((interaction) => { | ||
standByInteractions += lastInteraction[interaction]; | ||
}); | ||
return standByInteractions; | ||
}; |
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,3 +1,4 @@ | ||
// @index('./*service.ts', f => `export * from '${f.path}'`) | ||
export * from "./getEcheanceInfos.service"; | ||
export * from "./countStanbyInteractions"; | ||
export * from "./getUrlUsagerProfil.service"; |
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.