From 0c020e8a4883b46870ce923a032413d62696b3cf Mon Sep 17 00:00:00 2001 From: Aman shrivastab Date: Sun, 13 Sep 2026 02:53:41 +0530 Subject: [PATCH 1/2] Add integration readiness status indicators (#4) - Add GET /api/settings/status endpoint (booleans only, no secrets exposed) - Add dashboard Integration Readiness card with configured/not-configured badges - Link missing integrations to their settings tab - Add defensive error handling in aiService.js for invalid settings.json - Add tests/integration-status.test.js --- data/settings.json | 6 +++--- package-lock.json | 3 --- package.json | 2 +- public/index.html | 4 ++++ public/js/app.js | 36 ++++++++++++++++++++++++++++++++ routes/settings.js | 30 +++++++++++++++++++++++++- services/aiService.js | 11 +++++----- tests/integration-status.test.js | 22 +++++++++++++++++++ 8 files changed, 101 insertions(+), 13 deletions(-) create mode 100644 tests/integration-status.test.js diff --git a/data/settings.json b/data/settings.json index 42a07aa..c653770 100644 --- a/data/settings.json +++ b/data/settings.json @@ -5,11 +5,11 @@ "webshareApiKey": "" }, "smtp": { - "host": "", + "host": "smtp.gmail.com", "port": 465, "secure": false, - "user": "", - "pass": "", + "user": "test@gmail.com", + "pass": "test123", "enabled": true }, "twilio": { diff --git a/package-lock.json b/package-lock.json index 0c14cdb..b18639c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,9 +26,6 @@ "ws": "^8.14.2", "xlsx": "^0.18.5" }, - "bin": { - "data-extractor-pro": "server.js" - }, "engines": { "node": ">=18.0.0" } diff --git a/package.json b/package.json index ebeebe2..1e51c34 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "start": "node server.js", "dev": "node server.js", "deploy": "npm install && npm start", - "test": "node --test tests/frontend-integrity.test.js tests/browser-executable.test.js", + "test": "node --test tests/frontend-integrity.test.js tests/browser-executable.test.js tests/integration-status.test.js", "capture:readme": "node scripts/capture-readme-screenshot.js" }, "keywords": [ diff --git a/public/index.html b/public/index.html index daddbcf..74e808e 100644 --- a/public/index.html +++ b/public/index.html @@ -98,6 +98,10 @@
+
+

Integration Readiness

+
+