Move console to a relay multi project config

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-30 10:37:23 +01:00
committed by Bryan Frimin
parent c1df98cec1
commit 6b2864e160
572 changed files with 6400 additions and 4263 deletions

View File

@@ -3,8 +3,8 @@ import { coreEnvironment } from "/environments";
import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { lazy } from "@probo/react-lazy";
import { assetsQuery, assetNodeQuery } from "../hooks/graph/AssetGraph";
import type { AssetGraphListQuery } from "/hooks/graph/__generated__/AssetGraphListQuery.graphql";
import type { AssetGraphNodeQuery } from "/hooks/graph/__generated__/AssetGraphNodeQuery.graphql";
import type { AssetGraphListQuery } from "/__generated__/core/AssetGraphListQuery.graphql";
import type { AssetGraphNodeQuery } from "/__generated__/core/AssetGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -3,8 +3,8 @@ import { coreEnvironment } from "/environments";
import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { lazy } from "@probo/react-lazy";
import { auditsQuery, auditNodeQuery } from "../hooks/graph/AuditGraph";
import type { AuditGraphListQuery } from "/hooks/graph/__generated__/AuditGraphListQuery.graphql";
import type { AuditGraphNodeQuery } from "/hooks/graph/__generated__/AuditGraphNodeQuery.graphql";
import type { AuditGraphListQuery } from "/__generated__/core/AuditGraphListQuery.graphql";
import type { AuditGraphNodeQuery } from "/__generated__/core/AuditGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -6,8 +6,8 @@ import {
continualImprovementsQuery,
continualImprovementNodeQuery,
} from "/hooks/graph/ContinualImprovementGraph";
import type { ContinualImprovementGraphListQuery } from "/hooks/graph/__generated__/ContinualImprovementGraphListQuery.graphql";
import type { ContinualImprovementGraphNodeQuery } from "/hooks/graph/__generated__/ContinualImprovementGraphNodeQuery.graphql";
import type { ContinualImprovementGraphListQuery } from "/__generated__/core/ContinualImprovementGraphListQuery.graphql";
import type { ContinualImprovementGraphNodeQuery } from "/__generated__/core/ContinualImprovementGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -3,8 +3,8 @@ import { coreEnvironment } from "/environments";
import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { lazy } from "@probo/react-lazy";
import { dataQuery, datumNodeQuery } from "../hooks/graph/DatumGraph";
import type { DatumGraphListQuery } from "/hooks/graph/__generated__/DatumGraphListQuery.graphql";
import type { DatumGraphNodeQuery } from "/hooks/graph/__generated__/DatumGraphNodeQuery.graphql";
import type { DatumGraphListQuery } from "/__generated__/core/DatumGraphListQuery.graphql";
import type { DatumGraphNodeQuery } from "/__generated__/core/DatumGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -12,8 +12,8 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { DocumentGraphListQuery } from "/hooks/graph/__generated__/DocumentGraphListQuery.graphql";
import type { DocumentGraphNodeQuery } from "/hooks/graph/__generated__/DocumentGraphNodeQuery.graphql";
import type { DocumentGraphListQuery } from "/__generated__/core/DocumentGraphListQuery.graphql";
import type { DocumentGraphNodeQuery } from "/__generated__/core/DocumentGraphNodeQuery.graphql";
const documentTabs = (prefix: string) => {
return [

View File

@@ -14,9 +14,9 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { FrameworkGraphListQuery } from "/hooks/graph/__generated__/FrameworkGraphListQuery.graphql";
import type { FrameworkGraphNodeQuery } from "/hooks/graph/__generated__/FrameworkGraphNodeQuery.graphql";
import type { FrameworkGraphControlNodeQuery } from "/hooks/graph/__generated__/FrameworkGraphControlNodeQuery.graphql";
import type { FrameworkGraphListQuery } from "/__generated__/core/FrameworkGraphListQuery.graphql";
import type { FrameworkGraphNodeQuery } from "/__generated__/core/FrameworkGraphNodeQuery.graphql";
import type { FrameworkGraphControlNodeQuery } from "/__generated__/core/FrameworkGraphControlNodeQuery.graphql";
export const frameworkRoutes = [
{

View File

@@ -11,8 +11,8 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { MeasureGraphListQuery } from "/hooks/graph/__generated__/MeasureGraphListQuery.graphql";
import type { MeasureGraphNodeQuery } from "/hooks/graph/__generated__/MeasureGraphNodeQuery.graphql";
import type { MeasureGraphListQuery } from "/__generated__/core/MeasureGraphListQuery.graphql";
import type { MeasureGraphNodeQuery } from "/__generated__/core/MeasureGraphNodeQuery.graphql";
export const measureRoutes = [
{

View File

@@ -7,8 +7,8 @@ import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { redirect, type LoaderFunctionArgs } from "react-router";
import { lazy } from "@probo/react-lazy";
import { LinkCardSkeleton } from "/components/skeletons/LinkCardSkeleton";
import type { MeetingGraphListQuery } from "/hooks/graph/__generated__/MeetingGraphListQuery.graphql";
import type { MeetingGraphNodeQuery } from "/hooks/graph/__generated__/MeetingGraphNodeQuery.graphql";
import type { MeetingGraphListQuery } from "/__generated__/core/MeetingGraphListQuery.graphql";
import type { MeetingGraphNodeQuery } from "/__generated__/core/MeetingGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -6,8 +6,8 @@ import {
nonconformitiesQuery,
nonconformityNodeQuery,
} from "../hooks/graph/NonconformityGraph";
import type { NonconformityGraphListQuery } from "/hooks/graph/__generated__/NonconformityGraphListQuery.graphql";
import type { NonconformityGraphNodeQuery } from "/hooks/graph/__generated__/NonconformityGraphNodeQuery.graphql";
import type { NonconformityGraphListQuery } from "/__generated__/core/NonconformityGraphListQuery.graphql";
import type { NonconformityGraphNodeQuery } from "/__generated__/core/NonconformityGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -6,8 +6,8 @@ import {
obligationsQuery,
obligationNodeQuery,
} from "/hooks/graph/ObligationGraph";
import type { ObligationGraphListQuery } from "/hooks/graph/__generated__/ObligationGraphListQuery.graphql";
import type { ObligationGraphNodeQuery } from "/hooks/graph/__generated__/ObligationGraphNodeQuery.graphql";
import type { ObligationGraphListQuery } from "/__generated__/core/ObligationGraphListQuery.graphql";
import type { ObligationGraphNodeQuery } from "/__generated__/core/ObligationGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -12,8 +12,8 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { PeopleGraphPaginatedQuery } from "/hooks/graph/__generated__/PeopleGraphPaginatedQuery.graphql";
import type { PeopleGraphNodeQuery } from "/hooks/graph/__generated__/PeopleGraphNodeQuery.graphql";
import type { PeopleGraphPaginatedQuery } from "/__generated__/core/PeopleGraphPaginatedQuery.graphql";
import type { PeopleGraphNodeQuery } from "/__generated__/core/PeopleGraphNodeQuery.graphql";
export const peopleRoutes = [
{

View File

@@ -11,8 +11,8 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { ProcessingActivityGraphListQuery } from "/hooks/graph/__generated__/ProcessingActivityGraphListQuery.graphql";
import type { ProcessingActivityGraphNodeQuery } from "/hooks/graph/__generated__/ProcessingActivityGraphNodeQuery.graphql";
import type { ProcessingActivityGraphListQuery } from "/__generated__/core/ProcessingActivityGraphListQuery.graphql";
import type { ProcessingActivityGraphNodeQuery } from "/__generated__/core/ProcessingActivityGraphNodeQuery.graphql";
export const processingActivityRoutes = [
{

View File

@@ -2,34 +2,54 @@ import { loadQuery } from "react-relay";
import { coreEnvironment } from "/environments";
import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { lazy } from "@probo/react-lazy";
import { rightsRequestsQuery, rightsRequestNodeQuery } from "/hooks/graph/RightsRequestGraph";
import type { RightsRequestGraphListQuery } from "/hooks/graph/__generated__/RightsRequestGraphListQuery.graphql";
import type { RightsRequestGraphNodeQuery } from "/hooks/graph/__generated__/RightsRequestGraphNodeQuery.graphql";
import { loaderFromQueryLoader, withQueryRef, type AppRoute } from "@probo/routes";
import {
rightsRequestsQuery,
rightsRequestNodeQuery,
} from "/hooks/graph/RightsRequestGraph";
import type { RightsRequestGraphListQuery } from "/__generated__/core/RightsRequestGraphListQuery.graphql";
import type { RightsRequestGraphNodeQuery } from "/__generated__/core/RightsRequestGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,
type AppRoute,
} from "@probo/routes";
export const rightsRequestRoutes = [
{
path: "rights-requests",
Fallback: PageSkeleton,
loader: loaderFromQueryLoader(({ organizationId }) =>
loadQuery<RightsRequestGraphListQuery>(coreEnvironment, rightsRequestsQuery, {
organizationId,
}),
loadQuery<RightsRequestGraphListQuery>(
coreEnvironment,
rightsRequestsQuery,
{
organizationId,
},
),
),
Component: withQueryRef(
lazy(
() => import("/pages/organizations/rightsRequests/RightsRequestsPage"),
),
),
Component: withQueryRef(lazy(
() => import("/pages/organizations/rightsRequests/RightsRequestsPage")
)),
},
{
path: "rights-requests/:requestId",
Fallback: PageSkeleton,
loader: loaderFromQueryLoader(({ requestId }) =>
loadQuery<RightsRequestGraphNodeQuery>(coreEnvironment, rightsRequestNodeQuery, {
rightsRequestId: requestId!,
}),
loadQuery<RightsRequestGraphNodeQuery>(
coreEnvironment,
rightsRequestNodeQuery,
{
rightsRequestId: requestId!,
},
),
),
Component: withQueryRef(
lazy(
() =>
import("/pages/organizations/rightsRequests/RightsRequestDetailsPage"),
),
),
Component: withQueryRef(lazy(
() => import("/pages/organizations/rightsRequests/RightsRequestDetailsPage")
)),
},
] satisfies AppRoute[];

View File

@@ -7,13 +7,13 @@ import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { redirect } from "react-router";
import { lazy } from "@probo/react-lazy";
import { LinkCardSkeleton } from "/components/skeletons/LinkCardSkeleton";
import type { RiskGraphNodeQuery } from "/hooks/graph/__generated__/RiskGraphNodeQuery.graphql";
import type { RiskGraphNodeQuery } from "/__generated__/core/RiskGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { RiskGraphListQuery } from "/hooks/graph/__generated__/RiskGraphListQuery.graphql";
import type { RiskGraphListQuery } from "/__generated__/core/RiskGraphListQuery.graphql";
export const riskRoutes = [
{

View File

@@ -3,8 +3,8 @@ import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { coreEnvironment } from "/environments";
import { snapshotsQuery, snapshotNodeQuery } from "/hooks/graph/SnapshotGraph";
import { lazy } from "@probo/react-lazy";
import type { SnapshotGraphListQuery } from "/hooks/graph/__generated__/SnapshotGraphListQuery.graphql";
import type { SnapshotGraphNodeQuery } from "/hooks/graph/__generated__/SnapshotGraphNodeQuery.graphql";
import type { SnapshotGraphListQuery } from "/__generated__/core/SnapshotGraphListQuery.graphql";
import type { SnapshotGraphNodeQuery } from "/__generated__/core/SnapshotGraphNodeQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -6,8 +6,8 @@ import {
paginatedStateOfApplicabilityQuery,
stateOfApplicabilityNodeQuery,
} from "/hooks/graph/StateOfApplicabilityGraph";
import type { StateOfApplicabilityGraphPaginatedQuery } from "/hooks/graph/__generated__/StateOfApplicabilityGraphPaginatedQuery.graphql";
import type { StateOfApplicabilityGraphNodeQuery } from "/hooks/graph/__generated__/StateOfApplicabilityGraphNodeQuery.graphql";
import type { StateOfApplicabilityGraphPaginatedQuery } from "/__generated__/core/StateOfApplicabilityGraphPaginatedQuery.graphql";
import type { StateOfApplicabilityGraphNodeQuery } from "/__generated__/core/StateOfApplicabilityGraphNodeQuery.graphql";
import { loaderFromQueryLoader, withQueryRef, type AppRoute } from "@probo/routes";
export const statesOfApplicabilityRoutes = [

View File

@@ -8,7 +8,7 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { TaskGraphQuery } from "/hooks/graph/__generated__/TaskGraphQuery.graphql";
import type { TaskGraphQuery } from "/__generated__/core/TaskGraphQuery.graphql";
export const taskRoutes = [
{
path: "tasks",

View File

@@ -4,7 +4,7 @@ import { PageSkeleton } from "/components/skeletons/PageSkeleton";
import { LinkCardSkeleton } from "/components/skeletons/LinkCardSkeleton";
import { lazy } from "@probo/react-lazy";
import { trustCenterQuery } from "../hooks/graph/TrustCenterGraph";
import type { TrustCenterGraphQuery } from "/hooks/graph/__generated__/TrustCenterGraphQuery.graphql";
import type { TrustCenterGraphQuery } from "/__generated__/core/TrustCenterGraphQuery.graphql";
import {
loaderFromQueryLoader,
withQueryRef,

View File

@@ -9,8 +9,8 @@ import {
withQueryRef,
type AppRoute,
} from "@probo/routes";
import type { VendorGraphListQuery } from "/hooks/graph/__generated__/VendorGraphListQuery.graphql";
import type { VendorGraphNodeQuery } from "/hooks/graph/__generated__/VendorGraphNodeQuery.graphql";
import type { VendorGraphListQuery } from "/__generated__/core/VendorGraphListQuery.graphql";
import type { VendorGraphNodeQuery } from "/__generated__/core/VendorGraphNodeQuery.graphql";
export const vendorRoutes = [
{