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 underline extension to tiptap editor

Brad Barbin70feea4e3546
diff --git a/README.md b/README.md
index e957b9c744..27d7a5286c 100644
--- a/README.md
+++ b/README.md
@@ -47,7 +47,7 @@ Features:
- [x] ERP
- [x] MES
-- [X] QMS
+- [x] QMS
- [x] Custom Fields
- [x] Nested BoM
- [x] Traceability
@@ -274,6 +274,20 @@ For example, to run test command in the `@carbon/react` package you can run:
$ npm run test -w @carbon/react
```
+To restore a production database locally:
+
+1. Download the production database as a .backup file
+2. Rename the `migrations` folder to `_migrations`
+3. Restore the database with the following command:
+
+```bash
+$ npm run db:build # this should error out at the seed step
+$ PGPASSWORD=postgres psql -h localhost -p 54322 -U supabase_admin -d postgres < ~/Downloads/[email protected]
+$ npm run dev
+```
+
+4. Rename the `_migraitons` folder back to `migrations`
+
## API
The API documentation is located in the ERP app at `${ERP}/x/api/js/intro`. It is auto-generated based on changes to the database.
diff --git a/apps/erp/app/modules/quality/ui/useQualitySubmodules.tsx b/apps/erp/app/modules/quality/ui/useQualitySubmodules.tsx
index 6ffadd6f49..aa53ceb194 100644
--- a/apps/erp/app/modules/quality/ui/useQualitySubmodules.tsx
+++ b/apps/erp/app/modules/quality/ui/useQualitySubmodules.tsx
@@ -17,7 +17,7 @@ import { path } from "~/utils/path";
const qualityRoutes: AuthenticatedRouteGroup[] = [
{
- name: "History",
+ name: "Issues",
routes: [
{
name: "Actions",
@@ -56,19 +56,25 @@ const qualityRoutes: AuthenticatedRouteGroup[] = [
],
},
{
- name: "Configure",
+ name: "Documents",
routes: [
- {
- name: "Action Types",
- to: path.to.requiredActions,
- icon: <LuSquareCheck />,
- },
{
name: "Documents",
to: path.to.qualityDocuments,
icon: <LuFileText />,
table: "qualityDocument",
},
+ ],
+ },
+ {
+ name: "Configure",
+ routes: [
+ {
+ name: "Action Types",
+ to: path.to.requiredActions,
+ icon: <LuSquareCheck />,
+ },
+
{
name: "Gauge Types",
to: path.to.gaugeTypes,
diff --git a/packages/react/src/Editor/extensions.ts b/packages/react/src/Editor/extensions.ts
index 2da10ed9e8..e184c890b5 100644
--- a/packages/react/src/Editor/extensions.ts
+++ b/packages/react/src/Editor/extensions.ts
@@ -7,6 +7,7 @@ import {
TaskList,
TiptapImage,
TiptapLink,
+ TiptapUnderline,
UpdatedImage,
UploadImagesPlugin,
} from "@carbon/tiptap";
@@ -228,6 +229,7 @@ export const defaultExtensions = [
taskItem,
horizontalRule,
aiHighlight,
+ TiptapUnderline,
VideoEmbed,
HTMLContent,
Table,