Remove extensions from import paths

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-22 21:43:49 +04:00
parent 4bdf941d3a
commit e143477d66
139 changed files with 293 additions and 293 deletions

View File

@@ -24,7 +24,7 @@ import { graphql } from "relay-runtime";
import type { LinkedDocumentsCardFragment$key } from "#/__generated__/core/LinkedDocumentsCardFragment.graphql"; import type { LinkedDocumentsCardFragment$key } from "#/__generated__/core/LinkedDocumentsCardFragment.graphql";
import { useOrganizationId } from "#/hooks/useOrganizationId"; import { useOrganizationId } from "#/hooks/useOrganizationId";
import { LinkedDocumentDialog } from "./LinkedDocumentsDialog.tsx"; import { LinkedDocumentDialog } from "./LinkedDocumentsDialog";
const linkedDocumentFragment = graphql` const linkedDocumentFragment = graphql`
fragment LinkedDocumentsCardFragment on Document { fragment LinkedDocumentsCardFragment on Document {

View File

@@ -6,7 +6,7 @@ import {
IconPlusLarge, IconPlusLarge,
Spinner, Spinner,
} from "@probo/ui"; } from "@probo/ui";
import { IconMinusLarge } from "@probo/ui/src/Atoms/Icons/IconMinusLarge.tsx"; import { IconMinusLarge } from "@probo/ui/src/Atoms/Icons/IconMinusLarge";
import { type ComponentProps, useRef, useState } from "react"; import { type ComponentProps, useRef, useState } from "react";
import { Document, Page, pdfjs } from "react-pdf"; import { Document, Page, pdfjs } from "react-pdf";

View File

@@ -3,7 +3,7 @@ import { Avatar, Badge, Button, Field, IconCrossLargeX, Option, Select } from "@
import { type ComponentProps, Suspense, useState } from "react"; import { type ComponentProps, Suspense, useState } from "react";
import { type Control, Controller, type FieldValues, type Path } from "react-hook-form"; import { type Control, Controller, type FieldValues, type Path } from "react-hook-form";
import { usePeople } from "#/hooks/graph/PeopleGraph.ts"; import { usePeople } from "#/hooks/graph/PeopleGraph";
type Person = { type Person = {
id: string; id: string;

View File

@@ -3,7 +3,7 @@ import { Avatar, Field, Option, Select } from "@probo/ui";
import { type ComponentProps, Suspense } from "react"; import { type ComponentProps, Suspense } from "react";
import { type Control, Controller, type FieldPath, type FieldValues } from "react-hook-form"; import { type Control, Controller, type FieldPath, type FieldValues } from "react-hook-form";
import { usePeople } from "#/hooks/graph/PeopleGraph.ts"; import { usePeople } from "#/hooks/graph/PeopleGraph";
type Props< type Props<
TFieldValues extends FieldValues = FieldValues, TFieldValues extends FieldValues = FieldValues,

View File

@@ -4,7 +4,7 @@ import { Avatar, Badge, Button, Field, IconCrossLargeX, Option, Select } from "@
import { type ComponentProps, Suspense, useState } from "react"; import { type ComponentProps, Suspense, useState } from "react";
import { type Control, Controller, type FieldValues, type Path } from "react-hook-form"; import { type Control, Controller, type FieldValues, type Path } from "react-hook-form";
import { useVendors } from "#/hooks/graph/VendorGraph.ts"; import { useVendors } from "#/hooks/graph/VendorGraph";
type Vendor = { type Vendor = {
id: string; id: string;

View File

@@ -23,7 +23,7 @@ import { graphql } from "relay-runtime";
import type { LinkedMeasuresCardFragment$key } from "#/__generated__/core/LinkedMeasuresCardFragment.graphql"; import type { LinkedMeasuresCardFragment$key } from "#/__generated__/core/LinkedMeasuresCardFragment.graphql";
import { useOrganizationId } from "#/hooks/useOrganizationId"; import { useOrganizationId } from "#/hooks/useOrganizationId";
import { LinkedMeasureDialog } from "./LinkedMeasuresDialog.tsx"; import { LinkedMeasureDialog } from "./LinkedMeasuresDialog";
const linkedMeasureFragment = graphql` const linkedMeasureFragment = graphql`
fragment LinkedMeasuresCardFragment on Measure { fragment LinkedMeasuresCardFragment on Measure {

View File

@@ -17,7 +17,7 @@ import { graphql } from "relay-runtime";
import type { LinkedRisksCardFragment$key } from "#/__generated__/core/LinkedRisksCardFragment.graphql"; import type { LinkedRisksCardFragment$key } from "#/__generated__/core/LinkedRisksCardFragment.graphql";
import { useOrganizationId } from "#/hooks/useOrganizationId"; import { useOrganizationId } from "#/hooks/useOrganizationId";
import { LinkedRisksDialog } from "./LinkedRisksDialog.tsx"; import { LinkedRisksDialog } from "./LinkedRisksDialog";
const linkedRiskFragment = graphql` const linkedRiskFragment = graphql`
fragment LinkedRisksCardFragment on Risk { fragment LinkedRisksCardFragment on Risk {

View File

@@ -19,10 +19,10 @@ import { z } from "zod";
import { defaultPageSize, import { defaultPageSize,
SortableCellHead, SortableCellHead,
SortableDataTable, SortableDataTable,
} from "#/components/table/SortableDataTable.tsx"; } from "#/components/table/SortableDataTable";
import { useMutateField } from "#/hooks/useMutateField.tsx"; import { useMutateField } from "#/hooks/useMutateField";
import { useMutationWithToasts } from "#/hooks/useMutationWithToasts.ts"; import { useMutationWithToasts } from "#/hooks/useMutationWithToasts";
import { useStateWithSchema } from "#/hooks/useStateWithSchema.ts"; import { useStateWithSchema } from "#/hooks/useStateWithSchema";
type ColumnDefinition = { label: string; field: string } | string; type ColumnDefinition = { label: string; field: string } | string;

View File

@@ -1,9 +1,9 @@
import { useStateWithRef } from "@probo/hooks"; import { useStateWithRef } from "@probo/hooks";
import { useTranslate } from "@probo/i18n"; import { useTranslate } from "@probo/i18n";
import { EditableCell, selectCell, SelectValue, Spinner } from "@probo/ui"; import { EditableCell, selectCell, SelectValue, Spinner } from "@probo/ui";
import { useEditableCellRef } from "@probo/ui/src/Molecules/Table/EditableCell.tsx"; import { useEditableCellRef } from "@probo/ui/src/Molecules/Table/EditableCell";
import { useEditableRowContext } from "@probo/ui/src/Molecules/Table/EditableRow.tsx"; import { useEditableRowContext } from "@probo/ui/src/Molecules/Table/EditableRow";
import { getKey } from "@probo/ui/src/Molecules/Table/utils.ts"; import { getKey } from "@probo/ui/src/Molecules/Table/utils";
import { Command } from "cmdk"; import { Command } from "cmdk";
import { type ReactNode, Suspense } from "react"; import { type ReactNode, Suspense } from "react";
import { useLazyLoadQuery } from "react-relay"; import { useLazyLoadQuery } from "react-relay";

View File

@@ -1,8 +1,8 @@
import { Avatar } from "@probo/ui"; import { Avatar } from "@probo/ui";
import type { PeopleGraphQuery } from "#/__generated__/core/PeopleGraphQuery.graphql.ts"; import type { PeopleGraphQuery } from "#/__generated__/core/PeopleGraphQuery.graphql";
import { GraphQLCell } from "#/components/table/GraphQLCell.tsx"; import { GraphQLCell } from "#/components/table/GraphQLCell";
import { peopleQuery } from "#/hooks/graph/PeopleGraph.ts"; import { peopleQuery } from "#/hooks/graph/PeopleGraph";
type Props = { type Props = {
name: string; name: string;

View File

@@ -1,7 +1,7 @@
import { faviconUrl } from "@probo/helpers"; import { faviconUrl } from "@probo/helpers";
import { Avatar, Badge, IconCrossLargeX } from "@probo/ui"; import { Avatar, Badge, IconCrossLargeX } from "@probo/ui";
import type { VendorGraphSelectQuery } from "#/__generated__/core/VendorGraphSelectQuery.graphql.ts"; import type { VendorGraphSelectQuery } from "#/__generated__/core/VendorGraphSelectQuery.graphql";
import { GraphQLCell } from "#/components/table/GraphQLCell"; import { GraphQLCell } from "#/components/table/GraphQLCell";
import { vendorsSelectQuery } from "#/hooks/graph/VendorGraph"; import { vendorsSelectQuery } from "#/hooks/graph/VendorGraph";

View File

@@ -6,11 +6,11 @@ import {
} from "react-relay"; } from "react-relay";
import { graphql } from "relay-runtime"; import { graphql } from "relay-runtime";
import type { RiskGraphDeleteMutation } from "#/__generated__/core/RiskGraphDeleteMutation.graphql.ts"; import type { RiskGraphDeleteMutation } from "#/__generated__/core/RiskGraphDeleteMutation.graphql";
import type { RiskGraphFragment$key } from "#/__generated__/core/RiskGraphFragment.graphql.ts"; import type { RiskGraphFragment$key } from "#/__generated__/core/RiskGraphFragment.graphql";
import type { RiskGraphListQuery } from "#/__generated__/core/RiskGraphListQuery.graphql.ts"; import type { RiskGraphListQuery } from "#/__generated__/core/RiskGraphListQuery.graphql";
import { useMutationWithToasts } from "../useMutationWithToasts.ts"; import { useMutationWithToasts } from "../useMutationWithToasts";
const deleteRiskMutation = graphql` const deleteRiskMutation = graphql`
mutation RiskGraphDeleteMutation( mutation RiskGraphDeleteMutation(

View File

@@ -5,11 +5,11 @@ import { useMemo } from "react";
import { useLazyLoadQuery, useMutation } from "react-relay"; import { useLazyLoadQuery, useMutation } from "react-relay";
import { graphql } from "relay-runtime"; import { graphql } from "relay-runtime";
import type { VendorGraphCreateMutation } from "#/__generated__/core/VendorGraphCreateMutation.graphql.ts"; import type { VendorGraphCreateMutation } from "#/__generated__/core/VendorGraphCreateMutation.graphql";
import type { VendorGraphDeleteMutation } from "#/__generated__/core/VendorGraphDeleteMutation.graphql.ts"; import type { VendorGraphDeleteMutation } from "#/__generated__/core/VendorGraphDeleteMutation.graphql";
import type { VendorGraphSelectQuery } from "#/__generated__/core/VendorGraphSelectQuery.graphql.ts"; import type { VendorGraphSelectQuery } from "#/__generated__/core/VendorGraphSelectQuery.graphql";
import { useMutationWithToasts } from "../useMutationWithToasts.ts"; import { useMutationWithToasts } from "../useMutationWithToasts";
const createVendorMutation = graphql` const createVendorMutation = graphql`
mutation VendorGraphCreateMutation( mutation VendorGraphCreateMutation(

View File

@@ -74,7 +74,7 @@ import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import { useMutationWithToasts } from "#/hooks/useMutationWithToasts"; import { useMutationWithToasts } from "#/hooks/useMutationWithToasts";
import { useOrganizationId } from "#/hooks/useOrganizationId"; import { useOrganizationId } from "#/hooks/useOrganizationId";
import { CurrentUser } from "#/providers/CurrentUser"; import { CurrentUser } from "#/providers/CurrentUser";
import type { NodeOf } from "#/types.ts"; import type { NodeOf } from "#/types";
import UpdateVersionDialog from "./dialogs/UpdateVersionDialog"; import UpdateVersionDialog from "./dialogs/UpdateVersionDialog";

View File

@@ -53,11 +53,11 @@ import {
useDeleteDocumentMutation, useDeleteDocumentMutation,
useSendSigningNotificationsMutation, useSendSigningNotificationsMutation,
} from "#/hooks/graph/DocumentGraph"; } from "#/hooks/graph/DocumentGraph";
import { CurrentUser } from "#/providers/CurrentUser.tsx"; import { CurrentUser } from "#/providers/CurrentUser";
import { CreateDocumentDialog } from "./dialogs/CreateDocumentDialog"; import { CreateDocumentDialog } from "./dialogs/CreateDocumentDialog";
import { PublishDocumentsDialog } from "./dialogs/PublishDocumentsDialog.tsx"; import { PublishDocumentsDialog } from "./dialogs/PublishDocumentsDialog";
import { SignatureDocumentsDialog } from "./dialogs/SignatureDocumentsDialog.tsx"; import { SignatureDocumentsDialog } from "./dialogs/SignatureDocumentsDialog";
const documentsFragment = graphql` const documentsFragment = graphql`
fragment DocumentsPageListFragment on Organization fragment DocumentsPageListFragment on Organization

View File

@@ -13,9 +13,9 @@ import { type ReactNode } from "react";
import { graphql } from "relay-runtime"; import { graphql } from "relay-runtime";
import { z } from "zod"; import { z } from "zod";
import type { PublishDocumentsDialogMutation } from "#/__generated__/core/PublishDocumentsDialogMutation.graphql.ts"; import type { PublishDocumentsDialogMutation } from "#/__generated__/core/PublishDocumentsDialogMutation.graphql";
import { useFormWithSchema } from "#/hooks/useFormWithSchema.ts"; import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import { useMutationWithToasts } from "#/hooks/useMutationWithToasts.ts"; import { useMutationWithToasts } from "#/hooks/useMutationWithToasts";
type Props = { type Props = {
documentIds: string[]; documentIds: string[];

View File

@@ -22,16 +22,16 @@ import { useLazyLoadQuery, usePaginationFragment } from "react-relay";
import { graphql } from "relay-runtime"; import { graphql } from "relay-runtime";
import { z } from "zod"; import { z } from "zod";
import type { PeopleGraphPaginatedFragment$key } from "#/__generated__/core/PeopleGraphPaginatedFragment.graphql.ts"; import type { PeopleGraphPaginatedFragment$key } from "#/__generated__/core/PeopleGraphPaginatedFragment.graphql";
import type { PeopleGraphPaginatedQuery } from "#/__generated__/core/PeopleGraphPaginatedQuery.graphql.ts"; import type { PeopleGraphPaginatedQuery } from "#/__generated__/core/PeopleGraphPaginatedQuery.graphql";
import type { SignatureDocumentsDialogMutation } from "#/__generated__/core/SignatureDocumentsDialogMutation.graphql.ts"; import type { SignatureDocumentsDialogMutation } from "#/__generated__/core/SignatureDocumentsDialogMutation.graphql";
import { import {
paginatedPeopleFragment, paginatedPeopleFragment,
paginatedPeopleQuery, paginatedPeopleQuery,
} from "#/hooks/graph/PeopleGraph.ts"; } from "#/hooks/graph/PeopleGraph";
import { useFormWithSchema } from "#/hooks/useFormWithSchema.ts"; import { useFormWithSchema } from "#/hooks/useFormWithSchema";
import { useMutationWithToasts } from "#/hooks/useMutationWithToasts.ts"; import { useMutationWithToasts } from "#/hooks/useMutationWithToasts";
import { useOrganizationId } from "#/hooks/useOrganizationId.ts"; import { useOrganizationId } from "#/hooks/useOrganizationId";
type Props = { type Props = {
documentIds: string[]; documentIds: string[];

View File

@@ -14,12 +14,12 @@ import { graphql, useFragment, useRefetchableFragment } from "react-relay";
import { useOutletContext } from "react-router"; import { useOutletContext } from "react-router";
import type { DocumentDetailPageDocumentFragment$data } from "#/__generated__/core/DocumentDetailPageDocumentFragment.graphql"; import type { DocumentDetailPageDocumentFragment$data } from "#/__generated__/core/DocumentDetailPageDocumentFragment.graphql";
import type { DocumentSignaturesTab_signature$key } from "#/__generated__/core/DocumentSignaturesTab_signature.graphql.ts"; import type { DocumentSignaturesTab_signature$key } from "#/__generated__/core/DocumentSignaturesTab_signature.graphql";
import type { DocumentSignaturesTab_version$key } from "#/__generated__/core/DocumentSignaturesTab_version.graphql.ts"; import type { DocumentSignaturesTab_version$key } from "#/__generated__/core/DocumentSignaturesTab_version.graphql";
import type { DocumentSignaturesTabRefetchQuery } from "#/__generated__/core/DocumentSignaturesTabRefetchQuery.graphql"; import type { DocumentSignaturesTabRefetchQuery } from "#/__generated__/core/DocumentSignaturesTabRefetchQuery.graphql";
import { usePeople } from "#/hooks/graph/PeopleGraph.ts"; import { usePeople } from "#/hooks/graph/PeopleGraph";
import { useMutationWithToasts } from "#/hooks/useMutationWithToasts.ts"; import { useMutationWithToasts } from "#/hooks/useMutationWithToasts";
import { useOrganizationId } from "#/hooks/useOrganizationId.ts"; import { useOrganizationId } from "#/hooks/useOrganizationId";
import type { ItemOf, NodeOf } from "#/types"; import type { ItemOf, NodeOf } from "#/types";
type Version = NodeOf<DocumentDetailPageDocumentFragment$data["versions"]>; type Version = NodeOf<DocumentDetailPageDocumentFragment$data["versions"]>;

View File

@@ -13,8 +13,8 @@ import {
import { Suspense, useEffect } from "react"; import { Suspense, useEffect } from "react";
import { useLazyLoadQuery } from "react-relay"; import { useLazyLoadQuery } from "react-relay";
import type { EvidenceGraphFileQuery } from "#/__generated__/core/EvidenceGraphFileQuery.graphql.ts"; import type { EvidenceGraphFileQuery } from "#/__generated__/core/EvidenceGraphFileQuery.graphql";
import { evidenceFileQuery } from "#/hooks/graph/EvidenceGraph.ts"; import { evidenceFileQuery } from "#/hooks/graph/EvidenceGraph";
type Props = { type Props = {
evidenceId: string; evidenceId: string;

View File

@@ -59,7 +59,7 @@ export const measureRoutes = [
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => () =>
import("#/pages/organizations/measures/tabs/MeasureRisksTab.tsx"), import("#/pages/organizations/measures/tabs/MeasureRisksTab"),
), ),
}, },
{ {
@@ -67,7 +67,7 @@ export const measureRoutes = [
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => () =>
import("#/pages/organizations/measures/tabs/MeasureTasksTab.tsx"), import("#/pages/organizations/measures/tabs/MeasureTasksTab"),
), ),
}, },
{ {
@@ -75,7 +75,7 @@ export const measureRoutes = [
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => () =>
import("#/pages/organizations/measures/tabs/MeasureControlsTab.tsx"), import("#/pages/organizations/measures/tabs/MeasureControlsTab"),
), ),
}, },
{ {
@@ -83,7 +83,7 @@ export const measureRoutes = [
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => () =>
import("#/pages/organizations/measures/tabs/MeasureEvidencesTab.tsx"), import("#/pages/organizations/measures/tabs/MeasureEvidencesTab"),
), ),
}, },
], ],

View File

@@ -9,7 +9,7 @@ import { loadQuery } from "react-relay";
import type { PeopleGraphNodeQuery } from "#/__generated__/core/PeopleGraphNodeQuery.graphql"; import type { PeopleGraphNodeQuery } from "#/__generated__/core/PeopleGraphNodeQuery.graphql";
import type { PeopleGraphPaginatedQuery } from "#/__generated__/core/PeopleGraphPaginatedQuery.graphql"; import type { PeopleGraphPaginatedQuery } from "#/__generated__/core/PeopleGraphPaginatedQuery.graphql";
import { LinkCardSkeleton } from "#/components/skeletons/LinkCardSkeleton"; import { LinkCardSkeleton } from "#/components/skeletons/LinkCardSkeleton";
import { PageSkeleton } from "#/components/skeletons/PageSkeleton.tsx"; import { PageSkeleton } from "#/components/skeletons/PageSkeleton";
import { coreEnvironment } from "#/environments"; import { coreEnvironment } from "#/environments";
import { import {
paginatedPeopleQuery, paginatedPeopleQuery,

View File

@@ -12,7 +12,7 @@ import type { RiskGraphListQuery } from "#/__generated__/core/RiskGraphListQuery
import type { RiskGraphNodeQuery } from "#/__generated__/core/RiskGraphNodeQuery.graphql"; import type { RiskGraphNodeQuery } from "#/__generated__/core/RiskGraphNodeQuery.graphql";
import { LinkCardSkeleton } from "#/components/skeletons/LinkCardSkeleton"; import { LinkCardSkeleton } from "#/components/skeletons/LinkCardSkeleton";
import { PageSkeleton } from "#/components/skeletons/PageSkeleton"; import { PageSkeleton } from "#/components/skeletons/PageSkeleton";
import { RisksPageSkeleton } from "#/components/skeletons/RisksPageSkeleton.tsx"; import { RisksPageSkeleton } from "#/components/skeletons/RisksPageSkeleton";
import { coreEnvironment } from "#/environments"; import { coreEnvironment } from "#/environments";
import { riskNodeQuery, risksQuery } from "#/hooks/graph/RiskGraph"; import { riskNodeQuery, risksQuery } from "#/hooks/graph/RiskGraph";
@@ -67,28 +67,28 @@ export const riskRoutes = [
path: "overview", path: "overview",
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => import("#/pages/organizations/risks/tabs/RiskOverviewTab.tsx"), () => import("#/pages/organizations/risks/tabs/RiskOverviewTab"),
), ),
}, },
{ {
path: "measures", path: "measures",
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => import("#/pages/organizations/risks/tabs/RiskMeasuresTab.tsx"), () => import("#/pages/organizations/risks/tabs/RiskMeasuresTab"),
), ),
}, },
{ {
path: "documents", path: "documents",
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => import("#/pages/organizations/risks/tabs/RiskDocumentsTab.tsx"), () => import("#/pages/organizations/risks/tabs/RiskDocumentsTab"),
), ),
}, },
{ {
path: "controls", path: "controls",
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => import("#/pages/organizations/risks/tabs/RiskControlsTab.tsx"), () => import("#/pages/organizations/risks/tabs/RiskControlsTab"),
), ),
}, },
{ {
@@ -96,7 +96,7 @@ export const riskRoutes = [
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => () =>
import("#/pages/organizations/risks/tabs/RiskObligationsTab.tsx"), import("#/pages/organizations/risks/tabs/RiskObligationsTab"),
), ),
}, },
], ],
@@ -125,7 +125,7 @@ export const riskRoutes = [
path: "overview", path: "overview",
Fallback: LinkCardSkeleton, Fallback: LinkCardSkeleton,
Component: lazy( Component: lazy(
() => import("#/pages/organizations/risks/tabs/RiskOverviewTab.tsx"), () => import("#/pages/organizations/risks/tabs/RiskOverviewTab"),
), ),
}, },
], ],

View File

@@ -1,7 +1,7 @@
import { lazy } from "@probo/react-lazy"; import { lazy } from "@probo/react-lazy";
import type { AppRoute } from "@probo/routes"; import type { AppRoute } from "@probo/routes";
import { PageSkeleton } from "#/components/skeletons/PageSkeleton.tsx"; import { PageSkeleton } from "#/components/skeletons/PageSkeleton";
export const statesOfApplicabilityRoutes = [ export const statesOfApplicabilityRoutes = [
{ {

View File

@@ -9,7 +9,7 @@ import {
IconPlusLarge, IconPlusLarge,
Spinner, Spinner,
} from "@probo/ui"; } from "@probo/ui";
import { IconMinusLarge } from "@probo/ui/src/Atoms/Icons/IconMinusLarge.tsx"; import { IconMinusLarge } from "@probo/ui/src/Atoms/Icons/IconMinusLarge";
import { type ComponentProps, useRef, useState } from "react"; import { type ComponentProps, useRef, useState } from "react";
import { Document, Page, pdfjs } from "react-pdf"; import { Document, Page, pdfjs } from "react-pdf";

View File

@@ -4,11 +4,11 @@ import { Fragment } from "react";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay"; import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { DocumentRow } from "#/components/DocumentRow"; import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader.tsx"; import { RowHeader } from "#/components/RowHeader";
import { Rows } from "#/components/Rows.tsx"; import { Rows } from "#/components/Rows";
import { TrustCenterFileRow } from "#/components/TrustCenterFileRow"; import { TrustCenterFileRow } from "#/components/TrustCenterFileRow";
import { documentTypeLabel } from "#/helpers/documents"; import { documentTypeLabel } from "#/helpers/documents";
import type { TrustGraphCurrentDocumentsQuery } from "#/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql.ts"; import type { TrustGraphCurrentDocumentsQuery } from "#/queries/__generated__/TrustGraphCurrentDocumentsQuery.graphql";
import { currentTrustDocumentsQuery } from "#/queries/TrustGraph"; import { currentTrustDocumentsQuery } from "#/queries/TrustGraph";
type Props = { type Props = {

View File

@@ -13,8 +13,8 @@ import { graphql } from "relay-runtime";
import { AuditRow } from "#/components/AuditRow"; import { AuditRow } from "#/components/AuditRow";
import { DocumentRow } from "#/components/DocumentRow"; import { DocumentRow } from "#/components/DocumentRow";
import { RowHeader } from "#/components/RowHeader.tsx"; import { RowHeader } from "#/components/RowHeader";
import { Rows } from "#/components/Rows.tsx"; import { Rows } from "#/components/Rows";
import { TrustCenterFileRow } from "#/components/TrustCenterFileRow"; import { TrustCenterFileRow } from "#/components/TrustCenterFileRow";
import { VendorRow } from "#/components/VendorRow"; import { VendorRow } from "#/components/VendorRow";
import { documentTypeLabel } from "#/helpers/documents"; import { documentTypeLabel } from "#/helpers/documents";

View File

@@ -2,7 +2,7 @@ import { sprintf } from "@probo/helpers";
import { useTranslate } from "@probo/i18n"; import { useTranslate } from "@probo/i18n";
import { type PreloadedQuery, usePreloadedQuery } from "react-relay"; import { type PreloadedQuery, usePreloadedQuery } from "react-relay";
import { Rows } from "#/components/Rows.tsx"; import { Rows } from "#/components/Rows";
import { VendorRow } from "#/components/VendorRow"; import { VendorRow } from "#/components/VendorRow";
import type { TrustGraphCurrentVendorsQuery } from "#/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql"; import type { TrustGraphCurrentVendorsQuery } from "#/queries/__generated__/TrustGraphCurrentVendorsQuery.graphql";
import { currentTrustVendorsQuery } from "#/queries/TrustGraph"; import { currentTrustVendorsQuery } from "#/queries/TrustGraph";

View File

@@ -18,10 +18,10 @@ import {
currentTrustVendorsQuery, currentTrustVendorsQuery,
} from "#/queries/TrustGraph"; } from "#/queries/TrustGraph";
import { PageError } from "./components/PageError.tsx"; import { PageError } from "./components/PageError";
import { MainSkeleton } from "./components/Skeletons/MainSkeleton.tsx"; import { MainSkeleton } from "./components/Skeletons/MainSkeleton";
import { TabSkeleton } from "./components/Skeletons/TabSkeleton.tsx"; import { TabSkeleton } from "./components/Skeletons/TabSkeleton";
import { consoleEnvironment } from "./providers/RelayProviders.tsx"; import { consoleEnvironment } from "./providers/RelayProviders";
/** /**
* Top level error boundary * Top level error boundary
@@ -35,11 +35,11 @@ function ErrorBoundary() {
const routes = [ const routes = [
{ {
path: "/connect", path: "/connect",
Component: lazy(() => import("./pages/auth/ConnectPageLoader.tsx")), Component: lazy(() => import("./pages/auth/ConnectPageLoader")),
}, },
{ {
path: "/verify-magic-link", path: "/verify-magic-link",
Component: lazy(() => import("./pages/auth/VerifyMagicLinkPage.tsx")), Component: lazy(() => import("./pages/auth/VerifyMagicLinkPage")),
}, },
{ {
path: "/", path: "/",

View File

@@ -8,7 +8,7 @@ import {
import { Card } from "../Card/Card"; import { Card } from "../Card/Card";
import { IconPlusLarge } from "../Icons"; import { IconPlusLarge } from "../Icons";
import { type AsChildProps, Slot } from "../Slot.tsx"; import { type AsChildProps, Slot } from "../Slot";
export function DataTable({ export function DataTable({
children, children,

View File

@@ -3,9 +3,9 @@ import { clsx } from "clsx";
import type { ComponentProps, FC, PropsWithChildren, ReactNode } from "react"; import type { ComponentProps, FC, PropsWithChildren, ReactNode } from "react";
import { tv } from "tailwind-variants"; import { tv } from "tailwind-variants";
import { Button } from "../Button/Button.tsx"; import { Button } from "../Button/Button";
import { IconDotGrid1x3Horizontal } from "../Icons"; import { IconDotGrid1x3Horizontal } from "../Icons";
import type { IconProps } from "../Icons/type.ts"; import type { IconProps } from "../Icons/type";
type Props = PropsWithChildren<{ type Props = PropsWithChildren<{
toggle?: ReactNode; toggle?: ReactNode;

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowBoxLeft({ size = 24, className }: IconProps) { export function IconArrowBoxLeft({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowCornerDownLeft({ size = 24, className }: IconProps) { export function IconArrowCornerDownLeft({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowDown({ size = 24, className }: IconProps) { export function IconArrowDown({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowInbox({ size = 24, className }: IconProps) { export function IconArrowInbox({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowInbox1({ size = 24, className }: IconProps) { export function IconArrowInbox1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowLink({ size = 24, className }: IconProps) { export function IconArrowLink({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconArrowUp({ size = 24, className }: IconProps) { export function IconArrowUp({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconBank({ size = 24, className }: IconProps) { export function IconBank({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconBell2({ size = 24, className }: IconProps) { export function IconBell2({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconBlock({ size = 24, className }: IconProps) { export function IconBlock({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconBlock1({ size = 24, className }: IconProps) { export function IconBlock1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconBook({ size = 24, className }: IconProps) { export function IconBook({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
// https://lucide.dev/icons/box // https://lucide.dev/icons/box
export function IconBox({ size = 24, className }: IconProps) { export function IconBox({ size = 24, className }: IconProps) {

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCalendar1({ size = 24, className }: IconProps) { export function IconCalendar1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCalendar2({ size = 24, className }: IconProps) { export function IconCalendar2({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCheckmark1({ size = 24, className }: IconProps) { export function IconCheckmark1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCheckmark2Small({ size = 24, className }: IconProps) { export function IconCheckmark2Small({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronDown({ size = 24, className }: IconProps) { export function IconChevronDown({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronGrabberVertical({ size = 24, className }: IconProps) { export function IconChevronGrabberVertical({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronLeft({ size = 24, className }: IconProps) { export function IconChevronLeft({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronRight({ size = 24, className }: IconProps) { export function IconChevronRight({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronTriangleDownSmall({ size = 24, className }: IconProps) { export function IconChevronTriangleDownSmall({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconChevronUp({ size = 24, className }: IconProps) { export function IconChevronUp({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleCheck({ size = 24, className }: IconProps) { export function IconCircleCheck({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleCheck1({ size = 24, className }: IconProps) { export function IconCircleCheck1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleInfo({ size = 24, className }: IconProps) { export function IconCircleInfo({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleProgress({ size = 24, className }: IconProps) { export function IconCircleProgress({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleQuestionmark({ size = 24, className }: IconProps) { export function IconCircleQuestionmark({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleQuestionmark1({ size = 24, className }: IconProps) { export function IconCircleQuestionmark1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleQuestionmarkSolid({ size = 24, className }: IconProps) { export function IconCircleQuestionmarkSolid({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCircleX({ size = 24, className }: IconProps) { export function IconCircleX({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconClock({ size = 24, className }: IconProps) { export function IconClock({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCollapse({ size = 24, className }: IconProps) { export function IconCollapse({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconCrossLargeX({ size = 24, className }: IconProps) { export function IconCrossLargeX({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconDotGrid1x3Horizontal({ size = 24, className }: IconProps) { export function IconDotGrid1x3Horizontal({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconExpand({ size = 24, className }: IconProps) { export function IconExpand({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFilter({ size = 24, className }: IconProps) { export function IconFilter({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFire3({ size = 24, className }: IconProps) { export function IconFire3({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFolder2({ size = 24, className }: IconProps) { export function IconFolder2({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFolderUpload({ size = 24, className }: IconProps) { export function IconFolderUpload({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFrame({ size = 24, className }: IconProps) { export function IconFrame({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFrame1({ size = 24, className }: IconProps) { export function IconFrame1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconFrame2({ size = 24, className }: IconProps) { export function IconFrame2({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconGroup1({ size = 24, className }: IconProps) { export function IconGroup1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconGroup11({ size = 24, className }: IconProps) { export function IconGroup11({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconHome({ size = 24, className }: IconProps) { export function IconHome({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconImage({ size = 24, className }: IconProps) { export function IconImage({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconImport2({ size = 24, className }: IconProps) { export function IconImport2({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconInProgress({ size = 24, className }: IconProps) { export function IconInProgress({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconInboxEmpty({ size = 24, className }: IconProps) { export function IconInboxEmpty({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
// https://lucide.dev/icons/key-round // https://lucide.dev/icons/key-round
export function IconKey({ size = 24, className }: IconProps) { export function IconKey({ size = 24, className }: IconProps) {

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconListStack({ size = 24, className }: IconProps) { export function IconListStack({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconLock({ size = 24, className }: IconProps) { export function IconLock({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconMagnifyingGlass({ size = 24, className }: IconProps) { export function IconMagnifyingGlass({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconMail({ size = 24, className }: IconProps) { export function IconMail({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconMedal({ size = 24, className }: IconProps) { export function IconMedal({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconMinusLarge({ size = 16, className }: IconProps) { export function IconMinusLarge({ size = 16, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconNotStarted({ size = 24, className }: IconProps) { export function IconNotStarted({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPageCheck({ size = 24, className }: IconProps) { export function IconPageCheck({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPageCheck1({ size = 24, className }: IconProps) { export function IconPageCheck1({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPageCross({ size = 24, className }: IconProps) { export function IconPageCross({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPageTextLine({ size = 24, className }: IconProps) { export function IconPageTextLine({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPageTextSolid({ size = 24, className }: IconProps) { export function IconPageTextSolid({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPencil({ size = 24, className }: IconProps) { export function IconPencil({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPeopleAdd({ size = 24, className }: IconProps) { export function IconPeopleAdd({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPeopleAdd2Line({ size = 24, className }: IconProps) { export function IconPeopleAdd2Line({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPin({ size = 24, className }: IconProps) { export function IconPin({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPlusLarge({ size = 24, className }: IconProps) { export function IconPlusLarge({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPlusSmall({ size = 24, className }: IconProps) { export function IconPlusSmall({ size = 24, className }: IconProps) {
return ( return (

View File

@@ -1,4 +1,4 @@
import type { IconProps } from "./type.ts"; import type { IconProps } from "./type";
export function IconPriority({ size = 24, className }: IconProps) { export function IconPriority({ size = 24, className }: IconProps) {
return ( return (

Some files were not shown because too many files have changed in this diff Show More