-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: wip simplification écrans mes effectifs + paramètres
feat: configuration ERP v2 feat: wip configuration v3 feat: enregistrement ERP non supporté feat: sauvegarde l'auteur de la configuration ERP feat: redirection apiv3 ok
- Loading branch information
Showing
34 changed files
with
1,124 additions
and
288 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
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,9 +1,9 @@ | ||
import { z } from "zod"; | ||
|
||
export const configurationERPSchema = { | ||
erps: z.string().array().optional(), | ||
mode_de_transmission: z.enum(["API", "MANUEL"]).nullable().optional(), | ||
setup_step_courante: z.enum(["STEP1", "STEP2", "STEP3", "COMPLETE"]).optional(), | ||
erps: z.string().toLowerCase().array().optional(), | ||
mode_de_transmission: z.enum(["API", "MANUEL"]).optional(), | ||
erp_unsupported: z.string().optional(), | ||
}; | ||
|
||
export type ConfigurationERP = z.infer<z.ZodObject<typeof configurationERPSchema>>; |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { sortAlphabeticallyBy } from "../utils"; | ||
|
||
interface ERP { | ||
id: string; | ||
name: string; | ||
helpFilePath?: string; | ||
helpFileSize?: string; | ||
apiV3?: boolean; | ||
} | ||
|
||
export const ERPS = sortAlphabeticallyBy("name", [ | ||
{ | ||
id: "gesti", | ||
name: "Gesti", | ||
helpFilePath: "https://files.tableau-de-bord.apprentissage.beta.gouv.fr/pas-a-pas/gesti.pdf", | ||
helpFileSize: "352 ko", | ||
}, | ||
{ | ||
id: "ymag", | ||
name: "Ypareo", | ||
helpFilePath: "https://files.tableau-de-bord.apprentissage.beta.gouv.fr/pas-a-pas/ypareo.pdf", | ||
helpFileSize: "1.7 Mo", | ||
}, | ||
{ | ||
id: "scform", | ||
name: "SC Form", | ||
// helpFilePath: "https://files.tableau-de-bord.apprentissage.beta.gouv.fr/pas-a-pas/scform.pdf", | ||
// helpFileSize: "734 ko", | ||
apiV3: true, | ||
}, | ||
{ | ||
id: "formasup", | ||
name: "Formasup", | ||
}, | ||
{ | ||
id: "fcamanager", | ||
name: "FCA Manager", | ||
helpFilePath: "https://files.tableau-de-bord.apprentissage.beta.gouv.fr/pas-a-pas/fcamanager.pdf", | ||
helpFileSize: "288 ko", | ||
}, | ||
] satisfies ERP[]); | ||
|
||
export const ERPS_BY_ID = ERPS.reduce( | ||
(acc, erp) => { | ||
acc[erp.id] = erp; | ||
return acc; | ||
}, | ||
{} as Record<string, ERP> | ||
); | ||
|
||
// obsolète, utilisé par les anciens composants uniquement | ||
export const ERPS_FORM: any[] = [ | ||
...ERPS, | ||
{ id: "AUTRE", name: "Autre ERP", state: "otherErp" }, | ||
{ id: "NON", name: "Je n'ai pas d'ERP", state: "noErp" }, | ||
]; |
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 @@ | ||
export * from "./erps"; | ||
export * from "./plausible-goals"; | ||
export * from "./sifa"; | ||
export * from "./territoires"; |
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
Oops, something went wrong.