118 Commits

Author SHA1 Message Date
Nawaz Dhandala
043ddebc6c feat: add webhook secret key functionality to workflows and update related components 2026-03-31 12:22:17 +01:00
Nawaz Dhandala
3c8dc1eee1 feat: Add ProfileTable component for displaying profiling data
- Implemented ProfileTable component to visualize profiles with advanced filtering options.
- Integrated telemetry services and attributes loading for dynamic filtering.
- Added error handling and loading states for improved user experience.

feat: Create ProfileUtil for stack frame parsing and formatting

- Introduced ProfileUtil class with methods for frame type color coding and stack frame parsing.
- Added utility functions for formatting profile values based on units.

docs: Add documentation for telemetry profiles integration

- Created comprehensive guide on sending continuous profiling data to OneUptime.
- Included supported profile types, setup instructions, and instrumentation examples.

feat: Implement ProfileAggregationService for flamegraph and function list retrieval

- Developed ProfileAggregationService to aggregate profile samples and generate flamegraphs.
- Added functionality to retrieve top functions based on various metrics.

feat: Define MonitorStepProfileMonitor interface for profile monitoring

- Created MonitorStepProfileMonitor interface and utility for building queries based on monitoring parameters.

test: Add example OTLP profiles payload for testing

- Included example JSON payload for OTLP profiles to assist in testing and integration.
2026-03-27 11:11:33 +00:00
Nawaz Dhandala
4fe8aea655 refactor: improve code readability and comments in IfElse and Condition components 2026-03-25 20:29:24 +00:00
Nawaz Dhandala
923e020e6e feat: enhance condition handling with input type support and value coercion 2026-03-25 20:25:19 +00:00
Nawaz Dhandala
6d15cc8e8b Refactor and clean up Kubernetes view components
- Improved formatting and consistency in various Kubernetes view files, including HPADetail, HPAs, Index, Jobs, Layout, Namespaces, NodeDetail, Nodes, PersistentVolumes, Pods, ServiceMesh, SideMenu, StatefulSets, VPADetail, and VPAs.
- Removed unnecessary line breaks and adjusted indentation for better readability.
- Simplified conditional checks and array methods for clarity.
- Enhanced the overall structure of the code to follow best practices.
2026-03-23 11:24:21 +00:00
Nawaz Dhandala
b10d2f458e fix(security): sanitize markdown HTML output to prevent XSS (GHSA-h5pr-pg74-99m2)
Replace inadequate <script> tag regex with proper sanitization:
- Server-side: override marked's html renderer to escape raw HTML tokens
- Client-side: sanitize preview output with DOMPurify before rendering
2026-03-19 22:16:56 +00:00
Nawaz Dhandala
ad25241d1c feat(OnTriggerBaseModel): improve comments for boolean conversion in select values
style(LogsViewer): format export types for better readability

style(LogsAnalyticsView): clean up function formatting and improve readability

chore: bump version to 10.0.30
2026-03-12 20:38:25 +00:00
Nawaz Dhandala
fca0816d6b feat(OnTriggerBaseModel): convert string "true"/"false" values to booleans in select 2026-03-12 20:27:39 +00:00
Nawaz Dhandala
924a107c5d fix(permissions): update tenantId condition for user global access permission checks 2026-03-08 09:41:04 +00:00
Nawaz Dhandala
acdecfea8d refactor: simplify findIndex logic in Docs feature and improve Markdown config declaration 2026-03-04 21:17:39 +00:00
Nawaz Dhandala
506e64c3a6 feat: add responsive mermaid diagram wrapper and TOC sidebar visibility toggle 2026-03-04 21:16:28 +00:00
Nawaz Dhandala
f4985c876b feat: enhance documentation layout and navigation
- Added breadcrumbs to the documentation content for improved navigation.
- Refined header layout by adjusting the category badge and title positioning.
- Updated the head partial to include JetBrains Mono font and dynamic page titles.
- Enhanced the header with a search button and version indicator.
- Improved navigation structure with icons for each category and collapsible sections.
- Updated pagination to provide a more visually appealing layout with clear previous/next links.
- Introduced callout styles for notes, warnings, tips, and other alerts in markdown rendering.
- Implemented slug generation for headings to enable anchor links.
- Enhanced table rendering for better styling and responsiveness in documentation.
2026-03-04 20:36:45 +00:00
Nawaz Dhandala
ba5647a7f5 feat: add HTML escaping for code snippets in Markdown renderer 2026-02-24 08:19:01 +00:00
Nawaz Dhandala
e6b414a94b feat: enhance project fetching in NewAlerts and NewIncidents components with ListResult type 2026-01-28 15:50:15 +00:00
Nawaz Dhandala
f521091f8e feat: update project filter to use projectId and change filter type to EntityArray in NewAlerts and NewIncidents components 2026-01-28 15:46:08 +00:00
Nawaz Dhandala
3870a9ed08 feat: Add support for Mermaid diagrams in Markdown renderer and update navigation structure 2026-01-14 17:03:17 +00:00
Nawaz Dhandala
04a553eec6 fix(telegram): Enhance error handling by providing additional context for Telegram API errors 2025-12-23 21:39:00 +00:00
Nawaz Dhandala
d2c33f4996 fix(telegram): Simplify error handling for missing Telegram message 2025-12-23 21:27:09 +00:00
Nawaz Dhandala
b2321dd966 feat(telegram): Add Send Message to Telegram component with necessary configurations 2025-12-23 21:24:48 +00:00
Nawaz Dhandala
1076987cc8 feat: Implement SMS template variable handling with plain text conversion for notifications 2025-12-18 21:37:01 +00:00
Nawaz Dhandala
2ec80061c8 feat: add Discord integration with SendMessageToChannel component 2025-12-09 11:36:52 +00:00
Nawaz Dhandala
adc15561b9 feat: enhance SMTP transport configuration by adding flexible secure option handling 2025-11-24 21:04:48 +00:00
Nawaz Dhandala
e212079b4a refactor(database,worker): remove batchSize option and default to LIMIT_MAX
- Remove batchSize field from FindAllBy type.
- Update DatabaseService.findAllBy to stop reading/validating batchSize and use LIMIT_MAX as the batch size.
- Remove per-job batch size constants and batchSize parameters from multiple worker cron jobs (AlertOwners, Incident*, ScheduledMaintenance*, StatusPage*, Announcement, OnCall, Workflow, UserOnCallLog, ServerMonitor, PaymentProvider, etc.).
- Simplify call sites to rely on findAllBy's default batching behavior.
2025-10-28 14:56:38 +00:00
Nawaz Dhandala
bb09dafbcc refactor(database,worker): add paginated findAllBy and migrate jobs to batch fetching
- Add FindAllBy type and implement DatabaseService.findAllBy with batchSize/limit/skip support.
- Add normalizePositiveNumber helper used by findAllBy.
- Add ProjectService.getAllActiveProjects convenience wrapper that uses findAllBy.
- Replace many worker cron jobs' findBy calls with findAllBy, introduce per-job batch size constants, remove LIMIT_MAX imports, and pass batchSize/skip instead of one large limit.
- Convert long-running deletes/hard-deletes to paginated loops (repeat until no more records deleted).
- Adjust various query usages to use LIMIT_PER_PROJECT where appropriate as batchSize.
2025-10-28 14:32:45 +00:00
Nawaz Dhandala
6f1e2234d3 feat(telemetry): stage daily usage and centralize telemetry billing
- Add stageTelemetryUsageForProject to TelemetryUsageBillingService:
  count traces/logs/metrics per telemetry service via AnalyticsQueryHelper,
  estimate bytes using average row size env vars, convert to GB and create/update
  daily usage records (uses day + usageDate for deduplication).
- Update updateUsageBilling to accept usageDate, set createdAt to usageDate and
  query by day instead of createdAt ranges.
- Add helper getAverageRowSizeForProduct and import LIMIT_INFINITY,
  DEFAULT_RETENTION_IN_DAYS, TelemetryServiceService, Span/Log/Metric services,
  DiskSize, AnalyticsQueryHelper and logger.
- Call stageTelemetryUsageForProject from TelemetryMeteredPlan before reporting
  to the billing provider.
- Remove direct billing invocation from FluentIngest worker to decouple ingestion
  from billing staging.
2025-10-23 19:51:11 +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
6d5bc111ba Refactor comments across multiple files to improve clarity and consistency
- Updated comments in Probe/Config.ts to use block comments for proxy configuration.
- Refactored comments in PortMonitor.ts, SyntheticMonitor.ts, and OnlineCheck.ts to block comments for better readability.
- Adjusted comments in ProbeIngest/API/Monitor.ts and ProbeIngest/API/Probe.ts to block comments for clarity.
- Standardized comments in various data migration scripts to block comments for consistency.
- Modified eslint.config.js to enforce multiline comment style as an error.
2025-10-02 11:53:55 +01:00
Simon Larsen
87ddec9e6c refactor: Update API method calls to use object destructuring for parameters 2025-09-19 22:15:02 +01:00
Nawaz Dhandala
413240733e fix: Remove unnecessary blank lines in Markdown and Probe initialization files 2025-09-02 14:17:15 +01:00
Simon Larsen
7afd243992 feat: Remove backticks from inline code rendering in Markdown 2025-09-01 21:19:39 +01:00
Simon Larsen
4f58155719 feat: Enhance inline code rendering by removing backticks from code content 2025-09-01 21:12:30 +01:00
Simon Larsen
553adc4aef feat: Add custom styling for inline code in Markdown renderer 2025-09-01 21:11:37 +01:00
Simon Larsen
f668a626d7 refactor: Simplify code block styling in Markdown renderer 2025-09-01 21:02:19 +01:00
Nawaz Dhandala
b8b9dd859a Refactor migration files for consistency and readability; update BillingService and ProjectService for improved code clarity; enhance Countries interface formatting; standardize string quotes in various components; fix minor formatting issues in Settings and SendAnnouncementCreatedNotification. 2025-08-27 14:50:48 +01:00
Simon Larsen
a11e054291 feat: Add custom link rendering with Tailwind styles and external link handling 2025-08-27 11:19:20 +01:00
Nawaz Dhandala
3db8419349 refactor: Simplify error handling in BlogPostUtil by removing unused error variables 2025-08-19 13:50:35 +01:00
Nawaz Dhandala
dfc324b099 refactor: Improve code formatting and readability in Markdown and BlogPost utilities 2025-08-19 12:58:17 +01:00
Simon Larsen
ab7fc1c244 feat: Enhance Markdown renderer with improved code block styling and add support for horizontal rules, emphasis, and strikethrough 2025-08-19 11:50:48 +01:00
Simon Larsen
3927bea29c feat: Enhance Markdown rendering with improved list, table, and inline code support; update tag display styling for better visual consistency 2025-08-19 11:47:21 +01:00
Nawaz Dhandala
38be6edec3 feat: Improve DNS error handling with user-friendly messages and enhance tests for TXT and CNAME record verification 2025-08-15 16:29:41 +01:00
Simon Larsen
b80dda6d1a feat: Enhance DNS error handling with user-friendly messages and add tests for TXT and CNAME record verification 2025-08-15 16:23:56 +01:00
Nawaz Dhandala
4bd7902afe fix: Refactor ResourceGenerator to improve type annotations and code clarity 2025-08-07 22:05:47 +01:00
Simon Larsen
c4a50e853c feat: Add logging for unauthorized update attempts in ColumnPermissions 2025-08-07 21:29:13 +01:00
Nawaz Dhandala
122b0d6be7 Refactor DynamicToolGenerator tests and utility functions for improved readability and consistency
- Enhanced test cases in DynamicToolGenerator.test.ts for better logging and structure.
- Updated OneUptimeOperation.ts to maintain consistent formatting.
- Refactored DynamicToolGenerator.ts for improved code clarity and organization, including consistent use of commas and spacing.
- Improved sanitization and JSON schema generation methods for better handling of OpenAPI metadata.
- Cleaned up description handling in DynamicToolGenerator to ensure proper formatting.
- Adjusted server.test.ts for consistent quotation marks and improved readability.
2025-06-30 23:27:57 +01:00
Simon Larsen
255149e3d5 feat: Add EqualTo support in QueryUtil for enhanced query functionality 2025-06-30 21:21:06 +01:00
Nawaz Dhandala
cf6ee298cc Refactor and clean up code formatting across multiple files
- Improved code formatting in AnnouncementsTable.tsx for better readability.
- Simplified description formatting in AnnouncementView.tsx.
- Adjusted lazy loading syntax in StatusPagesRoutes.tsx for consistency.
- Enhanced script formatting in MCPServerGenerator.ts for better clarity.
- Streamlined error handling and response parsing in OpenAPIParser.ts.
- Refined resource generation logic in ResourceGenerator.ts for improved maintainability.
- Updated comments and structure in GenerateMCPServer.ts for better understanding.
- General code cleanup and formatting adjustments across various files to adhere to style guidelines.
2025-06-26 13:51:11 +01:00
Simon Larsen
095ad5dbf4 feat: Add computed property support in TableColumnMetadata and update related permissions logic 2025-06-24 13:47:53 +01:00
Simon Larsen
aeb3d93a1f refactor: Update authentication error message to include API key requirement 2025-06-20 21:59:38 +01:00
Simon Larsen
5179107c02 fix: update remediation notes description in Alert model and remove unused Markdown import in IncidentNoteTemplate 2025-06-16 12:38:55 +01:00