Commit Graph

1321 Commits

Author SHA1 Message Date
Florian Kostenzer 048518f2a8 test: cover tool.ts validation and string helpers 2026-07-13 22:29:55 +02:00
Florian Kostenzer 180c963b67 test: cover tool.ts uptime math (ParseUptime, formulas, UptimeCalculator) 2026-07-13 22:24:26 +02:00
Florian Kostenzer fca7624252 test: add Vitest server project with tool.ts timestamp tests 2026-07-13 22:18:03 +02:00
Florian Kostenzer 060d8d9c70 chore: enforce LF line endings via .gitattributes, ignore .idea and .superpowers
Shell scripts checked out with CRLF on Windows (core.autocrlf=true) broke
the Docker entrypoint at container start. Force LF for all text files at
the git layer, matching the existing .editorconfig and Prettier settings.
2026-07-13 20:51:00 +02:00
github-actions[bot] e5b745ebbe chore(release): bump version to 4.1.2 v4.1.2 2026-07-13 05:31:55 +00:00
Raj Nandan Sharma ce17afc2cb Merge pull request #784 from rajnandan1/release/4.1.2
Create changelog for version 4.1.2 with new features, improvements, a…
2026-07-13 11:01:14 +05:30
Raj Nandan Sharma fd1f21cad4 Create changelog for version 4.1.2 with new features, improvements, and bug fixes 2026-07-13 11:00:40 +05:30
Raj Nandan Sharma 6c47ba4d9a Merge pull request #780 from garadar/feature-follow-redirects
Handle follow rediretc or not
2026-07-13 10:53:06 +05:30
Raj Nandan Sharma e61c61ccc7 Merge pull request #783 from lokiee0/feature/reactive-chart-id
Refactor chartId to use $derived for reactive updates
2026-07-13 10:50:31 +05:30
Logesh K 7c297fce41 Refactor chartId to use $derived for reactive updates 2026-07-12 19:02:35 +05:30
Raj Nandan Sharma 0412dd91fd Merge pull request #782 from lokiee0/fix/781-favicon-path
Fix favicon resolution for KENER_BASE_PATH
2026-07-11 23:35:13 +05:30
lokiee0 4e593ec86d Guard favicon resolution when favicon is undefined 2026-07-11 12:34:24 +05:30
lokiee0 0f171fb8e6 Fix favicon resolution for KENER_BASE_PATH 2026-07-11 02:24:07 +05:30
alberta 86490909ec fixe max and step value 2026-07-10 11:46:37 +02:00
alberta 329cbccf75 Handle follow rediretc or not 2026-07-09 16:09:05 +02:00
Raj Nandan Sharma 10fb002a81 Merge pull request #779 from phinguyen/fix/vietnamese-translation
fix: Vietnamese translation
2026-07-09 14:29:17 +05:30
Phi ND 6292fe05ae Fix Vietnamese translation for Unknown impact 2026-07-09 15:20:38 +07:00
Phi Nguyen 88c6d3f76e Update src/lib/locales/vi.json
Agreed. ĐANG XÁC MINH is closer to “verifying/confirming” and can imply that the cause is already being checked. In this incident-management context, INVESTIGATING refers to the earlier phase where the team is still looking into the issue, so ĐANG ĐIỀU TRA is more accurate and clearer for Vietnamese users.

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-07-09 15:12:35 +07:00
Phi ND 70d4578a87 fix: Vietnamese translation 2026-07-09 15:03:34 +07:00
Raj Nandan Sharma ea07851b9d Merge pull request #775 from rajnandan1/fix/774
fix: notify subscribers when incident comments are posted
2026-07-07 23:06:11 +05:30
Raj Nandan Sharma 7c35d0ce66 Merge branch 'main' into fix/774 2026-07-07 23:05:57 +05:30
Raj Nandan Sharma e7a5b1df39 fix: address review comments on incident comment notifications
- Import GetAllSiteData directly from siteDataController instead of the
  controller barrel, which re-exports incidentController and creates a
  circular import (risk of partially-initialized modules at runtime).
- Pass a stable per-comment deduplication id to subscriberQueue.push so a
  retried/double push notifies once; without it the queue falls back to a
  Date.now()-suffixed id that never deduplicates.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 22:53:58 +05:30
Raj Nandan Sharma 864896c416 Merge pull request #777 from TTurletti/fix/theme-not-respected
fix: pass defaultMode to ModeWatcher so site theme is respected
2026-07-06 22:31:06 +05:30
TTurletti 2d330b82de fix: pass defaultMode to ModeWatcher so site theme is respected on first visit 2026-07-06 13:42:53 +02:00
Raj Nandan Sharma f2f58e6b87 fix: notify subscribers when incident comments are posted
Manually created/updated incidents never reached the subscriber
notification workflow (#774): only alertingQueue pushed to
subscriberQueue, so dashboard and API incidents stayed silent.

Make AddIncidentComment the single notification choke point: posting a
comment on an INCIDENT-type incident notifies "incidents" subscribers,
regardless of source (alert, dashboard, or API). Remove the two bespoke
pushes in alertingQueue — alert-driven incidents now notify through the
same path via their auto-created comments, instead of twice.

The dedup id is now the comment id (previously the incident id with a
Date.now() suffix, which never deduplicated anything). Alert-created
incident emails now carry the incident state (INVESTIGATING) instead of
the alert status (TRIGGERED) in the subject; body content is unchanged.

Also drop the dead commented-out queueController blocks left from the
old notification system.

Fixes #774

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-06 11:17:21 +05:30
Raj Nandan Sharma c155a1b637 Merge pull request #772 from phatlet/feature/enhance-grpc-dns-monitoring
Enhance gRPC and DNS monitors with TLS options
2026-06-30 13:38:22 +05:30
phatlet c92c9ec273 fix: use rejectUnauthorized and checkServerIdentity for gRPC insecure TLS 2026-06-29 15:20:04 +07:00
phatlet 4470346e23 fix: address review feedback for gRPC insecure TLS and DNS-over-TLS 2026-06-29 15:07:32 +07:00
phatlet 29fcd22e20 feat: enhance grpc, dns monitoring 2026-06-29 14:51:34 +07:00
Raj Nandan Sharma ef46836c5b Merge pull request #770 from jhermesn/feat/external-url-api-support
feat(api): expose external_url in monitors POST and PATCH endpoints
2026-06-24 22:31:06 +05:30
Jorge Hermes 5f01558f7c fix(api): add external_url to Monitor response schema 2026-06-24 10:17:42 -03:00
Jorge Hermes 66350b8268 fix(api): make external_url nullable in CreateMonitorRequest schema 2026-06-24 09:25:16 -03:00
Jorge Hermes 1889f86e01 feat(api): expose external_url in monitors POST and PATCH endpoints
The field was already stored in the DB, mapped through the controller,
and present on MonitorRecordTyped — but missing from CreateMonitorRequest
and UpdateMonitorRequest, so the API silently dropped it.
2026-06-24 09:19:22 -03:00
Raj Nandan Sharma 6764b470a9 Merge pull request #766 from CrazyComputer2008/Fix-Chinese-Translation
Fix Chinese Translation
2026-06-21 19:02:53 +05:30
Crazy Computer 9fc16187ca Add Traditional Chinese (Macau) locale file 2026-06-21 12:22:34 +08:00
Crazy Computer 32c36bfc52 Add Traditional Chinese (Hong Kong) localization 2026-06-21 12:20:58 +08:00
Crazy Computer 9ad4ca50fb Update Traditional Chinese translations in zh-TW.json 2026-06-21 12:17:54 +08:00
Crazy Computer 2aa83b01c2 Update Chinese translations in zh-CN.json 2026-06-21 12:14:00 +08:00
github-actions[bot] a25d823db8 chore(release): bump version to 4.1.1 v4.1.1 2026-06-19 17:54:04 +00:00
Raj Nandan Sharma c43b4ef863 chore(docs): include v4.1.1 changelog with new features and improvements 2026-06-19 23:23:22 +05:30
Raj Nandan Sharma a9e06ae9f7 Merge pull request #765 from rajnandan1/implement/665
Implement/665
2026-06-19 22:39:38 +05:30
Raj Nandan Sharma a925791671 refactor(layout): update main class for embed and status pages 2026-06-19 22:34:03 +05:30
Raj Nandan Sharma ba1d0079de address PR #765 review comments
- layoutController/site-configurations: use strict boolean check instead of
  Boolean() coercion for showInlineEvents so persisted "false" strings don't
  flip the toggle
- (kener)/+page.svelte: collapse confusing triple negation !!! to single !
- NotificationsList: add aria-label/title to the icon-only events button
  (+ "Open events page" en locale key)
- move NotificationEvent into shared $lib/types/notifications so client code
  no longer imports from the server dashboardController; controller re-exports
  it for backwards compatibility
- [page_path] and monitor pages: pass hideNotificationsPopover={showInlineEvents}
  to ThemePlus so inline and popover event surfaces stay mutually exclusive

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 22:28:22 +05:30
Raj Nandan Sharma 3503e73f56 ensure newline at end of file in notifications-client.ts 2026-06-19 11:24:09 +05:30
Raj Nandan Sharma 5021e01018 implement event display settings and notifications list component
implements #665
2026-06-19 11:23:57 +05:30
Raj Nandan Sharma 95c341fc35 Merge pull request #764 from rajnandan1/fix/db-pool-web-worker-split
fix(database): isolate web and worker connection pools
2026-06-18 17:00:15 +05:30
Raj Nandan Sharma e69fcdfd71 fix(database): isolate web and worker connection pools
GET / was throwing KnexTimeoutError ("Timeout acquiring a connection")
in production. Root cause was the connection pool, not the database:
the single process (SvelteKit + cron scheduler + BullMQ workers) shared
one pool capped at 10, while one GET / fans out ~6 queries. A couple of
concurrent page loads, or a per-minute monitor burst overlapping a load,
exceeded 10 and queued acquires blew past the 15s timeout. Postgres
itself had 97 free slots the whole time and no leak.

Split into two pools so background work can't starve page loads:
- web pool (DATABASE_POOL_MAX, default 10) serves HTTP requests
- worker pool (DATABASE_WORKER_POOL_MAX, default 5) serves background jobs

Routing is by execution context via AsyncLocalStorage: q.createWorker
(the single chokepoint all workers/schedulers flow through) runs each
processor inside a worker-pool context, and BaseRepository.knex resolves
the pool from that context, defaulting to the web pool. This keeps shared
controllers correct whether they run in a request or a job. SQLite has no
real pool and reuses a single connection, so the split is a no-op there.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:39:10 +05:30
Raj Nandan Sharma acf11459ed Merge pull request #763 from kensac/perf/monitoring-data-covering-index
perf: add covering index for monitor-bars status aggregation
2026-06-17 20:53:42 +05:30
Kanishk Sachdev 9ad315c3c7 perf: add covering index for monitor-bars status aggregation 2026-06-17 03:15:57 -04:00
Raj Nandan Sharma caf7427b04 Merge pull request #761 from rajnandan1/do/incident-start
refactor: update incident table to include start date and improve dat…
2026-06-16 09:17:01 +05:30