LeC-D
13a7ae82e3
fix(notifications): remove type casts with exhaustive type narrowing in useNotificationForm
...
Replace the loose NotificationDefaults intermediate type and 'as NotificationFormData'
cast with an exhaustive buildDefaults() helper that narrows each branch of the
discriminated union explicitly. TypeScript now infers the return type correctly from
the discriminated union without any casts, satisfying strong typing for all channels
(email, slack, discord, webhook, pager_duty, teams, matrix, telegram).
2026-03-26 14:07:50 -04:00
Leandre Chamberland-Dozois
4c94a7c21e
fix: resolve TypeScript build errors in notification form types
2026-03-25 19:13:37 -04:00
LeC-D
40968c370b
refactor(notifications): hoist default values, remove else block in useNotificationForm
...
Per @ajhollid review: define defaults up-front with a NotificationDefaults type
and eliminate the trailing else branch entirely. The if/else-if blocks only
override when the type is matrix or telegram.
2026-03-25 18:06:26 -04:00
LeC-D and Claude Opus 4.6
a864bc0c05
fix: run format and fix build errors
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-25 16:52:48 -04:00
LeC-D
fe242b1977
fix: replace nested ternaries and remove type casts per review
...
- useNotificationForm: replace nested ternary with if/else if/else block
- TelegramProvider: type error as unknown and access properties safely
via instanceof checks instead of casting to HTTPError
2026-03-25 14:03:49 -04:00
Léo
eacbb227c3
feat(notifications): add Telegram notification channel ( #2753 )
...
Add Telegram as a new notification type, allowing users to receive
monitor alerts via a Telegram bot.
Configuration requires:
- Bot token (obtained from @BotFather)
- Chat ID (user, group, or channel)
Changes:
- TelegramProvider: sends HTML-formatted messages via Telegram Bot API
- NotificationsService: route telegram type to TelegramProvider
- Notification model/types: add 'telegram' to NotificationChannel enum
- Server validation: telegram schema (accessToken + address/chat_id)
- Client Types/Validation: telegram schema with accessToken + address
- useNotificationForm: handle telegram defaults
- Notifications create page: render Telegram config UI
- en.json: add telegram i18n keys
2026-03-24 10:15:46 -04:00
mannilakash
894b6a7a7d
feat: status-page infra section FE
2026-03-16 17:46:13 -04:00
Alex Holliday
d3605b0149
update client validation/pages
2026-03-12 09:54:08 -07:00
Br0wnHammer
db5441d0e2
Feat: Frontend - update form hook and create/edit page
2026-03-07 01:01:49 +05:30
Alex Holliday
308a439790
apply logger
2026-02-28 01:55:41 +00:00
Alexander Holliday
ecef55f1b3
Merge pull request #3341 from bluewave-labs/fix/global-thresholds
...
Fix/global thresholds
2026-02-26 11:36:21 -08:00
Alex Holliday
85edea713a
replace textfields with sliders
2026-02-26 19:07:43 +00:00
Alex Holliday
dfeba1e4fb
resolve conflicts
2026-02-26 17:32:11 +00:00
Alex Holliday
885acf6fe6
all continents in table
2026-02-25 19:34:24 +00:00
Alex Holliday
7d3abb3f98
map fields
2026-02-24 17:18:22 +00:00
Alex Holliday
858aecce62
fe config box
2026-02-23 18:08:01 +00:00
Br0wnHammer
13aa600852
Feat: Add gRPC to CreateMonitor UI
2026-02-23 10:25:00 +05:30
Alex Holliday
f2779160a1
port
2026-02-19 17:55:55 +00:00
Alex Holliday
8cbde4a705
initial commit
2026-02-18 18:47:58 +00:00
Alex Holliday
7cfbc85d9b
fix logical errors in settings form
2026-02-18 18:06:00 +00:00
Alexander Holliday
dab465b8c5
Merge pull request #3288 from bluewave-labs/settings-zod-schema
...
Settings zod schema
2026-02-18 09:32:28 -08:00
karenvicent
93c15588a4
implement schema zod and validation on settings
2026-02-16 00:09:08 -05:00
Alex Holliday
2fb6cb0b6f
remove alertThreshold
2026-02-14 21:29:30 +00:00
karenvicent
f59d8bf1bf
Merge branch 'develop' into settings-zod-schema
2026-02-12 12:18:05 -05:00
karenvicent
0941f3ce1a
zod schema and hook
2026-02-12 12:13:36 -05:00
Alex Holliday
d1d96bd2ba
sidebar
2026-02-10 19:21:57 +00:00
Alex Holliday
14ba3016f6
Merge branch 'develop' into fix/cleanup
2026-02-10 17:06:29 +00:00
Alexander Holliday
ac98f783e3
Merge pull request #3257 from bluewave-labs/fix/search-input-debounce
...
fix: changes for debounce search in uptime/infrastructure pages
2026-02-10 07:18:46 -08:00
mannilakash
98943ad461
fix: removing JSdoc for usedebounce and comments
2026-02-10 08:10:44 -05:00
Alex Holliday
a20fdb423a
remove unused
2026-02-09 23:51:18 +00:00
Alex Holliday
34762ef475
remove network servcie
2026-02-09 23:37:07 +00:00
Alex Holliday
b817a16459
remove settings hooks
2026-02-09 23:28:46 +00:00
Alex Holliday
2091d8dcd7
remove monitorHooks
2026-02-09 23:16:14 +00:00
Alex Holliday
3d1bd94279
remove unused hooks
2026-02-09 23:02:26 +00:00
Alex Holliday
28affa1cd1
submit
2026-02-09 21:56:28 +00:00
Alex Holliday
ece6970fa7
hook up role
2026-02-09 20:38:04 +00:00
Alex Holliday
264e6f7d1f
form submission
2026-02-09 18:29:36 +00:00
Alex Holliday
d69cec9730
dialog
2026-02-09 17:52:14 +00:00
mannilakash
c670653ab3
fix: format fix
2026-02-09 12:40:44 -05:00
mannilakash
e75606aad3
refactor: debounce.jsx to typescript and moving it to Hooks
2026-02-09 12:38:39 -05:00
Alex Holliday
b6004241e7
validation
2026-02-07 20:54:17 +00:00
Alex Holliday
1808db5cd7
form
2026-02-07 01:04:20 +00:00
Alex Holliday
5152336591
fix validation, derrive teamID and Roles from tokens
2026-02-06 23:31:07 +00:00
Alex Holliday
78b920aaf6
missing fields
2026-02-06 23:07:17 +00:00
Alex Holliday
2d84fae470
form
2026-02-06 22:53:41 +00:00
Alex Holliday
6a0f3426b3
recovery form, fix email service
2026-02-06 22:14:42 +00:00
Alex Holliday
ea68e660fc
login UI
2026-02-06 20:53:48 +00:00
Alex Holliday
f0b152fc8f
duration
2026-02-04 22:55:54 +00:00
Alex Holliday
f0b2292f0a
general
2026-02-04 21:45:39 +00:00
Alex Holliday
0a408f8cfd
sorting
2026-02-03 22:07:59 +00:00