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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
refactor: add logging to slack message
Brad Barbin38ddc9cc9d68
diff --git a/.env.example b/.env.exampleindex 71f54842f8..c5c5db836f 100644--- a/.env.example+++ b/.env.example@@ -1,6 +1,8 @@POSTHOG_API_HOST="https://us.posthog.com"POSTHOG_PROJECT_PUBLIC_KEY="********************"+SLACK_BOT_TOKEN="***********************"+SESSION_SECRET="************************"SUPABASE_ANON_PUBLIC="******************"diff --git a/apps/carbon/app/routes/x+/feedback.tsx b/apps/carbon/app/routes/x+/feedback.tsxindex ed7147d9ba..a255266588 100644--- a/apps/carbon/app/routes/x+/feedback.tsx+++ b/apps/carbon/app/routes/x+/feedback.tsx@@ -49,6 +49,7 @@ export async function action({ request }: ActionFunctionArgs) {});}+ console.log("Sending feedback to Slack");slackClient.sendMessage({channel: "#feedback",text: `New feedback submitted`,@@ -80,6 +81,7 @@ export async function action({ request }: ActionFunctionArgs) {},],});+ console.log("Feedback sent to Slack");return json({ success: true, message: "Feedback submitted" });}