34 Commits

Author SHA1 Message Date
Nawaz Dhandala
8101f4a459 feat: add parseBody middleware for handling gzip and protobuf requests in OpenTelemetry routes 2026-04-02 23:46:57 +01:00
Nawaz Dhandala
305fa4a476 Refactor and enhance various components and routes in the Dashboard and MobileApp
- Improved formatting and readability in Kubernetes PodDetail and SideMenu components.
- Added service count fetching and loading/error handling in Logs, Metrics, and Traces pages.
- Updated Exception and Kubernetes routes for better readability.
- Enhanced Postgres migration scripts for KubernetesCluster and KubernetesClusterLabel.
- Minor formatting adjustments in MarkdownViewer and CriticalPath utility.
- Refactored EmptyState, MonitorSummaryView, and hooks in MobileApp for improved clarity.
- Fixed minor issues in MonitorDetailScreen and MonitorsScreen regarding status display.
2026-03-18 14:21:39 +00:00
Nawaz Dhandala
a2ac43baab feat: Add dashboard launch configuration and enhance TelemetryDocumentation with integration method selection and improved styling 2026-03-18 08:36:22 +00:00
Nawaz Dhandala
5602536058 feat(OpenAPI): add pagination parameters 'limit' and 'skip' to API specifications
refactor(LogsViewer): format emptyMessage prop for better readability
refactor(SavedViewsDropdown): simplify className conditional rendering
2026-03-12 19:41:22 +00:00
Nawaz Dhandala
6c7f3b5090 feat(start-server): add protobuf body parser middleware for OTLP ingestion 2026-03-12 19:25:50 +00:00
Nawaz Dhandala
d7e8dc3d92 Refactor code for improved readability and maintainability
- Simplified import statements in PhoneNumber.ts and Config.ts.
- Consolidated async function calls in TwilioCallProvider.ts for clarity.
- Enhanced comment formatting and structure in TwilioCallProvider.ts.
- Reformatted SQL migration code for better readability in MigrationName.ts.
- Updated array syntax in Index.ts for consistency.
- Improved formatting and spacing in IncomingCallPolicyEscalationRuleService.ts.
- Standardized JSX formatting in various components for better readability.
- Enhanced conditional rendering logic in IncomingCallPolicies.tsx and Index.tsx.
- Cleaned up unnecessary whitespace and improved code consistency across multiple files.
2026-01-17 22:21:37 +00:00
Nawaz Dhandala
e0a9ab8cfb Enhance Twilio Call Provider and Nginx Configuration
- Updated TwilioCallProvider to support X-Forwarded-Proto and X-Forwarded-Host headers for improved webhook signature validation when behind proxies.
- Enabled trust proxy in StartServer to ensure correct interpretation of forwarded headers.
- Removed outdated incoming call policy documentation.
- Added Nginx configuration to handle X-Forwarded-Proto and X-Forwarded-Host headers, ensuring proper proxy behavior and preventing crashes when services are unavailable.
2026-01-17 21:18:27 +00:00
Nawaz Dhandala
e21c26f2e0 refactor: clean up code formatting and improve debug logging in Slack actions 2025-12-11 15:38:55 +00:00
Nawaz Dhandala
08c960ba89 feat: enhance Slack request handling by adding raw body support for signature verification 2025-12-11 13:19:37 +00:00
Simon Larsen
3e72b2a9a4 fix(admin): restrict AdminDashboard to master admins and guard index render
Add ensureMasterAdminAccess in AdminDashboard/Serve.ts to decode JWT, validate
isMasterAdmin and return a NotAuthorized response when access is not allowed.
Wire this function into App.init as getVariablesToRenderIndexPage so the admin
frontend is protected.

Also add a res.headersSent guard in StartServer.ts to skip rendering the index
page if a response was already sent, avoiding duplicate responses.
2025-11-04 18:28:10 +00:00
Simon Larsen
5f1f0cde4a fix(env): restrict frontend env vars and use sanitized getFrontendEnvVars in env.js
Add getFrontendEnvVars with an allow-list and allowed prefixes to EnvironmentConfig to avoid exposing the entire process.env to the browser. Update StartServer to use getFrontendEnvVars when rendering /env.js and embed the serialized env object directly.
2025-11-04 16:08:47 +00:00
Nawaz Dhandala
7cad0fab0f refactor: clean up whitespace and improve code formatting in multiple files 2025-10-08 14:20:41 +01:00
Nawaz Dhandala
643303cd7a feat: enhance error handling to include HTTPErrorResponse support 2025-10-08 13:27:26 +01:00
Nawaz Dhandala
379297cd7e fix: streamline async function signatures in API routes for consistency 2025-10-07 21:49:14 +01:00
Nawaz Dhandala
2fbc44d5c3 Refactor API endpoints to include error handling middleware
- Updated multiple API routes to use NextFunction for error handling.
- Wrapped asynchronous route handlers in try-catch blocks to catch and pass errors to the next middleware.
- Ensured consistent error responses across various endpoints, improving maintainability and readability.
- Enhanced the structure of the code by reducing nested try-catch blocks and improving flow control.
2025-10-07 21:46:25 +01:00
Nawaz Dhandala
c6e78a3264 fix: Update Buffer handling to use Uint8Array and ArrayBuffer for improved type safety 2025-10-01 12:51:16 +01:00
Nawaz Dhandala
1c12ad94dd fix: Add type annotations for improved type safety in SCIM and Metrics modules 2025-08-04 22:07:10 +01:00
Nawaz Dhandala
aa09bab7c9 Refactor SCIM migrations and models; update formatting and improve readability
- Added missing comma in AllModelTypes array in Index.ts.
- Refactored MigrationName1754304193228 to improve query formatting and readability.
- Refactored MigrationName1754315774827 for consistency in formatting.
- Updated migration index file to include new migration.
- Standardized string quotes in Queue.ts for consistency.
- Cleaned up SCIMAuthorization.ts by removing unnecessary whitespace and improving log formatting.
- Refactored StartServer.ts to standardize content-type header handling.
- Improved formatting in SCIM.tsx for better readability and consistency.
- Refactored Metrics.ts to standardize queueSize extraction and type checking.
- Enhanced Probe.ts logging for clarity and consistency.
2025-08-04 21:36:11 +01:00
Simon Larsen
49b43593b1 feat: Add middleware to handle SCIM content type before JSON parsing 2025-08-04 17:25:01 +01:00
Simon Larsen
67636da2dd fix: update script references from bundle.js to Index.js in multiple views 2025-06-10 10:13:40 +01:00
Simon Larsen
54c526ffed Refactor import paths in utility files to use relative paths instead of absolute paths. This change enhances module resolution and maintains consistency across the codebase. Updated imports in Execute.ts, Express.ts, Greenlock.ts, JsonToCsv.ts, JsonWebToken.ts, LocalFile.ts, Logger.ts, various Monitor criteria files, Realtime.ts, Response.ts, StartServer.ts, Stream.ts, Telemetry.ts, TwoFactorAuth.ts, VMAPI.ts, VMRunner.ts, and Workspace files. 2025-05-21 13:55:49 +01:00
Simon Larsen
8581864d17 refactor: Clean up code formatting and improve readability across multiple files 2025-04-23 13:18:51 +01:00
Simon Larsen
e9f2f58413 fix: Remove DEBUG environment variable from nodemon exec commands for cleaner execution 2025-04-23 12:40:19 +01:00
Simon Larsen
5c8187121b Refactor StartServer and DropdownButton components for improved readability and consistency; add type annotations for ExpressRequest and ExpressResponse in Serve.ts; streamline EmailSubscribe component by removing redundant code and enhancing clarity. 2025-04-22 14:37:28 +01:00
Simon Larsen
86065c3d46 feat: add SEO support and favicon handling for Status Page 2025-04-22 11:24:40 +01:00
Simon Larsen
5b91fa5f4f fix: update path for rendering index.ejs in StartServer 2025-04-18 16:19:49 +01:00
Simon Larsen
47a9de0dd3 Refactor and enhance OnCallDutyPolicy functionality
- Updated ServiceHandler to correctly handle Google Tag Manager enabling.
- Cleaned up whitespace in Serve.ts for better readability.
- Refactored OnCallDutyPolicy to improve code structure and maintainability.
- Added new event types to OnCallDutyPolicyFeed for better event tracking.
- Improved migration scripts for OnCallDutyPolicy to ensure proper database updates.
- Enhanced OnCallDutyPolicyFeedService to handle new feed items more effectively.
- Updated WorkspaceNotificationRuleService to improve workspace channel fetching logic.
- Cleaned up various files for consistent formatting and readability.
- Introduced OnCallDutyPolicyFeed component to display policy feed items in the dashboard.
- Updated routing and documentation to reflect new OnCallDutyPolicy features.
2025-04-16 13:39:25 +01:00
Simon Larsen
d0c365a83b feat: add Google Tag Manager support across multiple dashboards and update dependencies
- Integrated Google Tag Manager into AdminDashboard, Dashboard, and StatusPage EJS templates.
- Updated package.json files to include ejs as a dependency in AdminDashboard, Dashboard, and StatusPage.
- Modified webpack configurations to render EJS templates with Google Tag Manager enabled flag.
- Updated package-lock.json files to reflect changes in dependencies and versions.
- Enhanced Head.ejs and head-basic.ejs to conditionally include Google Tag Manager script.
2025-04-15 17:38:01 +01:00
Simon Larsen
a4463d6dc4 Refactor: Update Serve.ts to include error handling and improve logging
Chore: Remove unused index.html files from Accounts, AdminDashboard, Dashboard, and StatusPage

Feature: Implement index.ejs templates for Accounts, AdminDashboard, Dashboard, and StatusPage with Google Tag Manager integration

Fix: Modify StartServer.ts to render index.ejs instead of index.html and pass enableGoogleTagManager flag
2025-04-15 17:17:04 +01:00
Simon Larsen
1837f6b6f6 refactor: clean up code formatting and improve readability in Slack authorization and integration components 2025-03-07 13:23:58 +00:00
Simon Larsen
764c9b4e0e refactor: enhance Slack request authorization logic and add raw body middleware for form data 2025-03-07 13:22:56 +00:00
Simon Larsen
600a5eafe3 fix: update SlackAuthorization middleware to use req.body instead of req.rawBody 2025-02-04 17:54:53 +00:00
Simon Larsen
9b07bf7a08 feat: implement Slack API integration with authorization and event handling 2025-02-04 17:53:59 +00:00
Simon Larsen
dea6c55365 refactor: Update import statements for CommonUI to use Common/UI 2024-08-07 15:50:32 -06:00