diff --git a/assets/pages/datasheet/DatasheetView/DatasetListTab/PyramidList.tsx b/assets/pages/datasheet/DatasheetView/DatasetListTab/PyramidList.tsx index acae4d5c..577585c4 100644 --- a/assets/pages/datasheet/DatasheetView/DatasetListTab/PyramidList.tsx +++ b/assets/pages/datasheet/DatasheetView/DatasetListTab/PyramidList.tsx @@ -1,11 +1,13 @@ -import { FC } from "react"; -import { Pyramid, StoredDataStatuses } from "../../../../types/app"; import { fr } from "@codegouvfr/react-dsfr"; +import Button from "@codegouvfr/react-dsfr/Button"; +import { FC } from "react"; +import { symToStr } from "tsafe/symToStr"; + import MenuList from "../../../../components/Utils/MenuList"; import StoredDataStatusBadge from "../../../../components/Utils/StoredDataStatusBadge"; import functions from "../../../../functions"; -import Button from "@codegouvfr/react-dsfr/Button"; import { routes } from "../../../../router/router"; +import { Pyramid, StoredDataStatuses } from "../../../../types/app"; type PyramidListProps = { datastoreId: string; @@ -66,4 +68,6 @@ const PyramidList: FC = ({ datastoreId, pyramidList }) => { ); }; +PyramidList.displayName = symToStr({ PyramidList }); + export default PyramidList; diff --git a/assets/pages/datasheet/DatasheetView/DatasetListTab/VectorDbList.tsx b/assets/pages/datasheet/DatasheetView/DatasetListTab/VectorDbList.tsx index e72f5575..44ab16f2 100644 --- a/assets/pages/datasheet/DatasheetView/DatasetListTab/VectorDbList.tsx +++ b/assets/pages/datasheet/DatasheetView/DatasetListTab/VectorDbList.tsx @@ -6,14 +6,15 @@ import RadioButtons from "@codegouvfr/react-dsfr/RadioButtons"; import { useQuery } from "@tanstack/react-query"; import { FC, useEffect, useState } from "react"; import { createPortal } from "react-dom"; +import { symToStr } from "tsafe/symToStr"; import api from "../../../../api"; import MenuList from "../../../../components/Utils/MenuList"; +import StoredDataStatusBadge from "../../../../components/Utils/StoredDataStatusBadge"; import functions from "../../../../functions"; import RQKeys from "../../../../modules/RQKeys"; import { routes } from "../../../../router/router"; import { DatastoreEndpoint, StoredDataStatuses, type VectorDb } from "../../../../types/app"; -import StoredDataStatusBadge from "../../../../components/Utils/StoredDataStatusBadge"; type ServiceTypes = "tms" | "wfs" | "wms-vector" | "pre-paquet"; @@ -223,4 +224,6 @@ const VectorDbList: FC = ({ datastoreId, vectorDbList }) => { ); }; +VectorDbList.displayName = symToStr({ VectorDbList }); + export default VectorDbList; diff --git a/package.json b/package.json index 93093395..e36eefc3 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "react-dom": "^18.2.0", "react-error-boundary": "^4.0.10", "react-hook-form": "^7.45.1", + "tsafe": "^1.6.5", "type-route": "^1.0.1", "uuid": "^9.0.0", "yup": "^1.2.0" diff --git a/yarn.lock b/yarn.lock index 92f82ef6..920890be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1177,12 +1177,7 @@ dependencies: eslint-visitor-keys "^3.3.0" -"@eslint-community/regexpp@^4.5.1": - version "4.9.0" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.9.0.tgz#7ccb5f58703fa61ffdcbf39e2c604a109e781162" - integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== - -"@eslint-community/regexpp@^4.6.1": +"@eslint-community/regexpp@^4.5.1", "@eslint-community/regexpp@^4.6.1": version "4.9.0" resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.9.0.tgz#7ccb5f58703fa61ffdcbf39e2c604a109e781162" integrity sha512-zJmuCWj2VLBt4c25CfBIbMZLGLyhkvs7LznyVX5HfpzeocThgIj5XQK4L+g3U36mMcx8bPMhGyPpwCATamC4jQ== @@ -8083,6 +8078,11 @@ tsafe@^1.6.3: resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.4.tgz#048a114761714538c72f16abd25bb247d4e3780e" integrity sha512-l4Z54QFGHO8GF0gBpb3yPGHjkIkIirl8rwW+lMBmtEMzOJeRs8BdjkDEx6nU8Ak9PQVp/KNDtECxTja8MMIDoA== +tsafe@^1.6.5: + version "1.6.5" + resolved "https://registry.yarnpkg.com/tsafe/-/tsafe-1.6.5.tgz#74943b69190069168a53d2accd6d07891cf1cce8" + integrity sha512-895zss8xqqHKTc28sHGIfZKnt3C5jrstB1DyPr/h3/flK0zojsZUMQL1/W4ytdDW6KI4Oth62nb9rrxmA3s3Iw== + tslib@^2.1.0: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"