Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: add tooltip provider to onboarding layout

Brad Barbinb179ac097bb2
diff --git a/apps/erp/app/routes/onboarding+/_layout.tsx b/apps/erp/app/routes/onboarding+/_layout.tsx
index 2a5995b9a2..7474e3d4ab 100644
--- a/apps/erp/app/routes/onboarding+/_layout.tsx
+++ b/apps/erp/app/routes/onboarding+/_layout.tsx
@@ -1,6 +1,6 @@
import { CarbonEdition } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
-import { VStack } from "@carbon/react";
+import { TooltipProvider, VStack } from "@carbon/react";
import { getStripeCustomerByCompanyId } from "@carbon/stripe/stripe.server";
import { Edition } from "@carbon/utils";
import type {
@@ -63,11 +63,13 @@ export async function loader({ request }: LoaderFunctionArgs) {
export default function OnboardingLayout() {
return (
- <VStack
- spacing={4}
- className="h-screen w-screen justify-center items-center p-4"
- >
- <Outlet />
- </VStack>
+ <TooltipProvider>
+ <VStack
+ spacing={4}
+ className="h-screen w-screen justify-center items-center p-4"
+ >
+ <Outlet />
+ </VStack>
+ </TooltipProvider>
);
}
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index ac1acaca7f..d85af791f9 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -67554,6 +67554,44 @@ export default {
tags: ["(rpc) sync_create_location_related_records"]
}
},
+ "/rpc/get_direct_ancestors_of_tracked_entities_strict": {
+ post: {
+ parameters: [
+ {
+ in: "body",
+ name: "args",
+ required: true,
+ schema: {
+ properties: {
+ p_tracked_entity_ids: {
+ format: "text[]",
+ items: {
+ type: "string"
+ },
+ type: "array"
+ }
+ },
+ required: ["p_tracked_entity_ids"],
+ type: "object"
+ }
+ },
+ {
+ $ref: "#/parameters/preferParams"
+ }
+ ],
+ produces: [
+ "application/json",
+ "application/vnd.pgrst.object+json;nulls=stripped",
+ "application/vnd.pgrst.object+json"
+ ],
+ responses: {
+ "200": {
+ description: "OK"
+ }
+ },
+ tags: ["(rpc) get_direct_ancestors_of_tracked_entities_strict"]
+ }
+ },
"/rpc/get_supplier_interaction_with_related_records": {
post: {
parameters: [
@@ -69493,6 +69531,44 @@ export default {
tags: ["(rpc) get_quote_methods_by_method_id"]
}
},
+ "/rpc/get_direct_descendants_of_tracked_entities_strict": {
+ post: {
+ parameters: [
+ {
+ in: "body",
+ name: "args",
+ required: true,
+ schema: {
+ properties: {
+ p_tracked_entity_ids: {
+ format: "text[]",
+ items: {
+ type: "string"
+ },
+ type: "array"
+ }
+ },
+ required: ["p_tracked_entity_ids"],
+ type: "object"
+ }
+ },
+ {
+ $ref: "#/parameters/preferParams"
+ }
+ ],
+ produces: [
+ "application/json",
+ "application/vnd.pgrst.object+json;nulls=stripped",
+ "application/vnd.pgrst.object+json"
+ ],
+ responses: {
+ "200": {
+ description: "OK"
+ }
+ },
+ tags: ["(rpc) get_direct_descendants_of_tracked_entities_strict"]
+ }
+ },
"/rpc/get_quote_methods": {
get: {
parameters: [
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 3c714dc374..c78fedc342 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -35436,48 +35436,6 @@ export type Database = {
},
]
}
- searchIndex_YMRLEKuAtGbyVG5HRUD7k9: {
- Row: {
- createdAt: string
- description: string | null
- entityId: string
- entityType: string
- id: number
- link: string
- metadata: Json | null
- searchVector: unknown
- tags: string[] | null
- title: string
- updatedAt: string | null
- }
- Insert: {
- createdAt?: string
- description?: string | null
- entityId: string
- entityType: string
- id?: number
- link: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title: string
- updatedAt?: string | null
- }
- Update: {
- createdAt?: string
- description?: string | null
- entityId?: string
- entityType?: string
- id?: number
- link?: string
- metadata?: Json | null
- searchVector?: unknown
- tags?: string[] | null
- title?: string
- updatedAt?: string | null
- }
- Relationships: []
- }
searchIndexRegistry: {
Row: {
companyId: string
@@ -55071,14 +55029,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["shipmentCountryCode"]
+ columns: ["invoiceCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["invoiceCountryCode"]
+ columns: ["shipmentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 03a56cfe94..c78fedc342 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -59209,6 +59209,22 @@ export type Database = {
Args: { permission: string }
Returns: string[]
}
+ get_direct_ancestors_of_tracked_entities_strict: {
+ Args: { p_tracked_entity_ids: string[] }
+ Returns: {
+ activityAttributes: Json
+ attributes: Json
+ id: string
+ quantity: number
+ readableId: string
+ sourceDocument: string
+ sourceDocumentId: string
+ sourceDocumentReadableId: string
+ sourceEntityId: string
+ status: Database["public"]["Enums"]["trackedEntityStatus"]
+ trackedActivityId: string
+ }[]
+ }
get_direct_ancestors_of_tracked_entity: {
Args: { p_tracked_entity_id: string }
Returns: {
@@ -59239,6 +59255,22 @@ export type Database = {
trackedActivityId: string
}[]
}
+ get_direct_descendants_of_tracked_entities_strict: {
+ Args: { p_tracked_entity_ids: string[] }
+ Returns: {
+ activityAttributes: Json
+ attributes: Json
+ id: string
+ quantity: number
+ readableId: string
+ sourceDocument: string
+ sourceDocumentId: string
+ sourceDocumentReadableId: string
+ sourceEntityId: string
+ status: Database["public"]["Enums"]["trackedEntityStatus"]
+ trackedActivityId: string
+ }[]
+ }
get_direct_descendants_of_tracked_entity: {
Args: { p_tracked_entity_id: string }
Returns: {