Compare commits

...
Author SHA1 Message Date
gorkem-bwl d3947681a2 fix: Add missing translation keys for container monitoring
Added keys: containers, noContainersAvailable, noContainerSelected,
noContainerStatsAvailable, container, diskIO, networkIO, diskRead,
diskWrite, networkIn, networkOut
2026-01-16 20:18:38 -05:00
gorkem-bwl 01084108b0 fix: Include enableProxmoxContainers in monitor update payload
The useUpdateMonitor hook was missing enableProxmoxContainers from the
hardware-specific fields sent to the API, causing the setting to not
persist when editing a monitor.
2026-01-16 19:14:29 -05:00
gorkem-bwl e9da602af6 feat: Add Proxmox LXC container monitoring support
## Summary
Add support for monitoring Proxmox LXC containers through the Capture agent's
/api/v1/metrics/proxmox endpoint. This feature is opt-in via a new setting
in the infrastructure monitor configuration.

## Backend Changes
- Add enableProxmoxContainers field to Monitor schema and types
- Update networkService to conditionally fetch Proxmox metrics
- Handle HTTP 207 multi-status responses and merge errors
- Add containers field to Check schema for storing container data
- Update validation schemas for the new setting

## Frontend Changes
- Add ContainerStats component with charts and stat boxes
- Add Containers tab to infrastructure monitor details (conditional)
- Add enableProxmoxContainers switch in monitor create/edit form
- Fix chart colors for disk I/O and network I/O to be distinct
- Add dotColor2 prop to InfrastructureTooltip for multi-series charts
- Add translation keys to all 16 locale files

## How It Works
1. User enables "Proxmox container monitoring" in monitor settings
2. Checkmate appends /proxmox to the metrics URL when fetching
3. Container data is displayed in a dedicated tab with:
   - CPU, memory, disk, swap, and uptime stat boxes
   - Interactive charts for CPU, memory, disk I/O, network I/O
4. Errors from Capture are merged and logged appropriately
2026-01-16 19:07:49 -05:00
Alexander Holliday 173a4e17d2 Merge pull request #3138 from bluewave-labs/fix/password-special-chars
fix: remove <> from allowed password characters and display allowed special chars
2026-01-16 13:17:12 -08:00
Alexander Holliday 70b197675e Merge pull request #3146 from bluewave-labs/fix/pagespeed-snapshot
remove pagespeed from snapshot array, full check list required
2026-01-16 13:16:37 -08:00
Alex Holliday 11dcccc085 remove pagespeed from snapshot array, full check list required 2026-01-16 21:16:05 +00:00
Alexander Holliday e3e08da259 Merge pull request #3145 from bluewave-labs/fix/pagespeed-stats
fix: stats fixes
2026-01-16 13:06:49 -08:00
Alex Holliday 6447c315ce stats fixes 2026-01-16 21:04:41 +00:00
Gorkem Cetin (BWL) f1a6afb860 Merge pull request #3133 from bluewave-labs/fix/ui-improvements-logs-incidents
Improve UI consistency for Logs and Incidents pages
2026-01-16 14:47:21 -05:00
gorkem-bwl 5c52a208b9 Fix build errors and formatting
- Replace CheckIcon SVG import with Lucide Icon component in
  LatestIncidentsPanel/index.jsx
- Format IncidentItem.jsx and StatisticsPanel.jsx with Prettier
2026-01-16 14:44:28 -05:00
gorkem-bwl 4fdc0bde5c Merge develop into fix/ui-improvements-logs-incidents
Resolve conflicts in IncidentItem.jsx and StatisticsPanel.jsx by
keeping the UI improvements from this branch while adopting the
new Lucide Icon component from develop (replacing old SVG imports).
2026-01-16 14:42:29 -05:00
Alexander Holliday 3d4ebe9588 Merge pull request #3143 from bluewave-labs/fix/responsive-layout-overflow
Fix horizontal overflow causing white space on narrow screens
2026-01-16 11:18:02 -08:00
gorkem-bwl 62ea7b0e5b Fix horizontal overflow causing white space on narrow screens
Add overflow-x: hidden and width: 100% to .home-layout to prevent
horizontal scrollbar. Add min-width: 0 to .home-content-wrapper to
allow flexbox child to shrink below content size at narrow widths.
2026-01-16 14:09:37 -05:00
Alexander Holliday 8747c38f40 Merge pull request #3142 from bluewave-labs/fix/infra-config
infra fix
2026-01-16 10:38:57 -08:00
Alex Holliday d633fc5ccb infra fix 2026-01-16 18:37:14 +00:00
Alexander Holliday 0d7a35367f Merge pull request #3141 from bluewave-labs/feat/job-queue-ts
feat/job queue ts
2026-01-16 10:25:40 -08:00
Alex Holliday af141ec772 build fix 2026-01-16 18:25:28 +00:00
Alex Holliday 5784fec3d1 format 2026-01-16 18:17:55 +00:00
Alex Holliday 95cd33ac06 queue and buffer refactor 2026-01-16 18:11:04 +00:00
Gorkem Cetin (BWL) 2a591ee503 Merge pull request #3139 from bluewave-labs/feat/lucide-icon-migration
Migrate icons from custom SVGs and MUI to Lucide React
2026-01-16 12:50:21 -05:00
gorkem-bwl f5aa24d77e fix: rename Image import to ImageIcon to avoid conflicts 2026-01-16 07:34:03 -05:00
gorkem-bwl 7874439e4c fix: address PR review feedback for icon migration
- Use AlertCircle for error and AlertTriangle for warning icons
- Use Icon color prop instead of CSS fill for Lucide stroke-based icons
- Replace wildcard import with explicit named imports for tree-shaking
- Replace sx prop with style prop on Icon components
- Add Trash2 to Icon component imports
2026-01-16 07:31:23 -05:00
gorkem-bwl 7140d436a5 style: apply Prettier formatting 2026-01-15 23:39:26 -05:00
gorkem-bwl ba0c89fc6c feat: migrate icons from custom SVGs and MUI to Lucide React
Replace custom SVG icons and @mui/icons-material with lucide-react for consistent,
lightweight icon management across the application.

## Changes
- Add lucide-react package and remove @mui/icons-material
- Create theme-aware Icon wrapper component with color resolution
- Create iconMap.js for legacy icon name mappings
- Migrate 64 components to use new Icon component
- Remove 74 unused SVG files from assets/icons/

## Benefits
- Consistent icon API across the application
- Smaller bundle size with tree-shakeable imports
- Theme-aware color support via MUI theme paths
- Simpler maintenance with single icon library
2026-01-15 23:37:50 -05:00
gorkem-bwl d91e87f484 fix: remove <> from allowed password characters and display allowed special chars
## Changes
- Remove < and > from password regex pattern in joi.js (these chars are
  stripped by DOMPurify sanitization which caused confusing validation errors)
- Update locale strings to display the list of allowed special characters
  in password tooltip, error messages, and PasswordPanel requirements

## Benefits
- Users now see exactly which special characters are allowed when setting passwords
- Eliminates confusing "password cannot be empty" errors when using < or >
- Regex now accurately reflects the characters that actually work

Fixes #3010
2026-01-15 22:50:29 -05:00
Alexander Holliday b5caabed20 Merge pull request #3135 from bluewave-labs/fix/pagespeed-monitor-delete
Fix pagespeed monitor deletion failing with undefined ID
2026-01-15 18:29:34 -08:00
gorkem-bwl 8814596d6e Fix pagespeed monitor deletion failing with undefined ID
The delete handler was using monitor._id from state, which was undefined
because the fetched monitor object didn't have _id populated. Changed to
use monitorId directly from URL params, which is already available and
used by other handlers in the same component (e.g., handlePause).

Fixes "Failed to delete monitor" error when removing pagespeed monitors.
2026-01-15 21:27:37 -05:00
gorkem-bwl c60d07c3a0 Improve Latest Incidents panel layout
- Simplify incident rows to single line with grid layout
- Remove redundant "Monitor:" and "Status:" labels
- Align columns vertically (monitor name, status badge, duration)
- Center-align status badge column
- Match icon styling with General Statistics (18px, strokeWidth 1.5)
- Remove pointer cursor (click not implemented)
- Add dividers and minHeight to Statistics panel for alignment
2026-01-15 21:19:34 -05:00
gorkem-bwl 54ecf02d9a Fix Prettier formatting in StatisticsPanel 2026-01-15 20:48:15 -05:00
gorkem-bwl 1ab31d19f3 Improve UI consistency for Logs and Incidents pages
## Changes

### Logs page
- Convert server logs from monospace text to DataTable with pagination
- Add table columns: Timestamp, Level, Service, Method, Message
- Add colored level badges (info=green, warn=yellow, error=red, debug=blue)
- Add pagination with configurable rows per page
- Align diagnostics gauge cards with 16px gap and responsive widths

### Incidents page
- Redesign summary cards with consistent styling
- Remove shadows and use 1px border matching other sections
- Reduce icon sizes to 18-24px (sidebar-style)
- Reduce font sizes (13px titles, 18-32px values)
- Add titles to all three summary cards
- Fix "Most Affected Monitor" showing "Unknown Monitor" when no incidents
- Show "N/A" for avg resolution time when no incidents
- Remove cluttered "Resolutions" progress bar section
- Remove horizontal dividers between statistics rows
- Standardize card padding and gap to 16px

### Uptime page
- Fix oversized monitor names in table (removed h6 variant)
2026-01-15 20:44:51 -05:00
Alexander Holliday 2f2ce34373 Merge pull request #3132 from bluewave-labs/fix/theme-simplification-and-bug-fixes
Simplify theme and fix Redux state bugs
2026-01-15 16:51:05 -08:00
Alex Holliday 0f764ca084 typing 2026-01-15 23:45:40 +00:00
gorkem-bwl 8b2ee8d937 Simplify theme and fix Redux state bugs
## Changes

- Remove unused semantic color groups (successSecondary, map, chatbot)
- Remove unused properties from primary and tertiary groups
- Inline accent.darker usage in globalTheme.js
- Fix greeting component crash with persisted Redux state
- Fix MonitorGrid key prop warning

## Details

Theme simplification:
- Reduced constants.js from 355 to 291 lines
- Removed 3 unused semantic color groups
- Removed 6 unused properties (contrastBorder, contrastBorderDisabled, etc.)
- Inlined darken() call for accent hover states

Bug fixes:
- Added null-safe selectors in greeting.jsx for state.ui.greeting
- Added initialization check in setGreeting reducer for older persisted state
- Fixed key prop in MonitorGrid to handle both _id and id
- Removed unused console.log and Grid2 import
2026-01-15 18:06:40 -05:00
Alex Holliday ed80837810 related serverices to TS 2026-01-15 22:33:25 +00:00
Alexander Holliday d82877b28d Merge pull request #3121 from web-engineer/fix/3120-data-leak
3120 remove URL's from data when they are supposed to be disabled
2026-01-15 14:24:47 -08:00
Alex Holliday cf67c82f5e convert job queue and job queue helper 2026-01-15 22:06:46 +00:00
Alex Holliday 5a7b51bfec convert super simple queue to ts 2026-01-15 21:49:48 +00:00
Alexander Holliday 206dcae196 Merge pull request #3131 from bluewave-labs/fix/remove-monitor-db-module
fix: remove db module
2026-01-15 13:05:12 -08:00
Alex Holliday 56bfbe2c77 format 2026-01-15 21:05:00 +00:00
Alex Holliday 8aac3086b8 build error 2026-01-15 21:03:35 +00:00
Alex Holliday 9255500bfc remove db module 2026-01-15 20:55:01 +00:00
Alexander Holliday e99b87fc1e Merge pull request #3130 from bluewave-labs/fix/monitor-service
Fix/monitor service
2026-01-15 11:40:33 -08:00
Alex Holliday ec953ff262 format 2026-01-15 19:40:22 +00:00
Alex Holliday 68559741ba remove mongo middleware 2026-01-15 19:36:41 +00:00
Alex Holliday 74a7f0a701 remove verify team access 2026-01-15 18:33:03 +00:00
Alex Holliday 75bcf9df58 deleteById 2026-01-15 18:24:58 +00:00
Alex Holliday 6b5fd8d17f update, pause 2026-01-15 18:21:36 +00:00
Alexander Holliday a1069f487b Merge pull request #3128 from bluewave-labs/new-uptime-time-range
New uptime time range
2026-01-15 09:28:30 -08:00
Craig Lawson 420164d616 conditional simplification as reqeusted 2026-01-15 12:52:11 +00:00
Craig Lawson f0a6fc4fdf Merge upstream/develop into fix/3120-data-leak 2026-01-15 11:06:27 +00:00
karenvicent e306499bce Merge branch 'develop' into new-uptime-time-range 2026-01-14 22:50:58 -05:00
karenvicent 1472a09718 add new uptime intervals 2026-01-14 22:43:25 -05:00
Alex Holliday e7e4ce7f57 pagination fix 2026-01-14 15:57:17 -08:00
Alex Holliday 93c24d2f5c pagination and filter fix 2026-01-14 15:44:52 -08:00
Alex Holliday cdbaad5bd9 initial 2026-01-14 23:34:05 +00:00
Alexander Holliday b1b27be731 Merge pull request #3127 from bluewave-labs/feat/monitor-service-ts
Feat/monitor service ts
2026-01-14 14:49:00 -08:00
Alexander Holliday 01f005ca41 Merge branch 'develop' into feat/monitor-service-ts 2026-01-14 14:47:25 -08:00
Alex Holliday 1326a6222b format 2026-01-14 22:45:47 +00:00
Alex Holliday aea0b34533 format 2026-01-14 22:45:39 +00:00
Alex Holliday d4af86f26c pagespeed details 2026-01-14 22:44:23 +00:00
Alex Holliday 940247b7bf teamid 2026-01-14 21:47:37 +00:00
Alex Holliday 2b0c523047 unify requests 2026-01-14 20:11:05 +00:00
Alex Holliday 4ad09fad4f snapshots 2026-01-14 20:06:37 +00:00
Alex Holliday 665eb9a67f hardware details 2026-01-14 19:28:17 +00:00
Alex Holliday d1faeab042 fix params 2026-01-14 00:04:22 +00:00
Alex Holliday 76fa99f7bd getUptimeDetails 2026-01-13 23:59:09 +00:00
Alex Holliday 77764c51ee addDemo 2026-01-13 23:22:34 +00:00
Alex Holliday 8a986d2e58 add indexes 2026-01-13 22:56:51 +00:00
Alexander Holliday e57b161be9 Merge pull request #3126 from bluewave-labs/fix/checks-index
add index and cutof
2026-01-13 14:46:24 -08:00
Alex Holliday 8de06df8c4 add index and cutof 2026-01-13 14:45:54 -08:00
Alexander Holliday 8e359cf145 Merge pull request #3125 from bluewave-labs/fix/check-repository
fix: check repo fix
2026-01-13 13:46:27 -08:00
Alex Holliday 52e598a66e Merge branch 'fix/check-repository' into feat/monitor-service-ts 2026-01-13 21:46:17 +00:00
Alex Holliday 0a60cc0363 check repo fix 2026-01-13 21:44:16 +00:00
Alex Holliday 75788f7cb5 Merge branch 'develop' into feat/monitor-service-ts 2026-01-13 20:22:34 +00:00
Alexander Holliday b58a7ad053 Merge pull request #3123 from bluewave-labs/feat/time-series
Feat/time series
2026-01-13 12:21:18 -08:00
Alex Holliday f763126b38 format' 2026-01-13 20:20:50 +00:00
Alex Holliday e79bf28bdc server format 2026-01-13 20:20:29 +00:00
Alex Holliday d0b3bc60df create and update 2026-01-13 20:20:00 +00:00
Alex Holliday 117a2e00c4 status page fix 2026-01-13 19:01:56 +00:00
Alex Holliday f8e88623a8 hardware details pipeline refactor 2026-01-13 18:54:28 +00:00
Alex Holliday 705475e971 _id -> id 2026-01-13 18:37:22 +00:00
Alex Holliday 2b0a51520a infra 2026-01-13 17:50:31 +00:00
Alexander Holliday 55145a38ff Merge pull request #3105 from CodeShellDev/patch-1
bump mongo image version for arm arch to `.30`
2026-01-12 22:10:10 -08:00
Alex Holliday 25d1039376 update pagespeed 2026-01-12 23:57:39 +00:00
Alex Holliday 7a6b0d5da4 refactoring 2026-01-12 22:58:46 +00:00
Alex Holliday e090d3cfd3 -> timeseries 2026-01-12 19:32:23 +00:00
Craig Lawson 1c1ac25857 fix saveSettings is currently being called even when validation fails. 2026-01-12 08:56:24 +00:00
Craig Lawson 3ce40b1ab8 Fix handleSave function syntax errors 2026-01-11 22:48:17 +00:00
Craig Lawson 1494df9eb3 missing brace 2026-01-11 22:39:49 +00:00
Craig Lawson a70959e4a6 Nitpick fix - ref -
client/src/Pages/v1/Settings/index.jsx (1)
171-175: LGTM!

The Redux dispatch provides immediate UI feedback while the actual persistence happens on Save. This is the correct pattern for a server-persisted setting.

Minor note: The ?? value fallback is unreachable for showURL since newValue is always set to a boolean at line 96. Consider simplifying to dispatch(setShowURL(newValue)) for clarity, though the current code is functionally correct.
2026-01-11 22:36:05 +00:00
Craig Lawson b6f48a910f Revert caching changes - restore working implementation
- Remove settingsModule caching that caused inconsistent state
- Restore direct AppSettings query in statusPageModule
- Keep immediate Redux dispatch for UI feedback
- All functionality verified working"
2026-01-11 22:08:15 +00:00
Craig Lawson e4d101237e bug fix - settings handlechange 2026-01-11 21:51:59 +00:00
Craig Lawson 7556086f71 code review updates
Summary of what we fixed based on AI review feedback:

Formatting - Ran Prettier to fix code formatting
Redux state rollback - Moved Redux dispatch to after successful save in settingsHooks.js
Performance - Added caching layer in settingsModule (1-minute TTL) to prevent DB query on every status page request
Architecture - Inject settingsModule instead of raw AppSettings model for better encapsulation
2026-01-11 20:51:25 +00:00
Craig Lawson 7b619e6b31 Remove debug logging and add feature documentation
- Remove all console.log statements added during development
- Clean up code for production readiness
2026-01-11 18:56:16 +00:00
Craig Lawson 76ab2695db missing setting 2026-01-11 18:23:58 +00:00
Craig Lawson 418068e702 loggin settings 2026-01-11 18:18:38 +00:00
Craig Lawson 12b28ffb3f type issue 2026-01-10 22:30:03 +00:00
Craig Lawson 526fa24eab validation bug 2026-01-10 22:23:31 +00:00
Craig Lawson a13f6a34c4 missing value 2026-01-10 22:02:36 +00:00
Craig Lawson f659876845 select bug 2026-01-10 21:58:13 +00:00
Craig Lawson 643a743d70 more logging 2026-01-10 21:49:10 +00:00
Craig Lawson ab4cc80628 3120 persist admin value 2026-01-10 21:29:15 +00:00
Craig Lawson fb3795bd70 3120 remove URL's from data when they are supposed to be disabled 2026-01-10 12:15:29 +00:00
Alexander Holliday 5c14c68899 Merge pull request #3119 from bluewave-labs/fix/controllerUtils
js -> ts
2026-01-09 15:59:18 -08:00
Alexander Holliday 5a878e89d0 Merge pull request #3118 from bluewave-labs/fix/check-controller
js->ts
2026-01-09 15:58:45 -08:00
Alex Holliday bdb07220ed js -> ts 2026-01-09 15:58:31 -08:00
Alexander Holliday 641d5e6dda Merge pull request #3117 from bluewave-labs/fix/diagnostic-controller
js->ts
2026-01-09 15:54:02 -08:00
Alex Holliday b24339f232 js->ts 2026-01-09 15:53:53 -08:00
Alexander Holliday ff324fe6e7 Merge pull request #3116 from bluewave-labs/fix/incidentController
js->ts
2026-01-09 15:46:39 -08:00
Alex Holliday fee9b8a0de js->ts 2026-01-09 15:46:30 -08:00
Alexander Holliday ad9488f54e Merge pull request #3115 from bluewave-labs/fix/invite-controller
js -> ts
2026-01-09 15:44:23 -08:00
Alex Holliday ed77fc3a9d js->ts 2026-01-09 15:44:11 -08:00
Alexander Holliday babd8e672f Merge pull request #3114 from bluewave-labs/fix/log-controller
js->ts
2026-01-09 15:39:35 -08:00
Alex Holliday 8ceac493ef js -> ts 2026-01-09 15:39:30 -08:00
Alexander Holliday fee808789f Merge pull request #3113 from bluewave-labs/fix/mw-controller
js->ts
2026-01-09 15:35:53 -08:00
Alex Holliday dd03c554c9 js->ts 2026-01-09 15:35:48 -08:00
Alex Holliday 3ab4fcb277 js->ts 2026-01-09 15:32:53 -08:00
Alexander Holliday 11e3cac440 Merge pull request #3112 from bluewave-labs/fix/status-page-controller
js->ts
2026-01-09 15:26:37 -08:00
Alex Holliday 1d7f3b15a4 js->ts 2026-01-09 15:21:56 -08:00
Alexander Holliday b7ad3c036b Merge pull request #3111 from bluewave-labs/fix/settings-controller
js->ts
2026-01-09 15:20:30 -08:00
Alex Holliday 7b2ff593a4 js->ts 2026-01-09 15:16:17 -08:00
Alexander Holliday 916f3c0921 Merge pull request #3110 from bluewave-labs/feat/queue-controller
Feat/queue controller
2026-01-09 15:13:31 -08:00
Alex Holliday 846f1dfa6c remove extra param 2026-01-09 15:07:38 -08:00
Alex Holliday 3f631ff382 js -> ts 2026-01-09 15:07:02 -08:00
Alexander Holliday 43a370e162 Merge pull request #3109 from bluewave-labs/feat/notification-controller
js -> ts
2026-01-09 15:05:13 -08:00
Alex Holliday 64320c7aca js -> ts 2026-01-09 15:02:19 -08:00
Alexander Holliday 61cedfb2b7 Merge pull request #3108 from bluewave-labs/feat/monitor-controller
monitor controller -> ts
2026-01-09 14:51:17 -08:00
Alex Holliday a9ce980d03 monitor controller -> ts 2026-01-09 14:49:44 -08:00
Alexander Holliday 8409f08a2d Merge pull request #3107 from bluewave-labs/feat/be/ts
ts config
2026-01-09 13:38:55 -08:00
Alex Holliday ef2cccf16e ts config 2026-01-09 13:36:58 -08:00
CodeShell 0285302ecc bump mongo image version for arm arch to .30 2026-01-09 10:36:46 +00:00
Alexander Holliday 668ea7418d Merge pull request #3088 from bluewave-labs/fix-traslator-error
fix translator error and add format
2025-12-22 09:41:58 -08:00
karenvicent b12bdfcc22 fix traslator error and add format 2025-12-22 12:36:29 -05:00
Alexander Holliday 65de627870 Merge pull request #3079 from Antoplt/feat/choose-disks-monitor
feature requested #2840: improve disk device and mountpoint display with hover tooltips
2025-12-18 10:53:24 -08:00
Alexander Holliday 03d1dcaefb Merge branch 'develop' into feat/choose-disks-monitor 2025-12-18 10:53:01 -08:00
Alexander Holliday 14768bde28 Merge pull request #3086 from bluewave-labs/fix-incidents-duplication-front-end
Fix incidents duplication front end
2025-12-18 10:51:52 -08:00
karenvicent 9555ff43c7 add llama suggestions and fix genericFallback error 2025-12-18 12:47:01 -05:00
karenvicent 75acb1ade6 Merge branch 'develop' into fix-incidents-duplication-front-end 2025-12-17 18:56:25 -05:00
karenvicent fd12ca6e21 incidents feature fron-end 2025-12-17 18:51:34 -05:00
ppmar ff2f84d46b resolve disk selection persistence and validation issues 2025-12-17 23:50:40 +01:00
Alexander Holliday 1ffce112d1 Merge pull request #3077 from web-engineer/feat/helm-tls-letsencrypt-support
feat(helm): add TLS/HTTPS support with cert-manager integration
2025-12-16 15:25:05 -08:00
Alexander Holliday 382df34f06 Merge pull request #3085 from Preetham001-SR/fix-hardcoded-messages
fix: replace hardcoded response messages with localized strings
2025-12-16 15:22:19 -08:00
Preetham001-SR 124f300362 fix: replace hardcoded response messages with localized strings
- Replace hardcoded 'OK' messages in monitorController with proper localized strings
- Add new string constants to en.json for consistent messaging
- Follow existing pattern used by other controller methods
- Resolves TODO comment in getMonitorsAndSummaryByTeamId method

Fixes: Hardcoded response messages inconsistent with i18n architecture
2025-12-14 23:45:32 +05:30
Alexander Holliday f782899768 Merge pull request #3080 from bluewave-labs/feat/remove-v2
Remove business V2 logic
2025-12-05 09:05:17 -08:00
Sajanpreet Singh cdb83bb47d Fix build checks 2025-12-04 10:42:18 -06:00
Sajanpreet Singh 72bcc0d020 Remove business V2 logic 2025-12-04 10:31:45 -06:00
Craig Lawson ac901b46c3 chore(helm): default TLS secretName to <release>-* and remove duplicate prechecks file; update docs with protocol flags 2025-12-03 21:43:21 +00:00
Craig Lawson c1b3d325f6 feat(helm): enforce TLS + protocol validation and improve docs\n\n- Add prechecks.yaml to validate TLS issuer annotations and secretName\n- Require https when TLS enabled; prevent client https + server http mixed content\n- Validate client.protocol in addition to server.protocol\n- Update INSTALLATION.md to set protocol: https when enabling TLS\n- Clarify values.yaml comments for TLS usage 2025-12-03 21:30:35 +00:00
Craig Lawson 7cad2fec27 chore(helm): comment out secretName in TLS config, add usage note for cert-manager 2025-11-30 16:46:06 +00:00
Adevixxx 7edc2a71d8 Ajout de l'interface pour selectionner des disques et modifications du coté serveur pour la sauvegarde 2025-11-30 11:48:54 +01:00
Antonin 913f7a9e42 Merge branch 'develop' into feat/choose-disks-monitor 2025-11-30 11:35:34 +01:00
Craig Lawson dd98757b2a feat(helm): add TLS/HTTPS support with cert-manager integration
- Add TLS configuration to ingress templates (client & server)
- Add tls.enabled and tls.secretName to values.yaml
- Include comprehensive cert-manager documentation in INSTALLATION.md
- Add example annotations for Let's Encrypt cluster issuer
- Support both values.yaml and --set flag configuration methods
- Backward compatible (TLS disabled by default)

Enables automatic HTTPS certificate provisioning when cert-manager
is installed in the cluster with appropriate ClusterIssuer configured.
2025-11-29 17:46:29 +00:00
Alexander Holliday 1e3ee23120 Merge pull request #3071 from mospell/feat/better_infrastructure_notifications
Feat: Add link to Infrastructure Details for Notifications
2025-11-28 11:52:04 -08:00
Alexander Holliday 74d8e0a892 Merge pull request #3074 from SuryaGanesh284/develop
Add quick setup checklist to CONTRIBUTING.md
2025-11-28 11:51:06 -08:00
Antonin 50af063f64 Merge branch 'develop' into feat/choose-disks-monitor 2025-11-26 11:58:35 +01:00
Antonin 80a66d74ca Add metric/value three & four to propTypes 2025-11-26 11:56:46 +01:00
SuryaGanesh284 6c2908681a Add quick setup checklist to CONTRIBUTING.md
Added a quick setup checklist for contributors.
2025-11-25 22:12:16 +05:30
mospell 90593c0d7c added 'go-to' links to the remaining Discord notifications 2025-11-23 17:18:09 +01:00
mospell 8fb958e772 Feat: Add link to infrastructure details for Notifications 2025-11-23 16:39:09 +01:00
Alexander Holliday fc39ab3fb9 Merge pull request #3069 from bluewave-labs/feat/JSON-export
implement JSON export
2025-11-21 10:45:32 -08:00
Alex Holliday 58e7ef2527 implement JSON export 2025-11-21 10:43:29 -08:00
Alexander Holliday fec32380ae Merge pull request #3067 from bluewave-labs/fix-incidents-creation
Incident Management System - Backend Implementation
2025-11-19 09:35:15 -08:00
karenvicent 3b8d87bd17 Merge branch 'develop' into fix-incidents-creation 2025-11-19 10:06:35 -05:00
karenvicent 131ced10fc Incidents management implementation 2025-11-18 16:01:47 -05:00
antoplt 886752effd Add metricFour and valueFour props 2025-11-18 15:29:25 +01:00
antoplt a5d54a637e Fix function naming error 2025-11-18 14:44:45 +01:00
antoplt 1b4edf16fb Add mountpoint as fourth metric 2025-11-18 14:38:03 +01:00
antoplt 4042d34585 Add mountpoint field to mongoose diskSchema 2025-11-18 14:25:02 +01:00
antoplt 135c3ff454 Merge branch 'develop' into feat/choose-disks-monitor 2025-11-18 13:55:39 +01:00
antoplt f8d5791fab Add device name formatting 2025-11-18 13:13:35 +01:00
antoplt ffa4b1695b Add device field into moogose diskSchema 2025-11-18 13:12:34 +01:00
antoplt 98214ff578 Add disk device as third metric value 2025-11-18 12:06:22 +01:00
Alexander Holliday 57ceac0c24 Merge pull request #3064 from bluewave-labs/statusPage-bars-centred-fix
Status page bars centred fix
2025-11-12 11:02:32 -08:00
Sajan a526bc5a3e Revert changes to lock files 2025-11-12 12:06:34 -06:00
Alexander Holliday fac4516353 Merge pull request #3058 from yuracoff18/doccumentation-fix-and-problem-solving-contributing
Fix the location from the docker images installation and addition of …
2025-11-12 09:21:37 -08:00
Alexander Holliday 4db13fb924 Update CONTRIBUTING.md 2025-11-12 09:21:02 -08:00
Sajan c97ee22e66 Move status validation inside the block 2025-11-12 10:54:55 -06:00
Sajan 98737f92af Add validation for the status prop 2025-11-12 10:34:22 -06:00
Sajan 74637f9d2a Remove fontSize 2025-11-12 10:21:26 -06:00
Sajan 69dbc2fe7a Move up/down chips next to the monitor name 2025-11-12 09:58:38 -06:00
Sajan d157e200f6 Use flex-end instead of right 2025-11-11 10:58:30 -06:00
Sajan 594540cff5 Fix centering issue for status page bars 2025-11-11 10:46:34 -06:00
Sajan 8e47e8cd3d fix formatting issue 2025-11-11 09:26:18 -06:00
Gorkem Cetin (BWL) c5d7625a06 Update installation instructions in README
Removed 'Coolify' from the list of alternatives for Checkmate installation.
2025-11-10 06:11:50 -05:00
Yura 7763c5e288 Fix the location from the docker images installation and addition of a solution from a problem i saw while installing the front 2025-11-09 01:15:05 -05:00
Yura 957988d977 Fix the location from the docker images installation and addition of a solution from a problem i saw while installing the front 2025-11-09 01:08:56 -05:00
Yura 0c04c06d4e centred the bars in status page UI 2025-11-09 00:45:33 -05:00
Yura a7ef014b92 centred the bars in status page UI 2025-11-09 00:41:02 -05:00
Yura 3822d971cb centred the bars in status page UI 2025-11-09 00:28:14 -05:00
karenvicent eb65c41d15 Merge branch 'develop' into fix-incidents-creation 2025-11-06 17:07:24 -05:00
karenvicent 0c3fdbc539 feat: add incident model, module and service with StatusService integration
- Create Incident model with resolution tracking fields
- Implement IncidentModule for data access
- Implement IncidentService with business logic
- Integrate with StatusService to auto-create/resolve incidents on status change
2025-11-06 17:06:33 -05:00
Alexander Holliday 7cb985116e Merge pull request #3050 from TudorGR/chore/status-page-include-game-type-3048
feat: include game monitor type in status page monitor selection
2025-11-03 09:20:29 -08:00
Alexander Holliday 2297494d21 Merge pull request #3055 from matserix/develop
feat(kubernetes): support Storage Classes other than 'gp3'
2025-11-03 09:19:54 -08:00
matserix 19a61b6ce4 fix: update installation guide and values for MongoDB and Redis storage classes 2025-11-03 01:10:45 +01:00
matserix 492aed200a feat: support Storage Classes other than 'gp3' 2025-11-03 00:44:57 +01:00
Alexander Holliday be2f33b5d1 Merge pull request #3052 from bluewave-labs/fix/addjob
fix missing param
2025-10-30 10:58:45 -07:00
Alex Holliday 5d48cecee8 fix missing param 2025-10-30 10:57:48 -07:00
Gorkem Cetin (BWL) f0bfe1a152 Merge pull request #3049 from magicpages/detailed-response-times
fix: use sentence case for tooltip labels
2025-10-30 10:38:39 -04:00
Tudor Gradinaru d2ff386f97 feat: include game monitor type in status page monitor selection 2025-10-30 11:37:43 +02:00
Jannis Fedoruk-Betschki 42eaa75437 fix: use sentence case for tooltip labels 2025-10-30 07:25:48 +01:00
Alexander Holliday 7fb4e75956 Merge pull request #3047 from magicpages/detailed-response-times
feat: add detailed response time breakdown in Response Times table
2025-10-29 19:11:08 -07:00
Jannis Fedoruk-Betschki 87c549960e fix: use array parameter instead of closure for i18n-safe bold styling 2025-10-29 20:33:14 +01:00
Jannis Fedoruk-Betschki 4ac0f1e87f feat: add detailed response time breakdown in Response Times table 2025-10-29 20:22:57 +01:00
Alexander Holliday 5465bee630 Merge pull request #3046 from bluewave-labs/feat/cleanup
prune
2025-10-29 10:04:11 -07:00
Alex Holliday 60a3d46e59 prune 2025-10-29 10:03:16 -07:00
Gorkem Cetin (BWL) e100d54eed Simplify README by removing redundant content
Removed redundant section about Checkmate's codebase walkthrough and dataflow simulation tutorial.
2025-10-29 07:28:09 -04:00
Gorkem Cetin (BWL) 848d50ec43 Merge pull request #3043 from Abdullah85MBA/codecanvas-diagram-1761668096103
Added interactive CodeCanvas diagram for Checkmate
2025-10-29 07:26:29 -04:00
Alexander Holliday a9a8686295 Merge pull request #3044 from bluewave-labs/fix/cache-dns
add cacheable dns, stagger start times
2025-10-29 01:17:22 -07:00
Alex Holliday 30a9309bd8 add cacheable dns, stagger start times 2025-10-28 22:41:05 -07:00
Abi ab64cd192b Updated Readme screenshot 2025-10-28 12:29:59 -04:00
Abi 5fc2c8c14b Add CodeCanvas diagram to README 2025-10-28 12:15:26 -04:00
Abi ea7ce450f1 Merge develop into codecanvas-diagram-1761668096103 to sync with upstream 2025-10-28 12:15:00 -04:00
Abi ce77b43705 CodeCanvas: Save 2025-10-28 12:14:58 -04:00
Alexander Holliday bd2ba804ee Merge pull request #3040 from bluewave-labs/feat/bump-version
bump version
2025-10-27 10:30:23 -07:00
Alexander Holliday bd75f7b0fc Merge pull request #3041 from bluewave-labs/translation-update-80
🌐 Updated Translations from POEditor
2025-10-27 10:30:07 -07:00
GitHub Action 32e4f7514d feat: translations updated from POEditor 2025-10-27 17:29:47 +00:00
Alex Holliday c9e1d35daf bump version 2025-10-27 10:27:45 -07:00
Alexander Holliday 3be6ae91f2 Merge pull request #3039 from bluewave-labs/fix/bump-scheduler
bump-scheduler
2025-10-27 09:46:23 -07:00
Alex Holliday 931104fbcf type error 2025-10-27 09:45:21 -07:00
Alex Holliday 1d5cec94a5 bump-scheduler 2025-10-27 09:42:27 -07:00
Alexander Holliday faeec01a6d Merge pull request #3029 from LinPr/fix
fix/v1: Remove unnecessary import
2025-10-27 09:37:38 -07:00
Alexander Holliday b8db987579 Merge pull request #3037 from TudorGR/feat/matrix-notifications
feat: Add Matrix notification support
2025-10-27 09:36:09 -07:00
Tudor Gradinaru 1fad85d48d feat: Add Matrix notification support Fixes #3034 2025-10-25 18:35:15 +03:00
Alexander Holliday eb70c9f5f0 Merge pull request #3036 from TudorGR/feature/add-monitor-name-to-notification-title
feat: Add monitor name to notification titles
2025-10-23 09:38:29 -07:00
Tudor Gradinaru ce025df7b7 feat: Add monitor name to notification titles 2025-10-23 15:32:29 +03:00
Alexander Holliday daf5797fed Merge pull request #3031 from bluewave-labs/translation-update-79
🌐 Updated Translations from POEditor
2025-10-20 10:36:43 -07:00
GitHub Action 0baa7d9891 feat: translations updated from POEditor 2025-10-20 17:36:14 +00:00
Gorkem Cetin (BWL) f6cd0f668f Merge pull request #3028 from bluewave-labs/feat/remove-unused-css-variables
Got an OK from Owaise.
2025-10-20 09:22:52 -04:00
LinPr 9ae83cc34d fix/v1: remove unnecessary import 2025-10-20 14:22:20 +08:00
gorkem-bwlandClaude 06ebb76948 chore: remove 13 unused CSS variables from index.css
Removed the following unused CSS variables that were leftovers from when
the project switched to the MUI theme system:

- --env-var-radius-1
- --env-var-width-1
- --env-var-width-3
- --env-var-height-1
- --env-var-spacing-3
- --env-var-spacing-4
- --env-var-spacing-5
- --env-var-img-width-1
- --env-var-img-width-2
- --env-var-img-width-3
- --env-var-default-1
- --env-var-default-2
- --env-var-shadow-1

These variables are not referenced anywhere in the codebase. The project
now uses MUI theme configuration (theme.spacing(), theme.palette.*)
instead of CSS variables for styling.

Kept 19 CSS variables that are still actively used during the migration
to pure MUI theme.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-19 23:18:50 -04:00
Alexander Holliday 3a8ba154b2 Merge pull request #2992 from AlexHladin/chore/drop-nodemon
chore: drop nodemon
2025-10-17 20:03:45 -07:00
Alexander Holliday 089801109e Merge pull request #3018 from bluewave-labs/v2-select-component
Add Select component v2 with TypeScript and improved code efficiency
2025-10-14 13:24:33 -07:00
karenvicent a8a4b5c2b4 Merge branch 'develop' into v2-select-component 2025-10-14 15:58:52 -04:00
Alexander Holliday 089bda2de0 Merge pull request #3023 from bluewave-labs/fix/v2-utils
move v2 utils to v2 dir
2025-10-14 12:45:34 -07:00
Alex Holliday e18e2e26da move v2 utils to v2 dir 2025-10-14 12:45:11 -07:00
karenvicent 104cf194ac fix create more specific component 2025-10-14 12:22:20 -04:00
Alexander Holliday de7cdb4aef Merge pull request #3019 from bluewave-labs/feature/monitor-grouping-backend
feat: Add monitor grouping functionality (Backend)
2025-10-14 09:05:34 -07:00
gorkem-bwlandClaude 6bdf9891e8 Fix server formatting issues
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 21:51:06 -04:00
gorkem-bwlandClaude 27d37ece7d feat: Add monitor grouping functionality to backend
- Add optional 'group' field to Monitor schema with trimming and validation
- Add group validation to Joi schemas for create and edit monitor endpoints
- Add GET /api/v1/monitors/team/groups endpoint to fetch unique groups
- Implement case-insensitive group filtering in database layer
- Support for organizing monitors into collapsible groups

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-12 21:11:20 -04:00
karenvicent b9afca3608 Merge branch 'develop' into v2-select-component 2025-10-09 18:25:38 -04:00
karenvicent b796464241 select component V2 2025-10-09 18:16:25 -04:00
Alexander Holliday 97a14ed926 Merge pull request #3017 from bluewave-labs/fix/v2/sticky-sidebar
fix/v2: sticky sidebar
2025-10-09 14:00:35 -07:00
Alex Holliday 5018c56d0d stikcy sidebar 2025-10-09 14:00:04 -07:00
Alexander Holliday c7799ca7dc Merge pull request #3016 from bluewave-labs/fix/v2/normalization
Fix/v2/normalization
2025-10-09 13:56:10 -07:00
Alex Holliday 78b5cc9c6f ts 2025-10-09 13:55:39 -07:00
Alex Holliday ab3e6cdff9 normalzie on FE 2025-10-09 13:53:34 -07:00
Alexander Holliday 1cc01e6952 Merge pull request #3015 from bluewave-labs/feat/v2/fallbacks
feat/v2: add fallbacks
2025-10-09 12:46:19 -07:00
Alex Holliday fb90f193b1 add fallbacks 2025-10-09 12:44:27 -07:00
Alexander Holliday 1bacab89bb Merge pull request #3014 from bluewave-labs/fix/v2/auth-pages
fix/v2: add missing auth elements
2025-10-09 11:07:43 -07:00
Alex Holliday 7378f2e33b add missing auth elements 2025-10-09 11:06:34 -07:00
Alexander Holliday d0bb2b2ad5 Merge pull request #3013 from bluewave-labs/fix/network-timing
fix network timing for port and docker
2025-10-09 09:35:41 -07:00
Alex Holliday 376da7c70e fix network timing for port and docker 2025-10-09 09:33:14 -07:00
Alexander Holliday d58e5cf7ee Merge pull request #3012 from bluewave-labs/fix/keep-previous-data
fix/v2: add keep previous data
2025-10-08 15:29:41 -07:00
Alex Holliday e02eb2e30c add keep previous data 2025-10-08 15:27:53 -07:00
Alexander Holliday c4906d069a Merge pull request #3009 from bluewave-labs/feat/v2-implement-actions
update usePatch, implement actions
2025-10-08 15:00:43 -07:00
Alex Holliday d4ed535454 update prod env 2025-10-08 14:52:21 -07:00
Alex Holliday f9d0ab5e07 update usePatch, implement actions 2025-10-08 14:28:51 -07:00
Alexander Holliday 0a5efc75cd Merge pull request #3008 from bluewave-labs/feat/v2/uptime-details
feat/v2/uptime details
2025-10-08 13:48:05 -07:00
Alex Holliday aae1fefb31 add checks endpoint 2025-10-08 13:45:07 -07:00
Alex Holliday 86bb28e239 pagination 2025-10-08 13:44:41 -07:00
Alex Holliday 16b68b3d00 rever types 2025-10-07 15:46:35 -07:00
Alex Holliday a700f446fd add header 2025-10-07 15:46:09 -07:00
Alex Holliday 2246f227d1 30m -> 2h 2025-10-07 14:45:07 -07:00
Alex Holliday 29fbf0a362 charts 2025-10-07 14:44:55 -07:00
Alex Holliday 8a1fc94c31 stat boxes 2025-10-06 15:08:55 -07:00
Alex Holliday abadc99bf1 status 2025-10-06 13:59:31 -07:00
Alexander Holliday 7af7647bbf Merge pull request #2999 from bluewave-labs/feat-allow-admin-change-passwords
Add superadmin password reset functionality for team members
2025-10-06 12:52:46 -07:00
karenvicent 9a24090337 fix variable name 2025-10-06 15:43:17 -04:00
karenvicent d81a4ef0ee fix user service 2025-10-06 15:15:56 -04:00
Alexander Holliday cfb1830b55 Merge pull request #3005 from bluewave-labs/feat/v2/uptime
Feat/v2/uptime
2025-10-06 11:48:39 -07:00
Alex Holliday f7c094317a remove unused 2025-10-06 11:43:13 -07:00
Alex Holliday 56e0ac9640 actions menu 2025-10-06 11:40:08 -07:00
Alex Holliday 61651a0f4d action menu 2025-10-06 11:34:29 -07:00
Alex Holliday 7c3a05077c tooltip 2025-10-06 10:56:29 -07:00
Gorkem Cetin (BWL) 2d29bce97b Update CONTRIBUTING.md 2025-10-06 12:35:23 -04:00
Alexander Holliday 4f45baab00 Merge pull request #3003 from evermos/develop
Add Affinity, Tolerations, Request limit
2025-10-06 09:00:57 -07:00
Alexander Holliday 6def64d38e Merge pull request #3004 from bluewave-labs/fix/incident/numbers
Fix: Total Incident Number
2025-10-06 08:58:23 -07:00
Br0wnHammer 32b31076e6 Fix: Total Incident Number 2025-10-06 20:14:21 +05:30
ariretiarno 91a4911d42 protocol 2025-10-05 22:49:20 +07:00
ariretiarno 7298faac2b protocol 2025-10-05 22:47:48 +07:00
ariretiarno 711253beb2 affinity request limit 2025-10-05 22:36:39 +07:00
ariretiarno a380389386 ingress server 2025-10-05 22:25:33 +07:00
Alex Holliday f6b97c691e iniital uptime 2025-10-03 15:40:53 -07:00
karenvicent f31ff994fe fix errors 2025-10-03 17:11:05 -04:00
Alexander Holliday a46ef5c9dd Merge pull request #3001 from bluewave-labs/fix/v2/text-input
theme update
2025-10-03 12:57:33 -07:00
Alex Holliday 0018c452bb theme update 2025-10-03 12:56:52 -07:00
Alexander Holliday 6c6fc28f6e Merge pull request #3000 from bluewave-labs/feat/v2/create/uptime
feat/v2/create/uptime
2025-10-03 12:50:31 -07:00
Alex Holliday 575cf31c78 add typescript dev dep 2025-10-03 12:49:51 -07:00
Alex Holliday 938d9b6642 feat/v2/uptime/create 2025-10-03 12:45:21 -07:00
Gorkem Cetin (BWL) 9d68d35ca8 Merge pull request #2996 from JithendraKavala/docs/imporove-contributing-setup-instructions
docs: improve local development setup instructions in CONTRIBUTING.md
2025-10-03 15:34:18 -04:00
Alexander Holliday 8033eea267 Merge pull request #2997 from a-y-a-n-das/fix-week-datestring
fix(chart): correct 'week' date string format in chart aggregation
2025-10-02 13:35:40 -07:00
Alexander Holliday 469c4d7e99 Merge pull request #2994 from VivekKavala/fix-inaccurate-ping-times
fix: Correct inaccurate ping response times
2025-10-02 13:34:11 -07:00
karenvicent 5159d43cad fix save button validation 2025-10-02 15:40:21 -04:00
karenvicent c5bbb7aa2c Merge branch 'develop' into feat-allow-admin-change-passwords 2025-10-02 15:20:32 -04:00
karenvicent 4317d1a47e chace password by superadmin 2025-10-02 15:19:42 -04:00
a-y-a-n-das a1c04ba35e fixed the format 2025-10-02 20:43:00 +05:30
Alexander Holliday 95ad3e71ca Merge pull request #2987 from bluewave-labs/feat/v2/components
feat: move components to v1 and v2 dirs
2025-10-02 17:22:20 +05:30
AlexHladin 8bf3875d9a chore: add engines section to package.json 2025-10-02 14:17:23 +03:00
jithendra Kavala 080a33fac7 docs: improve local development setup instructions in CONTRIBUTING.md 2025-10-02 13:51:30 +05:30
Vivek Kavala 851d722746 fix: remove manual response time calculation in favor of library-native timing
The manual timing calculations were adding Node.js processing overhead
and were less accurate than the native timing provided by the respective
libraries (ping, got, etc.). Now using response.time from each library
for more accurate network response time measurements.
2025-10-02 12:46:51 +05:30
AlexHladin 3b22ce75db chore: drop nodemon 2025-10-02 00:47:11 +03:00
Alexander Holliday 5dbfb3b8c5 Merge pull request #2991 from bluewave-labs/feat/v2/sidebar
feat: v2/sidebar
2025-10-01 13:58:26 -07:00
Alex Holliday 735054b4e1 remove unused error 2025-10-01 13:57:04 -07:00
Alex Holliday 3ae2f857d4 add v2 sidebar 2025-10-01 13:55:32 -07:00
Alexander Holliday 220abb8579 Merge pull request #2989 from evermos/helmchart
helm chart
2025-10-01 13:34:50 -07:00
karenvicent 468a67f937 git stash push -m "work in progress" 2025-10-01 12:49:48 -04:00
Muhamad Ari Retiarno 99b3e3c516 Merge pull request #1 from evermos/helmchart
Helmchart
2025-10-01 11:06:47 +07:00
ariretiarno 8d48b2cc8a client host 2025-10-01 09:33:32 +07:00
ariretiarno d63731fced client host 2025-10-01 09:22:42 +07:00
ariretiarno 7a352cdcb3 client host 2025-10-01 09:16:45 +07:00
ariretiarno 4744c05f07 pvc 2025-09-30 11:35:14 +07:00
ariretiarno c6cf7a4639 helm chart 2025-09-30 11:30:21 +07:00
ariretiarno 7f2318da01 helm chart 2025-09-30 11:28:22 +07:00
Alex Holliday fc9018e314 Add collapse button and logo 2025-09-27 15:47:56 -07:00
Alexander Holliday c30d6019df Merge pull request #2987 from bluewave-labs/feat/v2/components
feat: move components to v1 and v2 dirs
2025-09-27 14:58:11 -07:00
Alex Holliday b57ed47592 remove mode prop 2025-09-27 14:57:55 -07:00
Alexander Holliday 6234be17cd Merge pull request #2986 from bluewave-labs/feat/v2/root/layout
feat/v2/root/layout
2025-09-27 14:55:17 -07:00
Alex Holliday 5cab842f0a move components to v1 and v2 dirs 2025-09-27 14:54:55 -07:00
Alex Holliday ca84c60614 Merge branch 'feat/v2/root/layout' of github.com:bluewave-labs/checkmate into feat/v2/root/layout 2025-09-27 14:48:44 -07:00
Alex Holliday 09fbc6b0b2 remove unused mode 2025-09-27 14:48:05 -07:00
Alexander Holliday f8b1998564 Merge branch 'develop' into feat/v2/root/layout 2025-09-27 14:43:18 -07:00
Alex Holliday 4d254b004d add gitignore 2025-09-27 14:38:14 -07:00
Alex Holliday 1d5f2427ed add root layout 2025-09-26 16:01:05 -07:00
Alexander Holliday 0249f89a8c Merge pull request #2984 from bluewave-labs/feat/v2/router
move v2 routes to v2 router
2025-09-26 15:33:23 -07:00
Alex Holliday ce0aaa7ac7 move v2 routes to v2 router 2025-09-26 15:31:55 -07:00
Alexander Holliday b7db3f96ba Merge pull request #2983 from bluewave-labs/feat/v2/register
add v2 register page
2025-09-26 15:25:41 -07:00
Alex Holliday ad5ab82c3b add v2 register page 2025-09-26 15:23:56 -07:00
Alexander Holliday 0567569faa Merge pull request #2982 from bluewave-labs/feat/v2/theme
feat: add typography to theme, change UsePost return type
2025-09-26 15:23:23 -07:00
Alex Holliday a8f111b399 generic return type 2025-09-26 15:22:15 -07:00
Alex Holliday 7c2f789a31 add typography to theme, change UsePost return type 2025-09-26 15:19:35 -07:00
Alexander Holliday 77c76b6b6d Merge pull request #2981 from bluewave-labs/feat/v2/auth/login
feat/v2/auth/login
2025-09-26 14:49:21 -07:00
Alex Holliday 60a90ce424 node types 2025-09-26 14:36:15 -07:00
Alex Holliday 3f581ae1b0 esm safe path 2025-09-26 14:32:16 -07:00
Alex Holliday 277aff3898 remove unused 2025-09-26 14:22:25 -07:00
Alex Holliday 0c5b9a863b add loading 2025-09-26 14:16:59 -07:00
Alex Holliday cb1e10f0a9 add v2 login page 2025-09-25 16:06:52 -07:00
Alexander Holliday 659162d60c Merge pull request #2980 from bluewave-labs/feat/typescript-config
Add typescript config, move to v1 dir
2025-09-25 10:23:15 -07:00
Alex Holliday 28ef465b3a update action name 2025-09-25 10:22:47 -07:00
Alex Holliday e29f7af858 add client build check 2025-09-25 10:21:31 -07:00
Alex Holliday 17b84cbe8a format 2025-09-25 10:19:08 -07:00
Alex Holliday 4d89213e1c Add typescript config, move to v1 dir 2025-09-25 10:11:41 -07:00
Alexander Holliday 879cbb8886 Merge pull request #2979 from bluewave-labs/fix/start-v2-queue
create and start v2 queue
2025-09-25 09:47:21 -07:00
Alex Holliday 5957479d03 express type 2025-09-25 09:46:11 -07:00
Alexander Holliday d7bc9bdb90 Merge pull request #2978 from bluewave-labs/feat/v2/routes
add v2 routes, controllers
2025-09-25 09:43:54 -07:00
Alex Holliday 811a6bf222 create and start v2 queue 2025-09-25 09:38:41 -07:00
Alex Holliday 6d0c560948 add v2 routes, controllers 2025-09-24 15:55:09 -07:00
Alexander Holliday f4b76baaa2 Merge pull request #2977 from bluewave-labs/feat/v2/services
feat/v2/services
2025-09-24 14:21:28 -07:00
Alex Holliday 76f4e974db dev types 2025-09-24 14:20:30 -07:00
Alex Holliday 66e5441bdf fix import path 2025-09-23 15:23:20 -07:00
Alex Holliday 68f4adfbfe add v2 services 2025-09-23 15:22:08 -07:00
Alexander Holliday 35a712eafb Merge pull request #2976 from bluewave-labs/feat/v2/models
feat: add v2 models
2025-09-23 14:57:03 -07:00
Alex Holliday 2d12fbdff1 fix notification schema 2025-09-23 14:56:02 -07:00
Alex Holliday c0ff162ed9 remove v2 files 2025-09-23 14:46:32 -07:00
Alex Holliday 059408f098 add v2 models 2025-09-23 14:40:57 -07:00
Alexander Holliday b118a321b9 Merge pull request #2975 from bluewave-labs/feat/v1/structure
feat/v1/structure
2025-09-23 14:25:46 -07:00
Alex Holliday b3b6f1d834 move all v1 files to v1 dirs 2025-09-23 14:23:45 -07:00
Alex Holliday 1383d8b59a add workflow 2025-09-23 14:12:17 -07:00
Alex Holliday 990aed9f2e Revert "Merge pull request #2973 from bluewave-labs/feat/v2/auth"
This reverts commit 72882fded9, reversing
changes made to bfb299cfca.
2025-09-23 14:05:23 -07:00
Alex Holliday 003d419a64 Revert "Merge pull request #2974 from bluewave-labs/fix/cleanup"
This reverts commit 7368cb2567, reversing
changes made to 72882fded9.
2025-09-23 14:05:16 -07:00
Alexander Holliday 7368cb2567 Merge pull request #2974 from bluewave-labs/fix/cleanup
move v1 to v1 dir, add build workflow
2025-09-23 12:00:06 -07:00
Alex Holliday f945a27011 move v1 to v1 dir, add build workflow 2025-09-23 11:59:02 -07:00
Alexander Holliday 72882fded9 Merge pull request #2973 from bluewave-labs/feat/v2/auth
feat: v2/auth
2025-09-23 11:45:39 -07:00
Alex Holliday 0030394008 add migrations table 2025-09-23 11:34:25 -07:00
Alexander Holliday bfb299cfca Merge pull request #2972 from bluewave-labs/fix/update-docker-files
fix/update docker files
2025-09-23 11:01:19 -07:00
Alexander Holliday b06d5c10ea Merge pull request #2971 from bluewave-labs/feat/v2-controllers
Feat/v2 controllers
2025-09-23 11:00:40 -07:00
Alexander Holliday 2a0d4195a1 Merge pull request #2970 from bluewave-labs/feat/v2-routes
feat: v2 routes
2025-09-23 11:00:18 -07:00
Alex Holliday 11ff99613a implement auth routes, add user migration 2025-09-22 15:56:41 -07:00
Alex Holliday 0b646ee64f update docker files to build 2025-09-22 13:26:45 -07:00
Alex Holliday 23126a92cd move v1 controllers to v1 dir 2025-09-22 13:04:45 -07:00
Alex Holliday f767125acd tsx, tpyescript 2025-09-22 13:03:54 -07:00
Alex Holliday d8ed9abebf add gitignore 2025-09-22 12:53:44 -07:00
Alexander Holliday e4e75632c5 Merge pull request #2963 from bluewave-labs/translation-update-78
🌐 Updated Translations from POEditor
2025-09-18 13:40:10 -07:00
GitHub Action ddb7c24832 feat: translations updated from POEditor 2025-09-18 20:25:11 +00:00
Alexander Holliday 4a824dec81 Merge pull request #2960 from bluewave-labs/feat/bump-version
bump version
2025-09-18 12:03:26 -07:00
Alex Holliday b35fee1be8 bump version 2025-09-18 12:02:49 -07:00
Alexander Holliday 1b167af12b Merge pull request #2959 from Owaiseimdad/Addition-of-sliding-window-implementation
Addition of incident tab in creation and config page which is same.
2025-09-18 11:50:55 -07:00
Owaise f2962e34ae Fixed the formatting. 2025-09-19 00:06:31 +05:30
Owaise 386db5029a Addition of incident tab in creation and config page which is same. 2025-09-19 00:03:18 +05:30
Alexander Holliday 0e6e54a124 Merge pull request #2957 from FrancocDev/develop
Allow jsonPath to be used along expectedValue and validate the response.
2025-09-18 09:47:53 -07:00
Franco Carrara c666cb3879 fix formatting issues 2025-09-17 23:46:20 -03:00
Franco Carrara 4039517683 Add response messages to string service 2025-09-17 23:33:45 -03:00
Franco Carrara 00fc7b8038 Allow jsonPath to be used along expectedValue and validate the response. 2025-09-17 23:23:16 -03:00
Alexander Holliday 81d283ec8d Merge pull request #2956 from ajhollid/bump-dependencies
chore: bump deps
2025-09-17 15:17:14 -07:00
Alex Holliday 105100e349 bump deps 2025-09-17 15:07:55 -07:00
Alexander Holliday 4598690dbf Merge pull request #2954 from brownyroll/develop
feat: Support Thailand language
2025-09-16 09:00:51 -07:00
Bamz Kittisak Udomsri f68341c315 feat: thailang 2025-09-16 20:41:13 +07:00
Alexander Holliday e8a8cea909 Merge pull request #2953 from bluewave-labs/fix-skip-maintenance-notifications
Fix: Skip notifications during maintenance windows
2025-09-15 11:13:28 -07:00
karenvicent bf53f107e3 Merge branch 'develop' into fix-skip-maintenance-notifications 2025-09-15 12:29:47 -04:00
karenvicent 00de974528 Fix: Skip notifications for monitors during active maintenance windows 2025-09-15 12:28:37 -04:00
Alexander Holliday 0445398e94 Merge pull request #2952 from bluewave-labs/feat-notifications-body
Add monitor name and URL formatting for hardware notifications
2025-09-15 09:15:10 -07:00
karenvicent 272e2ba955 add monitor name and url to infrastructure alert 2025-09-15 08:34:51 -04:00
Alexander Holliday 0a2adc2d92 Merge pull request #2948 from bluewave-labs/feat-discord-format
Add Discord embed message formatting for notifications
2025-09-12 09:03:19 -07:00
karenvicent 7008fc1770 Merge branch 'develop' into feat-discord-format 2025-09-12 10:14:07 -04:00
karenvicent 041a261540 add llama sugestions 2025-09-12 10:13:38 -04:00
Gorkem Cetin (BWL) 1008d819f7 Update README.md 2025-09-11 22:40:11 -04:00
karenvicent fb84a79a04 Add Discord embed message formatting for notifications 2025-09-11 16:29:08 -04:00
Alexander Holliday 45bfdbdce0 Merge pull request #2935 from bluewave-labs/fix/mono-dist-ping
fix vite.config
2025-09-08 20:40:33 -07:00
Alex Holliday 1537c2141f fix vite.config 2025-09-08 20:39:45 -07:00
Alexander Holliday 3ba1a52644 Merge pull request #2932 from bluewave-labs/fix/mono-dist-ping
fix: mono dist ping
2025-09-08 20:31:01 -07:00
Alex Holliday a015cc6706 fix dist-arm, bump version 2025-09-08 20:29:38 -07:00
Alex Holliday 5bad362793 fix server build order 2025-09-08 20:27:20 -07:00
Alexander Holliday 5520756edd Merge pull request #2923 from bluewave-labs/feat-page-initialization-hook
Add PageStateWrapper and fix initial render flash
2025-09-08 09:12:14 -07:00
karenvicent ba954a1d6e run format 2025-09-08 11:15:14 -04:00
karenvicent 2944ff298c Merge branch 'develop' into feat-page-initialization-hook 2025-09-08 10:50:15 -04:00
karenvicent 80d121e87a add llama suggestions 2025-09-08 10:49:42 -04:00
Alexander Holliday ed8352d857 Merge pull request #2928 from bluewave-labs/fix/install-ping
fix: install ping
2025-09-08 07:11:34 -07:00
Alex Holliday 41f64ca9fe bump version 2025-09-08 07:10:29 -07:00
Alex Holliday 738e49dc92 Merge branch 'develop' into fix/install-ping 2025-09-08 07:10:15 -07:00
Alex Holliday 68a16257c6 add ping to dist 2025-09-08 07:09:39 -07:00
Alex Holliday 5dcbae55f4 install ping 2025-09-08 06:57:10 -07:00
Alexander Holliday e0d963256c Merge pull request #2926 from bluewave-labs/fix/bump-version
fix: bump version
2025-09-08 06:45:15 -07:00
Alexander Holliday 2bff4bbd15 Merge pull request #2927 from bluewave-labs/fix/ping-error-logging
fix: throw ping error if present
2025-09-08 06:45:00 -07:00
Alex Holliday a0eba89f34 bump version 2025-09-08 06:43:35 -07:00
Alex Holliday 4e78de9da2 throw error if present 2025-09-08 06:42:36 -07:00
karenvicent 85f00eb7e8 Merge branch 'develop' into feat-page-initialization-hook 2025-09-05 15:59:14 -04:00
karenvicent 8e13855b66 feat create pagestate wrapper 2025-09-05 15:53:22 -04:00
Alexander Holliday 06f49e24c2 Merge pull request #2867 from antonstrover/fix/uptime%-charts-toggles
fix(status-page): toggles for charts and uptime %
2025-09-05 09:08:40 -07:00
antonstrover e598ae45f7 Merge branch 'develop' into fix/uptime%-charts-toggles 2025-09-05 16:46:04 +01:00
anton.strover ad7f469e06 add display name for bar 2025-09-05 16:27:48 +01:00
Alexander Holliday cb57ff5cc2 Merge pull request #2920 from bluewave-labs/fix/arm
fix/arm
2025-09-04 15:44:44 -07:00
Alex Holliday 72f070fbcb fix multiarch build 2025-09-04 15:15:09 -07:00
Alex Holliday fb0a86d37c update docker compoes and docker file 2025-09-04 13:39:53 -07:00
Alexander Holliday 36402dfefa Merge pull request #2870 from bluewave-labs/feat/add-team-member
Add direct user registration for team management
2025-09-03 09:58:35 -07:00
karenvicent c61874dbdd fix format error 2025-09-03 12:34:35 -04:00
Alex Holliday 20848f28d5 package 2025-09-03 09:21:24 -07:00
Alexander Holliday 5d23966f00 Merge pull request #2919 from bluewave-labs/fix/format-action
update format action, no need for ci
2025-09-03 09:20:43 -07:00
Alex Holliday 294cc66e4a update format action, no need for ci 2025-09-03 09:20:15 -07:00
Alex Holliday 0fd2e7032a update package-lock 2025-09-03 09:17:19 -07:00
Alex Holliday 340b85043e Merge branch 'feat/add-team-member' of github.com:bluewave-labs/checkmate into feat/add-team-member 2025-09-03 09:15:22 -07:00
Alex Holliday 1821ae3c2b add root gitignore 2025-09-03 09:14:30 -07:00
karenvicent c536cb2afa run format 2025-09-03 10:18:09 -04:00
karenvicent 3f79b4c2f6 Merge branch 'develop' into feat/add-team-member 2025-09-03 09:56:31 -04:00
karenvicent 137ba9185e fix details 2025-09-03 09:55:53 -04:00
Alexander Holliday 2f6a0913dc Merge pull request #2917 from bluewave-labs/fix/bump-scheduler
bump scheduler
2025-09-02 10:35:09 -07:00
Alex Holliday 2c7336d440 bump scheduler 2025-09-02 10:34:33 -07:00
Gorkem Cetin (BWL) 5a022ff3f6 Create .coderabbit.yml so it doesnt add summary to the PR 2025-09-01 19:33:33 -04:00
Alexander Holliday fe4855500e Merge pull request #2896 from PaiJi/feat/update-i18n-scripts
feat(i18n): add zh-CN
2025-09-01 10:46:21 -07:00
Alexander Holliday ce8f5cbe0c Merge pull request #2878 from antonstrover/fix/failed-prop-type-status
Fixed Bar component
2025-09-01 10:43:43 -07:00
Alexander Holliday b6bebe33fe Merge branch 'master' into develop 2025-09-01 10:32:59 -07:00
Alexander Holliday 9cf8072c1e Merge pull request #2914 from bluewave-labs/fix/bump-multiarch-node
Fix/bump multiarch node
2025-09-01 10:30:51 -07:00
Alex Holliday 0ca00ca6a1 esbuild 2025-09-01 10:28:41 -07:00
Alex Holliday 619c5242db bump versions 2025-09-01 10:14:57 -07:00
Alexander Holliday ff07854590 Merge pull request #2913 from bluewave-labs/revert-2910-fix/alpine-to-slim
Revert "pin dependency"
2025-09-01 09:27:03 -07:00
Alexander Holliday ba99989c66 Revert "pin dependency" 2025-09-01 09:26:51 -07:00
Alexander Holliday 3c75933cf2 Merge pull request #2912 from bluewave-labs/revert-2911-develop
Revert "develop->master"
2025-09-01 09:26:35 -07:00
Alexander Holliday ea9ef7afd3 Revert "develop->master" 2025-09-01 09:26:23 -07:00
Alexander Holliday f5e633a781 Merge pull request #2911 from bluewave-labs/develop
develop->master
2025-09-01 09:23:01 -07:00
Alexander Holliday 90b94816dd Merge pull request #2910 from bluewave-labs/fix/alpine-to-slim
pin dependency
2025-09-01 09:22:26 -07:00
Alex Holliday 11dcaef3ff pin 2025-09-01 09:21:56 -07:00
Alex Holliday 3f3e7f71ec pin dependency 2025-09-01 09:21:11 -07:00
Alexander Holliday b6070572cf Merge pull request #2909 from bluewave-labs/develop
develop->master
2025-09-01 09:15:48 -07:00
Alexander Holliday e818a02a2a Merge pull request #2908 from bluewave-labs/fix/alpine-to-slim
fix build
2025-09-01 09:15:17 -07:00
Alex Holliday d8c8e222c8 fix build 2025-09-01 09:14:35 -07:00
Alexander Holliday f12b9715bc Merge pull request #2907 from bluewave-labs/develop
develop -> master
2025-09-01 09:07:57 -07:00
Alexander Holliday 31c65d3e0b Merge pull request #2906 from bluewave-labs/fix/alpine-to-slim
add omit optional flag
2025-09-01 09:07:21 -07:00
Alex Holliday fcd6741cf9 add omit optional flag 2025-09-01 09:06:42 -07:00
Alexander Holliday d663b9230f Merge pull request #2905 from bluewave-labs/develop
Develop -> Master
2025-09-01 09:00:25 -07:00
Alexander Holliday 5f2d61ad7a Merge pull request #2904 from bluewave-labs/fix/alpine-to-slim
remove alpine fix
2025-09-01 08:58:42 -07:00
Alex Holliday ec80a2dc0b remove alpine fix 2025-09-01 08:57:55 -07:00
Alexander Holliday 2cece3de59 Merge pull request #2902 from bluewave-labs/develop
develop -> master
2025-09-01 08:54:38 -07:00
Alexander Holliday 79eb580802 Merge pull request #2901 from bluewave-labs/fix/alpine-to-slim
alpine -> slim
2025-09-01 08:54:10 -07:00
Alex Holliday b93e3327a7 alpine -> slim 2025-09-01 08:53:03 -07:00
anton.strover f01030a47a move width out of sx object 2025-09-01 11:44:10 +01:00
JiPai 3cbd907c09 feat(i18n): add zh-CN 2025-09-01 04:53:24 +08:00
karenvicent 8fae69b7a4 Merge branch 'develop' into feat/add-team-member 2025-08-31 10:19:01 -04:00
karenvicent e45dd4240e fix errors 2025-08-31 10:18:15 -04:00
Alexander Holliday 16a8552e6c Merge pull request #2890 from bluewave-labs/develop
develop->master
2025-08-30 19:31:37 -07:00
Alexander Holliday c953ec6152 Merge pull request #2889 from bluewave-labs/fix/package-lock
regenerate package-lock
2025-08-30 19:31:02 -07:00
Alex Holliday a433f10240 regenerate package-lock 2025-08-30 19:30:24 -07:00
Alexander Holliday b73b97b5e9 Merge pull request #2887 from bluewave-labs/feat/add-maintenance-window-description
Update maintenance window description
2025-08-30 19:01:45 -07:00
gorkem-bwl 0607e0b228 refactor: simplify maintenance window description per feedback
- Remove redundant words 'active' and 'completely'
- Remove technical details about specific check types
- Keep the description concise while maintaining clarity
- Maintain all key information about maintenance behavior
2025-08-30 21:57:17 -04:00
gorkem-bwl 3bd4f67ec7 docs: add comprehensive maintenance window behavior description
- Update maintenance window description to clearly explain what happens during maintenance
- Clarify that ALL monitoring types are suspended (pings, HTTP, port checks, etc.)
- Explain that no notifications or alerts will be triggered
- Describe status page behavior (maintenance indicator shown)
- Note that monitoring resumes automatically when maintenance ends
- Clarify that maintenance periods don't affect uptime calculations
- Provide users with complete understanding of maintenance window impact
2025-08-30 21:31:44 -04:00
Alexander Holliday 845d5a5d51 Merge pull request #2885 from bluewave-labs/develop
develop->master
2025-08-30 16:23:40 -07:00
Alexander Holliday 0101da731f Merge pull request #2884 from bluewave-labs/fix/bump-version
bump version
2025-08-30 16:23:03 -07:00
Alex Holliday 68592acd39 bump version 2025-08-30 16:22:16 -07:00
Alexander Holliday b86fc5edb3 Merge pull request #2883 from bluewave-labs/develop
develop -> master
2025-08-30 16:21:19 -07:00
Alexander Holliday 32b54ddf11 Merge pull request #2882 from bluewave-labs/feat/migration
add migration for statusWindowThreshold
2025-08-30 16:20:23 -07:00
Alex Holliday f8a0741e6c <= -> < 2025-08-30 16:19:17 -07:00
Alex Holliday 652d231771 add migration for statusWindowThreshold 2025-08-30 16:07:03 -07:00
Alexander Holliday 1c3c5f4fec Merge pull request #2881 from bluewave-labs/fix/queue
fix: queue
2025-08-30 11:30:38 -07:00
Alex Holliday e7006a4a44 fix default value 2025-08-30 11:28:54 -07:00
Alex Holliday 0f81d54f25 remove success toast 2025-08-30 11:18:05 -07:00
Alex Holliday f3121c24c6 add interval to queue table 2025-08-30 11:17:34 -07:00
Alex Holliday 7abd0f2cd4 add root level gitignore 2025-08-30 11:13:53 -07:00
Alex Holliday 46b342005a update monitor interval and data 2025-08-30 11:11:58 -07:00
Alex Holliday 4e0349bd58 bump queue 2025-08-30 11:11:19 -07:00
Alexander Holliday 30a569233b Merge pull request #2873 from bluewave-labs/feat/docker-container-name-monitoring
feat: Enable Docker container monitoring by name in addition to ID
2025-08-29 09:33:45 -07:00
Alex Holliday 44ba6b4d0f early returns 2025-08-29 09:22:02 -07:00
Alexander Holliday 9065070eb2 Merge pull request #2871 from bluewave-labs/feat/incident-tooltip
feat:incident tooltip
2025-08-29 09:07:35 -07:00
anton.strover fd951bfdd5 Fixed Bar component
Moved width prop from direct prop to sx prop, updated PropTypes to accept string|object.
2025-08-29 11:24:57 +01:00
anton.strover 27d613b594 remove carried away-ness 2025-08-29 10:49:22 +01:00
gorkem-bwl ba757b9aa4 style: fix prettier formatting in validation.js 2025-08-29 00:58:03 -04:00
gorkem-bwlandClaude c445463c0c refactor: improve Docker container matching with deterministic priority-based logic
Address code review feedback to eliminate ambiguity issues and improve reliability:

**Backend Improvements:**
- Implement priority-based matching: exact ID → exact name → partial ID
- Add input normalization (strip leading slashes, case-insensitive)
- Add ambiguity detection with warning logs for debugging
- Maintain full backwards compatibility with existing monitors

**Frontend Improvements:**
- Update validation regex to support leading slashes (/container-name)
- Improve error message clarity for user guidance

**Resolves Ambiguity Issues:**
- Container name "abc" vs Container ID "abc123..." now deterministic
- Multiple containers with similar names handled predictably
- Case-insensitive matching for better user experience

**Priority Order:**
1. Exact full ID match (64-char) - highest priority
2. Exact container name match - case-insensitive
3. Partial ID match - backwards compatibility fallback

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 00:53:40 -04:00
gorkem-bwlandClaude 4693177e4b feat: add Docker container monitoring by name
- Update Docker monitoring to support both container names and IDs
- Maintain backward compatibility with existing container ID monitoring
- Add logic to find containers by name (with or without "/" prefix)
- Update frontend UI labels and placeholders to reflect name/ID support
- Update instructions to clarify both name and ID are supported

Resolves user request: "It would be great if we could monitor docker containers by name and not just ID - given that the ID changes when containers are taken down for any reason"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 00:27:01 -04:00
Alex Holliday 30b135eba3 add tooltip to incident table 2025-08-28 12:21:34 -07:00
Alex Holliday bda48e07f1 add optional tooltip 2025-08-28 12:21:23 -07:00
karenvicent 7c8ab64e34 fix sucess toast msg 2025-08-28 13:38:05 -04:00
karenvicent ec7855bd02 Merge branch 'develop' into feat/add-team-member 2025-08-28 13:21:20 -04:00
karenvicent d401eefd6b Add direct user registration 2025-08-28 12:58:38 -04:00
Alexander Holliday 0ad759a384 Merge pull request #2865 from bluewave-labs/fix/status-page-deletion-error
Fix status page deletion error
2025-08-27 14:49:45 -07:00
gorkem-bwl d3d20b29c3 Fix status page deletion error - missing module reference
- Fix deleteStatusPage method call to use statusPageModule
- Change this.db.deleteStatusPage to this.db.statusPageModule.deleteStatusPage
- Ensures consistency with other controller methods
- Resolves "this.db.deleteStatusPage is not a function" error

Fixes bug where status page deletion failed due to incorrect database module reference.
2025-08-27 17:47:11 -04:00
Alexander Holliday fbb570c0d5 Merge pull request #2862 from bluewave-labs/fix/advanced-matching
fix: advanced matching
2025-08-26 14:56:20 -07:00
Alex Holliday 2318082bb8 fix advanced matching 2025-08-26 14:54:24 -07:00
Alexander Holliday 05dd5f7de2 Merge pull request #2858 from bluewave-labs/develop
develop -> master
2025-08-25 15:06:19 -07:00
Alexander Holliday 841251d09e Merge pull request #2857 from bluewave-labs/fix/model-types
fix/model types
2025-08-25 15:05:41 -07:00
Alexander Holliday a4dd8f70f0 Merge branch 'develop' into fix/model-types 2025-08-25 15:05:30 -07:00
Alex Holliday 9d0d1329b6 bump version 2025-08-25 15:04:44 -07:00
Alex Holliday 7a929777b4 fix model types 2025-08-25 15:03:31 -07:00
Alexander Holliday ce3ec99c9f Merge pull request #2855 from bluewave-labs/develop
develop -> master
2025-08-25 14:38:06 -07:00
Alexander Holliday 4f7847275e Merge pull request #2854 from bluewave-labs/feat/bump-version
bump version
2025-08-25 14:37:21 -07:00
Alex Holliday 9a5ddb22b3 bump version 2025-08-25 14:37:00 -07:00
Alexander Holliday b1322cbec3 Merge pull request #2853 from bluewave-labs/fix/string-service-path
fix: string service path, resolves #2847, resolves #2848
2025-08-25 14:32:21 -07:00
Alex Holliday 637bc84136 fix string service path 2025-08-25 14:30:41 -07:00
Alexander Holliday 3147f02b6a Merge pull request #2843 from bluewave-labs/fix/notification-channel-validation
fix notification validation
2025-08-22 11:34:38 -07:00
Alex Holliday dabff74946 fix notification validation 2025-08-22 11:33:14 -07:00
Gorkem Cetin (BWL) de99577b9d Merge pull request #2838 from bluewave-labs/disabledbydefault
Fix Settings Page Select Component Value Handling for URL Visibility Option
2025-08-22 10:38:16 -04:00
Alexander Holliday 1846432601 Merge pull request #2839 from bluewave-labs/fix/docker-compose-arm
fix: update arm dist docker compose
2025-08-21 22:39:03 -07:00
Alex Holliday 6f307dc822 update arm dist docker compose 2025-08-21 22:37:59 -07:00
imjainish f43210e29e Address PR Comments - Format 2025-08-21 23:13:50 -04:00
imjainish 50b9be4eca Address PR Comments 2025-08-21 23:05:50 -04:00
imjainish 1a38222974 Fix Disabled Field in Settings 2025-08-21 22:39:41 -04:00
Alexander Holliday cb9cd0a43c Merge pull request #2829 from bluewave-labs/fix-timestamps-format
fix: add missing tooltip date format for 'recent' timeframe in charts
2025-08-21 11:39:13 -07:00
Alexander Holliday c2e2ae8dbd Merge pull request #2834 from bluewave-labs/develop
develop -> master
2025-08-21 10:13:48 -07:00
Alexander Holliday df790a92be Merge pull request #2836 from bluewave-labs/fix/bump-version
bump version
2025-08-21 10:13:13 -07:00
Alex Holliday e1f9242b34 bump version 2025-08-21 10:12:44 -07:00
Alexander Holliday 9d2a52e639 Merge pull request #2833 from bluewave-labs/translation-update-77
🌐 Updated Translations from POEditor
2025-08-21 09:25:38 -07:00
GitHub Action 5cbca9457e feat: translations updated from POEditor 2025-08-21 16:22:53 +00:00
Alexander Holliday 25c66cff43 Merge pull request #2831 from bluewave-labs/develop
develop -> master
2025-08-21 09:15:40 -07:00
karenvicent 75a2e0deee Merge branch 'develop' into fix-timestamps-format 2025-08-20 18:16:50 -04:00
karenvicent b857137f1a fix data format in uptime and infrastructure charts 2025-08-20 18:14:42 -04:00
Alexander Holliday 40141cdcb0 Merge pull request #2828 from bluewave-labs/fix/version-bump
Fix/version bump
2025-08-20 14:10:16 -07:00
Alex Holliday c5c1d6903e 3.1 2025-08-20 14:09:41 -07:00
Alex Holliday f15c8188b9 bump again 2025-08-20 14:07:30 -07:00
Alexander Holliday 8f971cfb02 Merge pull request #2826 from bluewave-labs/develop
develop -> master
2025-08-20 14:05:35 -07:00
Alexander Holliday 32c811ec5a Merge pull request #2827 from bluewave-labs/fix/version-bump
fix: bump version
2025-08-20 14:04:34 -07:00
Alex Holliday 4febc56c30 bump version 2025-08-20 14:04:02 -07:00
Alexander Holliday f22ee4a68b Merge pull request #2824 from bluewave-labs/fix/remove-log
remove console statement
2025-08-20 14:01:57 -07:00
Alex Holliday 87bec0399f remove console statement 2025-08-20 14:01:32 -07:00
Alexander Holliday 1f29255dd1 Merge pull request #2821 from bluewave-labs/refactor/create-maintenance-window
refactor create maintenance window page
2025-08-20 13:29:56 -07:00
karenvicent 4a11638182 refactor create maintenance window page 2025-08-20 12:51:24 -04:00
Alexander Holliday 10743372f8 Merge pull request #2813 from bluewave-labs/feat/n-of-m-frontend
feat/n of m frontend
2025-08-19 08:08:52 -07:00
Alex Holliday d4b11bbb76 extract strings, sort json 2025-08-18 15:46:41 -07:00
Alex Holliday ced2417c98 add incident config 2025-08-18 15:34:30 -07:00
Alex Holliday 27415aeca6 fix undefined bug, updated server validation 2025-08-18 15:34:15 -07:00
Alexander Holliday 9bd2e336a6 Merge pull request #2811 from bluewave-labs/feat/alerts-n-of-m
feat: alerts on  `n` of `m`, resolves #2366
2025-08-18 14:16:35 -07:00
Alex Holliday d5778ec173 update stauts service to use n of m status changes 2025-08-18 13:40:56 -07:00
Alex Holliday 74e80f086a udpate monitor model 2025-08-18 13:40:22 -07:00
Alexander Holliday b1c6191fa1 Merge pull request #2809 from bluewave-labs/fix/fe/minor-changes
Fix: Minor Changes
2025-08-18 12:56:00 -07:00
Alexander Holliday 8e0245c844 Merge pull request #2807 from bluewave-labs/feat/simplify-checks
feat: unify check models
2025-08-18 12:54:45 -07:00
Br0wnHammer 613fbf8c39 Fix: Minor Changes 2025-08-19 01:11:56 +05:30
Alex Holliday 1788cda5c2 let -> const 2025-08-18 11:27:41 -07:00
Alex Holliday 155adf549e add backend changes 2025-08-18 10:55:12 -07:00
Alex Holliday 5463542532 unify check models 2025-08-18 10:52:00 -07:00
Alexander Holliday f5a25bc0e5 Merge pull request #2806 from bluewave-labs/fix/pager_duty
fix: update pager_duty validation, resolves #2805
2025-08-18 09:17:22 -07:00
Alex Holliday 993339d0d1 update pager_duty validation 2025-08-17 20:21:18 -07:00
Alexander Holliday bc4fe897cf Merge pull request #2804 from bluewave-labs/refactor-create-infrastruture
Refactor create infrastruture
2025-08-17 15:16:28 -07:00
Alexander Holliday c773bdaabd Merge pull request #2802 from bluewave-labs/feat/network-service-refactor
feat: network service refactor
2025-08-17 15:08:40 -07:00
Alex Holliday 9f9a2be1d8 fix missing URL 2025-08-17 15:08:12 -07:00
karenvicent 1e4b0c2f20 Merge branch 'develop' into refactor-create-infrastruture 2025-08-17 15:28:49 -04:00
karenvicent 56025f6d56 refactor create infraestructure monitor page 2025-08-17 15:28:06 -04:00
Alexander Holliday 5188b90f32 Merge pull request #2800 from mattstein/fix/pagespeed-validation
Fix: resolve erroneous PageSpeed settings validation
2025-08-15 17:47:30 -07:00
Matt Stein 7178f537a8 Update with changes from code review. 2025-08-15 16:40:21 -07:00
Alex Holliday 45ac589975 refactor network service 2025-08-15 16:04:43 -07:00
Alex Holliday 9925e10ffc add timings to model 2025-08-15 16:03:12 -07:00
Alex Holliday e3fde8d564 add got 2025-08-15 16:02:52 -07:00
Matt Stein 8aee01e008 Fix PageSpeed settings validation. 2025-08-15 14:34:42 -07:00
Alexander Holliday cd203ff067 Merge pull request #2794 from Owaiseimdad/Network-patch-fixes-part-1
Fixed the selector and also null points for networks
2025-08-15 13:12:04 -07:00
Alexander Holliday 254cb6d80f Merge pull request #2788 from bluewave-labs/fix/filter-header-alignment
Fix: Improve vertical alignment of text and plus icons in filter headers
2025-08-15 12:21:50 -07:00
Alexander Holliday 9b3ad54d0a Merge pull request #2797 from bluewave-labs/develop
develop -> master
2025-08-15 12:21:10 -07:00
Alexander Holliday 4ae3bb5780 Merge pull request #2795 from bluewave-labs/hotfix/path
fix path, remove redis form build script
2025-08-15 09:18:18 -07:00
Alex Holliday b8aa1ef765 fix path, remove redis form build script 2025-08-15 09:17:33 -07:00
gorkem-bwl 5e5daef49a Move vertical alignment styling from component to theme level
- Move MuiSelect vertical alignment from FilterHeader component to globalTheme.js
- Ensures consistent vertical alignment for all Select components application-wide
- Removes component-specific styling in favor of theme-level consistency
- Addresses reviewer feedback to make this a theme-level change

Components already with custom Select styling will continue to work as local styles override theme styles.
2025-08-15 03:38:22 -04:00
Owaise 88c478c533 Formatting is done. 2025-08-15 11:37:38 +05:30
Owaise 1ecec115e4 Fixed the selector and also null points for networks. 2025-08-15 11:28:22 +05:30
Alexander Holliday 8ff597eedb Merge pull request #2791 from bluewave-labs/fix/remove-logs-descriptions
Fix: Remove description text and dividers from Logs sections
2025-08-14 20:36:44 -07:00
Alexander Holliday 69f74488e5 Merge pull request #2790 from bluewave-labs/fix/logs-default-tab
Fix: Set Server Logs as default tab on Logs page
2025-08-14 20:34:15 -07:00
gorkem-bwl ded9a27f42 fix: remove excess spacing after removing description text
Removed top margin (mt={theme.spacing(10)}) and adjusted sticky position
from the log level selector since it was creating unwanted space between
the tab bar and the 'Log level' dropdown after removing the description
text and divider.
2025-08-14 22:22:05 -04:00
gorkem-bwl 43284ae625 fix: remove description text and dividers from Logs sections
Removed description strings and divider lines from:
- Server logs: 'System logs - last 1000 lines' and divider
- Queue metrics: queue description and divider

This cleans up the UI by removing redundant descriptive text
that users can infer from the tab names and content context.
2025-08-14 22:19:54 -04:00
gorkem-bwl f7b1ef9741 fix: set Server Logs as default tab on Logs page
Changed default tab from Diagnostics (index 2) to Server Logs (index 0)
when users navigate to the Logs section from the sidebar. This makes
Server Logs the active tab by default, which is more intuitive since
it's the first tab in the list.
2025-08-14 22:11:47 -04:00
gorkem-bwl a6d445818f fix: improve vertical alignment of text and plus icons in filter headers
Added flex alignment styles to MuiSelect-select class to ensure proper vertical
alignment between text labels and plus icons in Type, Status, and State filter
buttons on the Uptime page.
2025-08-14 20:15:56 -04:00
Alexander Holliday 122a84b9e2 Merge pull request #2787 from bluewave-labs/develop
develop -> master for 3.0-beta
2025-08-14 15:28:35 -07:00
Alexander Holliday 065a6cb1fd Merge pull request #2785 from bluewave-labs/fix/caputre
add capture to prod and staging docker-compose
2025-08-14 12:49:11 -07:00
Alex Holliday ae9eb494ae add capture to prod and staging docker-compose 2025-08-14 12:48:49 -07:00
Gorkem Cetin (BWL) 0241797e79 Update README.md 2025-08-14 15:48:11 -04:00
Alexander Holliday 9d45947b08 Merge pull request #2782 from bluewave-labs/fix/version
bump versoin
2025-08-14 11:27:13 -07:00
Alex Holliday f2c26c0eed bump versoin 2025-08-14 11:26:46 -07:00
Alexander Holliday f7a1416070 Merge pull request #2780 from bluewave-labs/hotfix/remove-redis-from-workflow
remove redis from production workflow
2025-08-14 10:32:36 -07:00
Alex Holliday 9e05d024a8 remove redis from production workflow 2025-08-14 10:32:10 -07:00
Alexander Holliday 3bd4c8d747 Merge pull request #2778 from bluewave-labs/hotfix/workflow
add release workflow
2025-08-14 10:00:49 -07:00
Alex Holliday 9ae7314f54 add release workflow 2025-08-14 10:00:20 -07:00
Alexander Holliday c77d1e3322 Merge pull request #2777 from bluewave-labs/hotfix/workflow
remove redis from workflows
2025-08-14 09:59:11 -07:00
Alex Holliday 0e767d6581 remove redis from workflows 2025-08-14 09:58:41 -07:00
Alexander Holliday 7ff5935f94 Merge pull request #2775 from Tafadzwa-Chiwozva/feature/custom-ca-trust-docs
docs: add guide and tooling for custom CA trust in Dockerized Checkmate (Fixes #2747)
2025-08-14 09:52:52 -07:00
Alexander Holliday cb4566f829 Merge pull request #2772 from singh-kanwarpreet/feature/sticky-header
Made NavBar Still
2025-08-14 09:43:31 -07:00
Alexander Holliday 52249d5b7e Merge pull request #2774 from bluewave-labs/fix/remove-mogno-replica-set-config
fix: remove mogno replica set config
2025-08-14 09:35:09 -07:00
Alex Holliday 22e0507fbd fix arm dist health check 2025-08-14 09:34:30 -07:00
Alexander Holliday e32e72de7a Merge pull request #2741 from Owaiseimdad/Network-tab-implementation-FE
Network tab implementation fe
2025-08-14 09:22:09 -07:00
Owaise ff31ee773f Added a drop down so that we have choice to make about which network interface to choose. 2025-08-14 19:35:12 +05:30
singh-kanwarpreet a1cbbf5d42 Added zIndex as earlier causes problem in diagnostics 2025-08-14 15:06:01 +05:30
singh-kanwarpreet ce667bc53b Improved code quality 2025-08-14 15:02:44 +05:30
Alex Holliday d5526b89d9 remove redis references 2025-08-13 15:22:03 -07:00
Alex Holliday 096cfccf40 update dokcer compose files to remove mongo replica set config 2025-08-13 15:16:01 -07:00
Tafadzwa Chiwozva f381b0ce4a docs: add guide and tooling for custom CA trust in Dockerized Checkmate (Fixes #2747) 2025-08-13 17:50:30 -04:00
Alexander Holliday 867b530573 Merge pull request #2765 from bluewave-labs/refactor-login-page
Refactor login page
2025-08-13 14:38:12 -07:00
Owaise 2141c3eacd Metrics validated. 2025-08-14 00:04:53 +05:30
singh-kanwarpreet 13a5f699ba Updated Style 2025-08-13 22:53:18 +05:30
singh-kanwarpreet 7ab5f4ab09 Refactored code 2025-08-13 22:41:13 +05:30
singh-kanwarpreet 480ba034ce Made NavBar Still 2025-08-13 14:47:09 +05:30
karenvicent d560e923d2 Merge branch 'develop' into refactor-login-page 2025-08-12 14:30:55 -04:00
karenvicent 235fc979b2 move hooks to login file 2025-08-12 14:30:11 -04:00
Owaise f5aefb1f0b Ran formattor. 2025-08-12 23:49:45 +05:30
Owaise e27cc8a12b Added delta instead of avg, and formatted the code to re-use already existing code. 2025-08-12 23:48:47 +05:30
Alexander Holliday f2e2d5c2ed Merge pull request #2766 from mertssmnoglu/ci/format-remove-close-pr-step
ci: remove extra 'Close PR' step in check-format workflow
2025-08-12 10:08:23 -07:00
Alexander Holliday 6d999eccbd Merge pull request #2767 from bluewave-labs/fix/reduce-animation-size-in-empty-states
Fix: Reduce animated gif size to 2/3 in empty states
2025-08-12 10:00:03 -07:00
gorkem-bwl 136144b8ec fix: use transform scale instead of width for better border radius preservation 2025-08-12 11:03:46 -04:00
Owaise 355a445ead Fixed the code for linus, windows and mac based. Also made changes to pipeline. 2025-08-12 10:05:58 +05:30
gorkem-bwl c490508252 fix: reduce animated gif size to 2/3 in empty states
Reduces animation size from 100% to 66.67% width for better visual balance
2025-08-11 23:28:35 -04:00
Gorkem Cetin (BWL) 7b4160ac92 Update README.md 2025-08-11 20:38:53 -04:00
karenvicent 781854d85c delete console.log 2025-08-11 18:42:33 -04:00
Mert Şişmanoğlu 86dc71687d ci: remove extra 'Close PR' step in check-format workflow
Signed-off-by: Mert Şişmanoğlu <mertssmnoglu@gmail.com>
2025-08-12 01:41:45 +03:00
karenvicent f0e79121a7 Merge branch 'develop' into refactor-login-page 2025-08-11 18:22:11 -04:00
karenvicent ed1b88f1fd refactor login page 2025-08-11 18:21:23 -04:00
Alexander Holliday bb5a3e73c8 Merge pull request #2763 from bluewave-labs/security/add-jwt-cookie-infrastructure
Add JWT Cookie Infrastructure
2025-08-11 15:09:10 -07:00
Alexander Holliday 38b2025286 Merge branch 'develop' into security/add-jwt-cookie-infrastructure 2025-08-11 15:08:54 -07:00
Alexander Holliday c12f5880e2 Delete server/utils/sanitization.js 2025-08-11 15:07:42 -07:00
Alexander Holliday 94cf22ab8e Merge pull request #2760 from bluewave-labs/security/add-sanitization-infrastructure
Add Input Sanitization Infrastructure
2025-08-11 15:03:37 -07:00
Alex Holliday 0bc8142e71 move to middleware 2025-08-11 15:02:07 -07:00
Alexander Holliday d890b972be Merge pull request #2762 from bluewave-labs/security/apply-input-sanitization
Apply Input Sanitization for XSS Protection
2025-08-11 14:53:32 -07:00
gorkem-bwl 05945a9a74 feat: add JWT cookie infrastructure
Adds the foundation for secure cookie-based authentication without changing
the authentication flow. This prepares the codebase for moving JWT tokens
from Redux state to httpOnly cookies in a follow-up PR.

Changes:
- Added cookie-parser dependency for HTTP cookie handling
- Added cookieParser() middleware to Express application
- Created cookieHelpers.js utilities for consistent cookie options
- Includes getAuthCookieOptions() for setting secure authentication cookies
- Includes getClearAuthCookieOptions() for clearing cookies on logout

Infrastructure only - no behavioral changes to authentication flow yet.

Files added/modified:
- package.json (cookie-parser dependency)
- src/app.js (cookieParser middleware)
- src/utils/cookieHelpers.js (cookie utilities)

Next steps:
- Follow-up PR will modify JWT verification to check cookies
- Enable secure cookie-based authentication
- Add logout functionality to clear httpOnly cookies

Risk level: LOW (infrastructure only, no authentication changes)
2025-08-11 17:47:09 -04:00
gorkem-bwl 88b68a9df0 fix: apply prettier formatting to app.js
Fixed formatting issues to pass CI/CD checks
2025-08-11 17:39:08 -04:00
gorkem-bwl 8b322a0ec0 feat: apply input sanitization to prevent XSS attacks
Enables comprehensive XSS protection by applying sanitization middleware
to all incoming requests. Uses the sanitization utilities added in previous PR.

Changes:
- Added sanitizeBody() and sanitizeQuery() middleware after express.json()
- Enhanced Content Security Policy headers for additional XSS protection
- Added 'object-src: none' and 'base-uri: self' directives
- All user inputs now automatically sanitized before processing

Security improvements:
- Prevents stored XSS attacks through HTML sanitization
- Recursive sanitization handles nested objects and arrays
- Maintains backward compatibility with existing functionality
- Strengthened CSP headers block unsafe content injection

Files changed: src/app.js (9 lines added)
Risk level: Medium (global middleware application)
2025-08-11 17:33:05 -04:00
gorkem-bwl 7968ed8a19 fix: apply prettier formatting to sanitization.js
Fixed formatting issues identified by CI/CD system
2025-08-11 17:26:28 -04:00
gorkem-bwl 2fba22d0f6 feat: add input sanitization infrastructure
Adds foundational utilities for XSS prevention without applying them yet.
This prepares the codebase for comprehensive input sanitization in a follow-up PR.

Changes:
- Added isomorphic-dompurify and jsdom dependencies
- Created sanitization utilities in src/utils/sanitization.js
- Includes recursive object sanitization functions
- Provides Express middleware for body and query sanitization

Infrastructure only - no behavioral changes yet.

Files added:
- src/utils/sanitization.js (sanitization utilities)
- package.json (new dependencies)

Next steps:
- Apply sanitization middleware in follow-up PR
- Enable XSS protection across application
2025-08-11 17:23:14 -04:00
Alexander Holliday cce930b90a Merge pull request #2757 from bluewave-labs/fix/update-openapi-docs
fix: update openapi specs
2025-08-11 13:56:33 -07:00
Alex Holliday c5dd16511d update openapi specs 2025-08-11 13:55:01 -07:00
Owaise 65f437f08e Merge remote-tracking branch 'origin' into Network-tab-implementation-FE 2025-08-09 12:21:21 +05:30
Owaise 47c231a214 Formating done. 2025-08-09 12:17:25 +05:30
Owaise f5d0b74ccf Fixed the processing to be done in backend now. 2025-08-09 12:14:25 +05:30
Alexander Holliday 17cac37967 Merge pull request #2736 from burak28/feat/add-game-server-support
Feat/add game server support
2025-08-08 15:11:06 -07:00
Burak Arslan b7e7028b6f Fix error handling and method assignment in requestGame function 2025-08-08 23:59:41 +03:00
Alexander Holliday ea3df7be42 Merge pull request #2749 from bluewave-labs/fix/gap-select-components
Fix/gap select components
2025-08-08 09:27:21 -07:00
karenvicent f0d7e82e22 Merge branch 'develop' into fix/gap-select-components 2025-08-07 18:53:58 -04:00
karenvicent c6d56b30e4 fix gaps in select components 2025-08-07 18:53:05 -04:00
Alexander Holliday 8225924da6 Merge pull request #2746 from vineet-channe/feature/yellow-range-infrastructure-monitors
feat: Add yellow warning range (50-80%) for infrastructure monitors
2025-08-07 14:54:00 -07:00
Alexander Holliday 6517e9ee6c Merge pull request #2748 from bluewave-labs/feat/fe/sidebar-theme
Feat: Theme Switch Removal from Sidebar
2025-08-07 14:53:15 -07:00
vineet-channe 10ad3397a3 docs(CustomGauge): remove threshold prop from documentation and usage example
- Removed all references to the unused  prop from the JSDoc and usage example in the CustomGauge component.
- Ensured PropTypes and documentation accurately
2025-08-08 03:03:23 +05:30
Br0wnHammer dd9468cb2e Remove unused Imports 2025-08-08 02:06:44 +05:30
Br0wnHammer 0b9ab0614f Tooltip Position 2025-08-08 01:31:20 +05:30
Br0wnHammer e13f495d71 Remove Redundant Stack 2025-08-08 01:11:27 +05:30
Br0wnHammer 029b8fac37 Feat: Remove Theme Toggle Button 2025-08-08 01:07:49 +05:30
Alexander Holliday 6e5ada79de Merge pull request #2742 from bluewave-labs/feat/register-page
Feat/register page
2025-08-07 09:20:07 -07:00
Alexander Holliday 59f050135a Merge pull request #2744 from bluewave-labs/fix/fe/appname-color
Fix: Checkmate Color
2025-08-07 09:15:09 -07:00
vineet-channe dc8b0aed9f chore: format CustomGauge with Prettier 2025-08-07 20:46:15 +05:30
vineet-channe 424df24bf3 feat: Add yellow warning range (50-80%) for infrastructure monitors
Fixes #2615
2025-08-07 20:35:24 +05:30
Br0wnHammer d451f725cd Redundant sx prop 2025-08-07 18:21:50 +05:30
Br0wnHammer d04b8fddb0 Fix: Appname Color 2025-08-07 18:04:58 +05:30
karenvicent bb592964ee Merge branch 'develop' into feat/register-page 2025-08-06 17:19:21 -04:00
karenvicent 786dd427bc feat: Update Register page to match new Login design for consistent UX 2025-08-06 17:17:44 -04:00
Burak Arslan 4c2c452b91 Improve validation and error handling on form field 2025-08-06 00:53:35 +03:00
Alexander Holliday 1765bf7e55 Merge pull request #2740 from vineet-channe/fix-diagnostic-page-design
fix: update diagnostic page design to match infrastructure page
2025-08-05 10:10:35 -07:00
Alexander Holliday e19de23770 Merge pull request #2693 from Owaiseimdad/Network-tab-implementation-infra
Network tab implementation infra, in api at backend
2025-08-05 09:54:17 -07:00
Owaise 765a1a24ed Added en.json based values and console removal. 2025-08-05 21:04:15 +05:30
Owaise e42b4b2808 fixed the minor changes for FE. 2025-08-05 20:46:42 +05:30
ThetaOI 65f6925864 Merge branch 'bluewave-labs:develop' into Network-tab-implementation-FE 2025-08-05 19:49:59 +05:30
ThetaOI 02b7dc080b Merge branch 'bluewave-labs:develop' into Network-tab-implementation-infra 2025-08-05 19:49:38 +05:30
Owaise d4e8381827 Renamed them as average values in the table. 2025-08-05 19:43:35 +05:30
vineet-channe de34710c90 fix: address review feedback
- Replace hardcoded button text with translation
- Fix status box translation to avoid showing removed title
- Add conditional rendering for optional gauge metrics
2025-08-05 17:35:40 +05:30
Alexander Holliday cd8752c1cb Merge pull request #2737 from Jesulayomy/fe-infra_monitor_upgrade
[Frontend]: Refactor Infrastructure monitor create Component
2025-08-04 10:05:06 -07:00
vineet-channe 86a0b0b60c fix: update diagnostic page design to match infrastructure page
- Remove 'System diagnostics' title and divider line
- Add infrastructure-style status boxes with dynamic status
- Update gauge components to use BaseContainer styling
- Match infrastructure page layout and spacing

Resolves #2725
2025-08-04 18:43:37 +05:30
Alexander Holliday fc5ccf1cf8 Merge pull request #2738 from bluewave-labs/feature/2564-add-custom-css-field
Add customCSS field to StatusPage model
2025-08-03 16:16:46 -07:00
mohadeseh safari 45352b62e1 feat(status-page): add customCSS field to StatusPage model 2025-08-03 18:51:12 -04:00
Burak Arslan 0ea3379397 Merge branch 'feat/add-game-server-support' of https://github.com/burak28/Checkmate into feat/add-game-server-support 2025-08-03 13:20:02 +03:00
Burak Arslan 281cbbc30f feat: add game server monitoring support
- Added a new `/games` route in `monitorRoute.js` to fetch all supported games.
- Implemented `getAllGames` method in `monitorController.js` using the `gamedig` library.
- Introduced `useFetchMonitorGames` hook in `monitorHooks.js` to fetch game data in the frontend.
- Updated `UptimeCreate` page to support game server monitoring:
  - Added a new monitor type `"game"`.
  - Dynamically fetches and displays game options using the new `/games` API.
- Removed hardcoded `GAMES` object and replaced it with dynamic fetching from the backend.
- Updated `NetworkService.js` with a new `getMonitorGames` method for API calls.

This update introduces game server monitoring functionality, allowing users to monitor game servers dynamically.
2025-08-03 13:19:55 +03:00
Alexander Holliday 0de9e067c6 Merge pull request #2728 from Mohansai-M/feat/incident-page-block-icons
Feat/incident page block icons
2025-08-02 19:58:49 -07:00
Alexander Holliday 77c00558aa Merge pull request #2735 from bluewave-labs/fix/sidebar
fix: sidebar
2025-08-02 19:50:17 -07:00
owiaseimdad 10c5463892 Fixed the tool tip. 2025-08-03 01:26:13 +05:30
owiaseimdad 7b963ca877 Network tab first implementation 2025-08-03 00:30:04 +05:30
Jesulayomy aa35e9211b [Infra]: Removed duplicate call to .find method on the errors object 2025-08-02 04:13:29 -04:00
Jesulayomy 2fc0eb9460 [Infra]: Added translations for some time blocks 2025-08-02 03:53:54 -04:00
Jesulayomy 91b4c976e5 [Infra]: Refactor Create Component, Added Pause and Remove tool bar 2025-08-02 03:53:11 -04:00
owiaseimdad 950c5fdc92 Formating done. 2025-08-02 12:42:35 +05:30
allanmaaz 114572024c Removed teh required true from network db. 2025-08-02 12:34:31 +05:30
Burak Arslan 8503b7ece4 Merge branch 'develop' into feat/add-game-server-support 2025-08-02 02:28:53 +03:00
Burak Arslan b53650a50f Run npm run format 2025-08-02 02:25:58 +03:00
Burak Arslan 9ad3b58fcd Added game server support 2025-08-02 02:04:06 +03:00
Alex Holliday 521c6988a5 add onclick to avatar 2025-08-01 15:58:01 -07:00
Alex Holliday 7900e1104f clean up nav item 2025-08-01 15:52:55 -07:00
Alex Holliday 035edd92f4 add proptypes, fix logo text animation 2025-08-01 15:45:43 -07:00
Alex Holliday 2c4c6a5024 extract role names 2025-08-01 15:43:12 -07:00
Alex Holliday 12747bd95b remove console 2025-08-01 15:36:33 -07:00
Alex Holliday 7c22663250 remove unused css and old sidebar 2025-08-01 15:31:03 -07:00
Alex Holliday eb4856901b extract function 2025-08-01 15:28:22 -07:00
Alex Holliday da905169e1 remove extra popup state 2025-08-01 15:22:44 -07:00
Alex Holliday fe9bf6375f fix sticky sidebar 2025-08-01 15:14:03 -07:00
Alex Holliday 800f988979 move components to component folder 2025-08-01 15:01:30 -07:00
Alex Holliday b4f42bb7d4 fix arrow icons 2025-08-01 14:58:30 -07:00
Alex Holliday e58c5fdb86 Merge branch 'develop' into fix/sidebar 2025-08-01 14:43:33 -07:00
Alex Holliday 4e3f552538 simplify layouts 2025-08-01 14:10:20 -07:00
Alex Holliday 2d01205f70 auth footer styling 2025-08-01 12:39:35 -07:00
Mohansai Mallineni ebfb25ebc0 Handled styling of new icons 2025-08-01 22:09:15 +05:30
Alexander Holliday d93fb48202 Merge pull request #2732 from bluewave-labs/improve/login-page
Improve/login page
2025-08-01 09:13:02 -07:00
Mohansai Mallineni a73d0ef3b4 format 2025-08-01 21:15:12 +05:30
Mohansai Mallineni 8274d4ffbe Handled styling of new icons 2025-08-01 21:11:46 +05:30
Mohansai Mallineni 48990b860f Handled styling of new icons 2025-08-01 21:09:51 +05:30
Alex Holliday b61a7ffc3c components 2025-07-31 15:37:40 -07:00
karenvicent 37a3028540 Merge branch 'develop' into improve/login-page 2025-07-31 16:33:12 -04:00
karenvicent 2e675f5dee feat: Enhance Login page design and fix UI details 2025-07-31 16:32:30 -04:00
Alexander Holliday 6a2a79c086 Merge pull request #2731 from bluewave-labs/hotfix/monitor-module
fix references
2025-07-31 13:25:12 -07:00
Alex Holliday a86e9ff480 fix references 2025-07-31 13:24:32 -07:00
Alex Holliday 3dc332010e start refactor 2025-07-31 12:47:36 -07:00
Alexander Holliday 61a1972c4c Merge pull request #2730 from bluewave-labs/fix/diagnostic-module
fix: diagnostic module
2025-07-31 12:06:30 -07:00
Alex Holliday 0779e5ea15 remove commented out imports 2025-07-31 12:02:52 -07:00
Alexander Holliday fab78f0cee Merge pull request #2729 from bluewave-labs/feat/settings-module
feat: settubgs module -> class
2025-07-31 12:01:45 -07:00
Alex Holliday ce49270cf8 remove unused diagnostic db module 2025-07-31 12:00:27 -07:00
Alex Holliday 7a190f7c69 module -> class 2025-07-31 11:57:55 -07:00
Mohansai Mallineni 126767ed5c Replaced existing icons with the provided svg's in the Incident page block area 2025-07-31 22:39:17 +05:30
Alexander Holliday 7d5302cfcf Merge pull request #2707 from singh-kanwarpreet/feature/global-thresholds
Feature/global thresholds
2025-07-31 09:31:14 -07:00
Alexander Holliday 87d3d6a8f0 Merge pull request #2724 from bluewave-labs/feat/recovery-module
feat: recovery module -> class
2025-07-31 09:18:56 -07:00
Alex Holliday 927e8a88b8 remove console log 2025-07-31 09:18:12 -07:00
singh-kanwarpreet 73a6277feb Refactored Code 2025-07-31 16:04:41 +05:30
Mohansai Mallineni 94a7044b7b Replaced existing icons with the provided svg's in the Incident page block area 2025-07-31 05:07:42 +05:30
Alex Holliday 54d3392cf1 remove commented out imports 2025-07-30 15:35:16 -07:00
Alexander Holliday f1c9aad4e6 Merge pull request #2723 from bluewave-labs/feat/pagespeed-module
feat: pagespeed module->class
2025-07-30 15:34:32 -07:00
Alex Holliday 48cf8a5e73 module -> class 2025-07-30 15:34:03 -07:00
Alex Holliday b5f4c04165 module->class 2025-07-30 15:21:22 -07:00
Alexander Holliday a9c2549376 Merge pull request #2722 from bluewave-labs/feat/notification-module
feat: notification module -> class
2025-07-30 15:17:19 -07:00
Alex Holliday 7bf96f6194 module -> class 2025-07-30 15:14:36 -07:00
Alexander Holliday ae40cb8a54 Merge pull request #2721 from bluewave-labs/feat/network-check-module
feat: NetworkCheck module -> class
2025-07-30 15:06:50 -07:00
Alex Holliday 16ebe4b1ab module -> class 2025-07-30 15:06:19 -07:00
Alexander Holliday c7914a1c4f Merge pull request #2720 from bluewave-labs/feat/monitor-module
feat: monitor module
2025-07-30 15:06:03 -07:00
Alex Holliday 6b12246ec0 Merge branch 'develop' into feat/monitor-module 2025-07-30 15:00:33 -07:00
Alexander Holliday 4a42b6eb43 Merge pull request #2719 from bluewave-labs/feat/maintenance-window-module
feat: module -> class
2025-07-30 14:59:46 -07:00
Alex Holliday de742068a7 module -> class 2025-07-30 12:25:12 -07:00
Alex Holliday b383ce5b11 Merge branch 'develop' into feat/maintenance-window-module 2025-07-30 11:39:23 -07:00
Alexander Holliday ccb424eafe Merge pull request #2718 from bluewave-labs/feat/hardware-module
module -> class
2025-07-30 11:38:34 -07:00
Alex Holliday 585fb4f700 module -> class 2025-07-30 11:36:19 -07:00
Alex Holliday 00f5eaf44d module -> class 2025-07-30 11:27:29 -07:00
singh-kanwarpreet 8bacbcde89 Removed Unnecassary command 2025-07-30 23:35:51 +05:30
Alexander Holliday 245e436a88 Merge pull request #2717 from bluewave-labs/feat/user-module-class
feat: refactor user module into class
2025-07-30 10:54:41 -07:00
singh-kanwarpreet 2d6fdcb1e2 Made code readable 2025-07-30 23:14:35 +05:30
Alex Holliday 8adad64248 refactor module into class 2025-07-30 10:41:53 -07:00
Alexander Holliday e7cf6d385c Merge pull request #2714 from bluewave-labs/feat/statuspage-module
feat: refactor status page module into class
2025-07-30 10:22:46 -07:00
Alex Holliday 753a904c94 refacotr status page module into class 2025-07-30 10:20:33 -07:00
Alexander Holliday 0ccbd17709 Merge pull request #2713 from bluewave-labs/hotfix/crypto
fix crypto dependency
2025-07-30 09:19:07 -07:00
Alex Holliday 78a5b2e666 fix crypto dependency 2025-07-30 09:18:16 -07:00
singh-kanwarpreet 5e46a9f2d5 Pushed global thresholds inside create if branch 2025-07-30 19:38:23 +05:30
singh-kanwarpreet 0ecbf48f5d client/src/Pages/Infrastructure/Create/index.jsx 2025-07-30 19:18:24 +05:30
singh-kanwarpreet d4ecb26ffe Updated UseEffect 2025-07-30 18:30:04 +05:30
singh-kanwarpreet e04ac77ddd Ran npm start format 2025-07-30 16:39:41 +05:30
Alexander Holliday cd3702f5b5 Merge pull request #2712 from bluewave-labs/feat/invite-module
feat: refactor invite module into class
2025-07-29 20:01:39 -07:00
Alex Holliday ca02ed9d18 refactor invite module into class 2025-07-29 19:53:11 -07:00
Alexander Holliday f934bbf829 Merge pull request #2711 from bluewave-labs/fix/check-module
fix: convert checkModule to class for dependency injection
2025-07-29 12:04:44 -07:00
singh-kanwarpreet da7d9c02c8 Used Parent State And Set Minor Changes 2025-07-30 00:25:53 +05:30
Alex Holliday e55d8618bd convert checkModule to class for dependency injection 2025-07-29 11:51:06 -07:00
singh-kanwarpreet af010e138d Some changes in ui 2025-07-30 00:01:27 +05:30
Alexander Holliday 9d94b71583 Merge pull request #2664 from Jesulayomy/fe-uptime_monitor_config
[Frontend]: Refactor Uptime monitor Create & Configure components
2025-07-29 11:15:55 -07:00
Alexander Holliday 38d31192ed Merge pull request #2710 from bluewave-labs/fix/sort-json
sort en.json
2025-07-29 11:14:30 -07:00
Alex Holliday a0799874e4 sort en.json 2025-07-29 11:14:06 -07:00
Alexander Holliday 5ec2500310 Merge pull request #2698 from bluewave-labs/improve/light-mode-ui
Improve/light mode UI
2025-07-29 11:11:17 -07:00
karenvicent 0bd9aa1e3f Merge branch 'develop' into improve/light-mode-ui 2025-07-29 13:45:14 -04:00
karenvicent 20dd3ead3e change background and boder colors to tertiry pallette 2025-07-29 13:43:47 -04:00
Alexander Holliday b30a512d6e Merge pull request #2709 from bluewave-labs/hotfix/secrets
hotfix: replace missing secrets
2025-07-29 10:09:17 -07:00
Alex Holliday e63faebcb8 replace missing secrets 2025-07-29 10:08:45 -07:00
Alexander Holliday 7e5cb1facc Merge pull request #2708 from bluewave-labs/hotfix/logger
add legacy logger
2025-07-29 10:01:49 -07:00
Alex Holliday 10c822c5d9 add legacy logger 2025-07-29 10:01:20 -07:00
Alexander Holliday 8761b3e28d Merge pull request #2704 from bluewave-labs/fix/settings
fix/settings
2025-07-29 09:39:08 -07:00
Alexander Holliday 19cccbbcad Merge pull request #2705 from satnam72/develop
Fix the broken breadcrumbs link
2025-07-29 09:38:25 -07:00
singh-kanwarpreet dbea93f9ba Improved Code Quality 2025-07-29 21:35:30 +05:30
karenvicent 4629014922 Merge branch 'develop' into improve/light-mode-ui 2025-07-29 10:08:29 -04:00
karenvicent 24e7b1c224 add darmode animation to fallback component 2025-07-29 10:07:37 -04:00
singh-kanwarpreet ad06544a64 Removed Consecutive same statements 2025-07-29 16:05:53 +05:30
singh-kanwarpreet 8d105e636d Updated Global THreshold Code Quality 2025-07-29 16:05:53 +05:30
singh-kanwarpreet bf5d7f3c53 Adding Global Threshold Settings 2025-07-29 16:05:53 +05:30
satnam72 c5cd3512af Fixed Formatting issue
Ran the npm run format to fix formatting
2025-07-29 02:56:41 -04:00
satnam72 2802cce6f1 Fix the breadcrumbs route
- Updated breadcrumbs to use `/status/uptime/${url}` instead of `/status/${url}`
2025-07-28 23:40:24 -04:00
Alex Holliday 6e49e19ba1 refactor serviceRegistry 2025-07-28 15:25:33 -07:00
Alexander Holliday 0c6d635b67 Merge pull request #2700 from bluewave-labs/translation-update-75
🌐 Updated Translations from POEditor
2025-07-28 15:06:17 -07:00
Alex Holliday de80a530e5 refactor logger 2025-07-28 15:03:28 -07:00
GitHub Action 63b106d844 feat: translations updated from POEditor 2025-07-28 21:42:35 +00:00
Alexander Holliday ab96e321c9 Merge pull request #2699 from bluewave-labs/feat/ja
Feat/ja
2025-07-28 14:41:52 -07:00
Alex Holliday 0b7d1abb71 add ja 2025-07-28 14:41:24 -07:00
Alex Holliday 592c184ffe add ja 2025-07-28 14:40:10 -07:00
Alex Holliday f3e50120ee appSettings -> envSettings 2025-07-28 14:37:18 -07:00
Gorkem Cetin (BWL) 850510b7e8 Update README.md 2025-07-28 17:30:33 -04:00
karenvicent d1e9a1221f Merge remote-tracking branch 'origin/develop' into improve/light-mode-ui 2025-07-28 17:08:31 -04:00
karenvicent 56ea28aa83 run format 2025-07-28 17:05:22 -04:00
Alexander Holliday 140ae1d049 Merge pull request #2694 from bluewave-labs/feat/rate-limiting
feat: add rate limiting
2025-07-28 13:48:59 -07:00
Alex Holliday 6025323c4b less aggressive auth rate limiting 2025-07-28 13:48:09 -07:00
karenvicent 261c83158b Merge remote-tracking branch 'origin/develop' into improve/light-mode-ui 2025-07-28 16:33:20 -04:00
karenvicent 1a5f16c4e3 improves in light mode 2025-07-28 16:28:44 -04:00
Owaise Imdad ab0bf5ca5f Fixed the names and err out and err in . 2025-07-29 00:42:55 +05:30
Owaise Imdad 158b66e43b Merge branch 'develop' of https://github.com/Owaiseimdad/Checkmate into Network-tab-implementation-infra 2025-07-29 00:30:46 +05:30
Alex Holliday ec99b5e9b4 add rate limiting 2025-07-28 12:00:09 -07:00
Owaise Imdad 19fe41d738 reverting the docker dev changes I made. 2025-07-29 00:22:14 +05:30
Owaise Imdad 5c147562b3 Added net to be returned from api in backend for infra. 2025-07-29 00:17:34 +05:30
Alexander Holliday 051c17f454 Merge pull request #2692 from bluewave-labs/feat/status-page-paintenance
feat: add isMaintenance field to monitors for status page queries
2025-07-28 11:40:30 -07:00
Alex Holliday ab8868e6c4 add an field to the monitor for status page queries 2025-07-28 11:35:49 -07:00
Jesulayomy b5b600db1f [Merge]: Merged commits from develop into branch fe-uptime_monitor_config 2025-07-28 13:09:09 -04:00
Alexander Holliday 41f917ddf6 Merge pull request #2688 from bluewave-labs/feat/server-refactor
feat: server refactor
2025-07-28 09:01:39 -07:00
Alex Holliday e5e02b553a fix dependencies 2025-07-27 19:51:39 -07:00
Owaise Imdad 729f107af2 Merge branch 'develop' of https://github.com/Owaiseimdad/Checkmate into develop 2025-07-27 03:47:49 +05:30
Owaise Imdad 8bfb187ef0 FIX merge conflicts 2025-07-27 03:47:30 +05:30
Alex Holliday 1c47c8ce2c move to src 2025-07-25 15:33:48 -07:00
Alex Holliday acc910cbc0 refactor server 2025-07-25 15:15:14 -07:00
Jesulayomy 1aedf21566 [Uptime]: Added PropType validation, passed isClone directly as prop 2025-07-25 13:37:17 -04:00
Alexander Holliday 6cb538ce69 Merge pull request #2681 from bluewave-labs/feat/error-service
feat: error service
2025-07-25 10:36:10 -07:00
Alex Holliday cafd9f9899 remove empty file 2025-07-25 10:29:40 -07:00
Alex Holliday bb2ab8e08a format 2025-07-25 10:29:04 -07:00
Alex Holliday 3059e730e2 type errors 2025-07-25 10:19:22 -07:00
Alex Holliday dc321580c3 refactor out common dependenceis 2025-07-25 10:16:29 -07:00
Jesulayomy 6cfa77a335 [Uptime]: Add clone Route and restore cloning logic 2025-07-25 11:11:39 -04:00
Alex Holliday ddf3e8251d add an error service, base controller 2025-07-24 15:06:46 -07:00
Alexander Holliday 0cfe9d60fb Merge pull request #2678 from bluewave-labs/feat/monitor-service
feat: monitor service
2025-07-24 13:57:25 -07:00
Alex Holliday 19d3ae119c added safe var access 2025-07-24 13:51:00 -07:00
Alex Holliday d59e2796e7 refactor to monitor service 2025-07-24 13:50:21 -07:00
Gorkem Cetin (BWL) 12ff66fd3e Merge pull request #2667 from ferCancholaCruz/add-readme-es
Spanish version of Readme File. Agrega traducción al español del README
2025-07-24 14:16:25 -04:00
Fernando Canchola Cruz 35270e2761 Update README.es.md
Fixed readme.es.md
2025-07-24 11:38:45 -06:00
Jesulayomy 47021fa55c [Uptime]: removed formatAndSet, added displayInterval, moved UI logic out of component view 2025-07-24 13:38:14 -04:00
Jesulayomy 89f5be2cc9 [Uptime]: Moved hook, removed duplicate imports, teporarily disabled formatAndSet function due to rerenders 2025-07-23 21:13:19 -04:00
Jesulayomy d3493a0af6 [Uptime]: Used latest formatting rules 2025-07-23 20:01:39 -04:00
Jesulayomy 157343d152 [Locales]: Sorted translations, fixed a duplicate key from the original branch 2025-07-23 19:59:45 -04:00
Jesulayomy 5f36543d44 [Uptime]: Removed UptimeConfigure component, added extra translations for Uptime and other monitor pages 2025-07-23 19:22:09 -04:00
Jesulayomy a004b7b450 [Uptime]: Merged Configure into Create Component 2025-07-23 19:20:37 -04:00
Jesulayomy 56d8224fb9 [Uptime]: Added skeleton file 2025-07-23 19:15:28 -04:00
Alexander Holliday dd6e7b7e7e Merge pull request #2677 from bluewave-labs/hotfix/clone-monitor
fix: reimplement clone monitor, resolves #2676
2025-07-23 15:32:23 -07:00
Alex Holliday 6d5034e2a5 reimplement clone monitor 2025-07-23 15:31:26 -07:00
Alexander Holliday ed6882ba95 Merge pull request #2675 from bluewave-labs/feat/mw-service
feat: add maintenance window service
2025-07-23 15:15:25 -07:00
Alex Holliday b3f8d77238 add maintenance window service 2025-07-23 15:14:47 -07:00
Alexander Holliday c287da92d9 Merge pull request #2674 from bluewave-labs/feat/invite-service
feat: add invite service
2025-07-23 15:00:51 -07:00
Alex Holliday aea79fec2e add invite service 2025-07-23 14:58:44 -07:00
Alexander Holliday 3239f555a1 Merge pull request #2673 from bluewave-labs/feat/diagnostic-service
feat: diagnostic service
2025-07-23 14:31:51 -07:00
Alex Holliday da49e15589 jsdocs, move observer 2025-07-23 14:31:40 -07:00
Alex Holliday cfebc770fd add diagnostic service 2025-07-23 14:28:16 -07:00
Alexander Holliday ffef14957f Merge pull request #2671 from bluewave-labs/feat/check-service
feat: check service
2025-07-23 14:22:25 -07:00
Alexander Holliday 05666f70e0 Merge pull request #2672 from bluewave-labs/fix/validation
Fix/validation
2025-07-23 14:21:02 -07:00
Alex Holliday c1dc575f53 reset server validation 2025-07-23 14:17:47 -07:00
Alex Holliday bf861700fa resest client validation 2025-07-23 14:15:43 -07:00
Alexander Holliday 627c2174a9 Merge pull request #2670 from bluewave-labs/feat/fe/resolve-monitor-incidents
Feat: Selected Monitor Incidents Resolve
2025-07-23 14:03:34 -07:00
Br0wnHammer b27eccec88 Merge branch 'develop' into feat/fe/resolve-monitor-incidents 2025-07-24 02:15:00 +05:30
Alex Holliday 8c0dfb2cc5 add a check service 2025-07-23 13:41:10 -07:00
Br0wnHammer c766dc9f00 JSDOC for both network calls 2025-07-24 02:06:55 +05:30
Br0wnHammer 7236e85321 Removal of old code 2025-07-24 01:56:05 +05:30
Br0wnHammer b7093b5de5 Feat: One Hook for Incidents Ack 2025-07-24 01:54:58 +05:30
Br0wnHammer 3650c400ca Feat: Monitor Incidents Resolve 2025-07-24 01:47:42 +05:30
Br0wnHammer 4933d11dfd Network Service: Monitor Check Func 2025-07-24 01:42:46 +05:30
Alexander Holliday 08128279b4 Merge pull request #2669 from bluewave-labs/feat/service-refactor
feat: service refactor
2025-07-23 13:11:52 -07:00
Alex Holliday 181e149028 Merge branch 'develop' into feat/service-refactor 2025-07-23 13:09:48 -07:00
Alexander Holliday 9bb9265a19 Merge pull request #2668 from bluewave-labs/feat/user-service
feat: user service
2025-07-23 13:08:33 -07:00
Alex Holliday 65f232161f sync package lock 2025-07-23 13:06:23 -07:00
Br0wnHammer df97b93a9a Button Text Dynamic 2025-07-24 01:35:31 +05:30
Alex Holliday f58d05f1b3 format 2025-07-23 13:04:26 -07:00
Alex Holliday 06fa79e09d refactor service dir structure 2025-07-23 13:03:57 -07:00
Gorkem Cetin (BWL) 6da52adc74 Trying to fix anchors 2025-07-23 15:41:44 -04:00
Alex Holliday 0b4ec46f79 add updated JSdoc 2025-07-23 12:12:22 -07:00
Alex Holliday 6e321afa72 add remaining methods to service 2025-07-23 12:09:23 -07:00
Alex Holliday a08ded4093 move checksuperadmin to userservice 2025-07-23 11:48:47 -07:00
Alex Holliday e76b44fcba fix validaiton for editing user 2025-07-23 11:47:21 -07:00
Alex Holliday 1fa2dbcf85 Add user serivce, move register, login, and edit 2025-07-23 11:47:13 -07:00
Alex Holliday 74fd20cfa8 move checksuperadmin 2025-07-23 11:46:59 -07:00
Fernando Canchola Cruz f90b5bab4b Agrega traducción al español del README 2025-07-23 12:36:07 -06:00
Alexander Holliday 812cff0fd9 Merge pull request #2559 from bluewave-labs/feat/super-simple-queue
feat: super simple queue
2025-07-23 10:38:13 -07:00
Alex Holliday 7127c28c35 bump dependency 2025-07-23 10:35:32 -07:00
Alex Holliday 4f186a6b49 Merge branch 'develop' into feat/super-simple-queue 2025-07-23 10:35:11 -07:00
Alexander Holliday fe76416059 Merge pull request #2666 from bluewave-labs/hotfix/import
fix import path
2025-07-23 10:13:12 -07:00
Alex Holliday ac2b7bd65d fix import path 2025-07-23 10:12:47 -07:00
Alexander Holliday 604b20855b Merge pull request #2663 from bluewave-labs/feat/fe/infrastructure-disk-ui-overflow
Fix: Infrastructure disks overflow
2025-07-23 09:45:56 -07:00
Alexander Holliday e157ee7c53 Merge pull request #2661 from bluewave-labs/feat/edit-users
feat: edit users, resolves #2659
2025-07-23 09:43:27 -07:00
Alex Holliday 91ccfe26b7 Merge branch 'feat/edit-users' of github.com:bluewave-labs/checkmate into feat/edit-users 2025-07-23 09:37:52 -07:00
Alex Holliday de88e1d442 return early if delete superadmin 2025-07-23 09:37:37 -07:00
Alexander Holliday baf5967dca Merge branch 'develop' into feat/edit-users 2025-07-23 09:37:04 -07:00
Alexander Holliday df6a1b39e0 Merge pull request #2662 from bluewave-labs/feat/fallback-refactor
Reopen Feat/fallback refactor
2025-07-23 09:33:47 -07:00
Br0wnHammer 8fcaf721ad Fix: Infrastructure disks overflow 2025-07-23 15:33:09 +05:30
karenvicent 22d17708cd format 2025-07-22 16:46:43 -04:00
Alex Holliday 457408006b sort en.json 2025-07-22 13:33:11 -07:00
Alex Holliday f74289fe49 format 2025-07-22 13:32:26 -07:00
Alex Holliday 86ece89cec Merge branch 'develop' into feat/edit-users 2025-07-22 13:32:03 -07:00
Alex Holliday 22826afd21 apply validation 2025-07-22 13:26:45 -07:00
Alex Holliday 73f2f29c2a add valid roles 2025-07-22 13:26:01 -07:00
karenvicent a6eb2735aa Merge branch 'develop' into feat/fallback-refactor 2025-07-22 16:23:37 -04:00
Alex Holliday c4d42dd9e3 add db 2025-07-22 12:27:41 -07:00
Alex Holliday e047309812 add controller methods 2025-07-22 12:27:33 -07:00
Alex Holliday c11da04e13 add edit user routes 2025-07-22 12:27:17 -07:00
Alex Holliday 4f68a76674 implement frontend of user edit 2025-07-22 12:27:06 -07:00
karenvicent b2fdb11195 run format 2025-07-22 14:54:41 -04:00
Mohansai Mallineni 97082b30b9 feat(i18n): implement new language mappings and initialize translation files 2025-07-22 13:59:19 -04:00
Alex Holliday 43ac0174d1 format 2025-07-22 09:23:26 -07:00
Alex Holliday cb02bb0de7 Merge branch 'develop' into feat/fallback-refactor 2025-07-22 09:23:09 -07:00
Alexander Holliday 9c9eaca990 Merge pull request #2646 from Mohansai-M/feat/i18n-new-lang-support
feat(i18n): implement new language mappings and initialize translatio…
2025-07-22 09:21:36 -07:00
Alexander Holliday 8336ea199d Merge pull request #2658 from bluewave-labs/fix/protect-demo-user
prevent demo user from being deleted
2025-07-21 15:05:57 -07:00
Alex Holliday 48848d1d43 prevent demo user from being deleted 2025-07-21 15:05:17 -07:00
Alexander Holliday 1eea0b6862 Merge pull request #2632 from Yasir-Rafique/validationRemoval_monitorURL
Relax monitor URL validation
2025-07-21 14:52:12 -07:00
Alexander Holliday 2977c1f6db Merge pull request #2641 from miguemely/develop
Increase helm chart support for different cluster types + CORS Fixes
2025-07-21 14:45:40 -07:00
Alexander Holliday c70ee26c8a Merge pull request #2657 from bluewave-labs/fix/notification-routes
fix auth for notification controller
2025-07-21 14:11:52 -07:00
Alex Holliday 1b085236c7 fix aith for notification controller 2025-07-21 14:11:09 -07:00
Alexander Holliday 78b371bfad Merge pull request #2656 from bluewave-labs/fix/monitor-routes
fix: monitor routes
2025-07-21 13:58:33 -07:00
Alex Holliday fdff3be316 fix team auth 2025-07-21 13:58:01 -07:00
Alex Holliday f2037bf5fe fix route 2025-07-21 13:46:06 -07:00
karenvicent a28a8fe5f9 Merge branch 'develop' into feat/fallback-refactor 2025-07-21 16:19:49 -04:00
karenvicent 62f94cfb20 refactor: extract Fallback component into smaller reusable components 2025-07-21 16:13:18 -04:00
Alexander Holliday 3e75972b02 Merge pull request #2654 from bluewave-labs/fix/mw-routes
fix: mw routes
2025-07-21 12:28:44 -07:00
Alex Holliday d6d3b53846 add team auth to mw routes 2025-07-21 12:27:53 -07:00
Alex Holliday 87f843df1c add getmonitorsbyids 2025-07-21 12:27:43 -07:00
Alex Holliday 5dbec377e5 reorder routes 2025-07-21 12:26:38 -07:00
Alexander Holliday a489c9ff45 Merge pull request #2653 from ajhollid/fix/diagnositc-routes
fix: remove unused routes, add authentication
2025-07-21 12:04:52 -07:00
Alex Holliday 4d989746fd remove unused routes, add authentication 2025-07-21 12:04:16 -07:00
Alexander Holliday ba48461417 Merge pull request #2652 from bluewave-labs/fix/check-routes
fix auth for check routes
2025-07-21 11:54:44 -07:00
Alex Holliday 55e2d5c0e3 fix auth for check routes 2025-07-21 11:54:04 -07:00
Alexander Holliday 8864f9799f Merge pull request #2651 from bluewave-labs/fix/auth-routes
fix: auth routes
2025-07-21 11:06:42 -07:00
Alex Holliday e2ddffe24b remove userId param from routes 2025-07-21 11:05:48 -07:00
Alex Holliday 12b7819791 remove user ID param from rotues 2025-07-21 11:05:10 -07:00
Alex Holliday bfa6832beb format 2025-07-21 10:34:16 -07:00
Alex Holliday 846564a17e reorder routes 2025-07-21 10:34:04 -07:00
Alexander Holliday 46d7009837 Merge pull request #2650 from bluewave-labs/fix/route-reorder
fix: reorder routes for correctness
2025-07-21 09:56:50 -07:00
Alex Holliday 0c04db3299 reorder routes for correctness 2025-07-21 09:55:49 -07:00
Miguel Rodriguez 2d437e2016 coderabbit fix: Add HTTPS to CORS origins 2025-07-20 13:30:01 -04:00
Miguel Rodriguez 37655a64c0 fix: Set CORS headers with a split setup on helm. 2025-07-20 13:22:01 -04:00
Miguel Rodriguez 4921b17f11 fix: docker.sock doesn't exist on many K8S Servers 2025-07-20 12:57:16 -04:00
Gorkem Cetin (BWL) dae0d6cc42 Update README.md 2025-07-20 11:50:34 -04:00
Mohansai Mallineni c392933e55 feat(i18n): implement new language mappings and initialize translation files 2025-07-20 20:08:06 +05:30
Gorkem Cetin (BWL) c915137ed7 Add reddit group 2025-07-20 10:11:52 -04:00
Yasir Rafique 945cff978b Use URL.canParse for URL validation; add strict regex fallback (maintainer feedback) 2025-07-19 06:53:01 +01:00
Alexander Holliday ae21b728bc Merge pull request #2625 from bluewave-labs/feat/toast-refactor
feat: toast refactor
2025-07-18 11:22:32 -07:00
Yasir Rafique 8ffd9a5e2a Tighten Docker hostname regex for monitor URL validation 2025-07-18 11:58:27 +01:00
Yasir Rafique b823f0f7db Relax monitor URL validation for Docker and local hostnames (fixes #2605) 2025-07-18 11:40:20 +01:00
Yasir Rafique 066df2c64f Relax monitor URL validation 2025-07-18 10:59:02 +01:00
Alexander Holliday 200a933647 Merge pull request #2621 from bluewave-labs/fix/consistent-error-handling
fix: imporved and consistent error handling
2025-07-17 09:37:51 -07:00
Alex Holliday 4cd5cd4bae fix close icon placement for toasts without title 2025-07-16 12:51:52 -07:00
Alexander Holliday bfba1d148e Merge pull request #2592 from bluewave-labs/feature/all-maintenance-on-window
Add "All Monitors" as an option for Maintenance windows  #2579
2025-07-16 10:38:47 -07:00
Alex Holliday c58801f6f7 update toastUtils to use Toast component 2025-07-16 10:33:06 -07:00
Alex Holliday 616927d388 Add new toast component 2025-07-16 10:32:19 -07:00
shanika Jayawardane 1cbebf322b remove unwanted code 2025-07-16 11:06:05 -06:00
Alexander Holliday a46c032979 Merge pull request #2617 from career-yashaswee/bug/2603-url-validation-email-format
(fix): implemented email and webhook url validation with proper error and toast creation
2025-07-16 09:16:12 -07:00
Alexander Holliday f03f94c3dd Merge pull request #2616 from bluewave-labs/fix/forms-margins-infrastructure-alignment
Fix/forms margins infrastructure alignment
2025-07-16 08:57:06 -07:00
karenvicent 1cee10842e apply style to MuiSelect in globalTheme 2025-07-16 10:36:52 -04:00
Br0wnHammer 55e9c74031 Fix: Page State Reset in Infra 2025-07-16 10:29:22 -04:00
Alexander Holliday 45a9495a51 Merge pull request #2624 from bluewave-labs/fix/fe/search-page-reset
Fix: Page State Reset in Infra
2025-07-16 06:33:50 -07:00
Br0wnHammer c785704dd8 Fix: Page State Reset in Infra 2025-07-16 12:29:18 +05:30
Alex Holliday 38bb915144 add error handling util, update middleware and controllers 2025-07-15 16:33:35 -07:00
Alexander Holliday e2f99f52db Merge branch 'develop' into fix/forms-margins-infrastructure-alignment 2025-07-15 15:22:43 -07:00
Alexander Holliday c54feb9306 Merge pull request #2620 from bluewave-labs/feat/diagnostics
Feat/diagnostics
2025-07-15 15:21:15 -07:00
Alexander Holliday e11b09feac Merge pull request #2600 from career-yashaswee/feat/2598-search-timezone-ux
Feat/2598 Search Timezone UX Addition
2025-07-15 13:05:34 -07:00
Yashaswee Kesharwani fe44bc989a fix: use-memo dependency array and prop-types error 2025-07-16 00:59:22 +05:30
karenvicent 93bf98fe72 Merge branch 'develop' into fix/forms-margins-infrastructure-alignment 2025-07-15 14:42:20 -04:00
karenvicent 5a2626b38b feat: apply styleOverrides for MuiSelect in base theme 2025-07-15 14:39:41 -04:00
Alexander Holliday 5d57138ea8 Merge pull request #2619 from mertssmnoglu/helm-syntax-error
fix: correct syntax error in secrets.yaml template #2618
2025-07-15 10:11:31 -07:00
Mert Şişmanoğlu 20519afe17 fix: correct syntax error in secrets.yaml template #2618
Signed-off-by: Mert Şişmanoğlu <mertssmnoglu@gmail.com>
2025-07-15 20:01:38 +03:00
Alexander Holliday f23f7df147 Merge pull request #2595 from bluewave-labs/feat/diagnostics
feat: diagnostics tab
2025-07-15 09:46:31 -07:00
Yashaswee Kesharwani b89ab5a192 (fix): implemented email and webhook url validation with proper error and toast creation #2603 2025-07-15 22:13:31 +05:30
karenvicent 35c59dc53b Merge branch 'develop' into fix/forms-margins-infrastructure-alignment 2025-07-15 09:03:56 -04:00
shanika Jayawardane 870cd6407e remove the drag and drop fuction for list and remove dublicate code 2025-07-14 23:44:50 -06:00
Alex Holliday f62350fea0 add refresh button 2025-07-14 16:26:34 -07:00
Alex Holliday 39779b9dd5 refacotr interval to be self documenting 2025-07-14 16:26:24 -07:00
Alexander Holliday 9716e64c93 Merge pull request #2612 from bluewave-labs/develop
Develop -> Master
2025-07-14 14:23:40 -07:00
Alexander Holliday 0f9f814b27 Merge pull request #2604 from bluewave-labs/fix/page-reset
Fix: Reset Page when Searching
2025-07-14 10:50:18 -07:00
Alexander Holliday 49b08e9e6f Merge pull request #2608 from bluewave-labs/fix/route-specificity
fix: reorder rotues to correctly match
2025-07-14 09:40:02 -07:00
Alex Holliday a879051454 reorder rotues to correctly match 2025-07-14 09:38:00 -07:00
Alexander Holliday a0439cd7f4 Merge pull request #2576 from JefferMarcelino/feature/add-helm-chart
Add Helm chart and Kubernetes installation guide
2025-07-14 09:03:23 -07:00
Alexander Holliday bc436da263 Merge pull request #2588 from Jesulayomy/fe-monitor_config_pages
[Frontend]: Refactor PageSpeed monitor Create & Configure components
2025-07-14 09:02:20 -07:00
karenvicent c86c5d8235 Merge branch 'develop' into fix/forms-margins-infrastructure-alignment 2025-07-13 20:25:23 -04:00
karenvicent 86160a103d feat(forms): standardized label-to-input spacing in forms via new FieldWrapper component 2025-07-13 20:23:10 -04:00
Br0wnHammer f912c5eb5d Fix: Reset Page when Searching 2025-07-14 01:45:28 +05:30
Jeffer Marcelino 84f0b936ca Merge branch 'feature/add-helm-chart' of https://github.com/JefferMarcelino/Checkmate into feature/add-helm-chart 2025-07-13 19:18:10 +02:00
Jeffer Marcelino 72d34fcc4f chore: update appVersion and images in Helm chart for Checkmate 2025-07-13 19:18:01 +02:00
Yashaswee Kesharwani 2bb7818116 fix: replaced remaining Selects with Search in Settings Tab - optimised with useMemo and standardised the no unit found 2025-07-13 03:52:16 +05:30
shanika Jayawardane 39d666df6b add the checkboxes for dropdown list and remove searchbox list inside it 2025-07-12 15:13:24 -06:00
Jesulayomy a7dd23141c [PageSpeed]: Formatting monitorHooks 2025-07-12 14:26:17 -04:00
Yashaswee Kesharwani a7e26d553f chore: format code using npm run format 2025-07-12 23:22:42 +05:30
Yashaswee Kesharwani 95e82cf254 feat: resolve #2598 improve timezone search UX 2025-07-12 23:17:41 +05:30
Alex Holliday 07c8334248 Merge branch 'develop' into feat/super-simple-queue 2025-07-11 13:51:14 -07:00
Alexander Holliday c54e6b0b34 Merge pull request #2596 from bluewave-labs/feat/codeowners
add CODEOWNERS
2025-07-11 11:59:50 -07:00
Alex Holliday f8a7b86ab7 add CODEOWNERS 2025-07-11 11:58:05 -07:00
Alex Holliday 5b395b96cd implemet stats 2025-07-11 11:23:50 -07:00
Alex Holliday b1b4fd3f64 add 1s cpu usage metric, return standard units of ms and bytes 2025-07-11 11:23:36 -07:00
Jesulayomy 352d3a1647 [PageSpeed]: Use typeof operator for clarity, and to handle undeclared and undefined variables 2025-07-11 13:40:29 -04:00
Jesulayomy f04fd8bea2 [PageSpeed]: Merged loading states, used theme spacing, moved Skeleton layout outside of main component render 2025-07-11 11:40:28 -04:00
shanika Jayawardane 6e76e29768 add the translation to selectAll 2025-07-11 07:59:12 -06:00
shanika Jayawardane 2c1a01bb6a add the All select option to monitor maintenance window for all monitors same as status pages 2025-07-11 07:44:02 -06:00
Jesulayomy 2d587a7d1b [PageSpeed]: Clean console statement and run npm format 2025-07-10 22:09:13 -04:00
Jesulayomy b7b7687608 [PageSpeed]: Loading states from hooks, unused classnames, conditional calling of hook removed 2025-07-10 21:54:27 -04:00
Jesulayomy 840069b935 [PageSpeed]: Implement conditional check for monitorId inside useFetchMonitorById hook 2025-07-10 21:53:33 -04:00
Alex Holliday 1cbec8220d add diagnostic page 2025-07-10 16:08:04 -07:00
Alex Holliday 1456c4f749 bump version 2025-07-10 16:06:38 -07:00
Alex Holliday 881944ab98 Merge branch 'develop' into feat/super-simple-queue 2025-07-10 14:45:47 -07:00
Jesulayomy eaa85bb9c4 [PageSpeed]: Renamed to isCreate to follow convention, removed redundant loading states, Added validation on update submit 2025-07-10 15:21:27 -04:00
Alexander Holliday cc26601c06 Merge pull request #2590 from clipsmm/fix-add-missing-notification-service-name
[Fix] nit; Add missing notification service name
2025-07-10 09:22:04 -07:00
Cliff Mitamita 643d160748 nit; Add missing notification service name 2025-07-10 16:58:23 +03:00
Jesulayomy a71756a6ec [PageSpeed]: Added localized strings for frequecies, form error, lighthouse API. Removed configure prop and used monitorId check. 2025-07-09 15:47:01 -04:00
Jesulayomy db02f68095 Configure fix merged: Merge branch 'fe-monitor_config_pages' of https://github.com/Jesulayomy/Checkmate into fe-monitor_config_pages 2025-07-08 19:44:17 -04:00
Jesulayomy a0f3db812e [Refactor]: Renamed to Create/ and PageSpeedCreate for easier diff 2025-07-08 19:43:22 -04:00
Jesulayomi Michael Aina 8c393f848b [Fix]: Changed /setup/monitorId route that was used in development CRUMBS 2025-07-08 19:33:16 -04:00
Jesulayomy cf591a5a0b [Format]: npm format on client folder 2025-07-08 19:13:40 -04:00
Jesulayomy b45df68ece [PageSpeed]: Removed Create and Configure folders, Polished Setup folder to ensure consistency with manual testing 2025-07-08 18:49:26 -04:00
Alexander Holliday fdaaacc3af Merge pull request #2587 from bluewave-labs/fix/placeholder-center-align
fix: uptime placeholder size and merge with develop
2025-07-08 11:06:06 -07:00
Alex Holliday cb2016a5dc update queue version 2025-07-08 11:04:20 -07:00
Alex Holliday 9040a99853 Merge branch 'develop' into feat/super-simple-queue 2025-07-08 11:02:14 -07:00
karenvicent 94ac24289e fix: uptime placeholder size and merge with develop 2025-07-08 13:12:15 -04:00
Alexander Holliday eb8cf1b6da Merge pull request #2584 from bluewave-labs/develop
bump version
2025-07-08 09:51:08 -07:00
Alex Holliday 1d816b0677 bump version 2025-07-07 16:14:51 -07:00
Alexander Holliday c633a9ad8d Merge pull request #2582 from bluewave-labs/develop
develop -> master
2025-07-07 15:38:46 -07:00
Alexander Holliday 9b413f25fb Merge pull request #2581 from bluewave-labs/feat/delete-notification-dialog
feat: add delete confirmation dialog to notificiaton page
2025-07-07 15:35:23 -07:00
Alex Holliday e08fba1b76 add delete confirmation dialog to notificiaton page 2025-07-07 15:34:45 -07:00
Alexander Holliday 961c398690 Merge pull request #2573 from luismsousa/feat/notifications-delete
Notification channel Delete:
2025-07-07 15:25:55 -07:00
Luis Sousa 9954a74dfd bleep boop fix translations 2025-07-07 20:08:34 +01:00
Alexander Holliday faf4164818 Merge pull request #2563 from bluewave-labs/fix/2471-infrastructure-action-menu
Fix/2471 infrastructure action menu
2025-07-07 11:05:52 -07:00
mohadeseh safari 9254b9096c refactor: Remove default string parameter from t() calls 2025-07-07 12:17:59 -04:00
mohadeseh safari aa8029a854 fix: Update InfrastructureMenu to use isActive instead of status for pause state 2025-07-07 12:16:17 -04:00
Alex Holliday c3f5d249a0 use latest library 2025-07-07 08:55:57 -07:00
mohadeseh safari 9edc6e4b27 Fix formating 2025-07-06 18:11:30 -04:00
mohadeseh safari d842f93a19 fix: Remove unnecessary local monitor state in InfrastructureMenu component 2025-07-06 18:09:17 -04:00
mohadeseh safari 0f82f076f7 Merge branch 'develop' into fix/2471-infrastructure-action-menu 2025-07-06 17:59:51 -04:00
Jesulayomy f00d7275e5 [PageSpeed]: Monitor Config and Create pages consolidated into Setup Component 2025-07-05 18:26:34 -04:00
Alexander Holliday 5fdf8431da Merge pull request #2557 from bluewave-labs/fix/placeholder-center-align
Fix/placeholder center align
2025-07-04 14:57:37 -07:00
karenvicent af0c69764f Fix: change height and witdth and Merge branch 'develop' into fix/placeholder-center-align 2025-07-04 17:46:41 -04:00
Jeffer Marcelino 4ed8d6b90c Merge branch 'develop' into feature/add-helm-chart 2025-07-04 19:21:22 +02:00
Alexander Holliday a88e304c5d Merge pull request #2574 from bluewave-labs/feat/fe/resolve-incidents
Feat: Resolve Incidents All and One
2025-07-04 09:58:19 -07:00
Br0wnHammer 847c7630ec Strings localizations 2025-07-04 22:24:59 +05:30
karenvicent 4aaa2faf9a Merge branch 'develop' into fix/placeholder-center-align 2025-07-04 11:15:43 -04:00
Luis Sousa 292c7fd7ea address PR feedback 2025-07-04 11:53:25 +01:00
Gorkem Cetin (BWL) 87263dc6d9 Add Pikapods 2025-07-03 22:17:21 -04:00
Br0wnHammer 8a4fba056b All Incidents Resolve Hook 2025-07-04 01:29:52 +05:30
Br0wnHammer 30131c97a3 Implemented resolve incident hook 2025-07-04 01:25:33 +05:30
Alexander Holliday b02a3379da Merge pull request #2534 from bluewave-labs/issue-2150-move-status-page-delete-button
Move Status Page Delete Button
2025-07-04 02:54:02 +08:00
Alexander Holliday 8f46da0907 Merge pull request #2570 from loma373/feat/if-no-notif
feat: disable send test notification when 0 notifications are configured
2025-07-04 02:24:04 +08:00
Jeffer Marcelino 6e5550ba32 docs: add INSTALLATION.md with Helm-based Kubernetes deployment steps 2025-07-03 18:16:42 +02:00
Jeffer Marcelino edd2346939 fix: change hardcoded protocol and host to be change_me by default 2025-07-03 18:06:54 +02:00
Luis Sousa d5262a1968 add i18n for the notifications dropdown menu in the list. 2025-07-02 23:18:34 +01:00
Luis Sousa d9cc0f82c1 add internationalization for button labels in notifications 2025-07-02 23:05:53 +01:00
Luis Sousa 34455e10e4 running npm run format 2025-07-02 22:32:08 +01:00
Br0wnHammer d9ccc72a38 Feat: Resolve Incidents All and One 2025-07-03 02:15:37 +05:30
Amol e2e1eff289 feat: add language localization and refactor to remove duplicate ternary op 2025-07-03 01:26:33 +05:30
Luis Sousa 85b13686a4 Notification channel Delete:
attempt to add the delete button to the notifications view
2025-07-02 17:14:39 +01:00
karenvicent c8bf571f7a implement adjustments and merge with develop 2025-07-02 10:02:01 -04:00
Alexander Holliday 731f2e12fb Merge pull request #2567 from bluewave-labs/feat/fe/incidents-ui
Feat: Status Boxes in Incidents Table
2025-07-02 15:26:51 +08:00
Br0wnHammer 3acfde97df Legacy UI Fixes 2025-07-02 12:51:27 +05:30
Amol 0e8a71c760 fix: removing code duplication 2025-07-01 22:57:28 +05:30
Amol 2e869310b8 feat: disable send test notification when 0 notification configured 2025-07-01 22:44:42 +05:30
Alexander Holliday f5cf8e25f5 Merge pull request #2566 from bluewave-labs/fix/missing-strings
fix: missing strings
2025-07-01 23:47:07 +08:00
Alexander Holliday 9c836ed39b Merge branch 'develop' into fix/missing-strings 2025-07-01 23:45:44 +08:00
Alexander Holliday 32b731f60e Merge pull request #2569 from bluewave-labs/revert-2568-fix/sort-keys
Revert "sort en.json alphabetically"
2025-07-01 23:42:44 +08:00
Alexander Holliday 708234118a Revert "sort en.json alphabetically" 2025-07-01 23:42:31 +08:00
Alexander Holliday 798b9aed8f Merge pull request #2568 from bluewave-labs/fix/sort-keys
sort en.json alphabetically
2025-07-01 23:36:25 +08:00
Alexander Holliday d55196e06f Merge branch 'develop' into fix/sort-keys 2025-07-01 23:36:17 +08:00
Alex Holliday 3d130bd8a5 sort en.json alphabetically 2025-07-01 23:35:11 +08:00
Br0wnHammer 278964500b Minor Changes 2025-07-01 18:23:11 +05:30
Br0wnHammer 644de5f34a Feat: Hooks for Summary 2025-07-01 18:10:35 +05:30
Br0wnHammer 5428999d46 Feat: Summary for Incidents 2025-07-01 17:55:50 +05:30
Br0wnHammer 35a9c081b5 Feat: Status Boxes in Incidents Page 2025-07-01 15:54:50 +05:30
Alex Holliday 3295423804 add settingsSave 2025-07-01 15:27:23 +08:00
Alex Holliday 19c5f4c8c3 update strings 2025-07-01 15:25:45 +08:00
Alex Holliday 6c4717d5f6 resolve strings 2025-07-01 15:23:00 +08:00
karenvicent 1cb730764a Merge branch 'develop' into fix/placeholder-center-align 2025-06-30 12:24:33 -04:00
mohadeseh safari 95403fb56b fix deletion props passed to Tabs component 2025-06-29 12:14:42 -04:00
Jeffer Marcelino 2b4727db0d feat: add checkmate helm chart with basic validation 2025-06-29 15:34:50 +02:00
mohadeseh safari 59c8c14e6c Merge remote-tracking branch 'origin/develop' into issue-2150-move-status-page-delete-button 2025-06-28 19:17:40 -04:00
mohadeseh safari fbbd9b9092 Format MonitorsTableMenu component 2025-06-28 19:09:27 -04:00
mohadeseh safari 1f804a725e Add comment explaining why monitor.type must remain optional in PropTypes 2025-06-28 19:05:21 -04:00
mohadeseh safari 5ba82415ad Format MonitorsTableMenu component 2025-06-28 18:50:14 -04:00
mohadeseh safari c44325ba7f Add missing translation keys for MonitorsTableMenu component 2025-06-28 18:46:17 -04:00
mohadeseh safari 78626253ee Merge develop branch into fix/2471-infrastructure-action-menu 2025-06-28 18:36:36 -04:00
mohadeseh safari 1a2009b615 Fix infrastructure action menu: correct pause/resume text display and handle undefined monitor properties 2025-06-28 17:41:13 -04:00
karenvicent eca4bb0cb5 Fix: center placeholder in content area and merge branch 'develop' into fix/placeholder-center-align 2025-06-27 10:29:28 -04:00
karenvicent 866b29db68 FIx: center placeholde box in the content area 2025-06-27 10:16:37 -04:00
Alex Holliday ce103c6b59 format 2025-06-27 13:51:39 +08:00
Alex Holliday 38f5c41272 implement flush 2025-06-27 13:45:18 +08:00
Alex Holliday ca13185d84 convert monitor to object 2025-06-27 13:40:41 +08:00
Alex Holliday f1c6beacf2 use super-simple-queue 2025-06-27 12:38:06 +08:00
Alexander Holliday 07b2ddc29e Merge pull request #2555 from shanikauwu1/fixed-alighment-issue-on-pagespeed-page-piechart
Fixed alighment issue on pagespeed page piechart
2025-06-27 08:53:48 +08:00
karenvicent 6db0aff073 fix: replace breakpoints with theme.spacing for consistent layout sizing 2025-06-26 14:37:35 -04:00
karenvicent 2bb76a1b2f Merge branch 'develop' into fix/placeholder-center-align 2025-06-26 09:20:48 -04:00
karenvicent e91e01adf3 fix: Hardcoded dimensions in layout constraints with format 2025-06-26 09:18:49 -04:00
shanika Jayawardane c5870b96d5 Fix PageSpeed performance report alignment - Center pie chart and text 2025-06-25 23:19:29 -06:00
Alexander Holliday e772a35243 Merge pull request #2553 from bluewave-labs/hotfix/status-page
apply hotfix for logo
2025-06-26 11:47:16 +08:00
Alex Holliday 6047163150 apply hotfix for logo 2025-06-26 11:46:50 +08:00
Alexander Holliday 4c5bb66c3d Merge pull request #2496 from bluewave-labs/feat/incidents-clear
Feat: Incidents Resolve BE
2025-06-26 09:34:10 +08:00
Alex Holliday d9dbfc6d6e hide resolved 2025-06-26 09:33:39 +08:00
Alexander Holliday b462968650 Merge pull request #2552 from bluewave-labs/fix/action
update msg
2025-06-26 09:26:10 +08:00
Alex Holliday 2c553ae1d2 update msg 2025-06-26 09:25:37 +08:00
Alexander Holliday e04ba2d163 Merge pull request #2547 from deepanshu2711/2543-hide-pause-button-for-members
fix: hide pause button for members (closes #2543)
2025-06-26 09:20:34 +08:00
Alexander Holliday a30417ab42 Merge pull request #2551 from bluewave-labs/hotfix/notification-action-menu
hotfix: stop propagation
2025-06-26 09:15:00 +08:00
Alex Holliday 83373d0520 stop propagation 2025-06-26 09:14:18 +08:00
Alexander Holliday b59cad5389 Merge pull request #2550 from bluewave-labs/hotfix/status-page-with-no-monitors
hotfix: status page
2025-06-26 09:11:35 +08:00
Alex Holliday 58b102b921 fix status page 2025-06-26 09:09:41 +08:00
karenvicent 32edb64da4 fix: Hardcoded dimensions in layout constraints 2025-06-25 20:39:34 -04:00
karenvicent eecdb7e552 fix: center and constrain empty placeholder layout with format 2025-06-25 18:27:37 -04:00
karenvicent fd51af97fa fix: center and constrain empty placeholder layout 2025-06-25 18:06:43 -04:00
Br0wnHammer e5028c95b3 Conflicts in en.json 2025-06-25 14:26:11 +05:30
Aryaman Sharma 5d20cf26ab Merge branch 'develop' into feat/incidents-clear 2025-06-25 14:20:15 +05:30
Br0wnHammer 6457984dd4 ackStage Backword Compatible 2025-06-25 14:16:00 +05:30
Deepanshu 8749edfaf0 fix: hide pause button for members (closes #2543) 2025-06-25 12:52:06 +05:30
Br0wnHammer 78a2e5d106 VerifyTemAccess Middleware 2025-06-25 11:52:38 +05:30
shanika Jayawardane 6ec6d582d8 Merge remote-tracking branch 'upstream/develop' into develop 2025-06-24 23:37:16 -06:00
Alexander Holliday 923eda1307 Merge pull request #2545 from bluewave-labs/develop
develop -> master
2025-06-25 12:42:33 +08:00
Alexander Holliday 6a079704bb Merge pull request #2544 from bluewave-labs/fix/logs-rights
fix: logs access
2025-06-25 12:41:44 +08:00
Alexander Holliday 65eb22bbe0 Merge branch 'develop' into fix/logs-rights 2025-06-25 12:41:30 +08:00
Alex Holliday 549044f973 fix sidebar logs 2025-06-25 12:38:57 +08:00
Alexander Holliday df56799ab9 Merge pull request #2542 from bluewave-labs/fix/process-env
fix: use process.env
2025-06-25 12:17:47 +08:00
Alex Holliday ba8011a22e use process.env 2025-06-25 12:17:16 +08:00
Alexander Holliday 1a69af6360 Merge pull request #2541 from bluewave-labs/fix/fetch-depth
fix: fetch depth
2025-06-25 12:07:58 +08:00
Alex Holliday b718c02787 update workflows 2025-06-25 12:07:31 +08:00
Alex Holliday 4fa0e08574 update workflows 2025-06-25 12:07:12 +08:00
Alexander Holliday 9681730263 Merge pull request #2540 from bluewave-labs/fix/mongo-4.4-compatibility
version fix
2025-06-25 11:57:09 +08:00
Alex Holliday b03f951352 version fix 2025-06-25 11:56:04 +08:00
Alexander Holliday 34b56bcadc Merge pull request #2539 from bluewave-labs/fix/mongo-4.4-compatibility
fix: donwgrade mongo functions
2025-06-25 11:40:30 +08:00
Alex Holliday 8606b5e5de donwgrade mongo functoins 2025-06-25 11:39:05 +08:00
Alexander Holliday 6c7fefe4ed Merge pull request #2538 from bluewave-labs/translation-update-74
🌐 Updated Translations from POEditor
2025-06-25 10:44:55 +08:00
GitHub Action 9bb5362c5f feat: translations updated from POEditor 2025-06-25 02:44:18 +00:00
Alexander Holliday 997342a31c Merge pull request #2536 from bluewave-labs/develop
Develop -> Master for 2.2 release
2025-06-25 09:38:08 +08:00
Alexander Holliday a84f30c36d Merge pull request #2535 from bluewave-labs/fix/invite-email
fix: verify transport before sending email
2025-06-25 09:36:00 +08:00
Alex Holliday 4cc3765e0d verify transport before sending email 2025-06-25 09:35:41 +08:00
Alex Holliday 915d2e06ae verify transport before sending email 2025-06-25 09:34:07 +08:00
Alex Holliday 95b832c1c6 Merge branch 'develop' into feat/incidents-clear 2025-06-25 09:03:00 +08:00
Alexander Holliday 1e0ddb248c Merge pull request #2533 from bluewave-labs/feat/version
feat: extract version from git tag
2025-06-25 08:51:56 +08:00
Alexander Holliday 635717ec92 Merge pull request #2531 from bluewave-labs/fix/settings-page-strings
fix: settings page strings
2025-06-25 08:51:39 +08:00
Alexander Holliday db285d1867 Merge pull request #2530 from bluewave-labs/feat/on-user-delete-cascade
feat: cascade on superuser delete
2025-06-25 08:50:45 +08:00
mohadeseh safari 00ebc4c270 translation fix 2025-06-24 16:29:13 -04:00
mohadeseh safari d1b3d14457 Format code with prettier 2025-06-24 16:02:41 -04:00
mohadeseh safari 6cd52cb31d Merge develop into issue-2150-move-status-page-delete-button 2025-06-24 15:50:34 -04:00
mohadeseh safari 310084a902 translation fix 2025-06-24 15:30:52 -04:00
mohadeseh safari 1b8c6167b7 Add localization for status page creation and update messages 2025-06-24 15:16:24 -04:00
mohadeseh safari e371596d15 Fix status page deletion network requests and implement optimistic UI update pattern 2025-06-24 15:07:37 -04:00
Br0wnHammer 183c13fe53 Naming Changes in BE 2025-06-24 14:44:02 +05:30
Alex Holliday 8d6078e2c1 safely extract version 2025-06-24 16:31:18 +08:00
Alex Holliday 4f17e84247 extract version from git tag 2025-06-24 15:40:50 +08:00
Alex Holliday 563cc8d03d fix label 2025-06-24 14:45:04 +08:00
Alex Holliday 09b5261ba2 Merge branch 'develop' into fix/settings-page-strings 2025-06-24 14:42:39 +08:00
Alexander Holliday ff9a7c33eb Merge pull request #2532 from bluewave-labs/fix/sort
sort json
2025-06-24 14:38:03 +08:00
Alex Holliday 08b9cc16fc sort json 2025-06-24 14:37:16 +08:00
Alexander Holliday 27c1e9f1da Merge pull request #2518 from tamirazrab/refactor/2511-remove-useless-string
chore: remove unnecessary string
2025-06-24 14:34:53 +08:00
Alexander Holliday 8d0cd1dc05 Merge pull request #2522 from bluewave-labs/feat/uptime-empty-view
feat: add stat boxes and timeframe header
2025-06-24 14:34:25 +08:00
Alex Holliday 0d01a08304 sort 2025-06-24 14:32:28 +08:00
Alex Holliday 4d91377259 fix settings page strings 2025-06-24 14:30:14 +08:00
Tamir Azrab fe25a5d170 chore: remove keys entirely 2025-06-24 10:44:35 +05:00
Alex Holliday c16d5c4246 early return if user not found 2025-06-24 13:25:10 +08:00
Alex Holliday 40f4294cae cascade on superuser delete 2025-06-24 12:07:02 +08:00
Alexander Holliday 1cc9f4e4d9 Merge pull request #2529 from bluewave-labs/hotfix/delete-user
hotfix: delete user
2025-06-24 11:46:51 +08:00
Alex Holliday b282ff9883 fix delete user 2025-06-24 11:45:51 +08:00
Alexander Holliday 06d35e1626 Merge pull request #2528 from bluewave-labs/hotfix/logger
hotfix: add missing contenxt
2025-06-24 11:19:23 +08:00
Alex Holliday d184f3fd38 add missing contenxt 2025-06-24 11:18:13 +08:00
Alexander Holliday 3d67cfaacd Merge pull request #2527 from bluewave-labs/hotfix/logger
add missing  context
2025-06-24 11:15:48 +08:00
Alex Holliday 2ee2d9b905 add missing context 2025-06-24 11:15:14 +08:00
Alexander Holliday 2df8bc14dd Merge pull request #2526 from bluewave-labs/feat/update-docker-compose
feat: update docker compose
2025-06-24 11:13:58 +08:00
Alex Holliday 2cb40b3885 update docker ignore 2025-06-24 11:12:44 +08:00
Alex Holliday 536c27cb30 update docker compose files 2025-06-24 10:59:01 +08:00
Alexander Holliday 1df36a66b9 Merge pull request #2525 from bluewave-labs/fix/temporary-comment-out-import-export
fix: temporarliy comment out import/export
2025-06-24 10:52:48 +08:00
Alex Holliday 1ebb6b922b temporarliy comment out import/export 2025-06-24 10:52:19 +08:00
Alexander Holliday dc7cc431d2 Merge pull request #2524 from bluewave-labs/fix/i18n
fix: translations ignore empty strings
2025-06-24 10:45:33 +08:00
Alex Holliday b9a8328a48 ignore empty strings 2025-06-24 10:44:16 +08:00
Alexander Holliday 5e14c15b92 Merge pull request #2523 from bluewave-labs/fix/bg-color
fix: update bg color
2025-06-24 10:29:02 +08:00
Alex Holliday 3bcf3b1ed0 update bg color 2025-06-24 10:28:25 +08:00
Alex Holliday e7429ecd67 add stat boxes and timeframe header 2025-06-24 10:18:25 +08:00
Alexander Holliday 0c94472062 Merge pull request #2520 from bluewave-labs/fix/prod-docker-compose
fix: add entrypoint to prod certbot
2025-06-24 10:09:52 +08:00
Alex Holliday dbf9f86105 add entrypoint to prod certbot 2025-06-24 10:09:07 +08:00
Alexander Holliday dfee81f5b0 Merge pull request #2517 from bluewave-labs/feat/team-access-middleware
feat: add middleware for verifying team access
2025-06-24 10:03:00 +08:00
Alex Holliday 40f879f671 user and teamId check 2025-06-24 10:02:36 +08:00
Alex Holliday c8685c4273 remove console 2025-06-24 10:00:41 +08:00
Alexander Holliday 2b9fbf743a Merge pull request #2519 from Giridhar88/feature/maintenance-window-click
Add maintenance row click feature to edit the maintenance window
2025-06-24 09:11:05 +08:00
Br0wnHammer 30d85e5712 Ack Field in Checks 2025-06-23 22:07:03 +05:30
giridhar88 ac9ff86e68 Add maintenance row click feature to edit the maintenance window 2025-06-23 19:01:03 +05:30
Alexander Holliday b6680be345 Merge pull request #2513 from bluewave-labs/feat/queue-page-update
feat: move queue to logs page
2025-06-23 20:10:46 +08:00
Alex Holliday 7839e4c197 correct logging 2025-06-23 20:10:10 +08:00
Alexander Holliday daa57ed948 Merge pull request #2509 from bluewave-labs/feat/email-settings-transport-display
feat: display transport settings
2025-06-23 19:05:16 +08:00
Tamir Azrab 41137c09b2 chore: remove unnecessary string 2025-06-23 15:52:34 +05:00
Alex Holliday 05add10ba8 add middleware for verifying team access 2025-06-23 15:45:24 +08:00
Alex Holliday bf73a71523 remove duplicate user 2025-06-23 14:48:45 +08:00
Alexander Holliday 91ab821090 Merge pull request #2506 from JefferMarcelino/feature/hide-admin-login-link
Add toggle to optionally display admin login link on status page and fix syntax errors
2025-06-23 13:25:43 +08:00
Alex Holliday 32688ba320 add missing stack 2025-06-23 13:22:53 +08:00
Alexander Holliday 288c6f88a3 Merge pull request #2515 from bluewave-labs/feat/logs
feat: logs
2025-06-23 13:19:52 +08:00
Alex Holliday 0336170c8d refactor 2025-06-23 13:19:18 +08:00
Alex Holliday 03ced27d30 Merge branch 'develop' into feat/queue-page-update 2025-06-23 13:15:14 +08:00
Alexander Holliday 8e4bb89974 Merge pull request #2516 from bluewave-labs/fix/light-mode-bg
fix: don't render bg svg on light mode
2025-06-23 12:35:31 +08:00
Alex Holliday 35aa5162ca don't render bg svg on light mode 2025-06-23 12:34:30 +08:00
Alex Holliday 92c2b2d6c1 remove unused import 2025-06-23 12:26:35 +08:00
Alex Holliday 5758a84e13 fix tab order 2025-06-23 12:21:27 +08:00
Alex Holliday 176f576979 change page order 2025-06-23 12:20:33 +08:00
Alex Holliday 9d18d55bbf increase log cache size 2025-06-23 12:19:52 +08:00
Alex Holliday 961d827a52 add a description 2025-06-23 12:19:40 +08:00
Alex Holliday 365ae08123 FE log component implementation 2025-06-23 12:09:30 +08:00
Alex Holliday 0b6febbb82 add log cache, routes, and controller 2025-06-23 11:25:42 +08:00
Alexander Holliday 6913bd0179 Merge pull request #2514 from bluewave-labs/translation-update-73
🌐 Updated Translations from POEditor
2025-06-23 11:14:12 +08:00
GitHub Action c607581767 feat: translations updated from POEditor 2025-06-23 03:11:03 +00:00
Alex Holliday 34485a0cae move queue to logs 2025-06-23 11:07:12 +08:00
Alexander Holliday 05e2bbd211 Merge pull request #2508 from bluewave-labs/fix/update-prod-docker-compose
remove redis from production docker copose
2025-06-23 10:06:24 +08:00
Alex Holliday 766c073ec4 localisation 2025-06-23 10:05:06 +08:00
Alex Holliday 3faa6194f3 display transport settings 2025-06-23 10:02:06 +08:00
Alex Holliday ddf9673a35 remove redis from production docker copose 2025-06-23 09:24:33 +08:00
Jeffer Marcelino 5fcf8ce7ba chore: format 2025-06-23 02:58:51 +02:00
Alexander Holliday d10341ac2f Merge pull request #2489 from Owaiseimdad/network-page-BE-part-1
Code for network db settings
2025-06-23 08:52:08 +08:00
Alexander Holliday 2161ef4388 Merge pull request #2492 from bluewave-labs/fix/notifications-loading-state
fix: button loading state
2025-06-23 08:49:15 +08:00
Alexander Holliday 7870e83586 Merge branch 'develop' into feature/hide-admin-login-link 2025-06-23 08:45:37 +08:00
Alexander Holliday 230753320a Merge pull request #2504 from Sky-walkerX/refactor/email-settings-toggle
refactor(settings): moved email settings toggle buttons to end of line and renamed the wordings
2025-06-23 08:43:38 +08:00
Jeffer Marcelino 465bdd2945 chore: format 2025-06-22 18:33:58 +02:00
Jeffer Marcelino 4a36bd3157 feat: add toggle to show/hide “Administrator? Login Here” link in status page settings 2025-06-22 18:28:17 +02:00
Jeffer Marcelino e6fd57d0bb feat: optionally hide the "Administrator? Login Here" on status page 2025-06-22 18:27:56 +02:00
Jeffer Marcelino 7c5516cd75 feat(api): add backend support for toggling admin login link visibility on status page 2025-06-22 18:26:20 +02:00
Jeffer Marcelino 31321749b2 fix: syntax errors in NetworkService.js and en.json causing build failure 2025-06-22 17:11:01 +02:00
Sky-walkerX 50e9a6b967 chore: formatted NetworkService 2025-06-22 19:40:42 +05:30
Sky-walkerX 3a6d3071be chore: format 2025-06-22 17:39:42 +05:30
Sky-walkerX 9972c3cf9a refactor(settings): changed wordings of email settings 2025-06-22 17:35:45 +05:30
Sky-walkerX f853a03491 refactor(settings): email settings toggle in one row 2025-06-22 17:17:26 +05:30
Alexander Holliday c98b901902 Merge pull request #2495 from bluewave-labs/feat/dev-settings
feat: dev settings
2025-06-21 18:00:34 +08:00
Alexander Holliday b77f05709b Merge branch 'develop' into feat/dev-settings 2025-06-21 18:00:23 +08:00
Alexander Holliday 28157c0b55 Merge pull request #2475 from Owaiseimdad/Bulk-export-uptime-monitors
Addition of export.
2025-06-21 17:57:42 +08:00
Alex Holliday f3072e0447 add missing columns 2025-06-21 16:20:31 +08:00
Alex Holliday 105353c9f6 add factory utils for creating header function 2025-06-21 16:15:34 +08:00
Alexander Holliday 40117f777e Merge pull request #2502 from bluewave-labs/fix/missing-password-error-translation
Fix Missing Password Error Translation
2025-06-21 15:29:33 +08:00
mohadeseh safari 2523d73625 Format code with prettier 2025-06-20 20:58:36 -04:00
mohadeseh safari 74cef5adb1 Fix #2471: Add Details, Configure, and Pause options to infrastructure action menu 2025-06-20 20:39:18 -04:00
mohadeseh safari 452d1a2ad5 Fix missing password error translation for auth.common.fields.password.errors.incorrect 2025-06-20 19:58:11 -04:00
mohadeseh safari a29282801a Format code for PR submission (#2150) 2025-06-20 19:06:57 -04:00
mohadeseh safari fc1f4fc142 Modify 2025-06-20 18:59:50 -04:00
mohadeseh safari 2b017490a3 Move status page delete button to configuration page header (#2150) 2025-06-20 18:56:39 -04:00
Owaise Imdad ecb1ca4517 Missed to add a line in jsdoc. 2025-06-21 00:25:57 +05:30
Owaise Imdad ba00e9afff Added JSDocs in module file. 2025-06-21 00:25:30 +05:30
Owaise Imdad 9700551f41 Removal of n count of document. 2025-06-21 00:18:09 +05:30
ThetaOI 24cb4c70a7 Merge branch 'bluewave-labs:develop' into network-page-BE-part-1 2025-06-21 00:09:51 +05:30
Owaise Imdad 75ed049b01 Resolved teh conflict in en.json file. 2025-06-21 00:06:09 +05:30
Br0wnHammer faa2a2d965 Fixes in the controllers 2025-06-20 20:42:57 +05:30
Br0wnHammer a9c1d131a5 Route Update All Monitor/Team Checks 2025-06-20 16:11:22 +05:30
Br0wnHammer e8908351a2 Route for Updating a single Incident Status 2025-06-20 15:39:13 +05:30
Alex Holliday 3351115e3c fix props 2025-06-20 14:47:19 +08:00
Alex Holliday 2b279af093 localization 2025-06-20 14:30:17 +08:00
Alex Holliday a7f795795f add route 2025-06-20 14:29:36 +08:00
Alex Holliday 85a996635f add controller method for getting all metrics 2025-06-20 14:29:27 +08:00
Alex Holliday 92d4e9ea12 Add additional metrics 2025-06-20 14:29:08 +08:00
Alex Holliday c23e941ece Add queue hooks 2025-06-20 14:28:43 +08:00
Alex Holliday c804f8b873 add routes and localisation 2025-06-20 14:28:33 +08:00
Alex Holliday 6c51fc91b4 add dev settings 2025-06-20 14:28:20 +08:00
Alex Holliday e610acb9c7 Add Queue page and components 2025-06-20 14:27:50 +08:00
Alex Holliday d8573be7ac add util methods 2025-06-20 14:27:22 +08:00
Alex Holliday 0a0c84b7f4 update link component to allow for internal links 2025-06-20 14:26:59 +08:00
Alex Holliday 61a66644da disable job on addition if monitor is paused 2025-06-20 10:58:29 +08:00
Alex Holliday 1187f9d4cc add fix button loading state 2025-06-20 10:08:13 +08:00
Alexander Holliday 906a76c545 Merge pull request #2491 from bluewave-labs/refactor/notification-service
refactor: notification service, resolves #2467, resolves #2468
2025-06-20 09:04:01 +08:00
Br0wnHammer 205e16a96d Resolved Filter in FE 2025-06-20 02:54:09 +05:30
Owaise Imdad 4cf3804898 Formatting issues. 2025-06-19 22:45:04 +05:30
Owaise Imdad 223203737f Logging error only once as middleware takes care of it. 2025-06-19 22:42:07 +05:30
ThetaOI 5675990504 Merge branch 'bluewave-labs:develop' into network-page-BE-part-1 2025-06-19 22:36:57 +05:30
Owaise Imdad 9f88fbbcf2 Formatting issues. 2025-06-19 22:32:53 +05:30
Owaise Imdad c70b5b0ae8 Resolving merge issues. 2025-06-19 22:30:50 +05:30
Owaise Imdad a1c11fbb3c Added a new method for file download and correct csv is getting added. 2025-06-19 22:23:10 +05:30
Alex Holliday 2b48a72f35 formatting 2025-06-19 12:17:00 +08:00
Alex Holliday 48b25e0838 refactor notification service 2025-06-19 12:12:55 +08:00
Alex Holliday 1b4b66e36d inject notification utils 2025-06-19 12:12:34 +08:00
Alex Holliday 30a7de5333 remove unused import 2025-06-19 12:12:09 +08:00
Alex Holliday d4b8eebd64 cleanup 2025-06-19 12:11:43 +08:00
Alex Holliday 8ea2053d37 add a utils file for notifications 2025-06-19 12:11:11 +08:00
Alex Holliday 68aa9a6b2d remove unused route 2025-06-19 12:10:44 +08:00
Alex Holliday dbbe008e23 remove unused controller methods 2025-06-19 12:10:29 +08:00
Alex Holliday 7e5521eb13 Move thresholds from Notification to Monitor 2025-06-19 12:10:07 +08:00
Alex Holliday f9e0930336 Merge branch 'develop' into refactor/notification-service 2025-06-19 10:34:14 +08:00
Alexander Holliday dfbc3ed728 Merge pull request #2486 from bluewave-labs/refactor/build-and-send-email
refactor: build and send
2025-06-19 10:33:37 +08:00
Alex Holliday 7ed92427a3 fix error handling 2025-06-19 10:33:00 +08:00
Alexander Holliday 2df1dc1721 Merge pull request #2469 from bluewave-labs/refactor/useFetchChecks
Refactor: useFetchChecks
2025-06-19 09:51:26 +08:00
Alexander Holliday 9a88523ea5 Merge pull request #2481 from virendra-jadhav/feat/bulk-select-status-page-servers
Add bulk selection for status page servers
2025-06-19 09:48:26 +08:00
Alex Holliday 196757d36f inject logger 2025-06-19 09:44:24 +08:00
Alexander Holliday 28718680fa Merge pull request #2473 from deepanshu2711/fix/floating-strings-2470
fix(ui): shorten URL label and resize notification button (#2470)
2025-06-19 07:23:25 +08:00
Owaise Imdad 8fe3ed9bd1 Added formating. 2025-06-18 23:30:39 +05:30
Owaise Imdad 0f298d6450 Code for network db settings. 2025-06-18 23:23:24 +05:30
unknown 8d93d80e1e resolve merge conflit for bulk selection for status page servers 2025-06-18 22:32:14 +05:30
Owaise Imdad e6b9b5df3c Translation and localisation. 2025-06-18 22:31:48 +05:30
unknown 711cd6cd44 resolve merge conflit for bulk selection for status page servers 2025-06-18 22:29:13 +05:30
Owaise Imdad 81d830d99e Miss with respect to blob type. 2025-06-18 22:24:43 +05:30
Virendra Jadhav b041c9014f Merge branch 'develop' into feat/bulk-select-status-page-servers 2025-06-18 22:07:49 +05:30
myusername 3cacda687c fix more changes for bulk selection on status page server 2025-06-18 19:05:04 +05:30
Alex Holliday 7bca60269c update schema and validation 2025-06-18 14:42:59 +08:00
Alex Holliday bb921690bf Update validation 2025-06-18 14:42:39 +08:00
Alex Holliday 440ce8a12b simplify creatign notifications 2025-06-18 14:42:26 +08:00
Alex Holliday a86bc59e09 remove unsued params from hook 2025-06-18 14:42:00 +08:00
Br0wnHammer a091bf23b7 isLoading Check 2025-06-18 11:32:33 +05:30
Br0wnHammer acd5dc982e Fix: Type Check in useFetchChecksMonitor 2025-06-18 11:13:42 +05:30
Deepanshu 6b3773ed76 chore: remove URL_TRUNCATE_LENGTH from component 2025-06-18 11:09:23 +05:30
Alex Holliday 29cfc4fb41 Merge branch 'develop' into refactor/notification-service 2025-06-18 13:30:24 +08:00
Alexander Holliday 30e95b431c Merge pull request #2488 from bluewave-labs/hotfix/fetch-settings
fix: add empty functions
2025-06-18 13:20:56 +08:00
Alex Holliday cb4fda937f add empty functions 2025-06-18 13:20:08 +08:00
Alexander Holliday 728e337722 Merge pull request #2487 from bluewave-labs/hotfix/react-router
hotfix: react router import
2025-06-18 10:55:07 +08:00
Alex Holliday d558cdd49f fix react router import 2025-06-18 10:52:11 +08:00
Alex Holliday 47131633d0 refactor build and send 2025-06-18 10:44:59 +08:00
Alexander Holliday 85e81184e5 Merge pull request #2485 from bluewave-labs/hotfix/radio
hotfix: add name prop to radio component
2025-06-18 10:10:57 +08:00
Alex Holliday c78f43e32e add name prop to radio component 2025-06-18 10:10:14 +08:00
Alexander Holliday 79b5a33874 Merge pull request #2484 from bluewave-labs/hotfix/ping-monitoring
hotfix: ping monitoring
2025-06-18 10:06:18 +08:00
Alex Holliday 76a5a79482 fix ping monitoring 2025-06-18 10:05:04 +08:00
Alexander Holliday f45736e318 Merge pull request #2483 from hackr-sh/fix/first-name-last-name-additional-special-chars
fix: name validation now takes into account additional special chars
2025-06-18 09:55:39 +08:00
Alexander Holliday 8d30de1ff8 Merge pull request #2480 from bluewave-labs/fix/time-format
fix: update time format function, resolves #2477
2025-06-18 09:44:20 +08:00
Alexander Holliday 68f1895cda Merge pull request #2478 from bluewave-labs/feat/handle-api-and-password-input
feat: handle api and password input, resolves #2385
2025-06-18 09:43:59 +08:00
Alex Holliday fc2676c33e deal with redux before validation 2025-06-18 09:43:41 +08:00
Mohammad Al-Ahdal c9359cc4e1 implement server-validation wording feedback 2025-06-17 18:40:51 -06:00
Mohammad Al-Ahdal b5752024e7 fix: name validation now takes into account additional special chars 2025-06-17 18:29:09 -06:00
Gorkem Cetin (BWL) df4f55b410 Update README.md 2025-06-17 19:38:08 -04:00
Owaise Imdad e71e2ef42c Addressed all the comments in pr. 2025-06-18 01:07:22 +05:30
Gorkem Cetin (BWL) 1e5c8612b8 Sponsor a feature link added 2025-06-17 14:59:38 -04:00
Deepanshu 75309fc53c chore: add URL_TRUNCATE_LENGTH 2025-06-17 17:36:06 +05:30
Deepanshu e3b6ed27ba chore: remove nowrap as already exists in monitorUrl varient 2025-06-17 17:33:21 +05:30
Deepanshu f474d63e88 chore: extract monitor URL formatting to utils 2025-06-17 17:30:11 +05:30
Br0wnHammer 287ea3e5a6 Updated params 2025-06-17 13:27:51 +05:30
Br0wnHammer bcf883223b Exporting Hooks from One File 2025-06-17 13:13:21 +05:30
Alex Holliday 9c40021318 return time string 2025-06-17 13:41:25 +08:00
Deepanshu e818f1cd61 chore: fix formatting 2025-06-17 10:57:30 +05:30
unknown 34ca3a65d6 Add bulk selection for status page servers 2025-06-17 10:13:58 +05:30
Alex Holliday 1298b23844 update time format function 2025-06-17 11:32:35 +08:00
Alexander Holliday f15cef4916 Merge pull request #2479 from bluewave-labs/translation-update-72
🌐 Updated Translations from POEditor
2025-06-17 11:17:04 +08:00
GitHub Action 64e4a3278a feat: translations updated from POEditor 2025-06-17 03:15:12 +00:00
Alex Holliday 791c62b583 remove console log 2025-06-17 11:13:37 +08:00
Alex Holliday 456798ca15 move state to parent 2025-06-17 10:58:41 +08:00
Alex Holliday 7d333c6d93 return updated settings 2025-06-17 10:58:30 +08:00
Alexander Holliday 7c275db662 Merge pull request #2466 from bluewave-labs/fix/hardware-notifications
fix: hardware notifications
2025-06-17 09:27:34 +08:00
Alexander Holliday c1004fc37a Merge pull request #2458 from bluewave-labs/feat/discord-notification-channel
feat: discord notification channel
2025-06-17 09:21:36 +08:00
Owaise Imdad 11212c7371 Formatting was done. 2025-06-17 00:17:46 +05:30
Owaise Imdad e9e509ab04 Addition of export. 2025-06-17 00:11:33 +05:30
Deepanshu df42932e0c fix(ui): shorten URL label and resize notification button (#2470) 2025-06-16 20:40:19 +05:30
Gorkem Cetin (BWL) 36d8e8c0cf Better screnshots 2025-06-16 09:46:50 -04:00
Gorkem Cetin (BWL) 75eb9f8560 Add ToC 2025-06-16 09:43:59 -04:00
Br0wnHammer c981b25ef9 Hooks integration in Incidents Table 2025-06-16 13:51:15 +05:30
Br0wnHammer 638fcb3b9b Incidents useFetchChecksMonitor Integration 2025-06-16 13:08:39 +05:30
Br0wnHammer 37406484fc useFetchChecksTeam Hook 2025-06-16 13:00:23 +05:30
Br0wnHammer bebbe5896d Uptime useFetchChecksByMonitor Integration 2025-06-16 12:57:00 +05:30
Br0wnHammer f47d3c2cd6 Feat: useFetchChecksByMonitor 2025-06-16 12:56:08 +05:30
Alex Holliday 3df6b451e7 fix hardware notifications 2025-06-16 13:53:08 +08:00
Alex Holliday 4fd2a29ab3 fix email type 2025-06-16 13:30:27 +08:00
Alexander Holliday a3b22d9056 Merge pull request #2465 from bluewave-labs/fix/send-test-notifications
fix: send test notifications
2025-06-16 13:28:27 +08:00
Alex Holliday ca4da6d485 add testAll 2025-06-16 12:17:43 +08:00
Alex Holliday 959f265617 add route 2025-06-16 12:17:22 +08:00
Alex Holliday 3cdc21f1be add controller method 2025-06-16 12:16:52 +08:00
Alex Holliday bc3801edc0 add strings' 2025-06-16 12:16:08 +08:00
Alex Holliday 13741d0f0a add test all notifications method 2025-06-16 12:15:54 +08:00
Alex Holliday 9bba8440ca update monitor details header 2025-06-16 12:15:29 +08:00
Alex Holliday 6f133ed7a0 add test all hook 2025-06-16 12:15:07 +08:00
Alexander Holliday 55ea81c46a Merge pull request #2464 from bluewave-labs/fix/cleanup
fix: cleanup
2025-06-16 11:36:52 +08:00
Alexander Holliday 37443823b8 Merge pull request #2463 from bluewave-labs/fix/incidents
fix: load monitor from params if present
2025-06-16 11:35:40 +08:00
Alexander Holliday 7c76125a0a Merge pull request #2462 from bluewave-labs/fix/infrastructure-header
fix: add universal header to infra details
2025-06-16 11:35:20 +08:00
Alexander Holliday dd16c3e8fe Merge pull request #2461 from bluewave-labs/fix/pagespeed-header
fix: pagespeed header
2025-06-16 11:35:04 +08:00
Alex Holliday 30a610511c remove unused component/imports 2025-06-16 11:34:41 +08:00
Alex Holliday e173269acd remove unused depedencies 2025-06-16 11:34:25 +08:00
Alex Holliday 3235bf68e4 Merge branch 'fix/incidents' into fix/cleanup 2025-06-16 11:24:36 +08:00
Alex Holliday 6cbc6546ac Merge branch 'fix/infrastructure-header' into fix/cleanup 2025-06-16 11:24:28 +08:00
Alex Holliday 1490e9171d load monitor from params if present 2025-06-16 11:21:28 +08:00
Alex Holliday f30529e8a2 add universal header to infra details 2025-06-16 11:17:09 +08:00
Alex Holliday 90a5fe946a add update trigger prop 2025-06-16 11:13:45 +08:00
Alex Holliday 1a198c28ee use universal details header in PageSpeed page 2025-06-16 11:13:28 +08:00
Alexander Holliday c90fb9dd08 Merge pull request #2460 from bluewave-labs/hotfix/uptime-config
hotfix: uptime config
2025-06-16 10:45:52 +08:00
Alex Holliday 9de6b4e2bc fix uptime config 2025-06-16 10:45:13 +08:00
Alex Holliday bea23a94bb handle discord webhooks 2025-06-16 10:38:05 +08:00
Alex Holliday 5aae164865 extrat userId and teamId from req.uesr 2025-06-16 10:37:04 +08:00
Alex Holliday bfae00b69b add strings 2025-06-16 10:36:45 +08:00
Alex Holliday 22f8a37f1f add discord type 2025-06-16 10:36:34 +08:00
Alex Holliday f6be4317cd remove user and teamid from validation 2025-06-16 10:36:20 +08:00
Alexander Holliday 1aeb4472bc Merge pull request #2457 from bluewave-labs/hotfix/rows-per-page
hotfix: safe rowsPerPage access
2025-06-16 09:45:27 +08:00
Alex Holliday 20e32fad04 safe rowsPerPage access 2025-06-16 09:44:21 +08:00
Alexander Holliday cb35dc591c Merge pull request #2450 from loma373/feat/search-infra-moniters
feat: add search functionality to infrastructure monitor
2025-06-15 20:44:55 +08:00
Amol 738925d5ec fix: remove shouldRender prop as it is now managed by isLoading 2025-06-15 15:29:48 +05:30
Alexander Holliday b229720431 Merge pull request #2455 from bluewave-labs/feat/image-tags
fix: change workflow names
2025-06-15 17:36:02 +08:00
Alexander Holliday beffce8823 Merge pull request #2453 from Kaotic3/feature/persist-rows-setting
Feature/persist rows setting
2025-06-15 17:12:21 +08:00
Alexander Holliday 1607aba78f Merge pull request #2427 from bluewave-labs/feat/test-email
Feat: New Email Options
2025-06-15 17:11:12 +08:00
Amol Vyas 87ccc93ff9 Merge branch 'develop' into feat/search-infra-moniters 2025-06-15 03:39:10 +05:30
Amol 91741c2ae5 fix: removing unused code blocks and better handling for filter param 2025-06-15 03:17:22 +05:30
Amol e366741aa9 fix: updating code to the coding standards & changing the search param 2025-06-14 23:49:39 +05:30
Steven Kennedy b105626f0b Persist rowsPerPage setting in local storage 2025-06-14 17:40:46 +01:00
Kaotic3 a37505b095 Merge pull request #1 from Kaotic3/codex/persist-rowsperpage-setting
Persist infrastructure rows per page
2025-06-14 17:16:26 +01:00
Kaotic3 216e53166d Persist infrastructure monitors rows per page 2025-06-14 17:13:55 +01:00
Amol 800fd4792d fix: running formatting script on both client and server directories 2025-06-14 16:23:05 +05:30
Amol 7189c19d55 feat: add search functionality to infrastructure moniter 2025-06-14 16:16:49 +05:30
Br0wnHammer 91694ff072 Password Validation Check 2025-06-14 11:01:47 +05:30
Alexander Holliday fcffb93a60 Merge pull request #2449 from bluewave-labs/fix/status-page-on-monitor-delete
fix/status page on monitor delete
2025-06-14 11:41:41 +08:00
Alexander Holliday ad7912e6ba Merge pull request #2448 from bluewave-labs/fix/bulk-create
fix: move bulk monitors hook to monitorHooks
2025-06-14 11:41:25 +08:00
Alexander Holliday 252961aca9 Merge pull request #2447 from bluewave-labs/fix/autocomplete-style
fix: move style to global theme
2025-06-14 11:41:07 +08:00
Br0wnHammer 2d839285f2 Switch Buttons Position 2025-06-13 20:40:01 +05:30
Br0wnHammer d19bbf2b8e Hide send email button until validation is complete 2025-06-13 14:15:37 +05:30
Alex Holliday 4b621a228f remove monitors from status page on delete 2025-06-13 14:54:59 +08:00
Br0wnHammer 38a1d5e7a1 Implement PR Comments 2025-06-13 12:22:28 +05:30
Alex Holliday cc8949538f move bulk monitors hook to monitorHooks 2025-06-13 14:04:08 +08:00
Alex Holliday 985ca3334d move style to global theme 2025-06-13 13:49:54 +08:00
Alexander Holliday df69d06048 Merge pull request #2446 from bluewave-labs/fix/remove-team-and-user-id
fix: remove team and user
2025-06-13 13:35:36 +08:00
Alexander Holliday ef8f74d4e3 Merge pull request #2445 from bluewave-labs/fix/checks-team-id
fix: checks team
2025-06-13 13:34:35 +08:00
Alexander Holliday 062df395c5 Merge pull request #2444 from bluewave-labs/fix/maintenance-window-team-id
fix: maintenance window team
2025-06-13 13:34:22 +08:00
Alexander Holliday a25f292217 Merge pull request #2443 from bluewave-labs/fix/monitors-remove-team-id
fix: monitors remove team ID parameters
2025-06-13 13:34:05 +08:00
Alexander Holliday 30fc14ed7f Merge pull request #2442 from bluewave-labs/fix/notifications-team-id
fix: remove team id from notifications
2025-06-13 13:33:48 +08:00
Alexander Holliday 1850655467 Merge pull request #2441 from bluewave-labs/fix/advanced-settings
fix: add a checkbox to enable/disable advanced settings
2025-06-13 13:33:30 +08:00
Alex Holliday ab3f867b5b remove unused redux state 2025-06-13 13:32:55 +08:00
Alex Holliday b499b2879c remove teamId from status pages 2025-06-13 13:29:03 +08:00
Alex Holliday 18ea551118 remove user 2025-06-13 13:11:58 +08:00
Alex Holliday 42372ab111 remove userID and teamID from status page 2025-06-13 13:10:56 +08:00
Alex Holliday 5e23a2b79c Remove team and user id 2025-06-13 12:16:52 +08:00
Alex Holliday c32cde6189 fix incidents page 2025-06-13 12:08:59 +08:00
Alex Holliday d2233d2e3e remove teamId from checks 2025-06-13 12:04:39 +08:00
Alex Holliday 9da3d3ef55 remove teamId from checks 2025-06-13 12:03:32 +08:00
Alex Holliday cedd660fd9 get teamID from req.user 2025-06-13 11:52:10 +08:00
Alex Holliday b9fbfd2a25 remove team id from monitor controller/db methods, standardize parameters 2025-06-13 11:49:03 +08:00
Alex Holliday 4168c86734 remove team id from monitor controller/db methods, standardize parameters 2025-06-13 11:47:29 +08:00
Alex Holliday 024096631f remove team id from notificaitons 2025-06-13 11:15:42 +08:00
Alex Holliday e53901f6fd add a checkbox to enable/disable advanced settings 2025-06-13 11:07:37 +08:00
Alexander Holliday 1a7842164d Merge pull request #2434 from bluewave-labs/fix/redux-removal-action-menu
fix: remove redux from action menu
2025-06-13 10:55:19 +08:00
Alexander Holliday 656c3c61a8 Merge pull request #2435 from bluewave-labs/fix/remove-redux-sidebar
fix: remove redux sidebar
2025-06-13 10:54:32 +08:00
Alexander Holliday 19303d43ea Merge pull request #2436 from bluewave-labs/fix/redux-removal-password-reset
fix: redux removal password reset
2025-06-13 10:54:15 +08:00
Alexander Holliday cd0b9cd7d6 Merge pull request #2437 from bluewave-labs/fix/redux-removal-settings
fix: remove redux from settings
2025-06-13 10:54:02 +08:00
Alexander Holliday 5e8a0afd3b Merge pull request #2438 from bluewave-labs/fix/remove-uptime-reducer
fix: remove uptime reducer
2025-06-13 10:53:50 +08:00
Alexander Holliday fac2f6f205 Merge pull request #2439 from bluewave-labs/fix/remove-unused-reducers
fix: remove unused reducers
2025-06-13 10:53:34 +08:00
Alexander Holliday c3a2ca314a Merge pull request #2440 from bluewave-labs/fix/remove-team-id-from-requests
fix: remove team id from requests
2025-06-13 10:53:18 +08:00
Alex Holliday 57f4db8d37 remove reference to state 2025-06-13 10:52:05 +08:00
Alex Holliday afece4df65 update routes, validation 2025-06-13 10:46:06 +08:00
Alex Holliday d9c2f31f4e remove teamId from uptime monitor requests 2025-06-13 10:38:52 +08:00
Alex Holliday 134e547736 remove redux loading state 2025-06-13 10:18:43 +08:00
Alex Holliday 1542cf01a7 comment out pagespeed check, TODO later 2025-06-13 10:13:22 +08:00
Alex Holliday a63bcb5b4a add missing finally block 2025-06-13 10:05:29 +08:00
Alex Holliday deeb6a030c remove settings reducer 2025-06-13 10:00:48 +08:00
Alex Holliday 5e6aaa3caa remove unused reducers 2025-06-13 09:59:01 +08:00
Alex Holliday 9503f08dd8 remove uptime monitor reducer 2025-06-13 09:56:06 +08:00
Alex Holliday fca39f1914 remove redux from settings 2025-06-13 09:51:26 +08:00
Alex Holliday 8d512b4719 remove redux 2025-06-13 09:27:29 +08:00
Alex Holliday 9f204b36b0 remove unused redux state from sidebar 2025-06-13 09:18:45 +08:00
Alex Holliday a93edc1131 remove redux from action menu 2025-06-13 09:16:07 +08:00
Alexander Holliday 09b7dc8401 Merge pull request #2431 from bluewave-labs/fix/redux-removal-hook-cleanup
fix: redux removal hook cleanup
2025-06-13 09:03:25 +08:00
Alexander Holliday 6f3c2df6ee Merge pull request #2430 from bluewave-labs/feat/bg-svg
feat: add a background component
2025-06-13 09:02:33 +08:00
Alex Holliday a111903965 use hooks 2025-06-12 15:47:59 +08:00
Alex Holliday d62fe5f4ab add missing dependencies 2025-06-12 15:47:43 +08:00
Alex Holliday 289aa4fe32 refactor check hooks 2025-06-12 15:47:21 +08:00
Alex Holliday cf84d1fde5 use arrow functions to preserve context 2025-06-12 15:46:48 +08:00
Alex Holliday 50986d4493 use hooks 2025-06-12 12:44:46 +08:00
Alex Holliday 948e5e932b refactor hooks to common util 2025-06-12 12:44:35 +08:00
Alex Holliday 1574624f69 add a background component 2025-06-12 09:37:51 +08:00
Alexander Holliday 275f2384c0 Merge pull request #2426 from bluewave-labs/feat/register
feat: register
2025-06-12 09:05:21 +08:00
Alex Holliday b58fe4ae74 add loading state 2025-06-12 09:04:19 +08:00
Alexander Holliday b1f4c64a21 Merge pull request #2425 from bluewave-labs/feat/login
feat: login
2025-06-12 09:01:58 +08:00
Alexander Holliday 4e10325eea Merge pull request #2429 from anuragparashar26/develop
fix: update TextInput border color to match dropdown (#2406)
2025-06-12 09:01:40 +08:00
anuragparashar26 6dea8b434b fix: update TextInput border color to match dropdown (#2406) 2025-06-12 05:20:16 +05:30
anuragparashar26 9242612f30 fix: update TextInput border color to match dropdown (#2406) 2025-06-12 05:01:09 +05:30
Br0wnHammer de3d38d891 Implement remaining email config 2025-06-12 00:39:47 +05:30
Alex Holliday 0e4b371925 add login header 2025-06-11 20:12:02 +08:00
Br0wnHammer 1794429cbe Formatting Run 2025-06-11 15:29:25 +05:30
Br0wnHammer 7e1a7066fc TLS Options Set Up 2025-06-11 15:11:28 +05:30
Br0wnHammer 01ed3d8aaa Feat: New Email Settings 2025-06-11 14:42:51 +05:30
Br0wnHammer ec25ebee35 Fix: Node Mailer Settings 2025-06-11 14:11:49 +05:30
Alex Holliday c0ad2dfce2 fix superadmin state 2025-06-11 12:41:58 +08:00
Alex Holliday bcea3a5e66 refactor register page 2025-06-11 12:32:36 +08:00
Alex Holliday 3ade8b5bd4 update admin check HOC 2025-06-11 12:32:16 +08:00
Alex Holliday fac960b9ac set minHeight, force lowercase for email 2025-06-11 12:32:03 +08:00
Alex Holliday 045b506e2a remove unused component 2025-06-11 10:22:17 +08:00
Alex Holliday 9e6b826f6e update translations 2025-06-11 10:21:47 +08:00
Alex Holliday cd17ecdadb fix import path 2025-06-11 10:21:33 +08:00
Alex Holliday f32892adaf add components directory 2025-06-11 10:20:36 +08:00
Alex Holliday 18ef81f6f1 refactor login page 2025-06-11 10:20:14 +08:00
Alexander Holliday 3cd8191aa4 Merge pull request #2422 from bluewave-labs/feat/notification-on-click
feat: add row click handling to notificaitons table
2025-06-10 14:21:29 +08:00
Alexander Holliday ff0d338899 Merge pull request #2423 from bluewave-labs/hotfix/docker-image-name
hotfix: image name
2025-06-10 14:20:52 +08:00
Alex Holliday e44114b5e5 fix image name 2025-06-10 14:19:57 +08:00
Alex Holliday 7587fea6d5 Add row click handling to notificaitons table 2025-06-10 14:03:49 +08:00
Alexander Holliday a105e85a5a Merge pull request #2421 from bluewave-labs/hotfix/duplicate-strings
hotfix: duplicate strings, remove uptime percentage
2025-06-10 13:58:44 +08:00
Alex Holliday 3224feeb9e fix duplicate strings, remove uptime percentage 2025-06-10 13:57:00 +08:00
Alexander Holliday cb98359d35 Merge pull request #2420 from bluewave-labs/feat/test-notification
feat: test notification
2025-06-10 13:49:16 +08:00
Alexander Holliday 64390bae2b Merge pull request #2419 from bluewave-labs/feat/edit-notification-channel
feat: implement editing notification channels
2025-06-10 13:47:25 +08:00
Alexander Holliday 94d10b6385 Merge pull request #2418 from bluewave-labs/fix/delete-cascade
fix: implement delete cascade
2025-06-10 13:45:55 +08:00
Alex Holliday 08875b07ec add pagerduty 2025-06-10 13:44:15 +08:00
Alex Holliday c20b8c665a add tests notification for email 2025-06-10 13:20:44 +08:00
Alex Holliday e6493df881 add test notificaiton button and methods 2025-06-10 12:07:31 +08:00
Alex Holliday 1ed317d0cb update fallback 2025-06-10 11:29:03 +08:00
Alex Holliday df63e74116 update icon 2025-06-10 11:22:24 +08:00
Alex Holliday 910bf4c72e formatting 2025-06-10 11:16:39 +08:00
Alex Holliday 0ac1f13043 implement editing notification channels 2025-06-10 11:13:19 +08:00
Alex Holliday 76de8f11f2 formatting 2025-06-10 09:53:17 +08:00
Alex Holliday 711e85cb6e implement delete cascade 2025-06-10 09:49:53 +08:00
Alexander Holliday f41709bd12 Merge pull request #2414 from bluewave-labs/feat/fe/uptime-notification-channels
feat: fe/uptime notification channels, resolves #2344
2025-06-10 09:24:56 +08:00
Alexander Holliday 59955cd29a Merge pull request #2413 from bluewave-labs/feat/notification-channels
feat: notification channels
2025-06-10 09:24:37 +08:00
Alexander Holliday e438e4572f Merge pull request #2417 from bluewave-labs/fix/account-delete
fix: add empty query object to fix default destructuring, resolves #2386
2025-06-10 09:17:50 +08:00
Alex Holliday f445c2b310 add empty query object to fix default destructuring 2025-06-10 09:16:38 +08:00
Alexander Holliday 5dd52808b3 Merge pull request #2416 from kelvinyim0705/develop
fix: standardize pagination alignment in ChartBox components
2025-06-10 09:00:49 +08:00
Alexander Holliday a85d2c8559 Merge pull request #2409 from bluewave-labs/Capture-version-on-details-page
Capture version on details page
2025-06-10 08:59:26 +08:00
Alexander Holliday 427f52b5a4 Merge pull request #2415 from SaikatDeb12/fix/login-error-display-message
fix: changed login error display message
2025-06-10 08:58:31 +08:00
Alexander Holliday c1b828a58e Merge pull request #2410 from ceskyDJ/i18n-refactor
i18n: Refactoring, fixes and cleaning up (part I)
2025-06-10 08:54:57 +08:00
Michal Šmahel 89bc2a9293 style: Reformat code 2025-06-09 21:54:48 +02:00
Michal Šmahel 8c9084cc7a i18n: Clean up auth-related keys
Removes only keys that aren't used on any place (I searched for
each of them in all Components and Pages).
2025-06-09 21:54:48 +02:00
Michal Šmahel 00f3941ca6 i18n: Refactor, fix and clean up auth forms 2025-06-09 21:54:47 +02:00
Michal Šmahel 74915f6840 fix: Strict password validation in login form
Strict password validation is for registration, change password,
reset password and similar forms. In login form, we don't want
to interrupt user with unnecessary validation as it's completely
irrelevant what they actually entered. The one thing it's about
is the correctness of the email and the password.

Disabling strict validation for password is a kind of security
through obscurity, which could filter some untargeted attempts
for trying passwords by bots. If the bot immediatelly receives
notes about the requirements, it has more imformation for better
attacks.
2025-06-09 21:54:47 +02:00
Michal Šmahel 3ac0eb2128 refactor: Simplify client-side email validation
We don't need to implement custom check for lowercase, as it's
been already implemented in joi library. Also we don't need to
convert email to lowercase twice (via onChange and onInput event
handlers), onChange is completely sufficient and as it's just
before form validation, it's the better one.
2025-06-09 21:54:47 +02:00
Michal Šmahel c5efa71875 i18n: Refactor and fix network error 2025-06-09 21:54:45 +02:00
Michal Šmahel 6460fe33d6 i18n: Refactor page for server unreachable and remove unused 2025-06-09 21:53:04 +02:00
Michal Šmahel 6b81eabf07 i18n: Fix theme toggle 2025-06-09 21:53:03 +02:00
Michal Šmahel d63e3db216 i18n: Refactor and fix app names (Checkmate and Capture) 2025-06-09 21:53:02 +02:00
Michal Šmahel 7e873161bc l10n(ar): Remove empty localization 2025-06-09 21:53:00 +02:00
Michal Šmahel fe5f24ef44 l10n(cs): Clean up localization file 2025-06-09 21:52:53 +02:00
Kelvin Yim 21a26a5ebb fix: standardize pagination alignment in ChartBox components
Remove alignItems="center" from ChartBox to prevent unintended centering of pagination controls in uptime details, ensuring consistent pagination layout across all tables per

issue #2405
2025-06-09 17:36:26 +01:00
Owaise Imdad 4608390cfd Added local support for the page. 2025-06-09 21:25:34 +05:30
SaikatDeb12 a73d3ec83e fix: changed login error display message 2025-06-09 16:03:44 +05:30
Alex Holliday 1b40aa0ded add notifications to infra page, add generic webhook notification channel 2025-06-09 14:59:26 +08:00
Alex Holliday de673ea5d1 add notifications to pagespeed 2025-06-09 14:22:11 +08:00
Alex Holliday 4c3ea2fd65 add validation 2025-06-09 12:59:02 +08:00
Alex Holliday f2000ffe56 add notificaitons to projection 2025-06-09 12:58:52 +08:00
Alex Holliday a0de1e3c72 remove old notificaiton code 2025-06-09 12:58:25 +08:00
Alex Holliday b825e0fef4 remove old notification code 2025-06-09 12:58:04 +08:00
Alex Holliday 5b21906894 add notificaion pages 2025-06-09 12:57:30 +08:00
Alex Holliday 46b2b4c3ab add hooks 2025-06-09 12:57:15 +08:00
Alex Holliday ff11a91190 add notification config component 2025-06-09 12:57:02 +08:00
Alex Holliday eb79eef2a2 Add network service methods 2025-06-09 12:56:45 +08:00
Alex Holliday e8a4496199 add notification channel pages 2025-06-09 12:56:24 +08:00
Alex Holliday 04ab4e23db add notificaions channel to Uptime Configure 2025-06-09 12:56:05 +08:00
Alex Holliday e36abfa9a6 add notificaitons channel to Create Uptime 2025-06-09 12:55:45 +08:00
Alex Holliday 358381ddc2 update client side validation 2025-06-09 12:55:13 +08:00
Alex Holliday 1fbfbc4204 add strings 2025-06-09 12:55:01 +08:00
Alex Holliday 95703c1505 remove console.log 2025-06-09 12:54:41 +08:00
Alex Holliday 0225b93c72 add notifications channel to sidebar 2025-06-09 12:52:52 +08:00
Alex Holliday 3027606524 remove console.log 2025-06-09 12:52:32 +08:00
Alex Holliday 92ddf023ec add pager duty handling method 2025-06-09 10:49:52 +08:00
Alex Holliday 5a50e9b301 Add controller, db, and validation for notifications 2025-06-09 10:30:21 +08:00
Alex Holliday 0f10a39f91 add notification routes 2025-06-09 10:25:06 +08:00
Alex Holliday 55a871cb3c update notification model 2025-06-09 10:24:06 +08:00
Alexander Holliday bd78dbb95d Merge pull request #2412 from bluewave-labs/feat/purge-distributed-uptime
fix: purge distributed uptime
2025-06-09 10:19:36 +08:00
Alex Holliday 274595a533 purge distributed uptime 2025-06-09 10:17:09 +08:00
Alexander Holliday 5690d91d59 Merge pull request #2408 from varunrmantri23/develop
fix: prevent monitor URL and name overflow with sx Prop
2025-06-09 09:53:06 +08:00
Alexander Holliday 1cdb3d1ef7 Merge pull request #2411 from Shivansh-22866/fix/remove_future_features
Fix/remove future features
2025-06-09 09:39:46 +08:00
Shivansh-22866 048c0a7994 Merge branch 'fix/remove_future_features' of https://github.com/Shivansh-22866/Checkmate into fix/remove_future_features 2025-06-08 23:21:14 +05:30
Shivansh-22866 8412e0f17f Add comments 2025-06-08 23:20:48 +05:30
Shivansh e04bfcc96a Merge branch 'bluewave-labs:develop' into fix/remove_future_features 2025-06-08 23:18:12 +05:30
Shivansh-22866 f6f1842863 Merge branch 'develop' of https://github.com/Shivansh-22866/Checkmate into fix/remove_future_features 2025-06-08 23:16:40 +05:30
varunrmantri23 5e2fa7a8f0 fix: add global Typography variants for monitor text truncation 2025-06-08 23:12:48 +05:30
Shivansh-22866 d0dbc75587 Remove future email features from Page Speed configure 2025-06-08 19:27:33 +05:30
Owaise Imdad 3886617b11 Fix formatted the files. 2025-06-08 17:32:45 +05:30
varunrmantri23 e4ade39db7 fix: prevent monitor URL and name overflow using MUI sx prop 2025-06-08 14:33:56 +05:30
varunrmantri23 1f6826e045 fix: add CSS classes to prevent URL and name overflow in monitors 2025-06-08 13:11:04 +05:30
Gorkem Cetin (BWL) 6d236477ac Add npm run format directive 2025-06-08 00:30:59 -04:00
Alexander Holliday 32817829d8 Merge pull request #2404 from bluewave-labs/feat/pulse
feat: pulse
2025-06-08 09:03:34 +08:00
Alex Holliday afbd1157c0 add factory method 2025-06-08 09:01:30 +08:00
Alex Holliday 8de2c0387c fix method name 2025-06-08 08:57:45 +08:00
Alex Holliday 267693668d format fix 2025-06-08 08:42:16 +08:00
Alex Holliday 7475dcfb21 add update job method 2025-06-08 08:41:42 +08:00
Alexander Holliday 6d43665e59 Merge pull request #2400 from bluewave-labs/fix/general-settings-desc
Minor changes/typo fix in general settings description
2025-06-08 08:19:44 +08:00
Alexander Holliday a98c36aea3 Merge pull request #2403 from bluewave-labs/fix/port-monitor-status-page
Fix #2365: Add port monitor support to status page
2025-06-08 08:19:14 +08:00
Alexander Holliday fdf8e88e44 Merge pull request #2398 from bluewave-labs/Fix-for-csv-lowecase-check
FIX for csv file case sensitive file ending.
2025-06-08 08:18:12 +08:00
Alex Holliday f2b7a9cc67 fix formatting 2025-06-08 08:14:17 +08:00
Alex Holliday ecd8ca0940 fix formatting 2025-06-08 08:11:31 +08:00
Alex Holliday dfe88b30e8 fix formatting 2025-06-08 08:09:00 +08:00
mohadeseh safari a13056bd1b Fix #2365: Add port monitor support to status page 2025-06-07 19:12:22 -04:00
Owaise Imdad ccc9faa892 Feature for adding capture version on the deatils page. 2025-06-08 00:13:47 +05:30
Vishnu Sreekumaran Nair fe041bc0c0 fix typo in docker desc 2025-06-07 14:20:26 -04:00
Vishnu Sreekumaran Nair 1bf1387a05 update ping monitoring desc 2025-06-07 14:19:43 -04:00
Owaise Imdad 958a8ad5a7 FIX for csv file case sensitive file ending. 2025-06-07 21:14:03 +05:30
Alexander Holliday 9c921896fd Merge pull request #2331 from Thirukumaran-T/save-button-enhancement
REFACTOR: added sticky behaviour to the save button at the end
2025-06-07 20:48:33 +08:00
Alexander Holliday b0cf59b0f9 Merge pull request #2396 from bluewave-labs/translation-update-71
🌐 Updated Translations from POEditor
2025-06-07 08:24:10 +08:00
GitHub Action ded137a197 feat: translations updated from POEditor 2025-06-07 00:23:08 +00:00
Alex Holliday 9a22d4a971 initial Pulse implementation 2025-06-06 14:05:59 +08:00
Alex Holliday 9e42fd6ffd change workflow names 2025-06-06 07:44:19 +08:00
Thirukumaran-T a101bd479a CHORE: added border styles to the save button container 2025-06-05 12:00:16 +05:30
Alexander Holliday a597d23c95 Merge pull request #2394 from bluewave-labs/feat/image-tags
version tagging images
2025-06-04 19:51:06 -07:00
Alex Holliday 9591ba3dc4 version tagging images 2025-06-05 10:44:27 +08:00
Gorkem Cetin (BWL) 1f9fbf7115 Update PULLREQUESTS.md 2025-06-04 09:09:54 -04:00
Gorkem Cetin (BWL) 1286dd30b3 Update README.md 2025-06-02 22:43:56 -04:00
Alexander Holliday 8498d7abc9 Merge pull request #2381 from bluewave-labs/general-settings-description
Change general settings description according to selected uptime monitor type
2025-06-01 12:05:25 -07:00
Alexander Holliday 41e3e262fb Merge pull request #2382 from bluewave-labs/feat/format-check
Feat/format check
2025-06-01 11:57:08 -07:00
Alex Holliday c119df1553 format 2025-06-01 11:55:16 -07:00
Alex Holliday c02ba84864 user pr number 2025-06-01 11:51:49 -07:00
Alex Holliday fabbc659ad checkout repo 2025-06-01 11:49:33 -07:00
Alex Holliday 4241758354 use github cli 2025-06-01 11:47:13 -07:00
Alex Holliday 59f1ce7d31 add dependencies 2025-06-01 11:42:04 -07:00
Alex Holliday 2e7b67d991 auto-close 2025-06-01 11:39:17 -07:00
Alex Holliday 62a79aaf4b fix formatting 2025-06-01 11:31:18 -07:00
Alex Holliday 1b97a2d488 add formatting check action 2025-06-01 11:28:15 -07:00
Vishnu Sreekumaran Nair 4e414e289d update translation values for ru 2025-06-01 14:23:00 -04:00
Alexander Holliday 4ed4903272 Merge pull request #2379 from bluewave-labs/fix/2336-settings-select-value-type
Resolve Settings page Select component errors
2025-06-01 11:16:31 -07:00
Alexander Holliday 8075d3c63c Merge branch 'develop' into fix/2336-settings-select-value-type 2025-06-01 11:16:20 -07:00
Vishnu Sreekumaran Nair d6658d16f9 update translation values for pt-BR 2025-06-01 14:14:35 -04:00
Vishnu Sreekumaran Nair 6b539b009b update the en translation values 2025-06-01 14:03:56 -04:00
Vishnu Sreekumaran Nair 50e6767259 dynamically update string based on selected monitor.type 2025-06-01 13:56:13 -04:00
Vishnu Sreekumaran Nair bc06db03a2 group general instructions and update translation files 2025-06-01 13:55:19 -04:00
Alexander Holliday b8284bfddf Merge pull request #2376 from bluewave-labs/develop
Develop -> Master
2025-05-30 15:11:37 -07:00
Alexander Holliday c84322c142 Merge pull request #2375 from bluewave-labs/fix/i18n
fix: refactor i18n, resolves #2374
2025-05-30 15:11:05 -07:00
Alex Holliday 70055c712b refactor i18n 2025-05-30 15:03:32 -07:00
Alexander Holliday fd0b1633de Merge pull request #2361 from bluewave-labs/fix/2343-timezone-save-button
# Fix: Save button disabled when timezone changes (#2343)
2025-05-30 14:05:37 -07:00
mohadeseh safari aa91c9ff86 Resolve Settings page Select component errors
- Enhanced Select component to accept boolean values in PropTypes
- Updated component documentation to reflect new type support
- Added default value for showURL prop to prevent undefined value errors

- Fixed two related issues:
  1. Type mismatch error when passing boolean values
  2. Required prop error during initial rendering
2025-05-29 21:01:09 -04:00
Alexander Holliday 2486bfa146 Merge pull request #2372 from bluewave-labs/develop
Develop -> Master
2025-05-29 17:11:29 -07:00
Alexander Holliday 4f678827f3 Merge pull request #2370 from bluewave-labs/fix/webhook-notifications
fix: add config for webhook
2025-05-29 17:10:44 -07:00
Alex Holliday 5018a2dfde add config for webhook 2025-05-29 17:09:47 -07:00
mohadeseh safari 126fda6bc0 remove call 2025-05-29 19:34:21 -04:00
Alexander Holliday a3fb77565a Merge pull request #2367 from bluewave-labs/develop
Develop -> Master
2025-05-28 16:52:48 -07:00
Alexander Holliday 064fb1bfd9 Merge pull request #2360 from bluewave-labs/fix/2286-maintenance-placeholder-flash
Fix Maintenance Placeholder Flash (#2286)
2025-05-28 10:20:32 -07:00
Gorkem Cetin (BWL) c008d2e046 Merge pull request #2362 from mertssmnoglu/docs-readme-mertssmnoglu
fix: correct link format for contributor 'mertssmnoglu' in README
2025-05-28 09:42:30 -04:00
Mert Şişmanoğlu 7cfdad3563 fix: correct link format for contributor mertssmnoglu in README
Signed-off-by: Mert Şişmanoğlu <mertssmnoglu@gmail.com>
2025-05-28 16:33:30 +03:00
mohadeseh safari ed5d5986ff Fix #2343: Enable Save button when timezone changes
- Added timezone field to frontend validation schema
- Added timezone field to backend validation schema
- Fixed state synchronization in Settings component
2025-05-27 20:28:53 -04:00
mohadeseh safari e6c2e34b78 fix(maintenance): prevent placeholder flash when maintenance items exist (#2286) 2025-05-27 19:54:31 -04:00
Alexander Holliday 5b86d892c5 Merge pull request #2359 from bluewave-labs/master
Merge pull request #2342 from bluewave-labs/develop

develop -> Master
2025-05-27 15:03:18 -07:00
Alexander Holliday 459906ef25 Merge pull request #2358 from bluewave-labs/fix/languages
fix:revert gb to en, add language specific flag fixes
2025-05-27 10:09:33 -07:00
Alex Holliday 1e064fb771 remove style overrides, update script 2025-05-27 10:09:12 -07:00
Alex Holliday 5254dc1984 revert gb to en, add language specific flag fixes 2025-05-27 10:01:10 -07:00
Alexander Holliday f245e49b20 Merge pull request #2357 from bluewave-labs/fix/remove-incorrect-lang-files
remove files
2025-05-27 09:50:05 -07:00
Alex Holliday f25e54eefe remove files 2025-05-27 09:49:15 -07:00
Alexander Holliday bfa713fd7e Merge pull request #2356 from bluewave-labs/translation-update-69
🌐 Updated Translations from POEditor
2025-05-27 09:48:37 -07:00
GitHub Action 73cad941b0 feat: translations updated from POEditor 2025-05-27 16:48:15 +00:00
Alexander Holliday 7d0668279e Merge pull request #2355 from bluewave-labs/hotfix/language-download
hotfix: normalize language codes
2025-05-27 09:47:14 -07:00
Alex Holliday 9b2a9f5731 normalize language codes 2025-05-27 09:46:07 -07:00
Alexander Holliday 9d130ee935 Merge pull request #2353 from bluewave-labs/hotfix/validation
remove showURL validation
2025-05-27 09:26:37 -07:00
Alex Holliday 2758e5f050 remove showURL validation 2025-05-27 09:26:15 -07:00
Alexander Holliday 426545a429 Merge pull request #2352 from bluewave-labs/fix/remove-docker-compose-version
fix: remove version
2025-05-27 09:24:55 -07:00
Alexander Holliday 75f85cc4c8 Merge pull request #2351 from bluewave-labs/translation-update-68
🌐 Updated Translations from POEditor
2025-05-27 09:24:19 -07:00
Alex Holliday 530bea6f45 remove version 2025-05-27 09:21:37 -07:00
GitHub Action a12d733e02 feat: translations updated from POEditor 2025-05-27 16:19:29 +00:00
Alexander Holliday 2e332f791b Merge pull request #2350 from bluewave-labs/feat/format-on-poe-request
update default languages
2025-05-27 09:18:36 -07:00
Alex Holliday deedc9eabd update default languages 2025-05-27 09:18:05 -07:00
Alexander Holliday 5c5e563d42 Merge pull request #2349 from bluewave-labs/feat/format-on-poe-request
feat: add formatting to POEditor github action
2025-05-27 09:15:27 -07:00
Alex Holliday a777777ac6 add formatting to POEditor github action 2025-05-27 09:14:40 -07:00
Alexander Holliday 0dee7cf84f Merge pull request #2348 from bluewave-labs/fix/prettier-format
fix: format all files
2025-05-27 09:11:32 -07:00
Alex Holliday 1b81251c93 format all files 2025-05-27 09:10:32 -07:00
Thirukumaran-T 9ce1bf9bfb CHORE: reduced padding to make the whole stack thinner 2025-05-27 10:15:05 +05:30
Gorkem Cetin (BWL) 94c2cd0582 Update README.md 2025-05-26 23:52:15 -04:00
Gorkem Cetin (BWL) c1af1cf2cd Update README.md 2025-05-26 23:51:14 -04:00
Alexander Holliday ab964416ae Merge pull request #2342 from bluewave-labs/develop
develop -> Master
2025-05-26 16:42:54 -07:00
Alexander Holliday bfa6197ee4 Merge pull request #2340 from bluewave-labs/hotfix/validation
remove showURL from validation
2025-05-26 16:37:33 -07:00
Alex Holliday 3586fc4e6d remove showURL from validation 2025-05-26 16:35:41 -07:00
Alexander Holliday 5ddb74e70c Merge pull request #2339 from bluewave-labs/revert-2338-hotfix/disable-url-validation
Revert "hotfix: remove showurl validation"
2025-05-26 16:30:21 -07:00
Alexander Holliday 2d52ebad40 Revert "hotfix: remove showurl validation" 2025-05-26 16:30:09 -07:00
Alexander Holliday 02ae6f3bd4 Merge pull request #2338 from bluewave-labs/hotfix/disable-url-validation
hotfix: remove showurl validation
2025-05-26 16:24:51 -07:00
Alex Holliday 7ff8299e6b remove showurl validation 2025-05-26 16:22:54 -07:00
Alexander Holliday ad30bf6ee8 Merge pull request #2335 from sonvir249/feature/show-port-monitors
Show port monitors with port numbers.
2025-05-26 08:44:45 -07:00
sonvir249 8ec6c23250 Join port number with colon(:) 2025-05-26 21:13:05 +05:30
Alexander Holliday a18a62f80e Merge pull request #2327 from AsimAhmedSiddiquii/fix-show-ip-url-status-page
Fix: Optionally show IP/URL of the monitor in status page
2025-05-26 08:32:47 -07:00
Alexander Holliday a0ba1b63c3 Merge pull request #2330 from bluewave-labs/feature/2299-add-ping-monitoring-to-status-pages
Add ping monitoring to status pages (#2299)
2025-05-26 08:12:16 -07:00
Asim Ahmed Siddiqui e7ed85405b Changes: Made showURL boolean and removed console log 2025-05-26 00:19:49 +05:30
sonvir249 118ad67369 Show port monitors with port numbers. 2025-05-25 15:54:31 +05:30
Thirukumaran-T 76d69005aa REFACTOR: added sticky behaviour to the save button at the end 2025-05-24 18:33:05 +05:30
mohadeseh safari d28e2bf5fb Add ping monitoring to status pages (#2299) 2025-05-23 22:45:32 -04:00
Alexander Holliday 9681c7e2ee Merge pull request #2329 from bluewave-labs/fix/test-email
fix: test email
2025-05-23 12:24:05 -07:00
Alex Holliday fa7624e436 proper invocation 2025-05-23 12:22:32 -07:00
Alex Holliday 4aaa1b6674 await config 2025-05-23 12:22:05 -07:00
Asim Ahmed Siddiqui e8d636dcfd Fix: Optionally show IP/URL of the monitor in status page 2025-05-23 12:40:47 +05:30
Alexander Holliday 124683f8c1 Merge pull request #2325 from bluewave-labs/feat/arm-support
update helmet policy
2025-05-22 11:20:48 -07:00
Alex Holliday dd93b9f36b update helmet policy 2025-05-22 11:20:11 -07:00
Alexander Holliday b16634ade9 Merge pull request #2324 from bluewave-labs/feat/arm-support
hsts:false
2025-05-22 10:54:18 -07:00
Alex Holliday ba703ac377 hsts:false 2025-05-22 10:53:44 -07:00
Alexander Holliday 37c0dbf567 Merge pull request #2323 from bluewave-labs/feat/arm-support
Feat/arm support
2025-05-22 10:38:27 -07:00
Alex Holliday 47705f85ef update gitignore, update vite config 2025-05-22 10:37:26 -07:00
Alex Holliday b78389f113 use init sidecar 2025-05-22 10:02:49 -07:00
Alexander Holliday 26fa94abfb Merge pull request #2322 from bluewave-labs/feat/arm-support
init script isntead of healthcheck
2025-05-22 09:55:37 -07:00
Alex Holliday 6d39301ca8 init script isntead of healthcheck 2025-05-22 09:55:07 -07:00
Alexander Holliday 429d68859c Merge pull request #2321 from bluewave-labs/feat/arm-support
feat: arm dist
2025-05-22 09:21:19 -07:00
Alex Holliday d3b446685f arm dist 2025-05-22 09:20:41 -07:00
Alexander Holliday 03bb550003 Merge pull request #2317 from bluewave-labs/Pause-button-addition-on-configuration
Added pause button in configuration page.
2025-05-21 11:41:20 -07:00
Owaise Imdad 97a73a385a Added the status color to monitor utils. 2025-05-21 23:59:22 +05:30
Owaise Imdad 3ddea2ef8b Localised the status msg as well. 2025-05-21 23:32:07 +05:30
Owaise Imdad 9330f2fb0d Console log removal. 2025-05-21 23:26:21 +05:30
Owaise Imdad 35157d87fe Localise the string pause and resume. 2025-05-21 23:25:32 +05:30
Owaise Imdad 36ae38391b Have used the already created callback. 2025-05-21 23:23:09 +05:30
Owaise Imdad deec5a096e Made the code more readable by separation of tasks. 2025-05-21 22:55:34 +05:30
Alexander Holliday 7b117d938f Merge pull request #2294 from bluewave-labs/feature/email-testing-without-saving
Feature/email testing without saving
2025-05-20 13:27:01 -07:00
Alexander Holliday e04212f9e9 Merge branch 'develop' into feature/email-testing-without-saving 2025-05-20 13:26:53 -07:00
Alexander Holliday 62e259e3e6 Merge pull request #2309 from bluewave-labs/feat/jobqueue-error-handling
feat: jobqueue error handling
2025-05-20 13:23:50 -07:00
Owaise Imdad dab2bb466f Added pause button in configuration page. 2025-05-20 21:36:31 +05:30
Alexander Holliday 0628fb2e41 Merge pull request #2314 from ajhollid/fix/env-vars
update config
2025-05-19 17:00:54 -07:00
Alex Holliday fefe124b87 update config 2025-05-19 17:00:28 -07:00
mohadeseh safari d5d3e14d96 Change API and Refactoring a handler function 2025-05-19 19:47:11 -04:00
Alexander Holliday 785b20d903 Merge pull request #2313 from bluewave-labs/fix/action-name
Fix/action name
2025-05-19 15:17:39 -07:00
Alex Holliday 016cd6fef0 update gitignore 2025-05-19 15:17:05 -07:00
Alex Holliday ff819b3f9f Add missing script 2025-05-19 15:16:55 -07:00
Alexander Holliday 667a388fe1 Merge pull request #2312 from bluewave-labs/fix/action-name
fix aciton name
2025-05-19 15:13:55 -07:00
Alex Holliday d9d25bb108 fix aciton name 2025-05-19 15:13:29 -07:00
Alexander Holliday 18eba3dbee Merge pull request #2311 from bluewave-labs/fix/monolithic-docker
fix: monolithic docker
2025-05-19 15:12:37 -07:00
Alex Holliday b6699c8aef user ghcr images 2025-05-19 15:11:02 -07:00
Alex Holliday d6681885e7 update workflows 2025-05-19 15:10:45 -07:00
Alex Holliday 870e84b539 add env vars 2025-05-19 15:04:58 -07:00
Alex Holliday c13a3e93b2 update gitignore 2025-05-19 15:00:57 -07:00
Alex Holliday 72cd3b592e add a docker config for a monolithic app 2025-05-19 15:00:11 -07:00
Alex Holliday 4d5c942464 remove extra logging 2025-05-19 12:29:54 -07:00
Alex Holliday 20911697cc remove double logging 2025-05-19 12:28:18 -07:00
Alex Holliday 08e1e22dad change failed job log level to error 2025-05-19 12:26:25 -07:00
Alexander Holliday 885c63b147 Merge pull request #2291 from bluewave-labs/feat/job-queue-refactor
feat: job queue refactor
2025-05-19 11:28:51 -07:00
Alex Holliday 7651596617 early return in event of bad network response 2025-05-19 11:23:40 -07:00
Alex Holliday fd1edf9651 user factory method 2025-05-19 11:23:26 -07:00
Alex Holliday 9414b87e27 update log msg 2025-05-19 11:23:13 -07:00
Alex Holliday 942104aea2 use logger 2025-05-19 11:22:53 -07:00
Alex Holliday 3ff0f6d399 add factory method, better logging 2025-05-19 11:22:46 -07:00
Alexander Holliday d07063b21b Merge pull request #2308 from bluewave-labs/Incident-button-on-details-page
Added incidents page in the details header.
2025-05-19 11:18:23 -07:00
Owaise Imdad 0be0c5bf3f Removed stop propogation. 2025-05-19 23:47:44 +05:30
Owaise Imdad f82665006c Added incidents page in the details header. 2025-05-19 23:42:33 +05:30
Alexander Holliday 27e02c53b8 Merge pull request #2295 from bluewave-labs/test-email-implementation-in-details-page
Email test button added in details page.
2025-05-19 10:57:40 -07:00
Owaise Imdad 17dcdfcb06 Added all the strings in locale file for gb. 2025-05-19 23:25:36 +05:30
Owaise Imdad 6ba52156b8 Made changes as requested in PR. 2025-05-19 23:21:00 +05:30
Alexander Holliday dbb6e4d37f Merge pull request #2298 from remememe/develop
fix: status page feature checkboxes not saving (Fixes #2274)
2025-05-19 10:07:36 -07:00
Alexander Holliday 586c9d054c Merge pull request #2293 from bluewave-labs/feat/settings-test-email-endpoint
feat: settings test email endpoint
2025-05-19 09:51:58 -07:00
Alexander Holliday 8643ac5661 Merge pull request #2296 from bluewave-labs/dependabot/npm_and_yarn/client/vite-5.4.19
Bump vite from 5.4.18 to 5.4.19 in /client
2025-05-19 09:50:51 -07:00
Alexander Holliday 79806322b1 Merge pull request #2302 from bluewave-labs/consistent-font-size
Consistent font sizes across all create/configure pages
2025-05-19 09:50:30 -07:00
Vishnu Sreekumaran Nair 13e80edb03 update bulk import page font size 2025-05-18 20:37:35 -04:00
Vishnu Sreekumaran Nair 4b22bcebdd update settings page font size 2025-05-18 20:35:55 -04:00
Vishnu Sreekumaran Nair b907ae9705 update status page create/config pages font size 2025-05-18 20:31:17 -04:00
Vishnu Sreekumaran Nair de1d1f8cad update infrastructure settings page font size 2025-05-18 20:27:56 -04:00
Vishnu Sreekumaran Nair 1cb1f48cdc update pagespeed create/configure page font size 2025-05-18 20:25:07 -04:00
Vishnu Sreekumaran Nair 02e48ad8da update uptime configure page font size 2025-05-18 20:18:02 -04:00
Vishnu Sreekumaran Nair 8e6eeabb48 update uptime settings page font size 2025-05-18 20:14:37 -04:00
remememe c22a0cea99 Merge branch 'develop' of https://github.com/remememe/Checkmate into develop 2025-05-18 14:30:09 +02:00
remememe d13c4a5531 fix: status page features checkboxes not saving 2025-05-18 13:54:51 +02:00
dependabot[bot] 4b950c8a83 Bump vite from 5.4.18 to 5.4.19 in /client
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.18 to 5.4.19.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v5.4.19/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v5.4.19/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 5.4.19
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-17 11:00:43 +00:00
Owaise Imdad cf344b1809 Email test button added in details page. 2025-05-17 11:51:31 +05:30
mohadeseh safari aaba9e8d42 Translation Fix 2025-05-16 19:59:19 -04:00
mohadeseh safari dbcdb24da6 feat: Enhance useSendTestEmail hook to support testing without saving
- Add support for optional email configuration parameter
- Implement improved error handling with detailed messages
- Add internationalization support for all user feedback
- Return appropriate error information for better UX
- Maintain backward compatibility with existing code
2025-05-16 19:45:24 -04:00
mohadeseh safari 083c395f10 feat: Update email testing to use form values without saving
- Modify test email button to collect current form values
- Add validation for required fields before testing
- Pass configuration directly to test endpoint
- Improve user experience by allowing testing before saving
2025-05-16 19:29:44 -04:00
mohadeseh safari 8ef45a7fb9 feat: Update email testing to use form values without saving
- Update sendTestEmail method to use new /api/v1/settings/test-email endpoint
- Send current form values directly to test endpoint without saving to DB
- Format request body according to backend requirements
2025-05-16 18:24:34 -04:00
Alex Holliday 5872879c9a inject email service into settings controller 2025-05-16 15:02:26 -07:00
Alex Holliday f6a2a66386 allow optional transport params 2025-05-16 15:02:07 -07:00
Alex Holliday d71181e65b add test-email body validation 2025-05-16 15:01:45 -07:00
Alex Holliday bea8ddb330 add a test email route to settings routes 2025-05-16 15:01:34 -07:00
Alex Holliday 0906e883c5 add test email controller method 2025-05-16 15:01:06 -07:00
Alexander Holliday e7694afeba Merge pull request #2292 from bluewave-labs/fix/bump-package-lock
update package-lock
2025-05-16 14:19:29 -07:00
Alex Holliday 9d69bd6782 update package-lock 2025-05-16 14:18:17 -07:00
Alex Holliday e6a387b8b2 refactor job queue 2025-05-16 14:09:49 -07:00
Alex Holliday b471c49cbf unordered bulk insert 2025-05-16 14:08:45 -07:00
Alex Holliday 79abb0fd84 rename methods 2025-05-16 14:07:47 -07:00
Alexander Holliday 69bcd07c01 Merge pull request #2290 from bluewave-labs/hotfix/bulk-insert-error-handling
hotfix: graceful error hanlding, unordered write
2025-05-16 09:55:24 -07:00
Alex Holliday 4a07c4f985 graceful error hanlding, unordered write 2025-05-16 09:54:35 -07:00
Alexander Holliday 443c002c31 Merge pull request #2281 from Anurag123Chauhan/fix/error-msg-change
Changed error msg of invalid of Docker container ID
2025-05-16 09:16:51 -07:00
Anurag123Chauhan fcfb225410 final indentation 2025-05-16 19:32:34 +05:30
Anurag123Chauhan ed03c17c22 last 2025-05-16 19:20:16 +05:30
Anurag123Chauhan 1d6a5a4442 Indent change 2025-05-16 19:16:52 +05:30
Anurag123Chauhan f415ca543b indent changes 2025-05-16 19:07:16 +05:30
Alexander Holliday f7beb4db0e Merge pull request #2287 from bluewave-labs/hotfix/uptime-perentage
hotfix: uptime-percentage
2025-05-15 14:21:30 -07:00
Alex Holliday 3fda54ca41 hotfix/uptime-percentage 2025-05-15 14:20:24 -07:00
Alexander Holliday 5ba352028d Merge pull request #2284 from bluewave-labs/feat/unified-details-header
feat: unified details header
2025-05-15 12:22:48 -07:00
Alexander Holliday 0fdb0a9e05 Merge pull request #2283 from bluewave-labs/fix/email-settings-strings
fix: update strings for email settings
2025-05-15 12:20:14 -07:00
Alex Holliday 93fab04d7c add jsdoc 2025-05-15 12:19:39 -07:00
Alexander Holliday 27649b33c0 Merge pull request #2285 from Br0wnHammer/fix/fe/infra-uptime-percent
Fix: Infra Uptime Percentage
2025-05-15 12:00:31 -07:00
Br0wnHammer 591fe567ec Fix: Infra Uptime Percentage 2025-05-16 00:23:50 +05:30
Alex Holliday eb67c7edff remove log statement 2025-05-15 11:47:40 -07:00
Alex Holliday 03a915a915 add loading state to pause button 2025-05-15 11:19:24 -07:00
Alex Holliday 6db850dd4d remove monitor from hook 2025-05-15 11:18:46 -07:00
Alex Holliday 85a428dd92 fix backwards monitor state 2025-05-15 10:51:21 -07:00
Alex Holliday 24cf4896aa use new header 2025-05-15 10:51:06 -07:00
Alex Holliday f9fcd4ff3a remove pause from uptime config page 2025-05-15 10:50:21 -07:00
Alex Holliday 54db96a03e add trigger to useFetchUptimeMonitorDetails 2025-05-15 10:49:38 -07:00
Alex Holliday 9263f9f950 add unified control header for all monitor details pages 2025-05-15 10:48:54 -07:00
Alex Holliday 04f75efa11 add hook for monitor contolrs 2025-05-15 10:48:32 -07:00
Alex Holliday a6e900e52a update strings for email settings 2025-05-15 09:49:24 -07:00
Alexander Holliday d48d3b9ff4 Merge pull request #2271 from catilgan-nextension/fix/nodemailer_relay
Enabling SMTP Relay with Nodemailer
2025-05-15 09:39:01 -07:00
Cahit Atilgan 8888a007f2 fix: added email connection validation (server side) 2025-05-15 15:30:04 +02:00
Cahit Atilgan e6b823d89e fix: added email connection validation 2025-05-15 15:16:36 +02:00
Cahit Atilgan 7327f24c47 fix: added email connection validation 2025-05-15 14:38:20 +02:00
Cahit Atilgan a3a381aad1 fix: removed env variable, configured a form field for editing email connect host 2025-05-15 14:27:08 +02:00
Cahit Atilgan 2b046dfe18 Merge branch 'develop' into fix/nodemailer_relay 2025-05-15 09:34:38 +02:00
Anurag123Chauhan 9da9ef6939 recommended changes 2025-05-15 11:16:02 +05:30
Anurag123Chauhan 18b439bad6 added msg 2025-05-15 11:05:45 +05:30
Anurag123Chauhan 0f91d3b6e1 fix: separate Docker ID and URL validation error messages 2025-05-15 11:03:05 +05:30
Anurag123Chauhan edad05b63b Changed error msg of invalid of Docker container ID 2025-05-15 10:48:04 +05:30
Alexander Holliday 54d7cbb121 Merge pull request #2279 from Br0wnHammer/fix/fe/port-validation
Fix: Port Validation Uptime
2025-05-14 14:31:54 -07:00
Br0wnHammer 3c48eacc98 Fix: Port Validation Uptime 2025-05-15 02:38:26 +05:30
Alexander Holliday 7964e731e4 Merge pull request #2278 from bluewave-labs/develop
hotfix: remove arm support
2025-05-14 12:17:43 -07:00
Alexander Holliday 8ffaaea28d Merge pull request #2277 from bluewave-labs/fix/remove-arm64-config
hotfix: remove arm64 config
2025-05-14 12:17:04 -07:00
Alex Holliday 8585500e7c remove build platform target 2025-05-14 12:16:09 -07:00
Alex Holliday 8a0725276b remove buildx 2025-05-14 12:10:16 -07:00
Alex Holliday a0f41b03ba add build platform target 2025-05-14 12:00:54 -07:00
Alexander Holliday 95743508c8 Merge pull request #2276 from bluewave-labs/develop
hotfix: notifications safe access
2025-05-14 10:44:52 -07:00
Alexander Holliday 3da5be3602 Merge pull request #2273 from fredrikburmester/develop
fix: TypeError in hardware notifications for null disk values
2025-05-14 10:43:52 -07:00
Fredrik Burmester f6e460d97a fix: typeof number check and more safety 2025-05-14 19:37:47 +02:00
Fredrik Burmester be20fb0dbb fix: TypeError in hardware notifications for null disk values 2025-05-14 16:08:18 +02:00
Cahit Atilgan e40b1f9c5b Merge branch 'develop' into fix/nodemailer_relay 2025-05-14 09:33:04 +02:00
Alexander Holliday 7a1b51a1fd Merge pull request #2268 from bluewave-labs/feat/buildx-arm
update workflow
2025-05-13 15:33:17 -07:00
Alex Holliday 077fae2147 update workflow 2025-05-13 15:32:28 -07:00
Alexander Holliday d825e6af7d Merge pull request #2267 from bluewave-labs/feat/buildx-arm
feat: build multi-arch images for dist
2025-05-13 15:29:48 -07:00
Alex Holliday 6dc5894b9a build multi-arch images for dist 2025-05-13 15:28:47 -07:00
Alexander Holliday 915a2b30b8 Merge pull request #2265 from bluewave-labs/develop
hotfix: remove version from returned settings
2025-05-13 13:52:38 -07:00
Alexander Holliday a003a5d48e Merge pull request #2264 from bluewave-labs/hotfix/remove-settings-version
hotfix: remove version from returned settings
2025-05-13 13:51:52 -07:00
Alex Holliday bf0d073aa8 remove version from returned settings 2025-05-13 13:51:11 -07:00
Gorkem Cetin (BWL) a114bd82fe Update README.md 2025-05-13 16:50:50 -04:00
Alexander Holliday 6c78a918c6 Merge pull request #2262 from bluewave-labs/develop
Develop -> Master, 2.1 release
2025-05-13 13:29:44 -07:00
Alexander Holliday 370584c501 Merge branch 'master' into develop 2025-05-13 13:28:18 -07:00
Alexander Holliday baf22fbd18 Merge pull request #2261 from bluewave-labs/fix/settings-migration
fix: add migration for settings doc
2025-05-13 13:18:59 -07:00
Alex Holliday 73ddd54d20 add migration for settings doc 2025-05-13 12:58:01 -07:00
Alexander Holliday 5f0ad17b34 Merge pull request #2260 from bluewave-labs/hotfix/conditional-alert-render
hotfix: conditionally render alert based on settings
2025-05-13 10:00:14 -07:00
Alex Holliday e7ef068945 conditionally render alert based on settings 2025-05-13 09:59:21 -07:00
Alexander Holliday fcbc69b04a Merge pull request #2239 from sonvir249/bug/fix-form-errors
Issue-2238: Fixes the error messages on various forms.
2025-05-13 09:47:50 -07:00
Alexander Holliday e5589acee3 Merge pull request #2259 from bluewave-labs/hotfix/docker-compose-dist
fix: ammend base url for dist version
2025-05-13 09:17:11 -07:00
Alex Holliday 3d553ff9c7 ammend base url for dist version 2025-05-13 09:15:41 -07:00
Cahit Atilgan 12925c515a fix: configuring gmail smtp relay without any authentication 2025-05-13 18:07:53 +02:00
Gorkem Cetin (BWL) afcc33b6d8 Add deepwiki 2025-05-13 11:16:09 -04:00
Cahit Atilgan 8c64221f88 fix: configuring gmail smtp relay without any authentication 2025-05-13 16:21:30 +02:00
Alexander Holliday 6eac73218d Merge pull request #2255 from bluewave-labs/Fix-untranslated-strings
Fix untranslated strings
2025-05-12 19:45:22 -07:00
mohadeseh safari 70ea2105b2 Cancel button 2025-05-12 21:17:06 -04:00
mohadeseh safari 4e5cebc569 fix Passwordpanel 2025-05-12 21:04:32 -04:00
mohadeseh safari 8d49706d43 Add translation for Log out menu item in all locale files 2025-05-12 20:58:02 -04:00
mohadeseh safari 333fa5bb94 Add translations for PasswordPanel component in all locale files 2025-05-12 20:52:50 -04:00
mohadeseh safari a5efce0de6 Update capitalization of 'Distributed Uptime' in translation files 2025-05-12 20:34:54 -04:00
mohadeseh safari 3a18ac9677 Add translatable key for Incidents page title 2025-05-12 20:30:54 -04:00
Alexander Holliday f43aa76804 Merge pull request #2253 from bluewave-labs/feat/settings-update
feat: settings update
2025-05-12 15:46:52 -07:00
Alex Holliday e46d94aac3 fix case 2025-05-12 11:43:48 -07:00
Alexander Holliday f19005adab Merge pull request #2252 from bluewave-labs/fix/pagespeed
fix: load pagespeed from DB settings
2025-05-12 11:39:12 -07:00
Alex Holliday 395cc5db77 Add missing string getter 2025-05-12 11:38:51 -07:00
Alex Holliday ea64316c55 add missing FROM field 2025-05-12 11:37:59 -07:00
Alex Holliday 880f57a308 Add hook for sending test emails 2025-05-12 11:37:28 -07:00
Alex Holliday 27fc5fd5f7 add method for sending test emails 2025-05-12 11:37:15 -07:00
Alex Holliday 9cfbf6adde conditionally render pages, add test email button 2025-05-12 11:36:54 -07:00
Alexander Holliday 53fe67959d Merge pull request #2251 from bluewave-labs/fix/fe/monitor-resume-pause
Fix - Monitor Resume and Pause toast messages were switched
2025-05-12 10:59:16 -07:00
Alex Holliday 6ec107f218 load pagespeed from DB settigns 2025-05-12 10:56:58 -07:00
Vishnu Sreekumaran Nair 3955524835 Return updated monitor state in pauseMonitor 2025-05-12 13:50:58 -04:00
Vishnu Sreekumaran Nair 22953ac30a revert back toast messages 2025-05-12 13:47:32 -04:00
mohadeseh safari 8a6ca9ea1c -translated “Light” and “Dark” in theme mode select input
- uptimeCreateSelectURL
2025-05-12 13:14:08 -04:00
sonvir249 f5b0377ce2 Merge branch 'develop' of github.com:bluewave-labs/Checkmate into bug/fix-form-errors 2025-05-12 22:37:11 +05:30
Alexander Holliday c4a0200ebc Merge pull request #2250 from bluewave-labs/hotfix/monitor-status
hotfix: monitor status values
2025-05-12 09:43:18 -07:00
Alex Holliday 51973e432b fix values 2025-05-12 09:40:59 -07:00
Vishnu Sreekumaran Nair e87c057ccb switch conditional values for state variable 2025-05-12 12:40:53 -04:00
Alexander Holliday b51a3f6b7d Merge pull request #2249 from Br0wnHammer/fix/infra-monitor-filters
Fix: Infra Monitors Filters
2025-05-12 09:21:41 -07:00
Br0wnHammer 8f67829432 Fix: Infra Montior Filters 2025-05-12 21:50:19 +05:30
Alexander Holliday 70e6ce2ba9 Merge pull request #2248 from Br0wnHammer/fix/fe/tls-error-alignment
Fix: TLS Error Switch Alignment
2025-05-12 09:19:37 -07:00
Br0wnHammer 17451c660e Fix: Infra Montior Filters 2025-05-12 21:46:52 +05:30
Alexander Holliday 1646f71c25 Merge pull request #2247 from Br0wnHammer/fix/fe/translation-key-state
Fix: Translation Keys Missing
2025-05-12 09:15:06 -07:00
mohadeseh safari 8b93be6bcf Translated key 2025-05-12 11:41:43 -04:00
mohadeseh safari ef911731d6 Merge latest changes from develop branch 2025-05-12 11:27:08 -04:00
mohadeseh safari 0f416bfafc Translate Contorls in sidebar 2025-05-12 10:28:40 -04:00
mohadeseh safari 3fffae9a80 - Add detailed translation for "uptimeCreateSelectURL" in monitor creation page
- Add translations for password reset screen elements:
  - "Email" label
  - "Enter your email" placeholder
2025-05-12 10:13:44 -04:00
Br0wnHammer e58f97f71e Fix: Infra Monitors Filters 2025-05-12 14:46:32 +05:30
Br0wnHammer 16ab393882 Fix: TLS Error Switch Alignment 2025-05-12 13:16:11 +05:30
Aryaman Kumar Sharma a4d50e8cf6 Fix: Translation Keys Missing 2025-05-12 12:13:59 +05:30
Alexander Holliday 7ace30e678 Merge pull request #2241 from bluewave-labs/fix/table-font
fix: set tablecell font size to base typography level, resolves #2237
2025-05-11 14:23:07 -07:00
sonvir249 f0d2c57035 Issue-2238: Fixes the error messages on various forms. 2025-05-11 06:21:12 +05:30
Alexander Holliday 7df3796880 Merge pull request #2244 from bluewave-labs/hotfix/locale
hotfix: bad conflict resolution
2025-05-10 16:29:34 -07:00
Alex Holliday 09dbcf3283 fix bad conflict resolution 2025-05-10 16:29:04 -07:00
Alexander Holliday 57759e89d1 Merge pull request #2243 from bluewave-labs/fix/docker-ports
fix: don't expose redis and mongo ports
2025-05-10 16:26:24 -07:00
Alex Holliday 27a3cbc45d don't expose redis and mongo ports 2025-05-10 16:24:39 -07:00
Alexander Holliday f440a1278b Merge pull request #2231 from bluewave-labs/fix/settings-cleanup
fix: settings cleanup
2025-05-10 16:17:23 -07:00
Alexander Holliday 32258d66b5 Merge branch 'develop' into fix/settings-cleanup 2025-05-10 16:17:06 -07:00
Alexander Holliday 84c2ad421e Merge pull request #2242 from bluewave-labs/fix/formatting
format locale
2025-05-10 16:16:23 -07:00
Alex Holliday a54cc56625 format locale 2025-05-10 16:15:58 -07:00
Alexander Holliday 38f52af0f0 Merge pull request #2232 from bluewave-labs/feat/email-settings
feat: email settings
2025-05-10 16:13:35 -07:00
Alex Holliday 267c46bbd1 set tablecell font size to base typography level 2025-05-10 16:11:35 -07:00
Gorkem Cetin (BWL) 1298e0cade Update pull_request_template.md 2025-05-10 16:49:05 -04:00
Gorkem Cetin (BWL) 3eb2fe1ed3 Update pull_request_template.md 2025-05-10 15:23:08 -04:00
Alexander Holliday 6188d0c6a0 Merge pull request #2236 from bluewave-labs/hotfix/tab-font-size
hotfix: remove font offset
2025-05-09 20:31:40 -07:00
Alex Holliday 6b7bd77c0f remove font offset 2025-05-09 20:30:49 -07:00
Alexander Holliday 4b8ca7dcce Merge pull request #2235 from bluewave-labs/hotfix/stauts-boxes
hotfix:remove toUpperCase
2025-05-09 20:23:36 -07:00
Alex Holliday efab70b4d8 remove toUpperCase 2025-05-09 20:22:46 -07:00
Alexander Holliday 8ef7e1e4ce Merge pull request #2230 from bluewave-labs/fix/untranslated-menu-uptime
Fix/untranslated sidebar and uptime page
2025-05-09 19:06:45 -07:00
mohadeseh safari 390f027333 uptimeCreateSelectURL 2025-05-09 21:25:52 -04:00
mohadeseh safari 79326c6b74 translated “Light” and “Dark” in theme mode select input 2025-05-09 21:14:02 -04:00
mohadeseh safari 68f0d4dc67 add missing translations for UI elements 2025-05-09 20:55:34 -04:00
Alexander Holliday 9411f85401 Merge pull request #2225 from Trained-Monkey/fix/button-font-size
fix - font size to 13px
2025-05-09 16:16:02 -07:00
Alex Holliday fc655e7711 refactor to use new settings return type 2025-05-09 14:54:28 -07:00
Alex Holliday 2f93b70d7f add client validation 2025-05-09 14:54:17 -07:00
Alex Holliday 70441874af add strings 2025-05-09 14:54:02 -07:00
Alex Holliday 342e67593b correct error handling 2025-05-09 14:53:53 -07:00
Alex Holliday 36d78a9aa4 update return type for settigns 2025-05-09 14:53:36 -07:00
mohadeseh safari 3ccfc462c1 Transalated all strings in TeamPanel 2025-05-09 17:53:21 -04:00
Alex Holliday fcd6af259e add optional email user 2025-05-09 14:53:20 -07:00
Alex Holliday 0f80524127 unset email password 2025-05-09 14:53:03 -07:00
Alex Holliday 0a723572a2 move transporter creation 2025-05-09 14:52:44 -07:00
Alex Holliday d0ec67236d allow systememail user 2025-05-09 14:52:24 -07:00
Alex Holliday f7d780a8be add email settings component 2025-05-09 14:52:09 -07:00
Alex Holliday 10d575a7ce add hooks 2025-05-09 13:29:05 -07:00
Alex Holliday 6d79b1d823 refactor settings page 2025-05-09 13:28:44 -07:00
Alex Holliday cba744f777 update validation 2025-05-09 13:28:04 -07:00
Alex Holliday a6ab7b652f update prop types 2025-05-09 13:27:30 -07:00
Alex Holliday 217268b42f unset API key if 2025-05-09 13:26:39 -07:00
Alex Holliday e4c5457518 update model 2025-05-09 13:26:17 -07:00
Alex Holliday cdb7e6fb9a create settings if it doesn't exist 2025-05-09 13:25:50 -07:00
Alex Holliday efcd7d1162 update validation 2025-05-09 13:24:47 -07:00
mohadeseh safari 449a75eb2c - Added translations for Status filter options (Up/Down) using monitorStatus keys
- Added translations for State filter options (Active/Paused) using monitorState keys
2025-05-09 15:34:55 -04:00
mohadeseh safari 25f2828a15 fix "superadmin" translate 2025-05-09 15:17:20 -04:00
mohadeseh safari 13c4390f96 fix: translate UI elements in menu and uptime page
- Added translations for sidebar menu items in all languages
- Fixed "Create new" button to use translation instead of hardcoded text
- Added missing translations for "Bulk Import" in Russian and Turkish
- Translated status box labels (UP, DOWN, PAUSED) in the uptime monitors page
- Made greeting component fully translatable with proper context
- Fixed lint warnings in components
2025-05-09 14:58:13 -04:00
mohadeseh safari 3a574b2f4e translate menu items 2025-05-09 14:40:07 -04:00
Alexander Holliday 1c02c15c04 Merge pull request #2227 from bluewave-labs/fix/default-server-port
fix: default server port
2025-05-09 09:38:12 -07:00
Alex Holliday 5d0877d91d use port 52345 for server by default 2025-05-09 09:33:35 -07:00
Michael Chen 6304212645 fix: removed css reference, theme fontSize changed 2025-05-10 02:31:16 +10:00
Michael Chen 2ee381f0b7 fix: changed from space indentation to tabs 2025-05-09 22:12:50 +10:00
Michael Chen 27ea9b2aed fix: button font size is now 13px 2025-05-09 22:07:20 +10:00
Alex Holliday 57d87114de add a temp api key field to separate control state form visual state 2025-05-08 13:44:59 -07:00
Alex Holliday 7a855ef47a return db settings only to client, sanitize keys 2025-05-08 13:24:24 -07:00
Alexander Holliday 07dca41220 Merge pull request #2223 from Br0wnHammer/feat/fe/uptime-ignore-tls-error-config
Feat: Ignore TLS/SSL Error Option in Config
2025-05-08 13:14:45 -07:00
Alex Holliday 91c2f7f0d5 Remove DB settings from settings service 2025-05-08 13:11:51 -07:00
Br0wnHammer 4d9e47d93a Feat: Ignore TLS/SSL Error Option in Config 2025-05-09 01:35:27 +05:30
Alexander Holliday c466edb751 Merge pull request #2220 from Br0wnHammer/feat/fe/uptime-ignore-tsl-error
Feat: Ignore TLS/SSL Error Option
2025-05-08 12:01:03 -07:00
Alexander Holliday a8f46d913d Merge branch 'develop' into feat/fe/uptime-ignore-tsl-error 2025-05-08 12:00:50 -07:00
Alexander Holliday 6ff287d3d7 Merge pull request #2218 from bluewave-labs/fe/modify-pagespeed-warning
Modify PageSpeed warning box
2025-05-08 11:52:21 -07:00
Alexander Holliday 04143c13e3 Merge pull request #2217 from bluewave-labs/feat/add-pagespeedapikey-settings
Feature - Add/Reset PageSpeed API key in Settings
2025-05-08 11:51:42 -07:00
Alexander Holliday f66b105f47 Merge pull request #2221 from Br0wnHammer/fix/fe/ui-fix-infra-page
Fix: UI Fixes on Infra Page
2025-05-08 11:29:20 -07:00
Alexander Holliday 0dbb72fe59 Merge pull request #2222 from bluewave-labs/fix/disabled-colors
fix: disabled field colors
2025-05-08 11:28:32 -07:00
Alex Holliday d82b0ad674 apply colors to theme 2025-05-08 10:40:36 -07:00
Alex Holliday 002e9ce18a add colors for borders/disabled borders 2025-05-08 10:40:17 -07:00
Alex Holliday c45a282990 remove text input component styles 2025-05-08 10:39:49 -07:00
Aryaman Kumar Sharma 70ec000266 Fix: UI Fixes on Infra Page 2025-05-08 17:46:52 +05:30
Br0wnHammer 4cce2da5b8 Feat: Ignore TLS/SSL Error Option 2025-05-08 15:47:20 +05:30
Br0wnHammer 926f96c2c1 Feat: Ignore TLS/SSL Error Option 2025-05-08 15:28:44 +05:30
Vishnu Sreekumaran Nair 8d2f0bd183 add back pagespeedapikey check to showPageSpeedWarning 2025-05-07 18:30:04 -04:00
Vishnu Sreekumaran Nair 077faa26dd import and use Link to navigate to settings page 2025-05-07 18:28:23 -04:00
Vishnu Sreekumaran Nair ea10e170f4 update localized strings 2025-05-07 18:23:06 -04:00
Vishnu Sreekumaran Nair 1a1a5c39d2 update showPageSpeedWarning prop in fallback 2025-05-07 18:18:27 -04:00
Vishnu Sreekumaran Nair 97f9d91066 add useSelector to get pagespeedApiKey 2025-05-07 18:16:59 -04:00
Alexander Holliday 8d2ec585ab Merge pull request #2216 from bluewave-labs/fix/status-box-alignment
fix: status box alignment
2025-05-07 13:54:34 -07:00
Vishnu Sreekumaran Nair 3e8c7cf32c resolve merge conflicts 2025-05-07 16:18:26 -04:00
Vishnu Sreekumaran Nair 51d9719293 update the layout structure to improve UI 2025-05-07 15:45:09 -04:00
Vishnu Sreekumaran Nair 376b820ff4 add spacing between label and input field for textinput component 2025-05-07 15:04:08 -04:00
Vishnu Sreekumaran Nair 7c8aea0323 add localisation for strings 2025-05-07 14:57:50 -04:00
Alex Holliday eb380ce8cc fix status box alignment 2025-05-07 11:36:42 -07:00
Vishnu Sreekumaran Nair e7742f9be8 update helpertext and add typography component to display note 2025-05-07 14:17:47 -04:00
Vishnu Sreekumaran Nair f2e8f16af8 update pagespeed input field jsx 2025-05-07 13:55:48 -04:00
Vishnu Sreekumaran Nair d963fe65c1 add handler function to reset api key 2025-05-07 13:53:45 -04:00
Vishnu Sreekumaran Nair 8ce7477b06 update useffect to handle pagespeed key 2025-05-07 13:52:48 -04:00
Alexander Holliday 626bf381cf Merge pull request #2215 from ajhollid/fix/env
fix: .env.production
2025-05-07 10:51:43 -07:00
Vishnu Sreekumaran Nair 26e9ff3568 add flag to track if api key is set 2025-05-07 13:51:34 -04:00
Alex Holliday f5954a600b fix .env.production 2025-05-07 10:50:55 -07:00
Alexander Holliday 0336164ed5 Merge pull request #2093 from bluewave-labs/feature/backend-reachability-with-translations
Feature/backend reachability with translations
2025-05-07 10:38:45 -07:00
Alexander Holliday faaf758cc0 Merge branch 'develop' into feature/backend-reachability-with-translations 2025-05-07 10:38:35 -07:00
Alexander Holliday 8bee0513cc Merge pull request #2182 from peZhmanParsaee/bugfix/hide-certificate-expiry-for-non-http-uptimes
hide certificate expiry box for non-http uptimes
2025-05-07 10:30:06 -07:00
Alexander Holliday f3a9324f33 Merge pull request #2214 from bluewave-labs/fix/docker-config
update .env.produciton, update dev docker build
2025-05-07 10:29:07 -07:00
Alex Holliday 6033d1545e update .env.produciton, update dev docker build 2025-05-07 10:21:41 -07:00
Alexander Holliday 6b34eab660 Merge pull request #2210 from bluewave-labs/fix/translation-fixes-2015
Fix/translation fixes- Part 2
2025-05-07 09:17:39 -07:00
Alexander Holliday 99e27fc0c6 Merge branch 'develop' into fix/translation-fixes-2015 2025-05-07 09:17:28 -07:00
Alexander Holliday 433b5b89a8 Merge pull request #2211 from Br0wnHammer/fix/fe/status-page-monitor-header
Fix: Status Page Create Monitor Button Loading
2025-05-06 23:09:20 -07:00
Aryaman Kumar Sharma fe294b8a33 Fix: Status Page Create Monitor Button Loading 2025-05-07 11:31:37 +05:30
mohadeseh safari 8e8f35b447 simplify styling in ServerUnreachable component 2025-05-06 23:27:10 -04:00
mohadeseh safari 4df4dc72e1 improve email validation error handling with partial string matching 2025-05-06 22:37:35 -04:00
mohadeseh safari f928322ec7 . 2025-05-06 22:19:50 -04:00
mohadeseh safari 9a5de71158 Fix 2025-05-06 22:15:27 -04:00
mohadeseh safari 74b1d3e245 Low quality of English text 2025-05-06 22:08:36 -04:00
Alexander Holliday 3baaf60deb Merge pull request #2208 from bluewave-labs/fix/missing-client-host-var
fix env var name
2025-05-06 19:02:08 -07:00
Alex Holliday 038b7a150c fix env var name 2025-05-06 19:01:23 -07:00
Alexander Holliday 4f117b57b0 Merge pull request #2207 from bluewave-labs/fix/missing-client-host-var
fix: add client-host
2025-05-06 18:47:43 -07:00
Alex Holliday aafdff3b0a add client-host 2025-05-06 18:46:35 -07:00
mohadeseh safari 8aa609c0ab fix translation 2025-05-06 20:25:19 -04:00
Vishnu Sreekumaran Nair 91d3732645 add useffect to load pagespeed key in the form 2025-05-06 16:47:53 -04:00
Vishnu Sreekumaran Nair 85c3a16f41 add pagespeed to intialstate and handler in settingsslice 2025-05-06 16:45:48 -04:00
Vishnu Sreekumaran Nair b493b5e0e5 modify loadSettings logic to fetch env from DB 2025-05-06 15:57:00 -04:00
Vishnu Sreekumaran Nair 3e8f3a7a89 include pagespeedapikey to parsedSettings to save in db 2025-05-06 15:56:01 -04:00
Vishnu Sreekumaran Nair 9dc6c3c7b1 revert loadsettings changes 2025-05-06 14:57:07 -04:00
Vishnu Sreekumaran Nair 336ffcc9e9 Add .unknown(true) to validation schema to ignore extra fields 2025-05-06 14:53:24 -04:00
Vishnu Sreekumaran Nair 47f8494193 update handlechange to modify form validation logic 2025-05-06 14:29:59 -04:00
Alexander Holliday bcd0544d33 Merge pull request #2205 from bluewave-labs/hotfix/pagespeed-monitors-config
hotfix: pagespeed monitors config
2025-05-06 11:05:39 -07:00
Alex Holliday 83e1cb0304 provide default empty notification array 2025-05-06 11:05:13 -07:00
Alex Holliday 4bc9f59d80 fix loading prop 2025-05-06 10:53:07 -07:00
Alex Holliday ddb2b55c42 uncomment notifications for pagespeed 2025-05-06 10:52:17 -07:00
Alexander Holliday ce44f36662 Merge pull request #2204 from bluewave-labs/fix/validation
hotfix: validation
2025-05-06 10:28:23 -07:00
Alex Holliday 3469954ad8 hotfix/validation 2025-05-06 10:26:31 -07:00
Alexander Holliday 142b6a909f Merge pull request #2203 from Br0wnHammer/fix/fe/monitor-header-button
Fix: Monitor Header Button Loading Fix
2025-05-06 10:25:56 -07:00
Br0wnHammer d99905539e Fix: Monitor Header Button Loading Fix 2025-05-06 22:52:56 +05:30
Alexander Holliday ceb75a7311 Merge pull request #2202 from bluewave-labs/feat/ignore-ssl-errors
feat: ignore ssl errors
2025-05-06 10:14:35 -07:00
Alexander Holliday a79839b4d0 Merge pull request #2199 from bluewave-labs/feat/redis-service
feat: redis service, resovles #2112
2025-05-06 10:14:21 -07:00
Alex Holliday d7d4cfcfa5 add validation 2025-05-06 10:08:27 -07:00
Alex Holliday 534890c98c ingore TLS errors if flag ste 2025-05-06 10:08:19 -07:00
Alex Holliday 8f17c6da81 add ingoreTLsErrors 2025-05-06 10:07:43 -07:00
mohadeseh safari c7daff8f1f some of them fixed 2025-05-05 19:57:12 -04:00
Alexander Holliday 3625522068 Merge pull request #2200 from Cihatata/fix/language-detection
Fix/language detection
2025-05-05 14:33:27 -07:00
Alexander Holliday a1dcd5970f Merge branch 'develop' into fix/language-detection 2025-05-05 14:33:15 -07:00
cihatata f5a0932489 fix: remove localstorage usage 2025-05-06 00:29:58 +03:00
cihatata 82b9dcea4f fix: remove cron 2025-05-06 00:09:49 +03:00
Alex Holliday 0694bd06d1 use redis service 2025-05-05 14:01:17 -07:00
Alex Holliday 0687f737a7 add a redis service to handle redis connection 2025-05-05 14:00:33 -07:00
Alex Holliday 7072edf440 remove log statement 2025-05-05 13:59:14 -07:00
cihatata 16e014a6fe fix: language detection - server 2025-05-05 23:55:56 +03:00
cihatata e58c47c205 fix: language detection 2025-05-05 23:55:21 +03:00
Vishnu Sreekumaran Nair 86c31eaaf6 add pagespeed key to settings validation 2025-05-05 16:06:24 -04:00
Vishnu Sreekumaran Nair d4ed97992f update dispatch action to include pagespeedapi key 2025-05-05 16:03:30 -04:00
Vishnu Sreekumaran Nair cc454ab519 update loadSettings logic to prioritize db env values for testing 2025-05-05 16:02:59 -04:00
Alex Holliday 8357bd910f properly load log level from ENV, add debug log level 2025-05-05 12:48:03 -07:00
Alexander Holliday 62c706d292 Merge pull request #2192 from Br0wnHammer/fix/fe/rerender-ui-components
Fix: Re-render of Unrelated UI Components
2025-05-05 12:32:08 -07:00
Br0wnHammer 673022120f Fix: Re-render of unrelated UI Components 2025-05-06 00:41:40 +05:30
Vishnu Sreekumaran Nair 2f8981e379 import and use adorment in textinput to toggle visibility 2025-05-05 15:10:32 -04:00
Alexander Holliday ae72f91a50 Merge pull request #2196 from bluewave-labs/Test-mail-backend-implementation
Initial push for the test email
2025-05-05 12:09:30 -07:00
Owaise Imdad bd23648079 string service for subject. 2025-05-06 00:38:38 +05:30
Owaise Imdad c2eeed8121 Finall touch on string msgs. 2025-05-06 00:37:01 +05:30
Owaise Imdad 87573945f2 returing msg instead of error. 2025-05-06 00:33:31 +05:30
Owaise Imdad f8233aef08 local en addition. 2025-05-06 00:28:54 +05:30
Owaise Imdad 6268917abe Use string service for success. 2025-05-06 00:27:27 +05:30
Vishnu Sreekumaran Nair d58dee6983 add new inputfield for api key in settings 2025-05-05 14:56:24 -04:00
Owaise Imdad 6d4b3f5174 Returing only internal error spaces. 2025-05-06 00:25:02 +05:30
Owaise Imdad 0b9535820f Added returing of error message if the mail fails. 2025-05-06 00:22:26 +05:30
Pezhman Parsaee 9b216cd059 changed the condition to show the certificate expiry box for http monitor type 2025-05-05 20:38:19 +02:00
Owaise Imdad 73e3aaf017 Initial push for the test email 2025-05-06 00:08:11 +05:30
Alexander Holliday acc6c96d8d Merge pull request #2180 from ajhollid/fix/comment-out-distributed-uptime
fix: comment out distributed uptime
2025-05-05 11:37:34 -07:00
Pezhman Parsaee 288fd4ca1b removed newly created constant for monitor types 2025-05-05 20:36:43 +02:00
Alexander Holliday 6843a04e11 Merge pull request #2186 from gmliu56/ui/public-status-page-link
Added Public Link Button on Status Page if published
2025-05-05 11:27:36 -07:00
Alexander Holliday 27b9a170c1 Merge pull request #2193 from Br0wnHammer/fix/fe/action-menu-button
Fix: Infra Page Actions Button Disabled for Members
2025-05-05 11:14:24 -07:00
Nicholas Liu f31669b341 Changed publicUrl to constant uptime type and changed "Public link" text 2025-05-05 10:23:02 -07:00
Alexander Holliday e330a7f8d7 Merge pull request #2184 from bluewave-labs/Flex-End-for-Monitor-Timing
Added flex end instead of space between as mentioned in #2178
2025-05-05 09:43:05 -07:00
Br0wnHammer 4df043209a Fix: Infra Page Actions Button Disabled for Members 2025-05-05 15:16:14 +05:30
Br0wnHammer 7bb1245e52 Fix: Re-render of unrelated UI Components 2025-05-05 14:41:32 +05:30
Gorkem Cetin (BWL) 911d9e4ca1 Update README.md 2025-05-05 01:53:29 -04:00
Alexander Holliday 2ab39f8fcd Merge pull request #2189 from bluewave-labs/hotfix/notifications
hotfix: missing dependency array
2025-05-04 22:27:35 -07:00
Alex Holliday c9fe0ced37 fix missing dependency array 2025-05-04 22:26:06 -07:00
Owaise Imdad 33b07fe369 Aligned the text in middle of the buttons and also removed the bottom margin. 2025-05-05 09:27:03 +05:30
Nicholas Liu cb113f642a Added Public Link Button on Status Page if published 2025-05-04 20:23:59 -07:00
mohadeseh safari 8e495d1251 remove "the backend server is reachable" 2025-05-04 23:16:34 -04:00
mohadeseh safari 791714caeb using axios response interceptor 2025-05-04 22:54:55 -04:00
Alexander Holliday d44d733dfd Merge pull request #2183 from bluewave-labs/translation-update-64
🌐 Updated Translations from POEditor
2025-05-04 10:46:55 -07:00
Pezhman Parsaee d68c8e523d changed conditional rendering to hide certificate expiry box for non http uptimes 2025-05-04 11:35:48 +02:00
Pezhman Parsaee fd64a67360 defined a constant for the type of monitors 2025-05-04 11:34:36 +02:00
Owaise Imdad f78430f0d7 Added flex end instead of space between as mentioned in #2178 2025-05-04 12:51:36 +05:30
GitHub Action ac2b55f1e0 feat: translations updated from POEditor 2025-05-04 00:34:11 +00:00
Alexander Holliday 8627db206a Merge pull request #2176 from bluewave-labs/Addition-Of-Bulk-Import-In-Fallback
Addition of fallback in the main page.
2025-05-03 16:32:43 -07:00
Alexander Holliday fe6147d145 Merge pull request #2181 from bluewave-labs/Notification-In-Configuration-Tab
Added notification in configure page as well. Used useEffect to retrive the information if once added.
2025-05-03 16:31:04 -07:00
Pezhman Parsaee 3df19fc516 hide certificate expiry box for non-http uptimes 2025-05-04 01:21:53 +02:00
Owaise Imdad 914e1d6829 Added notification in configure page as well. Used useEffect to retrive the information if once added. 2025-05-04 01:39:29 +05:30
Owaise Imdad 712fd0a56f Fixed the strict evaluation and text of the button. 2025-05-04 00:16:08 +05:30
Gorkem Cetin (BWL) 1afde4e16d Remove distributed uptime from the release for now 2025-05-02 21:56:04 -04:00
Alex Holliday fbff4317b6 comment out distributed uptime 2025-05-02 15:53:33 -07:00
Alexander Holliday 8d24f66f69 Merge pull request #2177 from bluewave-labs/translation-update-62
🌐 Updated Translations from POEditor
2025-05-02 10:19:40 -07:00
Alexander Holliday f1bd8fed53 Merge pull request #2175 from bluewave-labs/fix/edit-port-number
Add Port field edit support for Port Monitors Configure screen
2025-05-02 09:16:25 -07:00
GitHub Action 5d3a009452 feat: translations updated from POEditor 2025-05-02 00:30:19 +00:00
Vishnu Sreekumaran Nair c2ccf344a8 Add frontend validation for port field values 2025-05-01 20:20:21 -04:00
Owaise Imdad 5d6ae745f4 Made the text dynamic with respect to language now. 2025-05-02 03:30:14 +05:30
Owaise Imdad 8d15418777 Addition of fallback in the main page. 2025-05-02 03:25:04 +05:30
Alexander Holliday 464a6398d0 Merge pull request #2154 from bluewave-labs/Feature-Bulk-Upload-Of-Monitors
Feature release for bulk upload of uptime monitors
2025-05-01 14:36:44 -07:00
Owaise Imdad 30ef28170c Removed all return error ro throw new err where this will be send to middleware. 2025-05-02 02:54:39 +05:30
Alexander Holliday 45dacdba4c Merge pull request #2158 from bluewave-labs/fix/translation-fixes-2015
Fix/translation fixes 2015
2025-05-01 14:09:29 -07:00
mohadeseh safari ce6789791e changed error message 2025-05-01 14:17:22 -04:00
Vishnu Sreekumaran Nair 2fb20bfff9 allow 'port' field in edit monitor schema 2025-05-01 13:47:10 -04:00
Vishnu Sreekumaran Nair b7b6724ce5 include port in update payload for port monitors 2025-05-01 13:46:10 -04:00
Vishnu Sreekumaran Nair a750176037 add port input field when editing port monitors 2025-05-01 13:22:55 -04:00
Alexander Holliday 13eae5dc76 Merge pull request #2173 from bluewave-labs/fix/docker-script
fix: update build_images.sh to be backwards compatible with older bash ver…
2025-05-01 09:37:57 -07:00
Owaise Imdad 075559ffc3 Fixed the errors coming out in csv. 2025-05-01 12:05:28 +05:30
Alex Holliday 84c3cf5b0e update build_images.sh to be backwards compatible with older bash versions 2025-04-30 12:11:37 -07:00
Owaise Imdad ecce31ce34 Added proper csv file which can be downloaded. 2025-04-30 23:59:25 +05:30
Owaise Imdad 8a53ddcf15 Replaced the object destructing with array as it is a standard pratice. 2025-04-30 23:52:17 +05:30
Alexander Holliday d76e3d42a1 Merge pull request #2171 from bluewave-labs/fix/infra-status-text-color-2170
Fix inconsistent text color in infrastructure monitor status boxes (#2170)
2025-04-29 09:28:18 -07:00
Owaise Imdad 59027cf33c Fixed the issue with respect to imports. 2025-04-29 15:07:46 +05:30
Owaise Imdad 2a045f93e0 Removed the validation from client. 2025-04-29 12:49:33 +05:30
Owaise Imdad bd8554707d Moved the parsing logic to backend as suggested. 2025-04-29 12:47:24 +05:30
mohadeseh safari 36edb17bc4 fix 2025-04-28 22:59:49 -04:00
mohadeseh safari a15c5635db some modification 2025-04-28 22:48:09 -04:00
Alexander Holliday 77715df3b1 Merge pull request #2167 from bluewave-labs/fix/pull-on-build
fix: add git pull to staging and produciton deploy workflows
2025-04-28 15:47:01 -07:00
Alex Holliday f7755f1cff add git pull to staging and produciton deploy workflows 2025-04-28 15:46:20 -07:00
Alexander Holliday ad4b545d56 Merge pull request #2166 from bluewave-labs/feat/mount-docker-socket
mount docker socket
2025-04-28 15:41:29 -07:00
Alex Holliday ce4886f925 mount docker socket 2025-04-28 15:41:00 -07:00
Alexander Holliday dee5730481 Merge pull request #2165 from ajhollid/feat/release-workflow
feat: release workflow
2025-04-28 13:35:36 -07:00
Alex Holliday 0796103c33 update nginx to remove reverse proxy for client 2025-04-28 13:34:16 -07:00
Alex Holliday 07d58c2675 ignore docker compose test 2025-04-28 13:33:50 -07:00
Alex Holliday 9259cb75aa remove secret env config 2025-04-28 13:33:30 -07:00
Alexander Holliday bad9eb5e05 Merge pull request #2164 from bluewave-labs/feat/release-workflow
Feat/release workflow
2025-04-28 12:26:13 -07:00
Alex Holliday c8d41212d5 remove unused scripts 2025-04-28 12:25:24 -07:00
Alex Holliday aebba27dc7 fix mogno connection string 2025-04-28 12:25:02 -07:00
Alex Holliday d5a317caee save settings on load 2025-04-28 12:24:34 -07:00
Alexander Holliday 10702f1038 Merge pull request #2163 from bluewave-labs/feat/release-workflow
fix action name
2025-04-28 11:54:14 -07:00
Alex Holliday 4514032466 fix action name 2025-04-28 11:53:43 -07:00
Alexander Holliday 327928de04 Merge pull request #2162 from bluewave-labs/feat/release-workflow
feat: release workflow
2025-04-28 11:53:14 -07:00
Alex Holliday f790930872 fix branch name 2025-04-28 11:52:17 -07:00
Alex Holliday 62db71b4d9 update docker compose 2025-04-28 11:51:37 -07:00
Alex Holliday 18d7f1b339 add distribution workflow 2025-04-28 11:51:20 -07:00
Gorkem Cetin (BWL) 8af3bf68c7 Mention that demo server shows latest-ish code. 2025-04-28 14:37:36 -04:00
Alexander Holliday ceb140af24 Merge pull request #2157 from Rimaru06/issue#1992
Enhance Monitor Header: Apply Monospaced Font to URL and Increase Gap Between Elements
2025-04-28 11:37:11 -07:00
rimaru06 d4b9357074 package-lock file removed 2025-04-28 23:44:34 +05:30
Alexander Holliday d4a60723f4 Merge pull request #2160 from bluewave-labs/fix/insecure-user-creation
fix: insecure user creation
2025-04-28 10:59:10 -07:00
Alexander Holliday b387ebaae9 Merge pull request #2161 from bluewave-labs/fix/edit-user
fix: edit user
2025-04-28 10:58:47 -07:00
Alex Holliday 67ae722720 disallow role 2025-04-28 10:55:06 -07:00
Alex Holliday 0c31e8fce0 add user as default role 2025-04-28 10:39:19 -07:00
Alex Holliday 99d416f31a add default role, remove role requirement from validation 2025-04-28 10:34:49 -07:00
Alex Holliday c2ffdd1d62 get invite role and teamId from invite instead of client 2025-04-28 10:34:32 -07:00
Alex Holliday d5adf7a2be remove role and teamId from invite form 2025-04-28 10:34:03 -07:00
mohadeseh safari 9061039df8 update the capitalization in the "authRegisterCreateSuperAdminAccount" key to be consistent 2025-04-27 15:42:05 -04:00
mohadeseh safari 449dd36f91 Use an existing translation key "authLoginEnterPassword": "Enter your password" 2025-04-27 15:33:03 -04:00
mohadeseh safari dae9bd42db translatable Email" and "Email is required" 2025-04-27 15:27:50 -04:00
mohadeseh safari d62a4f12fa - Update regex pattern to use Unicode properties for better internationalization 2025-04-27 14:51:43 -04:00
mohadeseh safari fa0f4dd6ec - Change "Sign up via email" to "Create super admin account"
- Make Terms of Service and Privacy Policy text a single translatable sentence
- Add translation keys for Name and Surname fields
2025-04-27 13:50:40 -04:00
mohadeseh safari 720f60cbb7 Improve backend connectivity check with early returns and Remove unrelated super admin check to focus on backend reachability 2025-04-27 12:57:38 -04:00
Alexander Holliday 7951e10f62 Merge pull request #2155 from Br0wnHammer/fix/fe/infra-page-ui
Fix: Infra Monitor Filter UI Position
2025-04-27 09:52:02 -07:00
Aryaman Kumar Sharma fbde1897bd Fix: Infra Monitor Filter UI Position 2025-04-27 12:46:54 +05:30
rimaru06 f1d0b22e48 url font change to monospace 2025-04-27 12:05:16 +05:30
Gorkem Cetin (BWL) e8c9de6c63 Fix after repo merge + add Devin link for Checkmate 2025-04-26 19:50:41 -04:00
Gorkem Cetin (BWL) d855ef7f9f Add link to Devin's Checkmate architectural documentation 2025-04-26 19:48:39 -04:00
Owaise Imdad b2fd9b1e89 Feature release for uptime monitors. 2025-04-27 03:05:14 +05:30
Alexander Holliday 0001df9ad3 Merge pull request #2145 from bluewave-labs/fix/prod-docker
fix: prod docker
2025-04-25 19:45:30 -07:00
Alex Holliday 36f528fbf9 add healthcheck to mongodb to init replicaset if not already init 2025-04-25 19:44:16 -07:00
Alex Holliday db20b4c1ff correct db host 2025-04-25 19:16:12 -07:00
Alexander Holliday e020f61a04 Merge pull request #2143 from bluewave-labs/fix/prod-docker
Fix/prod docker
2025-04-25 16:28:50 -07:00
Alex Holliday f232075a97 log connection string 2025-04-25 16:28:19 -07:00
Alex Holliday 93e86b3280 wait for primary 2025-04-25 16:26:10 -07:00
Alexander Holliday 262a48bdab Merge pull request #2142 from bluewave-labs/fix/prod-docker
corrected script
2025-04-25 16:16:57 -07:00
Alex Holliday 2e4faf81f4 corrected script 2025-04-25 16:16:11 -07:00
Alexander Holliday de6854d5ce Merge pull request #2141 from bluewave-labs/fix/prod-docker
single init script
2025-04-25 16:09:37 -07:00
Alex Holliday c654872d9c single init script 2025-04-25 16:09:02 -07:00
Alexander Holliday a97a941f6b Merge pull request #2140 from bluewave-labs/fix/prod-docker
wait for primary
2025-04-25 15:08:36 -07:00
Alex Holliday fb505278bd wait for primary 2025-04-25 15:07:44 -07:00
Alexander Holliday 6574eb155a Merge pull request #2139 from bluewave-labs/fix/prod-docker
ordering for prod
2025-04-25 14:54:51 -07:00
Alex Holliday cf6c16f674 ordering for prod 2025-04-25 14:54:22 -07:00
Alexander Holliday cb5a5c13a1 Merge pull request #2138 from bluewave-labs/fix/prod-docker
fix ordering of init scripts
2025-04-25 14:44:44 -07:00
Alex Holliday d078305ed3 fix ordering of init scripts 2025-04-25 14:44:03 -07:00
Alexander Holliday 4d2d4d33fe Merge pull request #2137 from bluewave-labs/fix/prod-docker
fix mognodb cmnd
2025-04-25 14:36:58 -07:00
Alex Holliday 6c7551c49d fix mognodb cmnd 2025-04-25 14:35:45 -07:00
Alexander Holliday b159cfacf5 Merge pull request #2136 from bluewave-labs/fix/prod-docker
copy init
2025-04-25 14:21:15 -07:00
Alex Holliday 04549b0850 add init replica set 2025-04-25 14:18:59 -07:00
Alexander Holliday 8cc016635d Merge pull request #2134 from bluewave-labs/fix/prod-docker
add replica set init
2025-04-25 14:13:00 -07:00
Alex Holliday c0079085ae add replica set init 2025-04-25 14:12:20 -07:00
Alexander Holliday b436aaf61a Merge pull request #2133 from bluewave-labs/fix/prod-docker
use github repo for images
2025-04-25 13:49:26 -07:00
Alex Holliday 321326c7f8 use github repo for images 2025-04-25 13:49:02 -07:00
Alexander Holliday 476c902354 Merge pull request #2129 from bluewave-labs/fix/bcrypt
fix: bcrypt
2025-04-25 13:43:44 -07:00
Alexander Holliday 41d919d65c Merge pull request #2128 from bluewave-labs/fix/save-settings
fix: save settings
2025-04-25 13:42:50 -07:00
Alexander Holliday 5ea17ba78b Merge pull request #2131 from bluewave-labs/feat/prod-workflow
add manual dispatch
2025-04-25 13:35:42 -07:00
Alex Holliday ff25122425 add manual dispatch 2025-04-25 13:34:43 -07:00
Alexander Holliday ea4d400e3d Merge pull request #2130 from bluewave-labs/feat/prod-workflow
add production workflow
2025-04-25 13:31:51 -07:00
Alex Holliday 47a0b7f523 add production workflow 2025-04-25 13:30:20 -07:00
Alex Holliday 68cac694ed add mongo config 2025-04-25 12:52:03 -07:00
Alex Holliday 6f4ca57fa8 update docker compose for redis config 2025-04-25 12:51:29 -07:00
Alex Holliday d3957c5bce fix path 2025-04-25 12:50:21 -07:00
Alex Holliday 4d64407b1e fix path 2025-04-25 12:50:06 -07:00
Alex Holliday bf5b4a84d0 bump 2025-04-25 12:48:33 -07:00
Alex Holliday e7d4083964 bcrypt -> bcryptjs 2025-04-25 12:48:14 -07:00
Alex Holliday c8919cca83 add missing getter 2025-04-25 12:47:07 -07:00
Alex Holliday 8fec35c299 use bcrypt synchronously 2025-04-25 12:46:35 -07:00
Alex Holliday fc285f7070 remove fakedb 2025-04-25 12:44:37 -07:00
Alex Holliday 5e11ba05ba add missing getter 2025-04-25 10:21:40 -07:00
Alex Holliday dc36873cb1 remove baseapiurl 2025-04-25 10:21:19 -07:00
Alex Holliday 4954468a9a allow admin for settings 2025-04-25 10:20:42 -07:00
Alex Holliday 5c66ad1990 401 -> 403 for insufficient permissoins 2025-04-25 10:20:24 -07:00
Alex Holliday 23a9c9b97a fix error handling 2025-04-25 10:19:54 -07:00
Alex Holliday a18ccb635d remove unused settings, remove comment 2025-04-25 10:19:30 -07:00
Alexander Holliday 33a2fd2f69 Merge pull request #2126 from bluewave-labs/translation-update-54
🌐 Updated Translations from POEditor
2025-04-24 10:54:41 -07:00
mohadeseh safari eec11f303c applied the feedback 2025-04-23 23:28:35 -04:00
GitHub Action 063eb07483 feat: translations updated from POEditor 2025-04-24 00:29:57 +00:00
Alexander Holliday 43dfc41774 Merge pull request #2125 from bluewave-labs/FIX-for-image-removal
FIX for the removal of images and saving it.
2025-04-23 11:22:23 -07:00
Owaise Imdad 56a502a64d FIX for the removal of images and saving it. 2025-04-23 22:53:19 +05:30
Alexander Holliday c3d181da99 Merge pull request #2123 from bluewave-labs/feat/fe/img-upload-component
New reusable Image Upload Component
2025-04-23 09:26:13 -07:00
Vishnu Sreekumaran Nair 0e6ff46ca7 update locales/gb.json to localize strings 2025-04-22 19:42:08 -04:00
Vishnu Sreekumaran Nair ce7d2eeb76 delete imagefield component and css styles 2025-04-22 19:38:14 -04:00
Vishnu Sreekumaran Nair e16ebc3109 update status page/index to handle image upload logic 2025-04-22 19:36:54 -04:00
Vishnu Sreekumaran Nair 5058dd35ac update status page create to use new component 2025-04-22 19:35:55 -04:00
Vishnu Sreekumaran Nair 6be71e4337 update profilepanel to use imageupload component 2025-04-22 19:34:17 -04:00
Vishnu Sreekumaran Nair 4f5a855083 create new imgupload folder and copy code 2025-04-22 19:33:15 -04:00
Alexander Holliday 5d9290adc8 Merge pull request #2122 from bluewave-labs/translation-update-52
🌐 Updated Translations from POEditor
2025-04-22 16:00:05 -07:00
GitHub Action 389eb00d5d feat: translations updated from POEditor 2025-04-22 22:59:00 +00:00
Alexander Holliday d1e5171f6c Merge pull request #2121 from ajhollid/fix/update-github-actions
fix: update GitHub actions
2025-04-22 15:50:37 -07:00
Alex Holliday 82670080a9 remove incorrect locales dir 2025-04-22 15:49:37 -07:00
Alex Holliday 1b1317949f update paths for POEditor actions 2025-04-22 15:48:28 -07:00
Alexander Holliday 2b0af52fde Merge pull request #2118 from Br0wnHammer/fix/fe/create-monitor-general-text
Fix: Uptime Create Monitor General Settings Text
2025-04-22 15:42:44 -07:00
Alexander Holliday 6f6602fc94 Merge pull request #2120 from ajhollid/feat/init-replica-set
feat: init replica set
2025-04-22 15:04:51 -07:00
Alexander Holliday c05da53487 Merge pull request #2119 from bluewave-labs/FIX-for-index
FIX for index issue in server.
2025-04-22 15:04:02 -07:00
Alex Holliday a4a30761ab init replica set 2025-04-22 15:00:38 -07:00
Owaise Imdad 00676d541e FIX for index issue in server. 2025-04-23 01:07:37 +05:30
Aryaman Kumar Sharma b4b01f4efe Fix: Uptime Create Monitor General Settings Text 2025-04-22 23:38:40 +05:30
Gorkem Cetin (BWL) 39a9b96f2b Update README.md 2025-04-22 12:10:56 -04:00
Gorkem Cetin (BWL) 50452bc93d Fix after merge 2025-04-22 11:51:30 -04:00
mohadeseh safari 4b92683c72 some modification 2025-04-21 22:00:28 -04:00
mohadeseh safari c0adbb5bd7 modify login 2025-04-21 16:06:44 -04:00
mohadeseh safari f3e6dec937 Resolve merge conflict, keeping Login.jsx file 2025-04-21 16:05:09 -04:00
Alexander Holliday 071d6e6e93 Merge pull request #2107 from bluewave-labs/translation-update-50
🌐 Updated Translations from POEditor
2025-04-21 12:41:52 -07:00
Alexander Holliday 4d33731e23 Merge pull request #2109 from Br0wnHammer/fix/fe/md-files-move
Fix: Move MD Files from client to main dir
2025-04-21 12:41:35 -07:00
mohadeseh safari 0508fde86c modify login page 2025-04-21 13:57:26 -04:00
Aryaman Kumar Sharma 91dee2b8ec Fix: Move MD Files from client to main dir 2025-04-21 21:28:02 +05:30
Mohadeseh Safari b4f2c2c1c2 Delete client/src/Pages/Auth/Login/Login.jsx 2025-04-21 11:05:42 -04:00
mohadeseh safari 402361ce97 error message in login page and translation 2025-04-21 10:57:49 -04:00
mohadeseh safari 39e2fc2071 Merge remote-tracking branch 'origin/develop' into feature/backend-reachability-with-translations 2025-04-21 10:04:04 -04:00
Gorkem Cetin (BWL) b8c334d22a Update numbers 2025-04-21 09:08:42 -04:00
Gorkem Cetin (BWL) ae5e178eec Add Mert to the list of core devs 2025-04-21 09:07:59 -04:00
Gorkem Cetin (BWL) 820e79caab Create README.md 2025-04-21 09:06:39 -04:00
Gorkem Cetin (BWL) bfab4035db Update wording after repo merge 2025-04-21 07:28:01 -04:00
GitHub Action d90d554c65 feat: translations updated from POEditor 2025-04-21 00:31:38 +00:00
Alexander Holliday 2f530267bc Merge pull request #2106 from bluewave-labs/fix/restore-repo
update docker path
2025-04-20 12:05:47 -07:00
Alex Holliday 3d0bdfd5df update docker path 2025-04-20 12:04:47 -07:00
Alexander Holliday 09c940783d Merge pull request #2105 from bluewave-labs/fix/restore-repo
correct repo naems
2025-04-20 11:59:12 -07:00
Alex Holliday 426ad725a4 correct repo naems 2025-04-20 11:57:56 -07:00
Alexander Holliday b6faa08674 Merge pull request #2104 from bluewave-labs/fix/restore-repo
update workflow
2025-04-20 11:51:41 -07:00
Alex Holliday f334d2f788 update workflow 2025-04-20 11:49:06 -07:00
Alexander Holliday 772768ede7 Merge pull request #2089 from renovate-bot/renovate/appleboy-ssh-action-1.x
chore(deps): update appleboy/ssh-action action to v1.2.2
2025-04-20 11:46:54 -07:00
Alexander Holliday bd6b6d1757 Merge pull request #2103 from bluewave-labs/fix/restore-repo
Fix/restore repo
2025-04-20 11:44:29 -07:00
Alex Holliday b832b15207 add workflow 2025-04-20 11:44:08 -07:00
Alex Holliday 31d9d5350f add server workflow 2025-04-20 11:43:32 -07:00
Alexander Holliday 8ac921123b Merge pull request #2102 from bluewave-labs/fix/restore-repo
add env.sh
2025-04-20 11:41:21 -07:00
Alex Holliday 8ac0c71a0a add env.sh 2025-04-20 11:40:32 -07:00
Alexander Holliday d6ee86ca83 Merge pull request #2101 from bluewave-labs/fix/restore-repo
fix: restore repo
2025-04-20 11:35:02 -07:00
Alex Holliday 9fd4d6c0b8 bump dependencies 2025-04-20 11:30:34 -07:00
Alex Holliday 8b7e3c650b restore repo structure 2025-04-20 11:29:53 -07:00
Alexander Holliday 6df099a5b6 Merge pull request #2099 from bluewave-labs/translation-update-49
🌐 Updated Translations from POEditor
2025-04-19 17:48:28 -07:00
GitHub Action fbf5b11666 feat: translations updated from POEditor 2025-04-20 00:32:47 +00:00
Mend Renovate dd6129b078 chore(deps): update appleboy/ssh-action action to v1.2.2 2025-04-18 03:31:40 +00:00
Alexander Holliday a281618e0d Merge pull request #2086 from bluewave-labs/feat/action
fix path
2025-04-17 15:26:04 -07:00
Alex Holliday 59f0f2f50d fix path 2025-04-17 15:25:10 -07:00
Alexander Holliday 806731b4a9 Merge pull request #2083 from bluewave-labs/feat/action
feat: add dockerfile and action
2025-04-17 15:24:35 -07:00
Alex Holliday fee258a8f2 Add dockerfile and action 2025-04-17 15:23:27 -07:00
mohadeseh safari b404ff3022 some modification 2025-04-17 16:36:53 -04:00
mohadeseh safari 60694258f2 Add backend reachability check method 2025-04-17 16:19:22 -04:00
Alexander Holliday 66870f4c1f Merge pull request #2061 from nbgslv/feat/statuspages-breadcrumbs
Status Pages breadcrumbs
2025-04-17 09:20:49 -07:00
Alexander Holliday 7e2cadb2dc Merge pull request #2080 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v7.29.0
2025-04-17 09:06:59 -07:00
nbgslv 6383d60dd2 Fix breadcrumb translation keys for consistency 2025-04-17 18:06:49 +03:00
Mend Renovate 6d9564a5b2 fix(deps): update material-ui monorepo to v7.29.0 2025-04-17 14:46:31 +00:00
Alexander Holliday ccff91f786 Merge pull request #2077 from renovate-bot/renovate/reduxjs-toolkit-2.x
fix(deps): update dependency @reduxjs/toolkit to v2.7.0
2025-04-16 11:05:01 -07:00
Mend Renovate efebf8d30c fix(deps): update dependency @reduxjs/toolkit to v2.7.0 2025-04-16 18:04:31 +00:00
Alexander Holliday 9578e5733c Merge pull request #2063 from Br0wnHammer/feat/fe/infra-monitor-filters
Feat: Infra Monitors Filters
2025-04-16 11:03:41 -07:00
nbgslv 1ede02842d Merge branch 'develop' of https://github.com/nbgslv/Checkmate into feat/statuspages-breadcrumbs 2025-04-16 20:39:29 +03:00
nbgslv a7fa3ccb77 Update Breadcrumbs to include dynamic path for configuration page 2025-04-16 20:36:18 +03:00
nbgslv 9b63016d56 Update Breadcrumbs to use new translation keys for improved localization 2025-04-16 20:25:31 +03:00
Alexander Holliday 69a45836d9 Merge pull request #2074 from renovate-bot/renovate/solana-wallet-adapter-react-ui-0.x
fix(deps): update dependency @solana/wallet-adapter-react-ui to v0.9.37
2025-04-15 21:51:12 -07:00
Alexander Holliday fc596234df Merge pull request #2072 from renovate-bot/renovate/solana-wallet-adapter-base-0.x
fix(deps): update dependency @solana/wallet-adapter-base to v0.9.25
2025-04-15 21:50:46 -07:00
Alexander Holliday a1ce199513 Merge pull request #2071 from bluewave-labs/translation-update-45
🌐 Updated Translations from POEditor
2025-04-15 21:50:16 -07:00
Mend Renovate 1db0462283 fix(deps): update dependency @solana/wallet-adapter-react-ui to v0.9.37 2025-04-16 04:47:29 +00:00
Alexander Holliday 5dcd9800cb Merge pull request #2073 from renovate-bot/renovate/solana-wallet-adapter-react-0.x
fix(deps): update dependency @solana/wallet-adapter-react to v0.15.37
2025-04-15 19:57:34 -07:00
Mend Renovate f399bdcfa0 fix(deps): update dependency @solana/wallet-adapter-react to v0.15.37 2025-04-16 02:53:17 +00:00
Mend Renovate 0c8f113131 fix(deps): update dependency @solana/wallet-adapter-base to v0.9.25 2025-04-16 02:53:07 +00:00
GitHub Action 084c803b61 feat: translations updated from POEditor 2025-04-16 00:30:14 +00:00
Aryaman Kumar Sharma 45db3b15e8 Feat: Infra Monitors Filters 2025-04-15 23:34:37 +05:30
Alexander Holliday 7df42357cd Merge pull request #2051 from rajmahajan3196/signup-page-fix
Signup page fix. Resolves #2038
2025-04-15 09:27:14 -07:00
Alexander Holliday 8df4074dda Merge pull request #2065 from bluewave-labs/translation-update-44
🌐 Updated Translations from POEditor
2025-04-15 09:07:32 -07:00
Alexander Holliday c43a50c088 Merge pull request #2066 from renovate-bot/renovate/maplibre-gl-5.x
Update dependency maplibre-gl to v5.3.1
2025-04-15 09:07:18 -07:00
Alexander Holliday dab72babec Merge pull request #2067 from renovate-bot/renovate/vitejs-plugin-react-4.x-lockfile
Update dependency @vitejs/plugin-react to v4.4.0
2025-04-15 09:06:56 -07:00
rajmahajan3196 475394c942 Address PR review comments 2025-04-15 18:40:51 +05:30
Mend Renovate 78f14d6b27 Update dependency @vitejs/plugin-react to v4.4.0 2025-04-15 11:25:46 +00:00
Mend Renovate e484aaf017 Update dependency maplibre-gl to v5.3.1 2025-04-15 11:25:35 +00:00
GitHub Action 3c35d01132 feat: translations updated from POEditor 2025-04-15 00:30:16 +00:00
Aryaman Kumar Sharma dbaa7d3698 Feat: Infra Monitors Filters 2025-04-15 00:17:11 +05:30
nbgslv cae3d9ed4f Refactor Breadcrumbs to use translation keys for improved localization 2025-04-14 21:17:33 +03:00
nbgslv 68354aac06 Add Breadcrumbs component to status page for improved navigation 2025-04-14 21:04:24 +03:00
Alexander Holliday c16e51e52a Merge pull request #2053 from bluewave-labs/feature/pagespeed-api-warning-2022
Feature/pagespeed api warning 2022
2025-04-14 10:09:59 -07:00
Alexander Holliday 7722642fc9 Merge pull request #2059 from bluewave-labs/translation-update-43
🌐 Updated Translations from POEditor
2025-04-14 10:09:21 -07:00
mohadeseh safari 45ff54d4d3 change the custom pallete name (warningSecondary) 2025-04-14 08:43:05 -04:00
GitHub Action 809848a705 feat: translations updated from POEditor 2025-04-14 00:31:47 +00:00
Alexander Holliday 9e653f7f49 Merge pull request #2049 from Br0wnHammer/feat/fe/filter-ui
Feat: Filters UI
2025-04-13 10:33:25 -07:00
Alexander Holliday ee40a56b65 Merge pull request #2058 from bluewave-labs/fix/enable-notifications
uncomment out notificiations
2025-04-13 10:29:35 -07:00
Aryaman Kumar Sharma 0783eb5bcb Feat: Filters UI 2025-04-13 19:25:46 +05:30
Alex Holliday 715baf4f10 uncomment out notificiations 2025-04-12 19:22:53 -07:00
Gorkem Cetin (BWL) cadfbb013a Assurance added 2025-04-12 17:32:05 -04:00
Gorkem Cetin (BWL) c6ef77a886 Update SECURITY.md so the vulnerabilities can be reported appropriately. 2025-04-11 21:56:45 -04:00
Alexander Holliday 2603fb512c Merge pull request #2052 from renovate-bot/renovate/solana-wallet-adapter-wallets-0.x
Update dependency @solana/wallet-adapter-wallets to v0.19.34
2025-04-11 13:23:02 -07:00
mohadeseh safari 251891b359 Restore package-lock.json from develop branch 2025-04-11 14:39:23 -04:00
mohadeseh safari 014a706329 alert 2025-04-11 14:36:50 -04:00
Mohadeseh Safari bcf6775b47 Delete package-lock.json 2025-04-11 14:19:17 -04:00
Mohadeseh Safari 107ba0ef09 Delete src/Components/Alert/index.jsx 2025-04-11 14:18:38 -04:00
mohadeseh safari b4d74d370a modify 2025-04-11 14:17:29 -04:00
mohadeseh safari 77be1fc37f alert component 2025-04-11 13:31:37 -04:00
Mend Renovate 5fe33b3831 Update dependency @solana/wallet-adapter-wallets to v0.19.34 2025-04-11 17:23:49 +00:00
mohadeseh safari bb3b06a459 Merge branch 'develop' into feature/pagespeed-api-warning-2022 2025-04-11 13:21:22 -04:00
mohadeseh safari db318c8ea8 Internationalization 2025-04-11 12:45:21 -04:00
mohadeseh safari 3748df9b64 Custom palette for PageSpeed warning box 2025-04-11 12:07:39 -04:00
rajmahajan3196 ca5f9135d2 Signup page fix. Resolves #2038 2025-04-11 19:37:36 +05:30
Gorkem Cetin (BWL) 4d307c9580 Merge pull request #2050 from bluewave-labs/refactor/fe/tabs
Unify tab styles with CustomTabList component
2025-04-11 09:22:01 -04:00
Aryaman Kumar Sharma 4c2de647e6 Feat: Filters UI 2025-04-11 12:26:59 +05:30
Vishnu Sreekumaran Nair 5c160f1844 update json doc for customtablist 2025-04-10 18:32:41 -04:00
Vishnu Sreekumaran Nair 6b5460c75c update global theme 2025-04-10 18:29:31 -04:00
Vishnu Sreekumaran Nair 71b71b4ee9 remove borders and bg colors from tab 2025-04-10 18:29:04 -04:00
Vishnu Sreekumaran Nair b300c1b830 add json doc for customtablist component 2025-04-10 17:51:14 -04:00
Vishnu Sreekumaran Nair 6e115052c6 remove ununsed imports 2025-04-10 17:46:37 -04:00
Vishnu Sreekumaran Nair 8af4fd8e3e change component name for clarity 2025-04-10 17:41:54 -04:00
Vishnu Sreekumaran Nair c3f24a1693 fix tab component import 2025-04-10 15:25:47 -04:00
Aryaman Kumar Sharma b2f6850b81 Feat: Filters UI 2025-04-11 00:25:53 +05:30
Vishnu Sreekumaran Nair d93c9c3bc9 update status create page to use Tab component 2025-04-10 14:52:04 -04:00
Vishnu Sreekumaran Nair d8678bb772 update accounts page to use new Tab component 2025-04-10 14:50:06 -04:00
Vishnu Sreekumaran Nair 6421080a95 create new Tablistwrapper component 2025-04-10 14:48:10 -04:00
Alexander Holliday 211195f7b3 Merge pull request #2048 from Owaiseimdad/Charts-Background-Fix
FIX in the charts background color to main instead of a low contrast.
2025-04-10 10:17:06 -07:00
Owaiseimdad 6b5a531559 Fix for memory title in infra. 2025-04-10 22:33:15 +05:30
Owaiseimdad 238cb07322 FIX in the charts background color to main instead of a low contrast. 2025-04-10 21:54:29 +05:30
Alexander Holliday 0448d33631 Merge pull request #2044 from karins28/Fix/side-menu-close
Fix. :side menu close on click
2025-04-10 09:22:56 -07:00
Alexander Holliday e64a32b8a8 Merge pull request #2045 from Br0wnHammer/feat/fe/monitor-header-ui
Feat: New Monitor Header UI
2025-04-10 09:22:02 -07:00
Alexander Holliday a12b730bcd Merge pull request #2046 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v6.4.11
2025-04-10 09:20:35 -07:00
Alexander Holliday ba68c771e7 Merge pull request #2047 from renovate-bot/renovate/vite-5.x-lockfile
Update dependency vite to v5.4.18
2025-04-10 09:20:20 -07:00
Mend Renovate 951605cb63 Update dependency vite to v5.4.18 2025-04-10 11:27:12 +00:00
Mend Renovate 2292e8f6fc Update material-ui monorepo to v6.4.11 2025-04-09 18:57:32 +00:00
Br0wnHammer 65e1b686cc Feat: New Monitor Header UI 2025-04-09 22:34:59 +05:30
Trial e167b76191 removed semicolon 2025-04-09 11:09:23 +03:00
Trial a32f8dd8a4 Added side menu close on click 2025-04-09 11:06:26 +03:00
Alexander Holliday 4fefba0e2f Merge pull request #2043 from Br0wnHammer/fix/fe/uptime-ui-fixes
Fix: Uptime UI Fixes
2025-04-08 21:59:08 -07:00
Aryaman Kumar Sharma 475b0df684 Fix: Uptime UI Fixes 2025-04-09 00:13:45 +05:30
Alexander Holliday 62bf1d56ac Merge pull request #2041 from bluewave-labs/fix/sidebar-icon-visibility
Fix sidebar icons visibility when toggling
2025-04-08 09:25:49 -07:00
Alexander Holliday bf978da778 Merge pull request #2039 from renovate-bot/renovate/solana-wallet-adapter-base-0.x
Update dependency @solana/wallet-adapter-base to v0.9.24
2025-04-08 09:24:39 -07:00
Alexander Holliday 406babafe3 Merge pull request #2042 from bluewave-labs/translation-update-37
🌐 Updated Translations from POEditor
2025-04-08 09:23:58 -07:00
GitHub Action 099affd2e4 feat: translations updated from POEditor 2025-04-08 00:28:59 +00:00
mohadeseh safari 2e63771a80 link open in new tab 2025-04-07 15:47:14 -04:00
Vishnu Sreekumaran Nair 865140a205 create sidebarClassName variable and update in jsx 2025-04-07 15:29:18 -04:00
Vishnu Sreekumaran Nair ac57e1ec27 initialise sidebarReady state to false 2025-04-07 15:23:23 -04:00
Vishnu Sreekumaran Nair 2f97269de5 move transition to sidebar-delay fade class 2025-04-07 15:21:37 -04:00
mohadeseh safari b3599361e8 usage warning color 2025-04-07 15:06:42 -04:00
Vishnu Sreekumaran Nair 8f92f8e97f update css to fix icon visibility 2025-04-07 14:59:00 -04:00
Vishnu Sreekumaran Nair 58a51d8a3f update sidebar stack classname to include sidebarReady 2025-04-07 14:57:00 -04:00
Vishnu Sreekumaran Nair 79cabb770a add sidebarReady state and update useffect 2025-04-07 14:55:43 -04:00
Mend Renovate 1db59640a4 Update dependency @solana/wallet-adapter-base to v0.9.24 2025-04-07 16:12:32 +00:00
Alexander Holliday 29245f2571 Merge pull request #2033 from Br0wnHammer/fix/fe/uptime-filters
Fix: Minor UI Fix in Filters
2025-04-07 09:11:44 -07:00
Alexander Holliday ef22189037 Merge pull request #2029 from Cihatata/2002-fix-language-selector
2002 fix: use available language
2025-04-07 09:10:49 -07:00
Br0wnHammer 097d464bf3 Fix: Minor UI Fix in Filters 2025-04-07 14:06:26 +05:30
Gorkem Cetin (BWL) 1dd53fb7f3 Merge pull request #2035 from bluewave-labs/fix/fe/sidebar-menu-icons
Fix sidebar menu icons appearing before full expansion
2025-04-07 01:36:48 -04:00
Vishnu Sreekumaran Nair c05dec8537 update transition duration 2025-04-06 15:11:59 -04:00
Vishnu Sreekumaran Nair 2f1ce06b53 add css for delaying fade-in 2025-04-06 15:08:32 -04:00
Vishnu Sreekumaran Nair c075c24630 add useffect to toggle sidebar-ready class after expand transition 2025-04-06 15:06:51 -04:00
Vishnu Sreekumaran Nair 59a1cd6f86 add ref to <aside> to track sidebar DOM 2025-04-06 15:04:06 -04:00
mohadeseh safari 623a2b65b9 Add warning for missing Google PageSpeed API key 2025-04-06 14:43:40 -04:00
Br0wnHammer a185f822ce Fix: Minor UI Fix in Filters 2025-04-04 21:18:56 +05:30
Br0wnHammer 57bd08b877 Fix: Minor UI Fix in Filters 2025-04-04 20:53:40 +05:30
Alexander Holliday 6795afd705 Merge pull request #2025 from bluewave-labs/fix/fe/status-page-tab
Fix status page tab styling
2025-04-03 21:50:58 -07:00
Alexander Holliday 5a15cdd201 Merge pull request #2030 from renovate-bot/renovate/eslint-plugin-react-7.x-lockfile
chore(deps): update dependency eslint-plugin-react to v7.37.5
2025-04-03 21:44:43 -07:00
Alexander Holliday 74e3812c28 Merge pull request #2031 from bluewave-labs/translation-update-33
🌐 Updated Translations from POEditor
2025-04-03 21:44:27 -07:00
GitHub Action f5a71cae71 feat: translations updated from POEditor 2025-04-04 00:28:56 +00:00
Mend Renovate 47f7136d53 chore(deps): update dependency eslint-plugin-react to v7.37.5 2025-04-03 23:11:04 +00:00
cihatata e554adc7d8 2002 fix: use available language 2025-04-04 01:02:26 +03:00
Alexander Holliday 601215fe9b Merge pull request #1985 from Owaiseimdad/Fix-for-status-boxes
fixed the status boxes on screen to be more responsive and better align with UI
2025-04-03 12:03:31 -07:00
Alexander Holliday 390a711f6a Merge pull request #2010 from Br0wnHammer/feat/fe/uptime-filters
Feat: Uptime Monitor Filters
2025-04-03 12:01:51 -07:00
Br0wnHammer cad81be0f5 Feat: Uptime Monitor Filters 2025-04-03 23:31:30 +05:30
Alexander Holliday 3b2fb3f387 Merge pull request #2026 from renovate-bot/renovate/vite-5.x-lockfile
chore(deps): update dependency vite to v5.4.17
2025-04-03 08:59:16 -07:00
Alexander Holliday c940398b5b Merge pull request #2027 from renovate-bot/renovate/recharts-2.x
fix(deps): update dependency recharts to v2.15.2
2025-04-03 08:59:04 -07:00
Alexander Holliday accd61c167 Merge pull request #2028 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v7.28.3
2025-04-03 08:58:51 -07:00
Mend Renovate c2a8cc51c3 fix(deps): update material-ui monorepo to v7.28.3 2025-04-03 15:39:11 +00:00
Mend Renovate 0b5fea4ca5 fix(deps): update dependency recharts to v2.15.2 2025-04-03 10:41:12 +00:00
Mend Renovate a41234a378 chore(deps): update dependency vite to v5.4.17 2025-04-03 10:41:01 +00:00
Br0wnHammer 3dc77d6e27 Feat: Uptime Monitor Filters 2025-04-03 15:07:42 +05:30
Owaiseimdad b9a8fda77e Added a new logic to calculate the width of the status boxes based on the parent spacings. 2025-04-03 09:36:03 +05:30
Gorkem Cetin (BWL) f2145347d3 Fix typo again 2025-04-02 22:44:55 -04:00
Gorkem Cetin (BWL) 5dbe66d22e Typo 2025-04-02 22:43:50 -04:00
Gorkem Cetin (BWL) d26c627e24 Update PR template to include "Fixes: " directive so Github automatically links a PR to an issue, which will result in better visibility for issues that are linked to a PR. 2025-04-02 22:40:43 -04:00
Vishnu Sreekumaran Nair 4fd85b4a2c add minHeight to muiTab styles 2025-04-02 19:00:59 -04:00
Vishnu Sreekumaran Nair b1b1684da1 use box wrapper to contain the Tablist component 2025-04-02 18:57:31 -04:00
Alexander Holliday 45012f7cbd Merge pull request #2023 from renovate-bot/renovate/react-monorepo
chore(deps): update dependency @types/react-dom to v18.3.6
2025-04-02 09:15:13 -07:00
Aryaman Sharma ef6c907228 Merge pull request #2024 from KunchaChennikaWangmai/patch-1
Update README.md
2025-04-02 19:10:14 +05:30
KunchaChennikaWangmai edd10433ee Update README.md
Corrected some spelling mistakes
2025-04-02 18:57:58 +05:30
Mend Renovate cb48a6bce9 chore(deps): update dependency @types/react-dom to v18.3.6 2025-04-02 12:15:30 +00:00
Br0wnHammer bda7e4706b Feat: Uptime Monitor Filters 2025-04-02 15:00:00 +05:30
Owaise Imdad a859eb5d07 Merge branch 'bluewave-labs:develop' into Fix-for-status-boxes 2025-04-01 18:16:05 +05:30
Alexander Holliday c205367558 Merge pull request #2016 from karins28/feature/email-uppercase-support
Feature/email-uppercase-support
2025-03-31 20:08:33 -07:00
Alexander Holliday 71bf373640 Merge pull request #2019 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v6.4.10
2025-03-31 20:04:32 -07:00
Mend Renovate 1dc8b4fc87 fix(deps): update material-ui monorepo to v6.4.10 2025-03-31 23:08:30 +00:00
Trial 3a99250508 added lowercase text onchange 2025-03-31 23:45:09 +03:00
Alexander Holliday d11e21b433 Merge pull request #1984 from Owaiseimdad/FIX-for-background-of-charts
Added background for charts for clarity
2025-03-31 09:31:06 -07:00
Alexander Holliday 8e380bcb3d Merge pull request #2018 from renovate-bot/renovate/vite-5.x-lockfile
chore(deps): update dependency vite to v5.4.16
2025-03-31 09:05:51 -07:00
Mend Renovate 035ea14d11 chore(deps): update dependency vite to v5.4.16 2025-03-31 12:41:36 +00:00
Gorkem Cetin (BWL) 9583d6f6df Remove reference to Figma design and give the correct path of CONTRIBUTING.md 2025-03-29 19:48:58 -04:00
Gorkem Cetin (BWL) b177b5f357 A better guide to contribute to Checkmate 2025-03-29 19:41:10 -04:00
Trial dacf729bca revert issue 2025-03-30 01:19:21 +03:00
Trial c88989d25e reverted joi behaviour 2025-03-30 01:14:47 +03:00
Trial de3511963c removed joi validation 2025-03-30 01:14:09 +03:00
Owaise Imdad e5e115ccc7 Merge branch 'bluewave-labs:develop' into Fix-for-status-boxes 2025-03-30 03:36:46 +05:30
Owaiseimdad dfb0bd10d2 Changed the bg of the gauge itself in order to meet the requirements. 2025-03-30 03:14:30 +05:30
Owaise Imdad ad3ee24adb Merge branch 'bluewave-labs:develop' into FIX-for-background-of-charts 2025-03-30 02:46:36 +05:30
Trial f001419a5b removed axios interceptor change 2025-03-29 20:45:46 +03:00
Trial dce461b586 removed unnccesary changes 2025-03-29 14:17:50 +03:00
Trial 0db9fc75dc added in interceptor 2025-03-29 14:09:05 +03:00
Trial fa86988436 added fix on fe side 2025-03-29 13:02:12 +03:00
Alexander Holliday 8da0d22d83 Merge pull request #2014 from bluewave-labs/uptime-monitoring-form-improvements
Improve Uptime Monitor Configuration
2025-03-28 16:09:19 -07:00
mohadeseh safari 475a530e8d fix: save monitor configuration changes 2025-03-28 13:11:48 -04:00
mohadeseh safari 5908b4457b change placeholders 2025-03-28 13:06:40 -04:00
Alexander Holliday 3dd975f424 Merge pull request #2013 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v7.28.2
2025-03-28 08:59:18 -07:00
mohadeseh safari d58150df6b modify 2025-03-28 11:59:10 -04:00
Mend Renovate 30f0f53fcd fix(deps): update material-ui monorepo to v7.28.2 2025-03-28 15:58:00 +00:00
Alexander Holliday 07e7972e3b Merge pull request #2011 from bluewave-labs/translation-update-26
🌐 Updated Translations from POEditor
2025-03-28 08:57:14 -07:00
GitHub Action 8cda1833f2 feat: translations updated from POEditor 2025-03-28 00:28:57 +00:00
Br0wnHammer 4ffb6832e2 Feat: Uptime Monitor Filters 2025-03-28 01:19:13 +05:30
Alexander Holliday a0e850be41 Merge pull request #2005 from bluewave-labs/feat/offline-invite
feat: offline invite, resolves #1993
2025-03-27 09:18:49 -07:00
Gorkem Cetin (BWL) 543c07d701 Add Aryaman as the core contributor 2025-03-27 10:35:28 -04:00
Alexander Holliday ee02cc8cf0 Merge pull request #2007 from renovate-bot/renovate/maplibre-gl-5.x
fix(deps): update dependency maplibre-gl to v5.3.0
2025-03-26 19:24:26 -07:00
Alexander Holliday 793185d431 Merge pull request #2006 from bluewave-labs/fix/fe/pagespeed-text-visibility
Fix text color in pagespeed monitor
2025-03-26 19:23:51 -07:00
Mend Renovate 3c7ccd1ddf fix(deps): update dependency maplibre-gl to v5.3.0 2025-03-26 23:34:00 +00:00
Vishnu Sreekumaran Nair 5bae031808 update text color in perfomance report 2025-03-26 18:35:03 -04:00
Alex Holliday 3181598aeb add fetching token functionality 2025-03-26 15:32:33 -07:00
Alex Holliday 4d56e71691 allow dialog to expans 2025-03-26 15:32:09 -07:00
Alex Holliday e19be6b1b8 i18n 2025-03-26 15:31:38 -07:00
Alex Holliday 8a9cce041d add no token string 2025-03-26 15:31:14 -07:00
Alex Holliday e1eceb5b8c Add sendInvitationToken 2025-03-26 15:28:48 -07:00
Alex Holliday 89e2a89124 add invite hooks 2025-03-26 15:27:59 -07:00
Alexander Holliday 698c8b48dd Merge pull request #1998 from bluewave-labs/fix/fe/accounts-tabs-style
Change Accounts tab styling
2025-03-26 10:57:13 -07:00
Alexander Holliday 5611d56da2 Merge pull request #2004 from bluewave-labs/fix/dependency-bump
bump
2025-03-26 10:56:03 -07:00
Alexander Holliday 879274eb62 Merge pull request #1999 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo
2025-03-26 10:55:43 -07:00
Alex Holliday fab579e90c bump 2025-03-26 10:55:11 -07:00
Alexander Holliday 78215e4910 Merge pull request #2003 from bluewave-labs/fix/du-jwt
fix: add separate URL for public status pages
2025-03-26 10:44:53 -07:00
Alex Holliday f03cc5a728 add separate URL for public status pages 2025-03-26 10:43:26 -07:00
Vishnu Sreekumaran Nair b729214dac move sx styles to global theme 2025-03-26 13:30:53 -04:00
Vishnu Sreekumaran Nair 3c1bb55b64 remove tablist borderBottom 2025-03-26 13:09:48 -04:00
Alexander Holliday 8212227959 Merge pull request #2001 from bluewave-labs/fix/expired-token-behaviour
fix: redirect to login on invalid token
2025-03-26 09:41:05 -07:00
Mend Renovate d3941d8def fix(deps): update material-ui monorepo 2025-03-26 16:16:36 +00:00
Alexander Holliday e04187afd7 Merge pull request #1986 from bluewave-labs/fix/fe/sidebar-ui-change
Modify Sidebar UI
2025-03-26 09:15:40 -07:00
Alex Holliday 65e9b3cfe5 redirect to login on invalid token 2025-03-26 08:36:43 -07:00
mohadeseh safari a5780efff5 improve form 2025-03-25 20:54:50 -04:00
Vishnu Sreekumaran Nair 79e5af12ed remove bordercolor for unselected tabs 2025-03-25 20:26:51 -04:00
Vishnu Sreekumaran Nair 63c187ac4e change tab background, update hover settings and modify borderRadius 2025-03-25 20:11:13 -04:00
mohadeseh safari 89d010a54b uptime form improvement 2025-03-25 18:16:11 -04:00
Vishnu Sreekumaran Nair 11b4039706 set accounts tab height to 34px 2025-03-25 17:55:28 -04:00
Vishnu Sreekumaran Nair a6d06fa8e0 add slight padding for sidebar menu items 2025-03-25 15:58:26 -04:00
Vishnu Sreekumaran Nair 6a1dc1e293 remove top offest for sidebar 2025-03-25 13:30:28 -04:00
Alexander Holliday 2cf4af0ed9 Merge pull request #1994 from bluewave-labs/translation-update-23
🌐 Updated Translations from POEditor
2025-03-25 09:28:50 -07:00
GitHub Action 81fedab88c feat: translations updated from POEditor 2025-03-25 00:29:17 +00:00
Gorkem Cetin (BWL) 44cac7af7c Create FUNDING.yml 2025-03-24 16:47:04 -04:00
Alexander Holliday 7cb8590dbf Merge pull request #1982 from bluewave-labs/feat/monitor-notification-integration
Add notifications to our existing monitors
2025-03-24 12:48:04 -07:00
Skorpios 5c6ea20b2c Comment out notification button. 2025-03-24 11:59:56 -07:00
Alexander Holliday 0dde9253b1 Merge pull request #1988 from renovate-bot/renovate/react-monorepo
chore(deps): update dependency @types/react to v18.3.20
2025-03-24 11:52:27 -07:00
Alexander Holliday 6e739b4863 Merge pull request #1989 from renovate-bot/renovate/vite-5.x-lockfile
chore(deps): update dependency vite to v5.4.15
2025-03-24 11:52:14 -07:00
Skorpios 11eecfa9b2 Merge remote-tracking branch 'upstream/develop' into feat/monitor-notification-integration 2025-03-24 11:37:45 -07:00
Gorkem Cetin (BWL) 4d8cea2539 Add translation link 2025-03-24 11:11:06 -04:00
Mend Renovate 62efa2701e chore(deps): update dependency vite to v5.4.15 2025-03-24 12:46:37 +00:00
Mend Renovate 5daad5ecc2 chore(deps): update dependency @types/react to v18.3.20 2025-03-24 12:46:26 +00:00
Skorpios 0e63262876 Add proptypes. 2025-03-23 22:57:22 -07:00
Skorpios 980f055d5c Extracted strings. 2025-03-23 21:13:49 -07:00
Skorpios 7badb3c642 Merge remote-tracking branch 'upstream/develop' into feat/monitor-notification-integration 2025-03-23 20:46:27 -07:00
Vishnu Sreekumaran Nair 2b346cf34a update background color to use predefined theme 2025-03-22 00:47:14 -04:00
Owaiseimdad 7247f6d808 fixed the status boxes on screen to be more repsonsive and better aling with UI 2025-03-22 10:02:13 +05:30
Owaiseimdad ee6e7bc905 Added background for charts. 2025-03-22 09:51:07 +05:30
Vishnu Sreekumaran Nair 112f76dbf6 add subtle color tint for sidebar 2025-03-22 00:15:01 -04:00
Vishnu Sreekumaran Nair 7dde4a74c9 wrap outlet in stack and update the layout styles 2025-03-21 23:39:51 -04:00
Vishnu Sreekumaran Nair 3bd48e235a center the uptime data table barchart 2025-03-21 22:56:34 -04:00
Vishnu Sreekumaran Nair c790a9282a modify sidebar and main layout styles to fix the positions 2025-03-21 22:43:31 -04:00
Vishnu Sreekumaran Nair 6c14529798 remove sidebar border and add borderRight 2025-03-21 21:50:04 -04:00
Alexander Holliday 88bf086f8d Merge pull request #1983 from bluewave-labs/fix/verify-jwt
fix: handle jwt errors
2025-03-21 16:25:28 -07:00
Skorpios de38ef451b Get rid of unnecessary comments. 2025-03-21 16:25:06 -07:00
Alex Holliday f4ec292b31 handle jwt errors 2025-03-21 16:24:27 -07:00
Skorpios 6dc0f019e6 Add notifications to our existing monitors 2025-03-21 16:04:21 -07:00
Alexander Holliday c2b57d1df7 Merge pull request #1981 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update dependency @mui/x-data-grid to v7.28.1
2025-03-21 11:31:56 -07:00
Mend Renovate 10dc66a253 fix(deps): update dependency @mui/x-data-grid to v7.28.1 2025-03-21 15:39:23 +00:00
Alexander Holliday b74507d578 Merge pull request #1979 from Br0wnHammer/fix/fe/pagination-action-buttons-gap
Fix: Table Pagination Action Button Gap
2025-03-20 19:53:35 -07:00
Alexander Holliday 61de51818b Merge pull request #1980 from bluewave-labs/translation-update-19
🌐 Updated Translations from POEditor
2025-03-20 19:52:31 -07:00
GitHub Action d47fab059b feat: translations updated from POEditor 2025-03-21 00:28:41 +00:00
Aryaman Kumar Sharma d6eb09427b Fix: Table Pagination Action Button Gap 2025-03-21 02:56:42 +05:30
Alexander Holliday 704d5d9173 Merge pull request #1978 from Owaiseimdad/Quick-Fix-for-settings-setBaseUrl
Quick fix for settings save page api call
2025-03-20 10:44:04 -07:00
Owaiseimdad 7a547bd60f Quick fix for settings save page api call 2025-03-20 23:08:25 +05:30
Alexander Holliday 2e687130d0 Merge pull request #1976 from bluewave-labs/fix/UI-fixes
Fix/UI fixes
2025-03-20 09:18:00 -07:00
Alexander Holliday 944fa4da2a Merge pull request #1975 from bluewave-labs/translation-update-18
🌐 Updated Translations from POEditor
2025-03-20 09:16:51 -07:00
Alexander Holliday 36669dd835 Merge pull request #1977 from bluewave-labs/fix/save
fix: save
2025-03-20 09:13:35 -07:00
Alex Holliday 32f7306a6d use update trigger 2025-03-20 09:11:07 -07:00
Alex Holliday a8aeed341a add update trigger 2025-03-20 09:10:28 -07:00
Alex Holliday 8a2d0d7724 add update trigger 2025-03-20 09:09:50 -07:00
Alex Holliday b342511aac fix pause state 2025-03-20 09:09:30 -07:00
Skorpios cbe73f34c1 Updated toast notifications to match our theme. 2025-03-20 08:29:14 -07:00
Skorpios c63f49e4f3 Fixed issues with colors changing for the test notification button when the dialog box is enabled. 2025-03-20 08:00:50 -07:00
Skorpios 62420bfd3c Fixed coloring for save button in light mode. 2025-03-20 07:36:51 -07:00
GitHub Action 8dd7f60dbb feat: translations updated from POEditor 2025-03-20 00:28:08 +00:00
Alexander Holliday eacbd34b35 Merge pull request #1974 from bluewave-labs/fix/normalize-data
fix: normalize data for charts
2025-03-19 13:32:17 -07:00
Alex Holliday 199ff731d4 normalize data for charts 2025-03-19 13:29:38 -07:00
Alexander Holliday 96e4bd8584 Merge pull request #1973 from renovate-bot/renovate/axios-1.x-lockfile
fix(deps): update dependency axios to v1.8.4
2025-03-19 13:12:54 -07:00
Alexander Holliday eb34943cb5 Merge pull request #1929 from renovate-bot/renovate/node-22.x
chore(deps): update dependency node to v22
2025-03-19 13:12:37 -07:00
Alexander Holliday 14f3a97a3e Merge pull request #1933 from bluewave-labs/feat/fe/edit-infra-monitor
Implement edit functionality for infrastructure monitors
2025-03-19 13:08:10 -07:00
Vishnu Sreekumaran Nair 0a1f47c532 resolve merge conflicts 2025-03-19 16:00:40 -04:00
Mend Renovate 53776266fd fix(deps): update dependency axios to v1.8.4 2025-03-19 19:59:26 +00:00
Alexander Holliday 79b763224d Merge pull request #1972 from bluewave-labs/hotfix/uptime-percentage
fix: nullish coallescing for uptime percetnage
2025-03-19 12:58:40 -07:00
Vishnu Sreekumaran Nair 139ae00613 extract success toast message strings 2025-03-19 15:55:39 -04:00
Vishnu Sreekumaran Nair ced3ad1757 update statevalues to use undefined 2025-03-19 15:50:36 -04:00
Alex Holliday 6cb8b11f78 fix nullish coallescing for uptime percetnage 2025-03-19 12:36:20 -07:00
Alexander Holliday e623a28643 Merge pull request #1971 from bluewave-labs/fix/uptime-details
fix: update details page to use new queries
2025-03-19 12:31:54 -07:00
Alex Holliday b86a73e28b display 1 decimal precision for hours 2025-03-19 12:28:46 -07:00
Alex Holliday f1a22133ef fix merge conflict 2025-03-19 12:19:44 -07:00
Alexander Holliday 17f6b6003a Merge pull request #1964 from renovate-bot/renovate/react-monorepo
chore(deps): update dependency @types/react to v18.3.19
2025-03-19 12:18:16 -07:00
Alex Holliday c940b25252 add missing empty check 2025-03-19 12:17:43 -07:00
Alex Holliday 3d71e7759b update details page to use new queries 2025-03-19 12:15:04 -07:00
Alexander Holliday f3b43d388c Merge pull request #1963 from Br0wnHammer/fix/fe/status-url-hover
Fix: Status Page URL Hover
2025-03-19 12:11:21 -07:00
Gorkem Cetin (BWL) 56647cdf46 Merge pull request #1970 from bluewave-labs/translation-update-17
🌐 Updated Translations from POEditor
2025-03-19 14:41:23 -04:00
GitHub Action 10f48b4fbd feat: translations updated from POEditor 2025-03-19 18:27:17 +00:00
Gorkem Cetin (BWL) 0e1d25cea9 Merge pull request #1969 from bluewave-labs/gorkem-bwl-patch-3
Update ru.json
2025-03-19 14:26:28 -04:00
Gorkem Cetin (BWL) c5246cca95 Update ru.json 2025-03-19 14:26:14 -04:00
Gorkem Cetin (BWL) c595938e6a Merge pull request #1968 from bluewave-labs/gorkem-bwl-patch-2
Create ru.json
2025-03-19 14:20:23 -04:00
Gorkem Cetin (BWL) 15f9a8b38d Create ru.json 2025-03-19 14:20:05 -04:00
Gorkem Cetin (BWL) 4223f452cd Merge pull request #1967 from bluewave-labs/translation-update-16
🌐 Updated Translations from POEditor
2025-03-19 14:19:09 -04:00
GitHub Action 723dd2d4c1 feat: translations updated from POEditor 2025-03-19 18:17:42 +00:00
Aryaman Kumar Sharma c22cd6ffbb Fix: Status Page URL Hover 2025-03-19 23:23:52 +05:30
Alexander Holliday 9ac563bf8c Merge pull request #1965 from bluewave-labs/hotfix/translations
fix: bad merge
2025-03-19 09:03:23 -07:00
Alex Holliday 254e2fd244 fix bad merge 2025-03-19 09:02:30 -07:00
Mend Renovate 7a76f19b5d chore(deps): update dependency @types/react to v18.3.19 2025-03-19 16:00:07 +00:00
Alexander Holliday 97e4eb557d Merge pull request #1904 from bluewave-labs/feat/handleTestNotification
Implemented the handleTestNotification function.
2025-03-19 08:59:22 -07:00
Vishnu Sreekumaran Nair 143d3ea7c6 update gb.json 2025-03-19 10:45:47 -04:00
Vishnu Sreekumaran Nair 7dfc9bff5f resolve merge conflicts 2025-03-19 10:32:25 -04:00
Gorkem Cetin (BWL) a4d1f21b5f Merge pull request #1945 from Br0wnHammer/feat/fe/migrate-hardcoded-strings
Feat: Migrate Hardcoded Strings
2025-03-19 08:04:47 -04:00
Aryaman Kumar Sharma 0df50f2bb7 Fix: Status Page URL Hover 2025-03-19 11:23:11 +05:30
Gorkem Cetin (BWL) 9b769fe9da Merge pull request #1962 from bluewave-labs/translation-update-15
🌐 Updated Translations from POEditor
2025-03-19 01:20:50 -04:00
GitHub Action 378691a2fa feat: translations updated from POEditor 2025-03-19 05:19:25 +00:00
Gorkem Cetin (BWL) 01709b65c9 Merge pull request #1961 from bluewave-labs/translation-update-14
🌐 Updated Translations from POEditor
2025-03-19 01:10:00 -04:00
GitHub Action 6bd1e6caed feat: translations updated from POEditor 2025-03-19 05:03:56 +00:00
Alexander Holliday da44dd7eea Merge pull request #1960 from bluewave-labs/fix/typography-base
fix: adjust typography base font size
2025-03-18 21:41:16 -07:00
Alex Holliday ffb345af5b adjust typography base font size 2025-03-18 21:39:59 -07:00
Skorpios 51da6b1fe9 Updated the new locales file with the proper translation keys. 2025-03-18 16:05:41 -07:00
Skorpios a0920f93a0 Resolve merge conflict: Remove src/locales/en.json 2025-03-18 16:00:04 -07:00
Alexander Holliday 7944aa283f Merge pull request #1959 from bluewave-labs/feat/merge
readme
2025-03-18 13:48:59 -07:00
Alex Holliday cd909e1854 readme 2025-03-18 13:48:30 -07:00
Vishnu Sreekumaran Nair a006d7194e fix notify_email state to only update for email notification types 2025-03-18 13:59:11 -04:00
Br0wnHammer 66bc2a8238 Feat: Migrate Hardcoded Strings 2025-03-18 22:20:25 +05:30
Alexander Holliday c55bb57e28 Merge pull request #1938 from Owaiseimdad/FIX-1936-Dark-BG
Fix 1936 dark bg
2025-03-18 09:34:19 -07:00
Alexander Holliday 52f34b1389 Merge pull request #1954 from renovate-bot/renovate/solana-wallet-adapter-react-0.x
fix(deps): update dependency @solana/wallet-adapter-react to v0.15.36
2025-03-18 09:33:04 -07:00
Mend Renovate 3a68ccf359 fix(deps): update dependency @solana/wallet-adapter-react to v0.15.36 2025-03-18 16:31:27 +00:00
Alexander Holliday 4120cee892 Merge pull request #1955 from renovate-bot/renovate/solana-wallet-adapter-react-ui-0.x
fix(deps): update dependency @solana/wallet-adapter-react-ui to v0.9.36
2025-03-18 09:30:40 -07:00
Mend Renovate a2804147dc fix(deps): update dependency @solana/wallet-adapter-react-ui to v0.9.36 2025-03-18 16:30:23 +00:00
Alexander Holliday 8c5a1924f2 Merge pull request #1956 from renovate-bot/renovate/solana-wallet-adapter-wallets-0.x
fix(deps): update dependency @solana/wallet-adapter-wallets to v0.19.33
2025-03-18 09:29:40 -07:00
Vishnu Sreekumaran Nair 5c74c0e452 removed conditional calling of hook and added early return in useHardwareMonitorsFetch 2025-03-18 12:18:52 -04:00
Cihat ATA db456a41b4 Update tr.json (#1958) 2025-03-18 15:25:34 +03:00
Cihat ATA 8a63f69665 Delete src/locales/en.json (#1957)
we are using gb.json
2025-03-18 15:22:07 +03:00
Mend Renovate 487cba49f2 fix(deps): update dependency @solana/wallet-adapter-wallets to v0.19.33 2025-03-18 05:32:28 +00:00
Owaise Imdad 6b9f6736f0 FIX-1936 made the cancel button like other cancel buttons in app. 2025-03-18 09:07:04 +05:30
Alexander Holliday be0ef1b473 Merge pull request #1953 from renovate-bot/renovate/solana-wallet-adapter-material-ui-0.x
fix(deps): update dependency @solana/wallet-adapter-material-ui to v0.16.35
2025-03-17 19:08:15 -07:00
Mend Renovate 8561638e17 fix(deps): update dependency @solana/wallet-adapter-material-ui to v0.16.35 2025-03-17 23:34:27 +00:00
Skorpios 946263291f Remove fallback string from save button. 2025-03-17 16:33:13 -07:00
Skorpios 100c5d3f21 Use built-in loading prop for save button. 2025-03-17 16:26:43 -07:00
Skorpios 840690d50b Merge remote-tracking branch 'upstream/develop' into feat/handleTestNotification 2025-03-17 16:13:57 -07:00
Alexander Holliday d78a7af93f Merge pull request #1951 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo
2025-03-17 14:50:06 -07:00
Mend Renovate 7ed1d1b90d fix(deps): update material-ui monorepo 2025-03-17 20:41:58 +00:00
Skorpios 3136bdbfa7 Merge remote-tracking branch 'upstream/develop' into feat/handleTestNotification 2025-03-17 13:15:01 -07:00
Alexander Holliday 71ab885d24 Merge pull request #1934 from Owaiseimdad/FIX-1913-Object-Existing-Check
Fixed the check for the label in options object in search component
2025-03-17 09:06:59 -07:00
Mend Renovate 5dc131dd06 chore(deps): update dependency node to v22 2025-03-17 12:38:24 +00:00
Alexander Holliday 5df0bae5ac Merge pull request #1931 from Owaiseimdad/FIX-1913-Maintenance-Component-Enhancement
FIX-1930 have made initial changes in order to proceed with rebuilding.
2025-03-16 22:34:07 -07:00
Alexander Holliday a23c3b327d Merge pull request #1937 from Owaiseimdad/FIX-calendar-dsiabled-date-color
Fixed calendar disabled date colour
2025-03-16 22:28:21 -07:00
Alexander Holliday b3df492c0e Merge pull request #1946 from bluewave-labs/translation-update-10
🌐 Updated Translations from POEditor
2025-03-16 22:23:35 -07:00
GitHub Action 5bdc1921fe feat: translations updated from POEditor 2025-03-17 00:29:59 +00:00
Skorpios c84a547f35 Extracted string to use i18n implementation. 2025-03-16 14:46:17 -07:00
Skorpios caab2c36b5 Removed fallback strings. 2025-03-16 14:04:56 -07:00
Skorpios 13b8bb6656 Used theme for colors. 2025-03-16 13:58:53 -07:00
Skorpios 4cbcebb445 Used theme for sizes and margins. 2025-03-16 13:49:34 -07:00
Skorpios 910defbc47 Used the theme for the circular progress. 2025-03-16 13:43:19 -07:00
Skorpios 182c51387f Abort early if the typeId or fieldId are not present. 2025-03-16 13:28:32 -07:00
Skorpios 8994b4b39b Use undefined instead of null for conventional purposes. 2025-03-16 13:15:25 -07:00
Skorpios 00700c8651 Return an array rather than an object. 2025-03-16 13:12:13 -07:00
Skorpios b1194ebd48 Merge remote-tracking branch 'upstream/develop' into feat/handleTestNotification 2025-03-16 12:50:47 -07:00
Br0wnHammer cdbabeb225 Feat: Migrate Hardcoded Strings 2025-03-17 01:16:42 +05:30
Cihat ATA b6113a176f test poeditor upload step (#1944)
* fix: test github workflow upload action

* fix: test github workflow upload action

* fix: test github workflow upload action
2025-03-16 14:38:24 +03:00
Cihat ATA 1717513cf4 test upload translation step (#1943)
* fix: test github workflow upload action

* fix: test github workflow upload action
2025-03-16 14:29:43 +03:00
Cihat ATA a68628d33b fix: test github workflow upload action (#1942) 2025-03-16 13:36:53 +03:00
Mend Renovate fcf23eb8b3 Update peter-evans/create-pull-request action to v7 (#1940) 2025-03-16 13:06:17 +03:00
github-actions[bot]andGitHub Action 4dbf6d2fc4 feat: translations updated from POEditor (#1941)
Co-authored-by: GitHub Action <github-actions[bot]@users.noreply.github.com>
2025-03-16 13:05:17 +03:00
Cihat ATA 32389eaf67 Open pull request for translations (#1939)
* fix: open pull request for translations

* fix: permission update

* fix: permission update

* fix: permission update

* fix: permission update
2025-03-16 13:01:22 +03:00
Owaise Imdad 726a5b1337 Merge branch 'bluewave-labs:develop' into FIX-1936-Dark-BG 2025-03-15 23:33:19 +05:30
Owaise Imdad 8cea5c26fe Merge branch 'bluewave-labs:develop' into FIX-calendar-dsiabled-date-color 2025-03-15 23:28:17 +05:30
Owaise Imdad 45a3ea2da0 Refactored and moved the config row component to main conponents folders to be reused. 2025-03-15 23:26:10 +05:30
Gorkem Cetin (BWL) d8f534217f Add contributors 2025-03-15 13:12:35 -04:00
Owaise Imdad e0e2cec386 Moved the evaluation in start of the render option execution. 2025-03-15 22:31:15 +05:30
Gorkem Cetin (BWL) 141df20f44 Remove CLI from the roadmap for now 2025-03-15 12:28:32 -04:00
Owaise Imdad fa3c7ee891 FIXed the calendar disable number color in order to suite both light and blue color. 2025-03-15 17:41:10 +05:30
Owaise Imdad e2187368b1 FIX-1936 made initial changes in popup in order to fix the UI of popups. 2025-03-15 17:32:21 +05:30
Owaise Imdad 5825151b28 fixed the check for the type or label key in the options send in search component. 2025-03-15 14:46:53 +05:30
Vishnu Sreekumaran Nair 8df78089e6 minor bug fixes and code cleanup 2025-03-15 02:48:02 -04:00
Vishnu Sreekumaran Nair f9e4c0f857 update breadcrumbs to include configure 2025-03-15 01:54:20 -04:00
Vishnu Sreekumaran Nair c07f68dfb1 update network service to handle all monitors properly 2025-03-15 01:38:52 -04:00
Vishnu Sreekumaran Nair f4e56008df fix threshold values handling to populate when editing 2025-03-15 00:49:19 -04:00
Vishnu Sreekumaran Nair 2e449269de disable url textbox and hide protocol buttons in edit mode 2025-03-15 00:30:00 -04:00
Vishnu Sreekumaran Nair 9e773f6917 format notifications to return object and added to validation list 2025-03-15 00:21:37 -04:00
Vishnu Sreekumaran Nair a320967949 update gb.json to include edit translations 2025-03-14 22:33:21 -04:00
Vishnu Sreekumaran Nair bbe5c65b83 update breadcrumbs to include path for configure 2025-03-14 22:19:07 -04:00
Vishnu Sreekumaran Nair b1029c9cec modify dispatch action to handle editing 2025-03-14 22:16:57 -04:00
Vishnu Sreekumaran Nair 6b15a5814d implement useffect to populate form when editing 2025-03-14 22:14:06 -04:00
Vishnu Sreekumaran Nair 55bd7d7973 add isCreate flag to determine create/edit 2025-03-14 22:12:52 -04:00
Vishnu Sreekumaran Nair f10b5b1e14 add the route for configure page 2025-03-14 21:40:12 -04:00
Vishnu Sreekumaran Nair 3c43fab7a6 use config button component in monitorstatusheader 2025-03-14 21:37:03 -04:00
Owaise Imdad e881c72ec9 FIX-1930 change the text in order to make sure there is clarity. 2025-03-15 02:09:18 +05:30
Owaise Imdad 5466d38496 FIX-1930 have made initial changes in order to proceed with rebuidling. 2025-03-15 01:44:00 +05:30
Alexander Holliday 1a147775fe Merge pull request #1928 from bluewave-labs/fix/refactor-depin
fix: refactor depin
2025-03-14 12:07:29 -07:00
Alex Holliday e90e497fef use new hooks 2025-03-14 12:05:26 -07:00
Alex Holliday 7ba1232198 use new hook 2025-03-14 12:05:03 -07:00
Alex Holliday 261975bff2 use new hook 2025-03-14 12:04:47 -07:00
Alex Holliday 4e4af8d720 remove unused import 2025-03-14 12:04:31 -07:00
Alex Holliday 7853942eff removed old hook 2025-03-14 12:04:08 -07:00
Alex Holliday 36acd60de1 removed old hook 2025-03-14 12:03:49 -07:00
Alex Holliday 1c6ed5030c removed old hook 2025-03-14 12:03:25 -07:00
Alex Holliday 3dc65a2ecd moved shared hooks to top level 2025-03-14 12:02:36 -07:00
Alex Holliday 5023a4acf1 remove unused var 2025-03-14 12:02:18 -07:00
Alexander Holliday 228b080730 Merge pull request #1927 from bluewave-labs/fix/uptime-refactor
fix: uptime refactor
2025-03-14 11:16:21 -07:00
Alex Holliday badcf436b6 add network op 2025-03-14 11:06:10 -07:00
Alex Holliday 4fa2c7f388 add new hook for monitor with checks 2025-03-14 11:05:49 -07:00
Alex Holliday 176ced29df use new hooks 2025-03-14 11:05:33 -07:00
Alex Holliday acd3e87330 log error 2025-03-14 11:04:50 -07:00
Alex Holliday 43f8377b99 use updatedAt 2025-03-14 11:04:31 -07:00
Alex Holliday 4b166ceca3 add network op 2025-03-14 10:06:36 -07:00
Alex Holliday dc6c947043 add hook for fetching monitors with summary 2025-03-14 10:06:10 -07:00
Alexander Holliday d4e1e32866 Merge pull request #1924 from renovate-bot/renovate/i18next-24.x-lockfile
fix(deps): update dependency i18next to v24.2.3
2025-03-14 08:59:11 -07:00
Alexander Holliday 2804fb8867 Merge pull request #1925 from Owaiseimdad/FIX-pagination-required-only-if-needed
FIX-1848 pagination changes.
2025-03-14 08:58:57 -07:00
Owaise Imdad 3e8e50f1aa FIX-1848 pagination changes. 2025-03-14 15:32:39 +05:30
Mend Renovate 8d9469d218 fix(deps): update dependency i18next to v24.2.3 2025-03-13 14:10:24 +00:00
Alexander Holliday b92a46c27d Merge pull request #1905 from Br0wnHammer/fix/fe/login-register-ui
Fix: Login/Register UI Screens
2025-03-13 07:09:37 -07:00
Gorkem Cetin (BWL) c214efeeae Update pull_request_template.md 2025-03-12 21:21:39 -04:00
Alexander Holliday 09130b86ec Merge pull request #1914 from Br0wnHammer/feat/migrate/hardcoded-strings
Feat: Migrate Hardcoded Strings
2025-03-12 09:34:46 -07:00
Alexander Holliday da653f5b2f Merge pull request #1921 from renovate-bot/renovate/axios-1.x-lockfile
fix(deps): update dependency axios to v1.8.3
2025-03-12 09:04:22 -07:00
Skorpios de8edbf3a8 Merge remote-tracking branch 'upstream/develop' into feat/handleTestNotification 2025-03-12 05:39:37 -07:00
Mend Renovate 166b581d31 fix(deps): update dependency axios to v1.8.3 2025-03-12 11:30:10 +00:00
Gorkem Cetin (BWL) d3786bcfc4 Merge pull request #1920 from Cihatata/change-tr-translations
Change tr translations
2025-03-12 00:54:20 -04:00
cihatata 4a762312f3 fix: test upload poeditor 2025-03-12 07:52:57 +03:00
github-actions[bot] 3e87cdf9d2 Translations updated from POEditor 2025-03-12 04:45:59 +00:00
github-actions[bot] a1fafa535b Translations updated from POEditor 2025-03-12 04:44:35 +00:00
Skorpios f735b082a3 Removed comment 2025-03-11 19:14:42 -07:00
Skorpios 8e026ede1b Refactored out constant keys. 2025-03-11 19:12:00 -07:00
Skorpios 798a680fc6 Got rid of magic numbers in the modal. 2025-03-11 19:06:57 -07:00
Skorpios f7b247fa9d Error handling and a more safe approach for the getFieldKey function. 2025-03-11 18:53:35 -07:00
Skorpios b811fb91ca Use explicit type checking. 2025-03-11 18:40:53 -07:00
Skorpios 9aa0041022 Used the network service class for network requests. 2025-03-11 18:37:14 -07:00
Skorpios 845b7692bc Merge remote-tracking branch 'upstream/develop' into feat/handleTestNotification 2025-03-11 16:37:37 -07:00
Alexander Holliday e697f5607a Merge pull request #1919 from Cihatata/fix-workflow-typo
Fix workflow typo
2025-03-11 15:49:45 -07:00
cihatata 34155e18ca fix: workflow typo - change text 2025-03-12 01:22:54 +03:00
cihatata 3f3a578f09 fix: workflow typo 2025-03-12 01:22:22 +03:00
Alexander Holliday f3d78b9bb8 Merge pull request #1918 from Cihatata/upload-poeditor
Upload poeditor
2025-03-11 14:58:48 -07:00
cihatata c02e0cfa2b feat: upload translation to POEditor - remove first-pr-workflow 2025-03-11 23:59:54 +03:00
cihatata 2d37790186 feat: upload translation to POEditor 2025-03-11 23:58:26 +03:00
Aryaman Kumar Sharma d5c593abb5 Fix: Login/Register UI Screens 2025-03-12 01:43:42 +05:30
Aryaman Sharma 529834bcba Merge branch 'develop' into feat/migrate/hardcoded-strings 2025-03-12 01:17:17 +05:30
Alexander Holliday ac8fc07223 Merge pull request #1917 from bluewave-labs/hotfix/comma
add comma
2025-03-11 12:43:59 -07:00
Alex Holliday 8bcf6fca64 add comma 2025-03-11 12:43:26 -07:00
Cihat ATA 243b76b5dc Merge branch 'bluewave-labs:develop' into develop 2025-03-11 22:42:27 +03:00
Alexander Holliday ef8fdc7e19 Merge pull request #1861 from bluewave-labs/feature/1484-star-prompt
Add a modal to encourage starring the Checkmate repo #1484
2025-03-11 12:41:03 -07:00
Alexander Holliday 32e35b998a Merge branch 'develop' into feature/1484-star-prompt 2025-03-11 12:40:46 -07:00
Alexander Holliday d54853aaa8 Merge pull request #1906 from Algo-Master/fix/1864-status-public-url
Fix Open public url in new Tab(#1864)
2025-03-11 12:38:57 -07:00
Alexander Holliday 9ae779cca7 Merge pull request #1909 from Owaiseimdad/FIX-1848-drop-down-Highlight-colors
FIX-1907 drop downs are of common color now.
2025-03-11 12:37:52 -07:00
Alexander Holliday 96a6a8122f Merge pull request #1911 from Owaiseimdad/Error-wrap-maintenance-page
Error wrap maintenance page
2025-03-11 12:36:54 -07:00
Br0wnHammer 5df5cf3870 Feat: Migrate Hardcoded Strings 2025-03-12 00:56:28 +05:30
Alexander Holliday 7f46a8ce10 Merge pull request #1799 from jasneetsingh6114/fix/1794
Enhance wallet button layout for better responsiveness and alignment.
2025-03-11 12:08:58 -07:00
Owaise Imdad 044b13133c Merge branch 'bluewave-labs:develop' into Error-wrap-maintenance-page 2025-03-12 00:15:26 +05:30
Owaise Imdad 2b6625fe55 FIX link in maintenance page. 2025-03-12 00:14:27 +05:30
Alexander Holliday ebd4b90a99 Merge pull request #1912 from bluewave-labs/fix/uptime-percentage
fix uptime percentage
2025-03-11 11:39:32 -07:00
Alex Holliday 3595e02cae fix uptime percentage 2025-03-11 11:38:44 -07:00
Owaise Imdad 572725aa02 FIX for global theme for error based helper text. 2025-03-11 23:33:51 +05:30
Owaise Imdad 67a6588bd6 FIX for error in maintenance page. 2025-03-11 23:30:41 +05:30
Alexander Holliday 6578d7e78a Merge pull request #1910 from bluewave-labs/hotfix/throw-error
hotfix:replace throwing error with console.warn
2025-03-11 10:16:25 -07:00
Alex Holliday ee4c15907e replace throwing error with console.warn 2025-03-11 10:15:47 -07:00
Alexander Holliday 079a2691de Merge pull request #1903 from Br0wnHammer/fix/fe/uptime-useChecks-hook
Fix: Uptime UseChecks Hook
2025-03-11 10:10:24 -07:00
Br0wnHammer c9e604efed Fix: Uptime UseChecks Hook 2025-03-11 22:27:43 +05:30
Owaise Imdad 5fddefc64f FIX-1907 drop downs are of common color now. 2025-03-11 22:19:13 +05:30
Gorkem Cetin (BWL) 3d83b1ce17 Merge pull request #1898 from bluewave-labs/gorkem-bwl-patch-1
Create a workflow for first issue/pr.
2025-03-11 09:50:55 -04:00
Aryaman Kumar Sharma 64d90894dc Fix: Login/Register UI Screens 2025-03-11 13:01:24 +05:30
Pratham a24d7a9169 Fix Open public url in new tab 2025-03-11 13:00:30 +05:30
Skorpios 7b1a60d6f9 Implemented the handleTestNotification function. 2025-03-10 16:32:56 -07:00
Br0wnHammer 5958d4b81c Fix: Uptime UseChecks Hook 2025-03-11 03:23:04 +05:30
Alexander Holliday 9dfe09f342 Merge pull request #1902 from Cihatata/patch-1
Update poeditor-sync.yml
2025-03-10 14:49:31 -07:00
Cihat ATA cfb5cf024b Update poeditor-sync.yml 2025-03-11 00:43:37 +03:00
Cihat ATA eb66cf32c7 Merge pull request #4 from Cihatata/workflow-use-require
fix: key name
2025-03-11 00:39:26 +03:00
cihatata f63ab086ae fix: key name 2025-03-11 00:38:54 +03:00
Alexander Holliday 18b3419026 Merge pull request #1901 from Cihatata/workflow-use-require
fix: use require
2025-03-10 14:36:43 -07:00
mohadeseh safari 1745faf70c ti.json 2025-03-10 17:36:38 -04:00
Cihat ATA c7327466f2 Merge pull request #3 from Cihatata/workflow-use-require
fix: use require
2025-03-11 00:35:01 +03:00
cihatata 45ec5a46c6 fix: use require 2025-03-11 00:33:16 +03:00
mohadeseh safari ffa9ddaf24 Modify json 2025-03-10 17:33:04 -04:00
Cihat ATA efd52e5f2e Merge pull request #2 from Cihatata/workflow-use-require
fix: key name
2025-03-11 00:29:45 +03:00
cihatata 877bafc3be fix: key name 2025-03-11 00:28:31 +03:00
Cihat ATA 18bbf375c7 Merge pull request #1 from Cihatata/workflow-use-require
Workflow use require
2025-03-11 00:20:31 +03:00
cihatata 7158b1f141 fix: strings 2025-03-11 00:18:50 +03:00
cihatata b73a78065a Merge branch 'develop' into workflow-use-require 2025-03-11 00:17:57 +03:00
cihatata 18b1fd1cdb fix: use require 2025-03-11 00:12:45 +03:00
Alexander Holliday 480056a3ed Merge pull request #1897 from Cihatata/sync-string-from-poeditor
feat: Sync strings from poeditor with github workflow
2025-03-10 14:03:18 -07:00
Gorkem Cetin (BWL) 5c1976e105 Create a workflow for first issue/pr. 2025-03-10 16:59:51 -04:00
cihatata c50b45f9ec fix: strings 2025-03-10 23:46:26 +03:00
cihatata 7522879e2a fix: key 2025-03-10 23:41:33 +03:00
cihatata 29e03a6294 feat: Sync strings from poeditor with github workfliw 2025-03-10 23:39:32 +03:00
mohadeseh safari 0f2832b728 simplify star prompt translations and state 2025-03-10 14:23:09 -04:00
Alexander Holliday 7c369e8405 Merge pull request #1855 from bluewave-labs/feat/notification-modal
Implemented notification modal.
2025-03-10 10:26:30 -07:00
Alexander Holliday 8e2330a16f Merge pull request #1895 from renatoka/fix/1894-register-token-stringify
fix: stringify token upon registration
2025-03-10 10:25:59 -07:00
renatoka a4e0762128 fix: remove usage of local storage for token 2025-03-10 18:24:36 +01:00
renatoka e068fa24f3 Merge branch 'develop' of github.com:renatoka/Checkmate into fix/1894-register-token-stringify 2025-03-10 18:23:17 +01:00
Alexander Holliday 2489458aa6 Merge pull request #1889 from Br0wnHammer/feat/migrate-hardcoded-strings
Feat: Migrate Hardcoded Strings in Auth and About
2025-03-10 07:06:55 -07:00
Alexander Holliday 2bf612515e Merge pull request #1869 from Owaiseimdad/Maintenance-start-time-style
Maintenance start time style and clock UI and theme changes
2025-03-10 07:06:16 -07:00
Skorpios 136452a6f5 Comment out notification integration button until fully functional. 2025-03-09 20:26:06 -07:00
Skorpios 78e46ecc5a Use i18n for front facing strings. 2025-03-09 20:21:10 -07:00
Skorpios be779c34d9 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-09 19:00:16 -07:00
Owaise Imdad 28c44d628d Removed the text component from mui themes. 2025-03-10 05:40:12 +05:30
Owaise Imdad 9e33a0a24f FIX for style of clock colors when not active. 2025-03-10 00:14:24 +05:30
Aryaman Sharma a5c724ca0d Merge branch 'develop' into feat/migrate-hardcoded-strings 2025-03-09 23:18:21 +05:30
Alexander Holliday f9e64aaf85 Merge pull request #1893 from renatoka/fix/1892-status-component
fix: add <StatusLabel> on "status pages" table
2025-03-09 08:48:08 -07:00
renatoka 7378e83b21 fix: stringify token upon registration 2025-03-09 16:15:23 +01:00
Renato cd8544c169 fix: add missing statuses to component typing 2025-03-09 09:58:21 +01:00
Renato 85e899b7db fix: add PropTypes values 2025-03-09 09:50:05 +01:00
Aryaman Kumar Sharma d40507ee36 Feat: Migrate Hardcoded Strings in Auth and About 2025-03-09 11:36:21 +05:30
Skorpios 93462d7ba6 Changed all user facing strings to use the i18n implementation. 2025-03-08 17:57:27 -08:00
Owaise Imdad 5ffc822bd4 Theme constant changes. 2025-03-09 07:24:53 +05:30
Owaise Imdad ef954af106 Made major ui changes in clock. 2025-03-09 07:24:53 +05:30
Skorpios d335cfb4ee Got rid of unnecessary rerenders by memoizing the integrationstate function. 2025-03-08 17:13:20 -08:00
Skorpios 99ec5be865 Added proptypes and jsdocs to the tabpanel. 2025-03-08 16:59:53 -08:00
Skorpios 25ff7abe7f refactored all the hardcoded absolute dimension values and made them into relative values that reference the theme. 2025-03-08 16:44:52 -08:00
Owaise Imdad 872501fc2d Merge branch 'bluewave-labs:develop' into Maintenance-start-time-style 2025-03-09 05:40:24 +05:30
Alexander Holliday 4720f3ed46 Merge pull request #1891 from renovate-bot/renovate/reduxjs-toolkit-2.x
Update dependency @reduxjs/toolkit to v2.6.1
2025-03-08 15:50:20 -08:00
Skorpios 2a54d2ce16 Fix spacing, borders, and border radius for style overrides to match theme values. 2025-03-08 14:54:52 -08:00
Skorpios 71763f4b66 Adjusted padding and borders for a more aesthetic look and feel for the vertical tabs. 2025-03-08 14:40:20 -08:00
Skorpios 94045f1164 Updated font sizes and colors to match theme values. 2025-03-08 13:56:51 -08:00
Skorpios 3ac56c1ea7 Made a separate tab component. 2025-03-08 13:01:28 -08:00
Renato d05821e95e fix: add <StatusLabel> on "status pages" table 2025-03-08 20:43:29 +01:00
Mend Renovate 056e0191b8 Update dependency @reduxjs/toolkit to v2.6.1 2025-03-08 01:54:38 +00:00
Skorpios 92df32cd82 Made tabs configure ready. 2025-03-07 17:25:28 -08:00
Skorpios e6e20d507e Extracted tab panel component into its own separate file. 2025-03-07 16:56:00 -08:00
Skorpios f6c1d5bbee Removed DialogTitle, Stack, and Divider as they are not used in the file. 2025-03-07 16:43:29 -08:00
Skorpios 476c7608c4 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-07 14:38:14 -08:00
mohadeseh safari c185979479 fix: handle undefined starPrompt state in Redux 2025-03-07 15:46:13 -05:00
mohadeseh safari 732f04a8b4 fix: improve StarPrompt component and remove unused CSS 2025-03-07 15:34:30 -05:00
Alexander Holliday 483699e2b7 Merge pull request #1890 from bluewave-labs/fix/vars
fix: vars
2025-03-07 11:27:18 -08:00
Alex Holliday 353f4a9dd6 correct timeSinceLastCheck and uptimePercentage 2025-03-07 11:15:19 -08:00
Aryaman Kumar Sharma 57469a2510 Feat: Migrate Hardcoded Strings in Auth and About 2025-03-08 00:45:08 +05:30
Alex Holliday 94f4d63e96 fix timeSinceLastCheck 2025-03-07 11:14:40 -08:00
Aryaman Kumar Sharma 6835671e0d Feat: Migrate Hardcoded Strings in Auth and About 2025-03-08 00:40:08 +05:30
mohadeseh safari ee9981864e Merge develop into feature/1484-star-prompt
- Resolve conflicts in Sidebar component
- Keep StarPrompt above support section
2025-03-07 13:29:24 -05:00
Alexander Holliday fec89bc680 Merge pull request #1884 from renovate-bot/renovate/axios-1.x-lockfile
Update dependency axios to v1.8.2
2025-03-07 09:19:46 -08:00
Alexander Holliday 79949a64a0 Merge pull request #1885 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.27.3
2025-03-07 09:19:30 -08:00
Alexander Holliday ccb783585f Merge pull request #1887 from renovate-bot/renovate/mui-color-input-6.x
Update dependency mui-color-input to v6
2025-03-07 09:19:16 -08:00
Jasneet Singh 897933ee07 Used default MUI Breakpoints and adjusted spacing between the wallet buttons 2025-03-07 10:08:55 -05:00
Mend Renovate ce9d5f1ae8 Update dependency mui-color-input to v6 2025-03-07 13:02:41 +00:00
Mend Renovate 2259f45dc0 Update material-ui monorepo to v7.27.3 2025-03-07 11:27:16 +00:00
Mend Renovate 199fd5cf38 Update dependency axios to v1.8.2 2025-03-07 11:27:05 +00:00
Skorpios 5fff398a25 Got rid of all overridden styles. 2025-03-06 17:56:30 -08:00
Skorpios a296a70bcd adjust padding with theme spacing for consistency. 2025-03-06 17:48:46 -08:00
Skorpios 4736f4f301 Got rid of button overrides and made a variant for text button. 2025-03-06 17:46:43 -08:00
Skorpios 5e730acd47 Declared variants for the vertical version of tabs in the theme. 2025-03-06 17:16:45 -08:00
Skorpios e76c3853f3 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-06 14:55:34 -08:00
Alexander Holliday bca3cdb62a Merge pull request #1883 from bluewave-labs/feat/map-checks
feat:use simplified map query
2025-03-06 13:55:14 -08:00
Alex Holliday dce8cf6ad5 use simplified map query 2025-03-06 13:54:04 -08:00
Alexander Holliday ca929cdb34 Merge pull request #1882 from bluewave-labs/feat/monitor-stats
feat: refactor to use monitor-stats
2025-03-06 12:34:10 -08:00
Alex Holliday 37958d7307 refactor to use monitor-stats 2025-03-06 12:04:49 -08:00
Owaise Imdad 6983b3a5f5 have added the accent in order to make sure that the number choosen is identified. 2025-03-07 01:10:06 +05:30
Owaise Imdad ffcc32eaf2 Merge branch 'bluewave-labs:develop' into Maintenance-start-time-style 2025-03-07 00:30:40 +05:30
Alexander Holliday 4199ba2e02 Merge pull request #1872 from Owaiseimdad/fix-1847-incident-page-truncate-of-string
fix-1847 truncate fix for selection component in incident page (or in general)
2025-03-06 10:29:32 -08:00
Alexander Holliday 6481b1d9ac Merge pull request #1881 from bluewave-labs/fix/depin-queries
Fix/depin queries
2025-03-06 09:48:58 -08:00
Alex Holliday e8fe3ceee3 reset 2025-03-06 09:48:10 -08:00
Alex Holliday b1736ef089 remove diagnostic 2025-03-06 09:39:58 -08:00
Alex Holliday d447231780 revert status page 2025-03-06 09:35:44 -08:00
Alex Holliday 995bd644e5 add map checks 2025-03-06 09:31:41 -08:00
Alex Holliday 23b22fad38 fix chart ID 2025-03-06 09:13:09 -08:00
Owaise Imdad ad44f34eab Refactored with comments for better understanding. 2025-03-06 14:05:15 +05:30
Alex Holliday 1da3f5d82c add explain results 2025-03-05 19:35:34 -08:00
Alex Holliday a92839cf4e new query 2025-03-05 19:23:23 -08:00
Alex Holliday eb6d14dc09 Merge branch 'develop' of github.com:bluewave-labs/bluewave-uptime into develop 2025-03-05 17:54:34 -08:00
mohadeseh safari 6825f72808 StarPrompt typography changes 2025-03-05 20:36:52 -05:00
Skorpios 4712bc75a6 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-05 16:31:35 -08:00
Alexander Holliday 8cfec01ad0 Merge pull request #1879 from bluewave-labs/feat/recent-checks-query
feat: recent checks query
2025-03-05 11:34:57 -08:00
Alex Holliday f089e31d69 add recent 2025-03-05 11:24:02 -08:00
Alex Holliday 1642311e50 add recent 2025-03-05 11:23:45 -08:00
Alex Holliday ed6ed07f6c remove unused import 2025-03-05 11:23:26 -08:00
Alex Holliday 94eb0e6298 add recent option 2025-03-05 11:21:37 -08:00
Alex Holliday d56b9e29ec add recent option 2025-03-05 11:21:17 -08:00
Alex Holliday 80ca492d61 update connectionstatus on initial data fetch 2025-03-05 11:20:54 -08:00
Alex Holliday 1d1c80ac19 add undefined state for device ticker 2025-03-05 11:20:23 -08:00
Alex Holliday 65343e1e4b Add recent to header 2025-03-05 11:19:48 -08:00
Alex Holliday 5ac2bfe7b5 add recent date format 2025-03-05 11:19:18 -08:00
Owaise Imdad 5c0c33a339 Made maxwidth to be default 100% and if the number is provided then we truncate. 2025-03-06 00:27:37 +05:30
Alexander Holliday 5355af29c6 Merge pull request #1878 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-03-05 09:48:56 -08:00
Mend Renovate 6df3b985af Update material-ui monorepo 2025-03-05 17:46:51 +00:00
Alexander Holliday 24f7d576f3 Merge pull request #1870 from Br0wnHammer/fix/fe/incidents-all-monitors
Fix: Incidents for All Monitors
2025-03-05 09:45:58 -08:00
Owaise Imdad ec3704552f Changed the logic to only depend on css styles and typography component. 2025-03-05 21:03:03 +05:30
Alex Holliday 5f8e43900f Merge branch 'develop' of github.com:bluewave-labs/bluewave-uptime into develop 2025-03-04 22:26:36 -08:00
Owaise Imdad 14b5cfc053 selectedItemName value to empty 2025-03-05 11:22:45 +05:30
Owaise Imdad 3376186ff3 Refactored the code. 2025-03-05 09:21:08 +05:30
Owaise Imdad a7a8bb2ea8 removed all console logs. 2025-03-05 09:16:49 +05:30
Owaise Imdad 3226035589 fix-1847 truncate fix for selection component. 2025-03-05 09:11:15 +05:30
Skorpios 055799a135 Used theme values for consistency instead of hardcoded values for padding. 2025-03-04 15:57:30 -08:00
Skorpios 1105a38080 Moved component to the regular components dir. 2025-03-04 15:56:09 -08:00
Skorpios 915e88d187 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-04 15:35:45 -08:00
Alexander Holliday 314968d1a1 Merge pull request #1871 from bluewave-labs/feat/depin-details-initial-data
feat: depin details initial data
2025-03-04 11:57:27 -08:00
Alex Holliday ceedf231bd fetch initial data 2025-03-04 11:53:04 -08:00
Alex Holliday a2c35c903b add getDistributedUptimeDetails 2025-03-04 11:52:50 -08:00
Aryaman Kumar Sharma 71569e1d50 Fix: Incidents for all monitors 2025-03-05 00:58:43 +05:30
Alex Holliday f490e13b2e remove devices 2025-03-04 11:19:21 -08:00
Owaise Imdad b3bfab05e6 Merged the conflict theme file. 2025-03-05 00:37:21 +05:30
Owaise Imdad a0401ffd2f Maitenance start time style fixes. 2025-03-05 00:32:04 +05:30
Alexander Holliday 3be1917cc6 Merge pull request #1868 from bluewave-labs/feat/depin-monitors-initial-data-fetch
feat: depin monitors initial data fetch, #1867
2025-03-04 10:24:06 -08:00
Alex Holliday a0830f0f34 add initial data fetch 2025-03-04 10:18:36 -08:00
Alex Holliday 2065f420d1 Add 2025-03-04 10:18:24 -08:00
Alexander Holliday f26893bb51 Merge pull request #1854 from RishavAdi/feature/sidebar-account-menu
feat(sidebar): Improve sidebar menu UI
2025-03-04 09:14:54 -08:00
Aditya 740887e61a fix(sidebar): Implement PR review feedback 2025-03-04 22:31:20 +05:30
Alexander Holliday ff2e89f841 Merge pull request #1845 from Owaiseimdad/StatusBarResolutionStyling
Added a new HOC in status bar in order to make sure it works on both …
2025-03-04 07:17:32 -08:00
Alex Holliday fdbbeff2ae Merge remote-tracking branch 'upstream/develop' into develop 2025-03-04 07:15:00 -08:00
Alexander Holliday b8efb561ec Merge pull request #1865 from Owaiseimdad/FIX-1847-Incident-Page-Style-Issues
Fix 1847 incident page style issues
2025-03-04 07:14:38 -08:00
Jasneet Singh 825a2e2bc4 Refactor wallet component styles for improved responsiveness and alignment 2025-03-04 08:36:50 -05:00
Owaise Imdad c5326e5d6a Added a constant and utilised a responsive-values in MUI. 2025-03-04 15:53:40 +05:30
Aditya 40a8d2995e Merge remote-tracking branch 'upstream/develop' into feature/sidebar-account-menu 2025-03-04 15:36:31 +05:30
Owaise Imdad b49096cfe4 Extra space removed. 2025-03-04 13:39:48 +05:30
Owaise Imdad eafaa415ec Removed redundant code. 2025-03-04 13:38:52 +05:30
Owaise Imdad 4d437a8898 FIX-1847 added all the changes and removed the truncate algo. 2025-03-04 13:36:42 +05:30
Alex Holliday 576f39e4e3 Merge branch 'develop' of github.com:bluewave-labs/bluewave-uptime into develop 2025-03-03 21:43:51 -08:00
Owaise Imdad 0eebd2929b FIX-1847 added methods in string utils in order to utilise in our code. 2025-03-04 09:00:37 +05:30
Owaise Imdad 43cf79f93e Merge branch 'bluewave-labs:develop' into FIX-1847-Incident-Page-Style-Issues 2025-03-04 08:35:29 +05:30
Owaise Imdad 751e83f909 FIX-1847 incident page changes with respect to length and width. 2025-03-04 08:30:44 +05:30
Owaise Imdad f3537131ef made the component to come outside of the main function. 2025-03-04 06:09:54 +05:30
Skorpios c607f78e88 Merge remote-tracking branch 'upstream/develop' into feat/notification-modal 2025-03-03 14:39:17 -08:00
Alexander Holliday 78ce58a6e2 Merge pull request #1863 from bluewave-labs/fix/status-page-validation
fix: disallow reserved chars from status page valiation, resolves #1826
2025-03-03 14:27:53 -08:00
Alex Holliday 457c187240 disallow reserved chars from status page valiation 2025-03-03 14:16:24 -08:00
Gorkem Cetin (BWL) 734b3c2450 Update pull_request_template.md for hardcoded dimensions 2025-03-03 16:56:21 -05:00
Alexander Holliday f7f80d2ba0 Merge pull request #1862 from bluewave-labs/fix/group-depin-items
group depin settings items
2025-03-03 13:36:47 -08:00
mohadeseh safari da2d41ca07 Modify 2025-03-03 15:58:03 -05:00
Alexander Holliday d1b3311942 Merge pull request #1849 from Br0wnHammer/fix/fe/infrastructure-page
Fix: Infrastructure Details Page Design
2025-03-03 11:53:08 -08:00
Aryaman Kumar Sharma 053fc45296 Fix: Infrastructure Details Page Design 2025-03-04 01:03:00 +05:30
Alex Holliday 76682cc1d9 group depin settings items 2025-03-03 11:29:43 -08:00
Aryaman Kumar Sharma e9ae301af7 Fix: Infrastructure Details Page Design 2025-03-04 00:58:59 +05:30
Alexander Holliday 25357257b4 Merge pull request #1850 from Owaiseimdad/FIX_1848_smallUIFixes
FIX-1848 UI design changes
2025-03-03 11:12:33 -08:00
Alexander Holliday 0823447707 Merge pull request #1857 from bluewave-labs/feat/test-dist-monitor
feat: test DePIN monitor
2025-03-03 10:38:54 -08:00
Alexander Holliday b2188fdfa1 Merge pull request #1858 from renovate-bot/renovate/prettier-3.x-lockfile
chore(deps): update dependency prettier to v3.5.3
2025-03-03 10:38:39 -08:00
Alexander Holliday c1d062f220 Merge pull request #1860 from renovate-bot/renovate/maplibre-gl-5.x
fix(deps): update dependency maplibre-gl to v5.2.0
2025-03-03 10:28:31 -08:00
Owaise Imdad 8dc353ce90 Removed the constant values. 2025-03-03 23:14:21 +05:30
Owaise Imdad da64cd0a56 FIX-1725 minor UI changes. 2025-03-03 23:12:17 +05:30
Owaise Imdad d3a769b638 Merge branch 'bluewave-labs:develop' into StatusBarResolutionStyling 2025-03-03 22:19:49 +05:30
mohadeseh safari da989a7708 Add Sidebar and StarPrompt components 2025-03-03 11:27:43 -05:00
Mend Renovate 1662927012 fix(deps): update dependency maplibre-gl to v5.2.0 2025-03-03 15:43:42 +00:00
Aditya b04fc145a2 fix(sidebar): Address PR feedback 2025-03-03 14:51:03 +05:30
Aryaman Kumar Sharma 696fb88c11 Fix: Infrastructure Details Page Design 2025-03-03 10:55:35 +05:30
Owaise Imdad 8f9c388953 FIX-1848 addressed the comments in order to modify the theme implementation. 2025-03-03 09:16:25 +05:30
Mend Renovate 8b8b8d5ae8 chore(deps): update dependency prettier to v3.5.3 2025-03-03 02:51:49 +00:00
Alexander Holliday a763c444fa Merge pull request #1853 from Cihatata/1665-language=selection
feat: 1665 language selection from settings
2025-03-02 13:46:11 -08:00
Alexander Holliday 761190c44b Merge pull request #1851 from renovate-bot/renovate/fontsource-monorepo
Update dependency @fontsource/roboto to v5.2.5
2025-03-02 12:53:56 -08:00
Alex Holliday cfece34e37 Merge branch 'develop' of github.com:bluewave-labs/bluewave-uptime into develop 2025-03-02 12:43:45 -08:00
Alexander Holliday 70a901654d Merge pull request #1841 from renovate-bot/renovate/react-monorepo
chore(deps): update dependency eslint-plugin-react-hooks to v5.2.0
2025-03-02 12:42:28 -08:00
Alex Holliday 89d2226fb8 add env var check 2025-03-02 12:34:51 -08:00
Alex Holliday 16e51e5707 remove unused import 2025-03-02 12:34:23 -08:00
Owaise Imdad 641aeff08c FIX-1484 added in new colors for extensibility and maintainability. 2025-03-02 23:13:32 +05:30
Owaise Imdad 95ccccc396 FIX-1848 added theme for alerts specfic. 2025-03-02 22:59:00 +05:30
Owaise Imdad 649b5ad2a4 FIX-1848 removed the border and background colour. 2025-03-02 21:23:15 +05:30
Mend Renovate 77adb3e0ec fix(deps): update dependency @fontsource/roboto to v5.2.5 2025-03-02 10:29:50 +00:00
Owaise Imdad 9edfd7185b Merge branch 'bluewave-labs:develop' into FIX_1848_smallUIFixes 2025-03-02 12:57:51 +05:30
Owaise Imdad fe7afab57c Merge branch 'bluewave-labs:develop' into FIX-1847-Incident-Page-Style-Issues 2025-03-02 12:56:56 +05:30
Owaise Imdad 039d471af7 FIX-1847 implemented the logic. 2025-03-02 12:51:36 +05:30
Skorpios b44d142920 Implemented notification modal. 2025-03-01 22:36:07 -08:00
Aditya 4f6c29cd9a feat(sidebar): Improve sidebar menu UI 2025-03-02 09:13:30 +05:30
cihatata a549e42c43 feat: Load automatic language settings on app startup 2025-03-02 02:43:53 +03:00
cihatata a72d0029a1 feat: 1665 language selection from settings 2025-03-02 02:21:24 +03:00
Gorkem Cetin (BWL) 41170f16bc Update CONTRIBUTING.md 2025-03-01 15:49:01 -05:00
Gorkem Cetin (BWL) 7eea24a63e Update README.md 2025-03-01 15:46:47 -05:00
Owaise Imdad d123bed875 FIX-1848 minor theme fixes. 2025-03-01 22:43:35 +05:30
Owaise Imdad b6726fba54 FIX-1848 removed the unwanted box element as it does not serve any purpose. 2025-03-01 22:34:33 +05:30
Owaise Imdad 4820c1ee8a FIX-1848 made changes in the contents tab in the status page. 2025-03-01 21:56:21 +05:30
Aryaman Sharma 3632e1d182 Fix: Infrastructure Details Page Design 2025-03-01 10:30:51 +05:30
Aryaman Kumar Sharma 4ccc36acc2 Fix: Infrastructure Details Page Design 2025-03-01 10:21:39 +05:30
Owaise Imdad 947f5ff773 Added a new HOC in status bar in order to make sure it works on both the resolution, high and low. 2025-03-01 08:10:16 +05:30
Jasneet Singh 4b63076acc Add responsive styles for wallet components and integrate CSS 2025-02-28 21:13:03 -05:00
Alexander Holliday f7a172791e Merge pull request #1842 from bluewave-labs/feat/DePIN-status-page-theme
feat: DePIN status page theme
2025-02-28 14:33:00 -08:00
Alexander Holliday 1ea5a97761 Merge pull request #1843 from bluewave-labs/feat/DePIN-monitors-pagination
feat: add pagination to DePIN Monitors
2025-02-28 14:32:47 -08:00
Alex Holliday 960b5330e0 add pagination 2025-02-28 14:31:58 -08:00
Alex Holliday 5ff7e21213 add useEffect hook to set theme to dark, restore to original mode on exit 2025-02-28 13:50:28 -08:00
Alex Holliday d88ebdaff3 add theme switcher 2025-02-28 13:50:02 -08:00
Alex Holliday 831cf8cde5 add light color for chatBot background 2025-02-28 13:49:38 -08:00
Mend Renovate b547981bfd Update dependency eslint-plugin-react-hooks to v5.2.0 2025-02-28 19:40:40 +00:00
Jasneet Singh 64166d2539 updated 2025-02-27 20:11:25 -05:00
Jasneet Singh 591c531192 updated 2025-02-27 20:11:25 -05:00
Jasneet Singh 23672cbf34 Enhance wallet button layout for better responsiveness and alignment. 2025-02-27 20:11:25 -05:00
Alexander Holliday 724f1c98d6 Merge pull request #1839 from bluewave-labs/feat/DePIN-status-header
feat: set monitor name instead of placeholder data
2025-02-27 14:41:47 -08:00
Alexander Holliday 777a518da6 Merge pull request #1838 from bluewave-labs/feat/status-table-onclick
feat: status table onclick
2025-02-27 14:31:52 -08:00
Alex Holliday 1b50a17cec set monitor name instead of placeholder data 2025-02-27 14:31:17 -08:00
Alex Holliday ccde912c3e center align URL 2025-02-27 14:21:32 -08:00
Alex Holliday 7d3ea8ac19 move hover to stack 2025-02-27 14:15:52 -08:00
Alexander Holliday fc77c7e9d6 Merge pull request #1827 from FlowerC9/fix/username-flexibility-added
Fix/username flexibility added
2025-02-27 12:04:46 -08:00
Alexander Holliday 0971c222ad Merge pull request #1836 from renovate-bot/renovate/react-router-monorepo
Update react-router monorepo to v6.30.0
2025-02-27 11:30:19 -08:00
Alexander Holliday 5bf13ecb86 Merge pull request #1837 from renovate-bot/renovate/material-ui-monorepo
Update dependency @mui/x-data-grid to v7.27.2
2025-02-27 11:29:57 -08:00
Alex Holliday 69f39e76a0 add link and style for public status page 2025-02-27 11:27:20 -08:00
Alex Holliday ac8c01fd81 add an onClick and sx config for specific cells to be passed in header config 2025-02-27 11:27:03 -08:00
Mend Renovate e882250c33 Update dependency @mui/x-data-grid to v7.27.2 2025-02-27 18:59:40 +00:00
Alexander Holliday 461006c1b7 Merge pull request #1763 from Br0wnHammer/fix/fe/incidents-text
Fix: No Incidents Message
2025-02-27 10:58:54 -08:00
Mend Renovate 4c142c6e16 fix(deps): update react-router monorepo to v6.30.0 2025-02-27 16:25:17 +00:00
Aryaman Sharma cd1b3043ca Feat: Empty View Component 2025-02-27 11:04:27 +05:30
Aryaman Kumar Sharma 3650a6162a Feat: Empty View Component 2025-02-27 11:00:36 +05:30
Monojit Tewari 33f8a483c2 relative width applied to sidebar profile view 2025-02-27 09:55:50 +05:30
Monojit Tewari cdc2306e4c relative width applied to sidebar profile view 2025-02-27 09:49:39 +05:30
Alexander Holliday 1cadb2c45f Merge pull request #1834 from bluewave-labs/feat/responsive-status
feat: status page update
2025-02-26 15:54:20 -08:00
Alex Holliday 34bb86d166 status page update 2025-02-26 15:53:10 -08:00
Alexander Holliday ee2a1729d0 Merge pull request #1833 from bluewave-labs/fix/breadcrumbs
fix: breadcrumbs, resolves #1829
2025-02-26 14:01:56 -08:00
Alex Holliday 1166da1ab0 fix breadcrumbs 2025-02-26 14:00:51 -08:00
Alexander Holliday a1b8d0952a Merge pull request #1832 from bluewave-labs/feat/subheader-render-condition
feat: conditionally render subheader
2025-02-26 13:39:23 -08:00
Alex Holliday 789c6d7a4a conditionally render subheader 2025-02-26 13:38:25 -08:00
Alexander Holliday 585ad9ae6c Merge pull request #1825 from renovate-bot/renovate/axios-1.x-lockfile
fix(deps): update dependency axios to v1.8.1
2025-02-26 13:32:39 -08:00
Alexander Holliday e2e46ef777 Merge pull request #1828 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo
2025-02-26 13:31:52 -08:00
Alexander Holliday 1ef8ec1643 Merge pull request #1831 from bluewave-labs/fix/DePIN-status-header
fix: Depin header - change direction of stack for mobile
2025-02-26 12:43:05 -08:00
Alex Holliday e4a837a20a change direction of stack for mobile 2025-02-26 12:38:03 -08:00
Alexander Holliday 29d6d01ce7 Merge pull request #1830 from bluewave-labs/feat/responsive-status-page
feat: make status page responsive
2025-02-26 11:44:40 -08:00
Alex Holliday 9d2743798f make status page responsive 2025-02-26 11:41:36 -08:00
Mend Renovate 1aade86a8f fix(deps): update material-ui monorepo 2025-02-26 16:22:01 +00:00
Monojit Tewari f1cf836bdc added flexibility to add non-ascii letter or spaces in username 2025-02-26 16:05:41 +05:30
Mend Renovate 0d2c07cc43 fix(deps): update dependency axios to v1.8.1 2025-02-26 10:08:07 +00:00
Monojit Tewari 372b673886 added flexibility to add non-ascii letter or spaces in username 2025-02-26 14:36:18 +05:30
Alexander Holliday 4e7600067c Merge pull request #1824 from bluewave-labs/fix/remove-prism-components
fix: remove accidental prism components
2025-02-25 11:11:54 -08:00
Alex Holliday ae1fc9a297 remove accidental prism components 2025-02-25 11:11:12 -08:00
Alexander Holliday 2f3be9a9f8 Merge pull request #1823 from bluewave-labs/fix/maintenance-page
fix: re-commit changes for maintenance page
2025-02-25 11:05:12 -08:00
Alex Holliday fbd627429b re-commit changes 2025-02-25 11:04:38 -08:00
Alexander Holliday acae8108cf Merge pull request #1822 from renovate-bot/renovate/material-ui-monorepo
Update dependency @mui/x-charts to v7.27.1
2025-02-25 10:56:39 -08:00
Alexander Holliday eceae5b513 Merge pull request #1821 from bluewave-labs/fix/discussion-icon-stroke-width
Fix/discussion icon stroke width
2025-02-25 10:11:56 -08:00
mohadeseh safari dc06774999 fix: adjust discussions icon size to match other sidebar icons #1810 2025-02-25 13:05:48 -05:00
mohadeseh safari b2a41c3f78 fix: replace Material-UI chat icon with custom SVG for consistent stroke width
- Created custom discussions.svg icon with 1.5px stroke width
- Replaced ChatBubbleOutlineRoundedIcon with custom icon
- Ensures consistent styling with other sidebar icons

Fixes #1810
2025-02-25 13:05:48 -05:00
Aryaman Kumar Sharma f4021e8cd5 Feat: Empty View Component for Chart Boxes 2025-02-25 23:10:35 +05:30
Alexander Holliday dd7cfb1a88 Merge pull request #1817 from bluewave-labs/feat/integration-button
Made notification integrations button.
2025-02-25 09:22:43 -08:00
Mend Renovate af1c1f6c7f Update dependency @mui/x-charts to v7.27.1 2025-02-25 17:14:10 +00:00
Alexander Holliday ed6c2b234e Merge pull request #1808 from renovate-bot/renovate/react-icons-5.x
Update dependency react-icons to v5.5.0
2025-02-25 09:13:55 -08:00
Alexander Holliday c1f286cb34 Merge pull request #1818 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.27.1
2025-02-25 09:13:27 -08:00
Mend Renovate e87d5e6336 Update material-ui monorepo to v7.27.1 2025-02-25 11:06:41 +00:00
Skorpios 31e01d7ac8 Made notification integrations button. 2025-02-24 22:08:06 -08:00
Alexander Holliday 982cd148f6 Merge pull request #1816 from bluewave-labs/fix/infra-id
fix: infra monitor id
2025-02-24 20:27:23 -08:00
Alex Holliday d674479708 fix infra monitor id 2025-02-24 20:26:20 -08:00
Alexander Holliday 121730466e Merge pull request #1814 from bluewave-labs/fix/config-depin
fix: config depin
2025-02-24 16:04:00 -08:00
Alex Holliday 5165d61793 return early if creating 2025-02-24 16:02:35 -08:00
Alex Holliday 08af15f8a5 rename hook, use correct hook 2025-02-24 15:56:00 -08:00
Alex Holliday aea2977f62 use correct hook 2025-02-24 15:54:17 -08:00
Alexander Holliday 20fd2e313c Merge pull request #1813 from bluewave-labs/fix/logo-height
fix: add fixed max logo height to DePIN status page
2025-02-24 15:42:14 -08:00
Alex Holliday 503da2a312 add fixed max logo height to DePIN status page 2025-02-24 15:41:14 -08:00
Alexander Holliday 987774aca8 Merge pull request #1812 from bluewave-labs/feat/prism-to-checkmate
missing strings
2025-02-24 14:39:06 -08:00
Alex Holliday 454f98a5ac missing strings 2025-02-24 14:38:20 -08:00
Alexander Holliday d683d011ff Merge pull request #1811 from bluewave-labs/feat/prism-to-checkmate
feat: prism to checkmate
2025-02-24 14:36:30 -08:00
Alexander Holliday 36bc5571e0 Update README.md 2025-02-24 14:35:33 -08:00
Alex Holliday 88fc158d9f merge 2025-02-24 14:33:25 -08:00
Alexander Holliday c94c0261ab Merge pull request #1809 from bluewave-labs/fix/settings-version-request
fox: remove auth header for version request
2025-02-24 13:20:56 -08:00
Alex Holliday bbd6742839 remove auth header for version request 2025-02-24 13:19:32 -08:00
Mend Renovate 201e2705f8 fix(deps): update dependency react-icons to v5.5.0 2025-02-24 18:23:45 +00:00
Alexander Holliday 6b2fb3083d Merge pull request #1807 from bluewave-labs/feat/sync
feat: prism sync
2025-02-24 10:22:58 -08:00
Alex Holliday d3785bc27b package-lock 2025-02-24 10:16:33 -08:00
Alex Holliday 0cb8df9720 Merge remote-tracking branch 'prism/develop' into feat/sync 2025-02-24 09:51:42 -08:00
Alexander Holliday a8ffba710d Merge pull request #1795 from bluewave-labs/feat/du-status
feat: DePIN status page
2025-02-24 09:11:58 -08:00
Alexander Holliday 0b6410fc4e Merge pull request #1804 from renovate-bot/renovate/reduxjs-toolkit-2.x
Update dependency @reduxjs/toolkit to v2.6.0
2025-02-24 09:11:00 -08:00
Mend Renovate 4801ddbaac Update dependency @reduxjs/toolkit to v2.6.0 2025-02-24 02:10:47 +00:00
Alexander Holliday 5253cea0b6 Merge pull request #21 from uprockcom/status-page-subheader
Status page subheader #3
2025-02-23 17:47:38 -08:00
Alex Holliday 946bfaf16c remove defautl empty string props 2025-02-23 17:47:02 -08:00
tunckiral 77ca3e1ecd fix: update fallback base URL for API to localhost:5000 2025-02-23 16:06:51 -05:00
tunckiral 30c9e518bc refactor: replace SubHeader component with a new implementation and update translations 2025-02-23 16:03:38 -05:00
tunckiral 9772b3b1f2 Merge branch 'develop' into status-page-subheader 2025-02-22 15:45:39 -05:00
tunckiral db0c1ad4a4 replace Greeting component with SubHeader for improved layout and functionality 2025-02-22 15:44:05 -05:00
Alexander Holliday e4ec7b5caf Merge pull request #1797 from bluewave-labs/json-gb-additions
Addition of monitor status messages.
2025-02-22 08:54:08 -08:00
Alexander Holliday 95b4108b0b Merge pull request #1796 from renovate-bot/renovate/maplibre-gl-5.x
Update dependency maplibre-gl to v5.1.1
2025-02-22 08:52:02 -08:00
Alexander Holliday e5b0039bdb Merge pull request #1798 from renovate-bot/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.5.2
2025-02-22 08:51:38 -08:00
Alexander Holliday 28bca34c4b Merge pull request #20 from uprockcom/feat/status-graph
Feat/status graph
2025-02-22 08:50:38 -08:00
Mend Renovate 341b385a44 Update dependency prettier to v3.5.2 2025-02-22 06:35:13 +00:00
Gorkem Cetin (BWL) 1d678f5ae1 Update README.md 2025-02-21 20:33:38 -05:00
Gorkem Cetin (BWL) 2b47db5eb1 Update README.md 2025-02-21 19:21:15 -05:00
Skorpios be2377ea0a Addition of monitor status messages. 2025-02-21 15:37:51 -08:00
Ridvan Karatas 1ae0e570c4 remove sync-workflow 2025-02-22 02:09:12 +03:00
Alex Holliday 829b16e2b7 fix title/name rendering 2025-02-21 15:07:20 -08:00
Alex Holliday 6f2a60acd9 add network operation for fetching distributed status page 2025-02-21 15:06:40 -08:00
Alex Holliday 105b4e124f add timeframe header and monitorslist 2025-02-21 15:06:11 -08:00
Alex Holliday 395d7412eb new DePIN status chart 2025-02-21 15:05:47 -08:00
Alexander Holliday c7284dc68a Merge pull request #18 from uprockcom/feat/add-standard-monitors
feat: allow attaching standard monitors to depin status page
2025-02-21 11:26:37 -08:00
Alex Holliday 844a2f0ae3 use new hook, fix logo and monitor loading 2025-02-21 11:24:18 -08:00
Alex Holliday b9a89469c6 add monitors
list
2025-02-21 11:23:38 -08:00
Alex Holliday c467933021 remove console log 2025-02-21 11:22:49 -08:00
Alex Holliday 09a066426a handle deleting submonitors 2025-02-21 11:22:20 -08:00
Alex Holliday f98b07dba3 add DU specific hook 2025-02-21 11:21:56 -08:00
Mend Renovate 95dbdbca1c Update dependency maplibre-gl to v5.1.1 2025-02-21 15:15:27 +00:00
tunckiral 0ff7d032a9 refactor Subheader component to Greeting, update structure and styling for improved clarity 2025-02-21 06:35:47 -05:00
tunckiral bb51cf1f04 update fallback API URL and add Heading component for consistent typography 2025-02-21 06:17:34 -05:00
Alex Holliday 28a9707885 update status page 2025-02-20 19:02:33 -08:00
Alex Holliday 7ea0e0134c add status header and chatbot 2025-02-20 19:02:24 -08:00
Alex Holliday e22920ebf9 add a standard container 2025-02-20 19:02:01 -08:00
Alex Holliday b44ac7449c add secondary success color, add chatbot colors 2025-02-20 19:01:48 -08:00
Alex Holliday 0669beea74 add html2canvas 2025-02-20 19:01:30 -08:00
Alex Holliday 84c67f6ab3 add share component 2025-02-20 19:00:15 -08:00
Alex Holliday f8eb6e9bc2 add InfoBox 2025-02-20 19:00:06 -08:00
Alex Holliday e10bf56081 allow attaching standard monitors to depin status page 2025-02-20 16:23:22 -08:00
Alexander Holliday 1c1f28462c Merge pull request #17 from uprockcom/feat/share
feat: share
2025-02-20 15:37:35 -08:00
Alex Holliday 0e1ffe7cef add default filename, use monitor name for filename 2025-02-20 15:20:17 -08:00
Alex Holliday b0cadf66bf add sharing feature 2025-02-20 15:18:14 -08:00
Alex Holliday aa1cd5313e set button height 2025-02-20 15:18:03 -08:00
Alex Holliday 8e23f35e76 Add sharing component 2025-02-20 15:17:47 -08:00
Alex Holliday 0433c2ee88 add html2canvas 2025-02-20 15:17:32 -08:00
Alex Holliday 7a0c465b67 refactor theme 2025-02-20 15:17:07 -08:00
Alexander Holliday 575c01b096 Merge pull request #1793 from bluewave-labs/fix/fe/create-maintenance-window
Fix create maintenance window issue
2025-02-20 13:40:30 -08:00
Gorkem Cetin 3ca1764201 Update README.md 2025-02-20 15:40:58 -05:00
Gorkem Cetin 0408dd3a65 Who starred Checkmate? 2025-02-20 15:40:26 -05:00
Alexander Holliday 0b57d8cdb9 Merge pull request #16 from uprockcom/feat/chatbot
feat: chatbot, resolves #13
2025-02-20 12:04:35 -08:00
Ridvan Karatas 7345a81d22 Fix: Use cherry-pick instead of merge for upstream sync 2025-02-20 22:58:04 +03:00
Ridvan Karatas 97e7074bf9 Update sync-upstream-frontend.yml
Fix: Always fetch upstream changes and create PR
2025-02-20 22:55:24 +03:00
Alex Holliday 73723da1d1 add chatbot component 2025-02-20 11:48:53 -08:00
Alex Holliday 8ccbbfe745 add chatbot 2025-02-20 11:48:46 -08:00
Alex Holliday 15be7d723c add chatbot colors 2025-02-20 11:48:09 -08:00
Alex Holliday 05040f21a2 add style prop to Dot 2025-02-20 11:47:30 -08:00
Alex Holliday b04d6c0dab push test 2025-02-20 11:46:09 -08:00
Ridvan Karatas e514d4556e Ensure correct upstream sync on develop branch for frontend 2025-02-20 22:42:31 +03:00
Ridvan Karatas 42a01e7208 Update sync-upstream-frontend.yml
Fix: Ensure correct branch 'develop' in upstream fetch
2025-02-20 22:38:14 +03:00
Ridvan Karatas 700915f0c0 Merge pull request #15 from uprockcom/ridvankaratas-patch-3
Fix: Use merge instead of rebase for upstream sync
2025-02-20 22:26:52 +03:00
Ridvan Karatas f22edd1f1d Update sync-upstream-frontend.yml
Fix: Use merge instead of rebase for upstream sync
2025-02-20 22:26:35 +03:00
Ridvan Karatas c2dcbc2369 Merge pull request #14 from uprockcom/ridvankaratas-patch-2
Fix: Proper upstream sync with rebase
2025-02-20 22:20:28 +03:00
Ridvan Karatas 9611a9d745 Update sync-upstream-frontend.yml 2025-02-20 22:19:48 +03:00
Alexander Holliday ab49db3a01 Merge pull request #12 from uprockcom/feat/du-header
feat: Distributed Uptime Status Header, resolves #2
2025-02-20 11:08:10 -08:00
Alexander Holliday eb026f4197 Merge pull request #9 from uprockcom/feat/standardized-container
Feat/standardized container
2025-02-20 11:07:57 -08:00
Ridvan Karatas b35c9d1fd2 Merge pull request #11 from uprockcom/ridvankaratas-patch-1
Update sync-upstream-frontend.yml
2025-02-20 22:03:26 +03:00
Alex Holliday 8e405b0ab7 Add status header 2025-02-20 11:03:15 -08:00
Alex Holliday 48475c4767 add colors to theme for DU Status Header 2025-02-20 11:02:58 -08:00
Ridvan Karatas 39c7786701 Update sync-upstream-frontend.yml 2025-02-20 22:02:49 +03:00
Alex Holliday 712af6dc2d remove borderStyle 2025-02-20 11:02:36 -08:00
Ridvan Karatas 6fdcaafb23 Merge pull request #10 from uprockcom/shadow-test
created workflow to test commits
2025-02-20 21:58:09 +03:00
Ridvan Karatas 28c6d008c3 created workflow to test commits 2025-02-20 21:46:36 +03:00
Vishnu Sreekumaran Nair 673df3a7a4 correct handleSelectMonitors function to align with Search component 2025-02-20 12:58:28 -05:00
Alex Holliday c9e655faeb use standard containers, style map 2025-02-20 09:46:59 -08:00
Alex Holliday fb4fa32312 add infobox component 2025-02-20 09:46:40 -08:00
Alex Holliday 49fe6e2ee4 add standard container component 2025-02-20 09:46:29 -08:00
Alexander Holliday e62c469abd Merge pull request #8 from uprockcom/feat/ticker-redesign
feat: ticker redesign
2025-02-20 09:04:13 -08:00
Alexander Holliday e208dc1bce Merge pull request #7 from uprockcom/feat/map-and-ticker
feat: map and ticker, resolves #4
2025-02-20 09:03:53 -08:00
Alex Holliday 13a6b79df7 replace list with table 2025-02-19 14:54:21 -08:00
Alex Holliday 2d182ba9d2 remove console.log 2025-02-19 14:53:58 -08:00
Alex Holliday dfbc0ca2e8 use correct proptype 2025-02-19 14:47:00 -08:00
Vishnu Sreekumaran Nair ee0a02d46e fix monitor selection issue by correctly extracting selected monitors from event 2025-02-19 16:40:26 -05:00
Alex Holliday ebc8a49f98 reorganize layout 2025-02-19 13:40:06 -08:00
Alex Holliday bfd2330bba update proptypes 2025-02-19 13:37:27 -08:00
Alex Holliday 3818c9e5a6 add an optional Icon to statbox 2025-02-19 13:36:29 -08:00
Vishnu Sreekumaran Nair a9ebb8abc1 fetch monitors data from filteredmonitors object to include type data 2025-02-19 15:52:16 -05:00
Vishnu Sreekumaran Nair 2ccdcdd480 resolve react ownerState warning by correctly passing CalendarIcon 2025-02-19 14:45:40 -05:00
Aryaman Kumar Sharma 2879126565 Feat: Empty View Low Level Component 2025-02-19 22:32:09 +05:30
Gorkem Cetin (BWL) 290e9226e5 Mention be/fe better 2025-02-18 20:53:02 -05:00
Gorkem Cetin (BWL) f34c0c633f Add backend repo url 2025-02-18 20:51:00 -05:00
Alexander Holliday fd6fb71ec8 Merge pull request #1 from uprockcom/sync-fe
sync
2025-02-18 15:45:08 -08:00
Alex Holliday 7e4e6b7d1d sync 2025-02-18 15:44:19 -08:00
Alexander Holliday 1235c2f34a Merge pull request #1790 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-02-18 12:16:49 -08:00
Mend Renovate 50ef12cd7b Update material-ui monorepo 2025-02-18 20:08:25 +00:00
Alexander Holliday c438a72041 Merge pull request #1789 from bluewave-labs/fix/fe/maintenance-background
Fix Maintenance page layout issue
2025-02-18 12:07:43 -08:00
Alex Holliday b856ce3dd1 use standard spacing 2025-02-18 12:06:58 -08:00
Vishnu Sreekumaran Nair 96378a5581 remove box container and move fallback outisde wrapper 2025-02-18 13:53:02 -05:00
Alexander Holliday e5246e82cc Merge pull request #1786 from Br0wnHammer/remove-ds-store
Fix: Removed .DS_Store
2025-02-18 10:15:48 -08:00
Alexander Holliday 1174f9d728 Merge pull request #1787 from YinDongFang/feature/auth
Setting Authorization in axios interceptor instead of passing from UI component
2025-02-18 10:15:14 -08:00
Alexander Holliday af979a5d0b Merge pull request #1788 from renovate-bot/renovate/react-i18next-15.x-lockfile
Update dependency react-i18next to v15.4.1
2025-02-18 10:05:09 -08:00
Alex Holliday 6dbb6dad7e initial commit 2025-02-18 09:47:54 -08:00
Alex Holliday 2157b04ced update gitignore 2025-02-18 09:24:34 -08:00
Mend Renovate 55fc406b38 Update dependency react-i18next to v15.4.1 2025-02-18 11:54:47 +00:00
dongfang 01ca05a13f remove jwtDecode package 2025-02-18 06:21:40 +00:00
dongfang e8c0a98a7b get user by thunkApi instead of jwtDecode token 2025-02-18 06:21:30 +00:00
dongfang f2ae99768a remove authToken reading and passing in UI component and hooks 2025-02-18 04:56:26 +00:00
dongfang 6a1e5532e4 remove authToken passing in redux thunks 2025-02-18 04:56:26 +00:00
dongfang 9e0532baf1 remove Authorization setting in NetworkService apis 2025-02-18 04:56:26 +00:00
dongfang 1410c23c99 get authToken and set Authorization header in axios request interceptor 2025-02-18 04:56:26 +00:00
Aryaman Kumar Sharma bb30e98104 Removed .DS_Store 2025-02-18 09:50:36 +05:30
Alexander Holliday d3fa71f114 Merge pull request #1785 from bluewave-labs/reorg/client
remove npmrc, copy readme
2025-02-17 19:16:19 -08:00
Alex Holliday 1b8d632c1e remove npmrc, copy readme 2025-02-17 19:15:39 -08:00
Alexander Holliday 21502430c8 Merge pull request #1784 from bluewave-labs/reorg/client
reorg: extract server
2025-02-17 19:14:20 -08:00
Alex Holliday 24736a7bc1 extract server 2025-02-17 19:08:36 -08:00
Alexander Holliday 93588cfa3f Merge pull request #1612 from bluewave-labs/feat/be/webhook-integrations
Add Discord webhook notification support
2025-02-17 18:11:22 -08:00
Skorpios 4ef2b294bb Used string service instead of hardcoded value. 2025-02-17 17:33:54 -08:00
Skorpios 5be17af4c1 Used 1 validation schema for all platforms. 2025-02-17 17:29:45 -08:00
Skorpios 03a938de8a Check if platform type is accepted before formatting the message. 2025-02-17 09:55:19 -08:00
Skorpios afc9d46bd7 Refactored notification messsages into an array of acceptable types. 2025-02-17 09:39:28 -08:00
Skorpios c4168a5d75 Removed null and replace with undefined. 2025-02-17 09:24:21 -08:00
Skorpios d710ec0f6c Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-17 09:12:47 -08:00
Skorpios f22b67ad0a Use the localization service for user facing strings. 2025-02-17 09:12:11 -08:00
Alexander Holliday 48f5a52f70 Merge pull request #1782 from bluewave-labs/fix/be/remove-ngrok
fix: remove ngrok
2025-02-17 08:52:57 -08:00
Alex Holliday 1068078b83 remove ngrok 2025-02-17 08:49:42 -08:00
Alexander Holliday b4ad2460bb Merge pull request #1781 from bluewave-labs/fix/fe/sidebar-selection
fix: sidebar selection
2025-02-17 08:46:21 -08:00
Alex Holliday a53bf1225d replce strict equality evaluation with to match partial paths 2025-02-17 08:44:24 -08:00
Skorpios e4e3f9cc63 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-17 08:31:21 -08:00
Alexander Holliday e3271513b4 Merge pull request #1777 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.41.2
2025-02-17 08:25:52 -08:00
Alexander Holliday d74b5df871 Merge pull request #1778 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.27.0
2025-02-17 08:25:24 -08:00
Mend Renovate a78849487f Update material-ui monorepo to v7.27.0 2025-02-17 11:28:41 +00:00
Skorpios 6152679dfa Update Docs. 2025-02-16 20:33:47 -08:00
Skorpios ff2b3b4e10 Removed timing request for the webhook. 2025-02-16 20:28:34 -08:00
Skorpios 55c1a1c233 Moved validation to the controller. 2025-02-16 20:21:44 -08:00
Skorpios 8409571d57 Defined new schema for the config object. 2025-02-16 19:32:52 -08:00
Skorpios 07882e045b Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-16 18:48:00 -08:00
Gorkem Cetin (BWL) d3f7a72952 Add Elestio to providers 2025-02-16 14:24:55 -05:00
Mend Renovate aa293a9665 Update dependency bullmq to v5.41.2 2025-02-16 19:10:00 +00:00
Gorkem Cetin (BWL) c4a6110f28 Add sponsors 2025-02-16 12:46:31 -05:00
Alexander Holliday 42085d706d Merge pull request #1754 from YinDongFang/feature/json-validation
Implement json validation UI
2025-02-15 08:48:33 -08:00
Alexander Holliday c3849a79fc Merge pull request #1774 from bluewave-labs/gorkem-bwl-patch-3
Update index.jsx
2025-02-15 08:38:08 -08:00
Gorkem Cetin (BWL) f2556fecf6 Update index.jsx
Connect wallet description update
2025-02-14 23:39:59 -05:00
Alexander Holliday 1e13b3c5d9 Merge pull request #1771 from bluewave-labs/fix/devops/docker-files
fix error in docker file
2025-02-14 11:01:49 -08:00
Alex Holliday ed7ec6a807 fix error in docker file 2025-02-14 11:00:45 -08:00
Alexander Holliday a2132e188d Merge pull request #1770 from renovate-bot/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.5.1
2025-02-14 10:39:55 -08:00
Alexander Holliday 10d17452df Merge pull request #1769 from renovate-bot/renovate/mongoose-8.x-lockfile
Update dependency mongoose to v8.10.1
2025-02-14 10:39:42 -08:00
Mend Renovate 0981c87ebc Update dependency prettier to v3.5.1 2025-02-14 18:39:28 +00:00
Alexander Holliday fe0d669542 Merge pull request #1762 from bluewave-labs/fix/fe/be/du-details
fix: fe/be/du details
2025-02-14 10:39:27 -08:00
Mend Renovate 855443f1b0 Update dependency mongoose to v8.10.1 2025-02-14 18:39:20 +00:00
Alexander Holliday 2330dcd758 Merge pull request #1761 from bluewave-labs/fix/fe/loading-buttons
fix: fe/loading buttons
2025-02-14 10:39:11 -08:00
Alexander Holliday 8ae743a395 Merge pull request #1760 from bluewave-labs/feat/fe/du-responsetime-barchart
feat: fe/du responsetime barchart
2025-02-14 10:38:34 -08:00
Alexander Holliday f12664d63b Merge pull request #1768 from bluewave-labs/fix/devops/docker-files
fix: devops/docker files
2025-02-14 10:37:49 -08:00
Alex Holliday d0addaea5b update docker files to include python and build tools 2025-02-14 10:34:54 -08:00
Alex Holliday 30a2c9dca9 removed superfluous docker config 2025-02-14 10:21:32 -08:00
Alexander Holliday 6b641e3098 Merge pull request #1767 from renovate-bot/renovate/chai-5.x
Update dependency chai to v5.2.0
2025-02-14 09:27:08 -08:00
Mend Renovate 1124e8f94a Update dependency chai to v5.2.0 2025-02-14 17:22:54 +00:00
Alexander Holliday 3d02ce7502 Merge pull request #1766 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.41.0
2025-02-14 09:22:07 -08:00
Mend Renovate baaf2a06c4 Update dependency bullmq to v5.41.0 2025-02-14 15:11:54 +00:00
Alexander Holliday 09aeb28541 Merge pull request #1764 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.40.5
2025-02-14 07:10:35 -08:00
Mend Renovate 8d5687cc22 Update dependency bullmq to v5.40.5 2025-02-14 06:33:04 +00:00
dongfang 133468c36e refactor some constants and change descriptions 2025-02-14 02:45:24 +00:00
Alex Holliday 9cbee6d32b throw error on bad response from UpRock, fix empty view condition 2025-02-13 16:13:39 -08:00
Gorkem Cetin (BWL) f59eada9e4 Fix lang 2025-02-13 19:03:06 -05:00
Gorkem Cetin (BWL) 77a01014d5 Add mem footprint of MongoDB / Redis 2025-02-13 19:01:02 -05:00
Gorkem Cetin (BWL) aefcfa3e94 Add memory footprint for Nodejs 2025-02-13 18:57:44 -05:00
Alex Holliday 064a9f6d36 replace loading button with button 2025-02-13 15:20:12 -08:00
Alex Holliday de71c5f339 update theme to handle buttons 2025-02-13 15:19:24 -08:00
Alex Holliday 77959264d0 Use new components 2025-02-13 14:50:14 -08:00
Alex Holliday 4ef11daa51 Refactor out chart helpers 2025-02-13 14:49:50 -08:00
Alex Holliday 1cba45c537 use new charts 2025-02-13 14:49:03 -08:00
Alex Holliday b1dfa0f1c0 refactor area chart 2025-02-13 14:48:07 -08:00
Alex Holliday bc7a5c3de2 Add a bar chart 2025-02-13 14:47:56 -08:00
Alex Holliday 7dd5573f01 use first_byte_took only for response time 2025-02-13 14:47:24 -08:00
Alexander Holliday 872a9a7265 Merge pull request #1759 from Br0wnHammer/fix/fe/sidemenu-overflow
Fix: Sidemenu UI Overflow
2025-02-13 12:48:34 -08:00
Alexander Holliday db3255d9c6 Merge pull request #1753 from bluewave-labs/fix/fe/uptime-calculation
fix: correctly calculate grouped uptime percentage, resolves #1684
2025-02-13 11:04:10 -08:00
Alexander Holliday 85b24f8af1 Merge pull request #1750 from bluewave-labs/feat/fe/wallet-adapter
feat: fe/wallet adapter
2025-02-13 11:03:41 -08:00
Alexander Holliday 106d49850c Merge branch 'develop' into feat/fe/wallet-adapter 2025-02-13 11:03:29 -08:00
Alexander Holliday 1ccea4541b Merge pull request #1752 from bluewave-labs/feat/fe/config-du-monitor
feat: fe/config du monitor
2025-02-13 10:58:48 -08:00
Aryaman Kumar Sharma b704651b87 Fix: Sidemenu UI Overflow 2025-02-14 00:17:32 +05:30
Alex Holliday 84bbcc8d77 fix confirmation dialog messags 2025-02-13 10:43:04 -08:00
Alexander Holliday 0c4c75a612 Merge pull request #1758 from bluewave-labs/revert-1749-fix/fe/sidemenu-ui-overflow
Revert "Fix: Sidemenu UI Overflows"
2025-02-13 10:26:22 -08:00
Alexander Holliday 3bcb33bed0 Revert "Fix: Sidemenu UI Overflows" 2025-02-13 10:26:03 -08:00
Vishnu Nair 91f54bc78f Merge pull request #1749 from Br0wnHammer/fix/fe/sidemenu-ui-overflow
Fix: Sidemenu UI Overflows
2025-02-13 12:52:42 -05:00
Aryaman Kumar Sharma b93165e8d8 Fix: Profile Sidemenu Overflows 2025-02-13 23:01:16 +05:30
Alexander Holliday fa061f8390 Merge pull request #1756 from renovate-bot/renovate/prettier-3.x-lockfile
chore(deps): update dependency prettier to v3.5.1
2025-02-13 09:05:06 -08:00
Mend Renovate 5c2f0773c4 chore(deps): update dependency prettier to v3.5.1 2025-02-13 15:20:43 +00:00
Alexander Holliday e38d9a208a Merge pull request #1755 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.40.4
2025-02-13 07:19:23 -08:00
Mend Renovate d9b2a3850d fix(deps): update dependency bullmq to v5.40.4 2025-02-13 05:39:32 +00:00
Skorpios 12d9f154bf Got rid context bind in the route. 2025-02-12 21:22:44 -08:00
Skorpios 70ffe1b661 Use middleware for handling errors. 2025-02-12 21:17:31 -08:00
Skorpios 8007daa66b Used response handling middleware for the response format. 2025-02-12 19:16:20 -08:00
Skorpios 012483d14f Automated validation via joi. 2025-02-12 18:54:34 -08:00
Skorpios 023d9434c1 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-12 17:29:57 -08:00
dongfang 105b471cc6 allow empty string for json validation in server side 2025-02-13 00:56:16 +00:00
dongfang 1d13a498b6 support configure json validation fields 2025-02-13 00:54:50 +00:00
dongfang 2330fc8684 support create uptime with json validation 2025-02-13 00:54:24 +00:00
dongfang e7ffe47cf8 add json validation fields 2025-02-13 00:54:19 +00:00
Alex Holliday e2170981e4 correctly calculate grouped uptime percentage 2025-02-12 15:18:27 -08:00
Alexander Holliday e903c12306 Merge pull request #1748 from renovate-bot/renovate/globals-15.x-lockfile
chore(deps): update dependency globals to v15.15.0
2025-02-12 13:57:48 -08:00
Alex Holliday 1ed61120fd Add todo comment 2025-02-12 13:54:27 -08:00
Alex Holliday 508c838e58 delete checks and status pages on monitor delete 2025-02-12 13:52:21 -08:00
Alex Holliday ca6e40042a add delete checks method 2025-02-12 13:52:02 -08:00
Alex Holliday 82c9a7331b Add a method for deleting status pages when a monitor is deleted 2025-02-12 13:50:45 -08:00
Alex Holliday 9344ebc828 Simpler differentiation 2025-02-12 13:50:02 -08:00
Alex Holliday 074824ffe8 add delete dialog, state, and header 2025-02-12 13:49:37 -08:00
Alex Holliday ab16ab0d70 implement cconfig using create component 2025-02-12 13:48:01 -08:00
Alex Holliday dc84bd8848 fix loading condtitional, correct row renderng 2025-02-12 13:47:21 -08:00
Alex Holliday f72dd799c4 fix incorrect field parsing 2025-02-12 13:46:36 -08:00
Alex Holliday 2db41d331e simpler differentiation between creating and updating 2025-02-12 13:46:09 -08:00
Alex Holliday 89a542e804 Add a config route for DU 2025-02-12 13:45:38 -08:00
Alex Holliday b015f7b61a destructure var, build form to update monitor 2025-02-12 13:44:56 -08:00
Alex Holliday 0cf056f725 move field parsing to network util 2025-02-12 13:44:04 -08:00
Alex Holliday c4ab43fae5 add wallet connector settings 2025-02-12 10:25:20 -08:00
Alex Holliday bad8cee207 remove unused routes 2025-02-12 10:25:07 -08:00
Alex Holliday 45351034ea remove unused components 2025-02-12 10:24:39 -08:00
Alex Holliday 0a93f8a5c7 wrap application in wallet provider 2025-02-12 10:23:55 -08:00
Alex Holliday 4660d2ada7 Add wallet provider 2025-02-12 10:23:29 -08:00
Aryaman Kumar Sharma 6320a22fd6 Fix: Sidemenu UI Overflows 2025-02-12 23:41:42 +05:30
Mend Renovate 5fb0204b4b chore(deps): update dependency globals to v15.15.0 2025-02-12 17:49:14 +00:00
Alexander Holliday 0c96ffe3d0 Merge pull request #1747 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.40.3
2025-02-12 09:14:47 -08:00
Alexander Holliday 408fee0f46 Merge pull request #1744 from bluewave-labs/fix/fe/du-status-page-placeholder
fix: DU status page placeholder
2025-02-12 09:14:26 -08:00
Alexander Holliday 07e7378c47 Merge pull request #1745 from Br0wnHammer/fix/fe/uptime-responsetime-gauge-ui
Fix: Average Resposne Time Guage Chart UI
2025-02-12 09:13:09 -08:00
Mend Renovate bcb1f250af fix(deps): update dependency bullmq to v5.40.3 2025-02-12 15:36:48 +00:00
Aryaman Kumar Sharma 70fc3756b5 Fix: Average Resposne Time Guage Chart UI 2025-02-12 13:15:32 +05:30
Alex Holliday 34e74d2f34 fix placeholder 2025-02-11 22:25:58 -08:00
Alexander Holliday af6af730ee Merge pull request #1700 from YinDongFang/feature/json-validation
Feature/json validation
2025-02-11 21:00:20 -08:00
dongfang 1f0876dd71 use stringService in requestHttp 2025-02-12 03:16:07 +00:00
dongfang 6837adb5aa add locales for http request 2025-02-12 03:13:52 +00:00
dongfang c3d92ec812 return early if not json 2025-02-12 03:05:58 +00:00
dongfang 4d12608a22 return early instead of nesting if/else blocks 2025-02-12 02:53:09 +00:00
dongfang 9fe2de8969 Use JSON.stringify instead of toString 2025-02-12 02:53:09 +00:00
dongfang 05e448c4c5 Add job name and id in log 2025-02-12 02:53:09 +00:00
dongfang b263e2746c Convert result to string 2025-02-12 02:53:09 +00:00
dongfang 8b49603382 Support jsonPath and expectedValue 2025-02-12 02:53:09 +00:00
dongfang 81a0ec8b23 Replace variable declarations with destructuring 2025-02-12 02:52:35 +00:00
dongfang b7a8596b7b Add jmespath denpendency 2025-02-12 02:52:35 +00:00
dongfang 6000096883 Add monitor fields 2025-02-12 02:52:35 +00:00
Alexander Holliday 786be29139 Merge pull request #1742 from renovate-bot/renovate/eslint-monorepo
chore(deps): update dependency eslint to v9.20.1
2025-02-11 14:56:08 -08:00
Mend Renovate 8bbcb67066 chore(deps): update dependency eslint to v9.20.1 2025-02-11 17:22:19 +00:00
Alexander Holliday 1a8d7315ac Merge pull request #1733 from rkhatta1/develop
Fix: FE - Language preference should be stored in Redux store.
2025-02-11 09:21:05 -08:00
Alexander Holliday 764078cc8a Merge pull request #1741 from bluewave-labs/fix/fe/status/restore-nav
hotfix: stauts page config link
2025-02-11 09:07:26 -08:00
Alex Holliday 931fd197ac fix link 2025-02-11 09:06:18 -08:00
Alexander Holliday 754c0c2c43 Merge pull request #1732 from renovate-bot/renovate/hello-pangea-dnd-18.x
Update dependency @hello-pangea/dnd to v18
2025-02-11 09:04:16 -08:00
Alexander Holliday 8b1f32d827 Merge pull request #1709 from Cihatata/i18n-support-backend
I18n support for server
2025-02-11 09:02:24 -08:00
Alexander Holliday 5371f531e2 Merge branch 'develop' into i18n-support-backend 2025-02-11 09:02:06 -08:00
Mend Renovate 40ec2c8cee Update dependency @hello-pangea/dnd to v18 2025-02-11 15:35:15 +00:00
Alexander Holliday 209bbf6972 Merge pull request #1739 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-02-11 07:34:26 -08:00
Mend Renovate 0cc9966e25 Update material-ui monorepo 2025-02-11 15:21:49 +00:00
Alexander Holliday c0c27cde0f Merge pull request #1738 from bluewave-labs/feat/fe/status-page-table
feat: fe/status page table
2025-02-11 07:19:42 -08:00
Alex Holliday 7846c759d9 remove 404 2025-02-11 07:18:37 -08:00
Alex Holliday c7614ad89e add reusable skeleton 2025-02-11 07:18:24 -08:00
Alex Holliday af0f940c22 Add skeleton 2025-02-11 07:18:09 -08:00
Alex Holliday f6f2ae5b3a remove 404 check 2025-02-11 07:17:45 -08:00
Alex Holliday 34c8e3ce55 add leading / 2025-02-11 07:17:03 -08:00
Alex Holliday 1b5c01eeeb remove error throw 2025-02-11 07:16:43 -08:00
cihat fddaf8f11f fix: resolve conflict 2025-02-11 08:15:29 +03:00
cihatata 93fa4ca13b fix: add injection for jobqueque 2025-02-11 07:49:46 +03:00
cihatata 4c92922d40 fix: i18n rebase 2025-02-11 07:49:44 +03:00
cihatata 7b6eed96f4 fix: remove fetch requests 2025-02-11 07:43:39 +03:00
cihat 158a3f14ea fix: use default.json 2025-02-11 07:43:39 +03:00
cihat c6b3932677 fix: constructure 2025-02-11 07:43:39 +03:00
cihatata d0e09fe77f fix: load file 2025-02-11 07:43:39 +03:00
cihatata 08933743f1 fix: revert tests 2025-02-11 07:43:39 +03:00
cihatata dea8c4fdd8 fix: use new structure 2025-02-11 07:43:39 +03:00
cihatata 88df88891c fix: use new structure 2025-02-11 07:43:38 +03:00
cihatata a98a3dd7a3 feat: authController i18n 2025-02-11 07:43:38 +03:00
cihatata 301208d799 fix: revert dockerfile 2025-02-11 07:43:38 +03:00
cihatata 1c344e564a fix: revert dockerfile 2025-02-11 07:43:38 +03:00
cihatata 6fc0e31743 fix: create stringService 2025-02-11 07:43:38 +03:00
cihatata e18f1d9b85 feat: i18n support for backend 2025-02-11 07:43:38 +03:00
cihatata 10713428b9 feat: i18n support for backend 2025-02-11 07:43:36 +03:00
Skorpios 67da574ea1 Secured notifications route. 2025-02-10 19:44:44 -08:00
Skorpios fa50706541 Simplified network response. 2025-02-10 18:52:06 -08:00
Skorpios ef41712544 Got rid of falsey value. 2025-02-10 18:46:39 -08:00
Skorpios ccd6c58e04 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-10 18:26:58 -08:00
Alex Holliday eb8901f5ac fix form.isPublished conditional 2025-02-10 16:18:36 -08:00
Alex Holliday 771a9c6c99 update empty view, use table 2025-02-10 16:17:35 -08:00
Alex Holliday 5217292125 don't show toast on 404 2025-02-10 16:17:07 -08:00
Alex Holliday 6e58b6a630 nav to /status/ 2025-02-10 16:16:25 -08:00
Alex Holliday 9a517c239f fix success message 2025-02-10 16:15:48 -08:00
Alex Holliday 40393f3fef remove console.log 2025-02-10 16:15:31 -08:00
Alex Holliday ae96bae795 add wallet adapter 2025-02-10 15:39:48 -08:00
Alexander Holliday 0eceac1587 Merge pull request #1736 from bluewave-labs/feat/fe/list-du-status-pages
feat: fe/list du status pages
2025-02-10 14:25:27 -08:00
Alex Holliday 5f86824d63 fix method name 2025-02-10 14:25:02 -08:00
Alex Holliday 738e4a4787 correct route ordering, add proptype 2025-02-10 14:23:15 -08:00
Alex Holliday 9faec245d8 use async for status page fetch 2025-02-10 14:12:49 -08:00
Alex Holliday 532cbe222b redirect on delete 2025-02-10 14:02:52 -08:00
Alex Holliday 2087202eea add proptype 2025-02-10 13:50:11 -08:00
Alex Holliday aaee0f7edd add editable URL 2025-02-10 13:49:54 -08:00
Alex Holliday 6e0bed589d fix error bug, update page to use url 2025-02-10 13:49:01 -08:00
Alex Holliday 9a67348a83 Update status page to use URL, no longer shows create fallback 2025-02-10 13:48:10 -08:00
Alex Holliday 61e319ef44 allow editing in create component 2025-02-10 13:47:13 -08:00
Alex Holliday b99bb99e2a update path 2025-02-10 13:46:48 -08:00
Alex Holliday 55321ffc3c use url in hook 2025-02-10 13:46:26 -08:00
Alex Holliday 01d1f8e173 update routes 2025-02-10 13:45:23 -08:00
Alex Holliday a3620f720e Add basic status pages page 2025-02-10 13:45:01 -08:00
Alex Holliday d0bb648492 move DU status 2025-02-10 13:44:43 -08:00
Alex Holliday e0e73ce520 Add type to validation 2025-02-10 13:43:24 -08:00
Alex Holliday cb4e739cae Add type to status page request, add get status pages by team request 2025-02-10 13:43:09 -08:00
Alex Holliday 8d93a7e63b remove unused classname 2025-02-10 13:41:47 -08:00
Alex Holliday 48cfeb1558 add route, controller, and db method for getting all status pages by ID 2025-02-10 13:41:21 -08:00
Alex Holliday f78343d03f add teamId and userId to network request 2025-02-10 10:21:56 -08:00
Alex Holliday 99079cc2bb add userId and teamId to status pages 2025-02-10 10:20:21 -08:00
rkhatta1 46e27a69f3 Corrected the usage of getState() funciotn in i18n.js. 2025-02-10 10:38:51 -07:00
Gorkem Cetin (BWL) deca3b93f0 Update documentation URL 2025-02-10 01:28:25 -05:00
rkhatta1 590338a48b Made the requested changes to i18.js, LanguageSelector.jsx and uiSlice.js. 2025-02-09 22:09:39 -07:00
Skorpios f46b0768fc Refactored notification schema config object. 2025-02-09 13:58:14 -08:00
Skorpios d8379f7e88 Configured a config object in the notification schema. 2025-02-09 12:48:22 -08:00
rkhatta1 f747751563 Corrcted the uiSlice import in LanguageSelector.jsx 2025-02-09 13:17:12 -07:00
Skorpios 01e73fe5b8 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-09 12:15:19 -08:00
rkhatta1 f3dfa17d7f Cleaned the imports and corrected the default language code in uiSlice.js 2025-02-09 13:13:23 -07:00
rkhatta1 18d4b7fd15 Merge branch 'develop' into develop 2025-02-09 11:12:33 -07:00
Alexander Holliday 6911d72db4 Merge pull request #1662 from Br0wnHammer/fix/fe/profilepanel-ui
Fix: Ensure profile panel text and button visibility in dark mode
2025-02-09 08:25:13 -08:00
Alexander Holliday e838e4373b Merge pull request #1727 from renovate-bot/renovate/prettier-3.x-lockfile
Update dependency prettier to v3.5.0
2025-02-09 07:53:24 -08:00
Alexander Holliday bf595a2983 Merge pull request #1725 from bluewave-labs/fix/fe/ui-language-setting
fix: remove react-world-flags, only one flag library needed
2025-02-09 07:52:59 -08:00
Alex Holliday b7d4817167 fix import path 2025-02-09 07:52:31 -08:00
Alexander Holliday ccd464e5f9 Merge pull request #1721 from bluewave-labs/feat/fe/du-create-status-page
feat: fe/du create status page
2025-02-09 07:47:55 -08:00
Alex Holliday a56a61154a fix method name in logging 2025-02-09 07:47:34 -08:00
Mend Renovate a3d82feef2 Update dependency prettier to v3.5.0 2025-02-09 12:52:42 +00:00
rkhatta1 5f1c4b8674 Fix: Issue#1726 - FE - Language preference should be stored in Redux store. 2025-02-09 01:07:31 -07:00
Alexander Holliday db33a93c70 Merge pull request #1719 from renovate-bot/renovate/eslint-monorepo
Update eslint monorepo to v9.20.0
2025-02-08 18:47:40 -08:00
Alexander Holliday 7835782a49 Merge pull request #1723 from renovate-bot/renovate/eslint-plugin-react-refresh-0.x-lockfile
Update dependency eslint-plugin-react-refresh to v0.4.19
2025-02-08 18:47:23 -08:00
Alexander Holliday 40d2e3b155 Merge pull request #1720 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v7.26.0
2025-02-08 18:46:53 -08:00
Alex Holliday f6c3b5b363 remove react-world-flags, only one flag library needed 2025-02-08 18:42:39 -08:00
Alexander Holliday 36ce69d737 Merge pull request #1711 from Cihatata/i18n-support-client
feat: i18n support for client
2025-02-08 18:25:36 -08:00
Skorpios 64c5aa9bb0 Added notifcation controller and route. 2025-02-08 17:07:14 -08:00
Skorpios e9bcf66b29 Resolved merge conflict in Server/index.js 2025-02-08 16:39:01 -08:00
Mend Renovate 6879aedf77 Update dependency eslint-plugin-react-refresh to v0.4.19 2025-02-09 00:32:27 +00:00
Alex Holliday 2f1f2d1a3f early return if status page public and not published 2025-02-08 08:05:42 -08:00
Alex Holliday 1fabf918c3 add fallbacks 2025-02-08 08:05:16 -08:00
Alex Holliday e4525b96c3 add validation 2025-02-08 08:04:36 -08:00
Mend Renovate 53eac357c2 Update eslint monorepo to v9.20.0 2025-02-08 01:26:57 +00:00
Alex Holliday d852388202 add loading states, skeletons, fix map tooltip 2025-02-07 15:54:19 -08:00
Alex Holliday ea1a717ad0 fix height 2025-02-07 15:20:03 -08:00
Alex Holliday b4c8171c70 conditional rendering for public status page 2025-02-07 15:19:53 -08:00
Alex Holliday f3266e22e7 add check for distributed uptime public url 2025-02-07 15:19:24 -08:00
Alex Holliday e480019dea add public route 2025-02-07 15:18:41 -08:00
Alex Holliday 6a1675aa4a implement DU status page 2025-02-07 14:51:29 -08:00
Alex Holliday 08b0ed9d3b remove comment 2025-02-07 14:51:02 -08:00
Alex Holliday bd2fae913a add url to request, add missing dependency 2025-02-07 14:50:14 -08:00
Alex Holliday 5c5d1b88e6 udpate max width, safe property access 2025-02-07 14:49:38 -08:00
Alex Holliday 163d1a3e6e use correct _id instead of id 2025-02-07 14:48:45 -08:00
Alex Holliday d8c0839391 add early return 2025-02-07 14:48:14 -08:00
Alex Holliday dec12cc6ab add label prop 2025-02-07 14:47:52 -08:00
Alex Holliday c352ca39b1 add controller method for getting status page by url, update delete controlelr method 2025-02-07 14:47:22 -08:00
Alex Holliday 65bc98ca2e add db method for getting status page by url, update delete method to delete by url 2025-02-07 14:46:36 -08:00
Alex Holliday 27e4bd006c destructure monitors to add all properties 2025-02-07 14:44:56 -08:00
Alex Holliday 45cd6320d8 add routes 2025-02-07 14:44:31 -08:00
Alex Holliday 14ce47d97b add network request for getting status page by url, update create status page method 2025-02-07 14:44:08 -08:00
Alex Holliday b829bd4549 add route for getting status page by url, update delete route to delete by url 2025-02-07 14:43:14 -08:00
Alex Holliday 0cf26f82b7 add string 2025-02-07 14:42:38 -08:00
Alex Holliday c015302811 update StatusPage model 2025-02-07 14:42:24 -08:00
Alex Holliday 74587cf8bd add placeholder img 2025-02-07 14:42:04 -08:00
Alex Holliday b23ec35260 add placeholder prop, add min width and height props 2025-02-07 14:41:06 -08:00
Alex Holliday 3eaf68aa5b add src and name to image validation 2025-02-07 14:40:33 -08:00
Alex Holliday 52ad36d75f make fields optional 2025-02-07 14:40:12 -08:00
Mend Renovate f198e3c072 Update material-ui monorepo to v7.26.0 2025-02-07 21:31:48 +00:00
Alexander Holliday 0438941e59 Merge pull request #1716 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.40.2
2025-02-07 09:22:56 -08:00
Alexander Holliday 32ea3adfab Merge pull request #1717 from renovate-bot/renovate/ioredis-5.x-lockfile
Update dependency ioredis to v5.5.0
2025-02-07 09:22:41 -08:00
Alexander Holliday 277092d3e4 Merge pull request #1718 from bluewave-labs/fix/fe/uptime-loading-state
fix: remove old loading state
2025-02-07 09:21:42 -08:00
Alexander Holliday c46ddd6942 Merge branch 'develop' into fix/fe/uptime-loading-state 2025-02-07 09:21:33 -08:00
Alex Holliday 4fec00334a remove old loading state 2025-02-07 09:19:01 -08:00
Mend Renovate 6bee4c5e59 Update dependency ioredis to v5.5.0 2025-02-07 17:16:52 +00:00
Mend Renovate bd27e08b69 Update dependency bullmq to v5.40.2 2025-02-07 17:16:47 +00:00
Alexander Holliday 18508a7d07 Merge pull request #1715 from bluewave-labs/fix/fe/uptime-fallback
fix: update uptime fallback
2025-02-07 09:15:52 -08:00
Alex Holliday 11030bf564 update fallback 2025-02-06 19:42:09 -08:00
Alex Holliday 4fcc9584dc update uptime fallback 2025-02-06 19:37:00 -08:00
Alexander Holliday 424f9bd778 Merge pull request #1714 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.40.1
2025-02-06 19:31:41 -08:00
Alexander Holliday 0bbf3f09c7 Merge pull request #1713 from bluewave-labs/gorkem-bwl-patch-3
Fix naming ("Distributed Uptime" -> "Distributed uptime")
2025-02-06 19:30:44 -08:00
Mend Renovate 17e05605c8 Update dependency bullmq to v5.40.1 2025-02-07 03:30:40 +00:00
Alexander Holliday 7d2b2af036 Merge pull request #1712 from bluewave-labs/fix/fe/du-ui-fixes-and-refactor
fix: fe/du UI fixes and refactor
2025-02-06 19:30:07 -08:00
Gorkem Cetin (BWL) 77b9442666 Update index.jsx 2025-02-06 20:36:42 -05:00
Alex Holliday a436ca16f4 refactor to use components and hook 2025-02-06 16:08:26 -08:00
Alex Holliday cceab2b705 extract subcomponents 2025-02-06 16:07:57 -08:00
Alex Holliday e5ade000c3 extract network request to hook 2025-02-06 16:07:39 -08:00
cihatata e534d20653 feat: flag margin 2025-02-07 02:09:18 +03:00
Alex Holliday e570b76d88 refactor common components out 2025-02-06 15:06:37 -08:00
cihatata d1ac398deb feat: flag margin 2025-02-07 02:03:25 +03:00
cihatata 46ef6b01a2 feat: i18n support for client 2025-02-07 01:59:54 +03:00
Alex Holliday 1e7e7c7365 refactor DU monitors page 2025-02-06 14:57:28 -08:00
Alex Holliday 68202dc88b use utils hook 2025-02-06 14:57:18 -08:00
Alex Holliday d4164417da use new utils hook 2025-02-06 14:56:45 -08:00
Alex Holliday 4122849723 remove connection console log 2025-02-06 14:56:03 -08:00
Alex Holliday 9e13d313cc add monitor utils hook 2025-02-06 14:55:10 -08:00
Alexander Holliday cb2f7e26ad Merge pull request #1710 from bluewave-labs/feat/fe/du-map-theme
feat: fe/du map theme
2025-02-06 14:01:23 -08:00
Alex Holliday 1ba59c73ca remove console log 2025-02-06 14:00:43 -08:00
Alex Holliday ffa307aa38 Add utility for building theme based on default theme 2025-02-06 13:47:21 -08:00
Alex Holliday 5ba4be57b2 update gitignore 2025-02-06 13:47:07 -08:00
Alex Holliday ba602da970 load initial styles, update styles on theme change 2025-02-06 13:46:56 -08:00
Alex Holliday f8404f28d1 add new palette for map 2025-02-06 13:46:01 -08:00
Alexander Holliday 4f1f033925 Merge pull request #1708 from bluewave-labs/feat/fe/opt-in-distributed-uptime
feat: fe/opt in distributed uptime
2025-02-06 12:23:02 -08:00
Alex Holliday 7b4f78132d protect DU routes 2025-02-06 12:15:59 -08:00
Alex Holliday 4f16d8140e fix conditional 2025-02-06 12:15:43 -08:00
Alex Holliday 27b89743c6 add toggle switch for DU monitors 2025-02-06 12:07:39 -08:00
Alexander Holliday ce21d6e19f Merge pull request #1707 from bluewave-labs/fix/devops/test-server-docker-compose
update docker compose for replica set
2025-02-06 10:50:10 -08:00
Alex Holliday 730d42bae2 update docker compose for replica set 2025-02-06 10:49:22 -08:00
Alexander Holliday b8f5bf49a5 Merge pull request #1706 from bluewave-labs/fix/fe/du-sidebar-icon
update DU sidebar icon
2025-02-06 10:46:14 -08:00
Alex Holliday ee16ed7987 update DU sidebar icon 2025-02-06 10:28:27 -08:00
Alexander Holliday 9c4e3ab24f Merge pull request #1704 from bluewave-labs/fix/fe/status-page-delete-modal
fix: fe/status page delete modal
2025-02-06 10:18:14 -08:00
Alexander Holliday e96e778e9f Merge pull request #1703 from bluewave-labs/fix/fe/tab-styles
fix: move tab styles to theme so they apply globally
2025-02-06 10:17:54 -08:00
Alex Holliday 36e5498155 this PR adds a confirmation modal to the delete status page button 2025-02-06 09:43:11 -08:00
Alex Holliday a30ed2b766 move tab styles to theme so they apply globally 2025-02-06 09:14:19 -08:00
Alexander Holliday a1f7e4c601 Merge pull request #1694 from renovate-bot/renovate/mongoose-8.x-lockfile
Update dependency mongoose to v8.10.0
2025-02-06 09:06:59 -08:00
Alexander Holliday 3a063102db Merge pull request #1697 from bluewave-labs/feat/be/additional-du-monitor-fields
feat: add additionalfields
2025-02-06 09:06:20 -08:00
Alexander Holliday 1d6ab1666e Merge pull request #1701 from YinDongFang/fix/profile
Wrap long image filename
2025-02-06 09:02:14 -08:00
dongfang 37e0aabbe8 Wrap long image filename 2025-02-06 07:19:02 +00:00
Aryaman Kumar Sharma 263427dab3 Fix: Disabled button color theme 2025-02-06 10:48:14 +05:30
Aryaman Kumar Sharma 1d292b9553 Merge remote-tracking branch 'checkmate/develop' into fix/fe/profilepanel-ui 2025-02-06 10:46:48 +05:30
Alex Holliday 6d09108bbe add additionalfields 2025-02-05 15:27:27 -08:00
Alexander Holliday 547f97ffed Merge pull request #1696 from bluewave-labs/feat/fe/distributed-uptime
feat: fe/distributed uptime
2025-02-05 15:19:47 -08:00
Alex Holliday bbf277787e add DU to sidebar 2025-02-05 15:13:14 -08:00
Alexander Holliday b5977bbf57 Merge pull request #1695 from bluewave-labs/feat/be/distributed-uptime
feat: be/distributed uptime
2025-02-05 15:01:31 -08:00
Alex Holliday a55f952f1e fix error name 2025-02-05 15:00:58 -08:00
Alex Holliday e6947be2f1 add components 2025-02-05 14:59:08 -08:00
Alex Holliday a5ba103148 Add routes 2025-02-05 14:58:34 -08:00
Alex Holliday ae3dd8de90 add DU details page 2025-02-05 14:58:21 -08:00
Alex Holliday f7fef6d291 add DU details network request 2025-02-05 14:57:26 -08:00
Alex Holliday ac04747748 add dependencies 2025-02-05 14:57:03 -08:00
Alex Holliday 7547e3725e add icons 2025-02-05 14:56:37 -08:00
Alex Holliday 624a65e0ee Add Monitor and Create routes 2025-02-05 14:00:27 -08:00
Alex Holliday 823358125b Add create DU Monitor page 2025-02-05 14:00:11 -08:00
Alex Holliday b439546071 Add DU Monitors page 2025-02-05 13:59:56 -08:00
Alex Holliday 68c772785b Add DU network operations 2025-02-05 13:59:41 -08:00
Alex Holliday 85a5b83ab8 fix DU operations 2025-02-05 13:59:28 -08:00
Alex Holliday b9bcc893b0 Add DU Monitors page 2025-02-05 13:31:41 -08:00
Alex Holliday e361ded4f1 add DU to status service 2025-02-05 12:59:06 -08:00
Alex Holliday 72460b15d1 add DU routes 2025-02-05 12:53:47 -08:00
Alex Holliday 254079be03 add DU controller 2025-02-05 12:50:15 -08:00
Alex Holliday f4b87daa7f Add DU to network service 2025-02-05 12:48:57 -08:00
Alex Holliday 8bfde01bfa add DU to jobqueue 2025-02-05 12:47:17 -08:00
Alex Holliday 3d731137df add DU details query 2025-02-05 12:45:14 -08:00
Alex Holliday cdb276d567 update DU check 2025-02-05 12:40:52 -08:00
Mend Renovate 906f007d9c Update dependency mongoose to v8.10.0 2025-02-05 20:10:48 +00:00
Alexander Holliday 89be714811 Merge pull request #1693 from bluewave-labs/feat/fe/status-page-config
feat: fe/status page config
2025-02-05 12:09:58 -08:00
Alex Holliday 59e77f8263 remove console.log 2025-02-05 12:09:26 -08:00
Alex Holliday 18ef40b545 add check for status page not found 2025-02-05 12:07:28 -08:00
Alex Holliday e9c7f1d7be implement config 2025-02-05 10:57:28 -08:00
Alex Holliday 73df0837bb add conditon to hook for create/update 2025-02-05 10:57:15 -08:00
Alex Holliday 4e5833c09c explicitly match IDs 2025-02-05 10:56:50 -08:00
Alex Holliday 7d31b4556b add config route 2025-02-05 10:56:21 -08:00
Alex Holliday d29bdd1545 modify network request to allow updating 2025-02-05 10:55:58 -08:00
Alex Holliday 76b21f1d8c add route, controller and DB methods for updating status page 2025-02-05 10:55:08 -08:00
Alexander Holliday ff47af95fa Merge pull request #1692 from bluewave-labs/fix/fe/status-page-permission
fix: don't render control buttons for public status page
2025-02-04 16:02:40 -08:00
Alex Holliday 720d1f7434 don't render control buttons for public status page 2025-02-04 16:01:46 -08:00
Alexander Holliday 7c78c4a280 Merge pull request #1688 from bluewave-labs/feat/fe/create-status
Feat/fe/create status
2025-02-04 15:47:46 -08:00
Alexander Holliday a44e8d8f4d Merge branch 'develop' into feat/fe/create-status 2025-02-04 15:47:14 -08:00
Alex Holliday 4d4b592cdc refactor out admin link component 2025-02-04 15:45:28 -08:00
Alex Holliday d7f7191bcf move monitor status generation to header 2025-02-04 15:45:01 -08:00
Alex Holliday 74b7d7c4a5 add error icon 2025-02-04 15:30:28 -08:00
Alex Holliday befdf73706 refactor out components 2025-02-04 15:26:24 -08:00
Alex Holliday e4de0874b1 remove extra setIsLoading 2025-02-04 15:26:07 -08:00
Alex Holliday 3c6f3f08e1 Add base64 verification, retrun null if not shouldRender 2025-02-04 15:25:35 -08:00
Alex Holliday d799fe1385 note for caio to review 2025-02-04 15:23:52 -08:00
Skorpios 964a923265 Returned comments. 2025-02-04 15:07:02 -08:00
Alex Holliday 8e143b45d5 preserver user selected order 2025-02-04 15:04:42 -08:00
Skorpios aa977ce34e Refactor out to a template for easier message maintenance. 2025-02-04 15:00:20 -08:00
Skorpios e44cbf376f Stop execution in the event of an unwanted platform. 2025-02-04 14:50:16 -08:00
Skorpios 1d9f94c872 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-04 14:39:54 -08:00
Alexander Holliday 376b636be6 Merge pull request #1690 from renovate-bot/renovate/mongoose-8.x-lockfile
Update dependency mongoose to v8.9.7
2025-02-04 14:12:26 -08:00
Alexander Holliday c43d6fe393 Merge pull request #1691 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-02-04 14:12:12 -08:00
Alex Holliday 1bc27789f3 update routes 2025-02-04 14:07:24 -08:00
Alex Holliday 28ee23d508 add proptypes 2025-02-04 14:07:08 -08:00
Alex Holliday 51e828c07e moved PublicStatus directory to Status 2025-02-04 14:06:37 -08:00
Alex Holliday 6cedf992a7 add styles for error button loading state 2025-02-04 14:05:39 -08:00
Mend Renovate 9d3bd35345 Update material-ui monorepo 2025-02-04 21:24:34 +00:00
Mend Renovate b047e6739a Update dependency mongoose to v8.9.7 2025-02-04 21:24:25 +00:00
Alex Holliday dc3fc7628a refactor public status page 2025-02-04 13:06:42 -08:00
Alex Holliday cc8d4bc98c cleanup 2025-02-03 16:22:54 -08:00
Alex Holliday b20c87cabc init loading state 2025-02-03 16:19:56 -08:00
Alex Holliday 9e1dc92dbf fix key, add proptypes 2025-02-03 16:18:45 -08:00
Alex Holliday a230068e37 remove unused adornments 2025-02-03 16:15:44 -08:00
Alex Holliday a8601f89f4 remove unused skeleton 2025-02-03 16:14:28 -08:00
Alex Holliday daebb3132b add name to proptype 2025-02-03 16:12:30 -08:00
Alex Holliday 8297444ce9 remove proptype 2025-02-03 16:11:59 -08:00
Alex Holliday f64c0e6634 remove align self from docs 2025-02-03 16:11:41 -08:00
Alex Holliday 15a30e608c remove dev from pacakge-lock 2025-02-03 15:12:16 -08:00
Alex Holliday acc692ea97 refactor create status 2025-02-03 15:12:00 -08:00
Alex Holliday 7a3b6a679f remove old create route 2025-02-03 15:11:45 -08:00
Alex Holliday 68c8058d47 remove unused tabpanel components 2025-02-03 15:11:26 -08:00
Alex Holliday 40a5abab91 remove reference to CreateStatus 2025-02-03 15:10:00 -08:00
Alex Holliday a4958e06b1 Remove old CreateStatus index.jsx 2025-02-03 15:09:29 -08:00
Alex Holliday afd833f5b8 Remove old status page index.jsx 2025-02-03 15:09:02 -08:00
Alex Holliday 4a13c9383f Add SvgIcon to the theme 2025-02-03 15:08:42 -08:00
Alex Holliday 7da391fcb8 update client side validation 2025-02-03 15:08:13 -08:00
Alex Holliday d38b51e1ca remove old status page 2025-02-03 15:06:49 -08:00
Alex Holliday d853c50840 update status-page backend 2025-02-03 15:06:25 -08:00
Alexander Holliday 0ce31ecf68 Merge pull request #1686 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.40.0
2025-02-03 08:57:02 -08:00
Skorpios 8f9406261f Store bot token and chat id in their own respective fields. 2025-02-02 23:50:09 -08:00
Skorpios d3fb41acfe Refactor BASE URL. 2025-02-02 21:45:45 -08:00
Alex Holliday 27ec0eabb2 refactoring 2025-02-02 21:26:48 -08:00
Skorpios 0bb7eae71e Got rid of imports. 2025-02-02 21:17:55 -08:00
Skorpios 8667f74f60 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-02 21:08:48 -08:00
Mend Renovate a471652405 Update dependency bullmq to v5.40.0 2025-02-02 21:11:50 +00:00
Alexander Holliday 3929902037 Merge pull request #1685 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.39.2
2025-02-02 07:11:48 -08:00
Mend Renovate 96a4522f21 Update dependency bullmq to v5.39.2 2025-02-02 07:07:17 +00:00
Skorpios cc48f1d3aa Use the NetworkService for making network requests. 2025-02-01 23:06:35 -08:00
Skorpios 92d9573fcf Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-02-01 18:51:24 -08:00
Alex Holliday 5a85711cac reset comoponents 2025-02-01 18:36:43 -08:00
Alex Holliday 701e81cb78 Merge branch 'feat/fe/statuspage-3' into feat/fe/create-status 2025-02-01 08:38:39 -08:00
Alex Holliday 4911126d88 Merge branch 'feat/fe/create-status-page' into feat/fe/create-status 2025-02-01 08:34:12 -08:00
Alexander Holliday 2de674d50b Merge pull request #1676 from renovate-bot/renovate/mongoose-8.x-lockfile
Update dependency mongoose to v8.9.6
2025-02-01 08:27:05 -08:00
Alexander Holliday 3844e465df Merge pull request #1677 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.25.0
2025-02-01 08:26:51 -08:00
Alexander Holliday 079d25389e Merge pull request #1681 from YinDongFang/fix/docker
Fix validation error of container id
2025-02-01 08:26:13 -08:00
Alexander Holliday 6d4a9003e2 Merge pull request #1683 from bluewave-labs/fix/fe/uptime-details-network-error-view
fix: add a network error view for Uptime details
2025-02-01 08:14:03 -08:00
Alex Holliday 513246e2b4 add a network error view for Uptime details 2025-02-01 08:13:21 -08:00
Alexander Holliday 7a162d8f08 Merge pull request #1682 from bluewave-labs/fix/fe/empty-view-message
fix: fe/empty view message, resolves #
2025-02-01 08:02:04 -08:00
Alex Holliday cdce6b95cc update empty view message for Infra monitors 2025-02-01 07:59:40 -08:00
Alex Holliday 9d2a18b675 update empty view message for Uptime and Pagespeed 2025-02-01 07:58:51 -08:00
YinDongfang 58d22dfa9a Fix input style error while edit uptime monitor 2025-02-01 23:02:10 +08:00
YinDongfang 067667da1e Fix validation error of container id 2025-02-01 22:24:15 +08:00
Alexander Holliday 89abb02338 Merge pull request #1679 from bluewave-labs/gorkem-bwl-patch-2
Create addReview.mjml
2025-01-31 20:07:20 -08:00
Gorkem Cetin (BWL) 9b727e6dc0 Create addReview.mjml 2025-01-31 22:49:53 -05:00
Alexander Holliday 42846a0278 Merge pull request #1678 from bluewave-labs/fix/fe/infra-details-refactor
fix: fe/infra details refactor
2025-01-31 13:47:36 -08:00
Alex Holliday f218b60591 fix uptime chart legends, set initial loading state to true to avoid extra render 2025-01-31 13:45:07 -08:00
Alex Holliday 49c58ce2ae fix pagespeed loading states, add network error fallback 2025-01-31 13:44:36 -08:00
Alex Holliday 460a597e12 Refactor infrastructure details 2025-01-31 13:43:57 -08:00
Alex Holliday b8042d6d00 update skeleton component 2025-01-31 13:43:28 -08:00
Alex Holliday fa809d7bfd update skeleton layout 2025-01-31 13:43:04 -08:00
Mend Renovate a265d0e60c Update material-ui monorepo to v7.25.0 2025-01-31 20:34:40 +00:00
Mend Renovate 8d5079a467 Update dependency mongoose to v8.9.6 2025-01-31 20:34:32 +00:00
Alexander Holliday 8df076744b Merge pull request #1673 from bluewave-labs/fix/fe/uptime-details-empty-views
add empty view for uptime details, resolves #1671
2025-01-31 10:16:27 -08:00
Alexander Holliday efdf3f0c35 Merge pull request #1675 from bluewave-labs/fix/fe/pagespeed-details-empty-view
fix: fe/pagespeed details empty view, resolves #1674
2025-01-31 10:16:10 -08:00
Alex Holliday e35a0d484c remove console log 2025-01-31 10:14:43 -08:00
Alex Holliday d7905e1246 Merge branch 'develop' into fix/fe/uptime-details-empty-views 2025-01-31 10:12:08 -08:00
Alex Holliday 9515477fd7 Add header to empty view 2025-01-31 10:12:06 -08:00
Alex Holliday 0b3cd9ed17 Add empty veiw to PageSpeed Details, fix config path 2025-01-31 10:07:59 -08:00
Alex Holliday 2ba2e497ed replace TimeFramePicker with reusabe component 2025-01-31 10:07:40 -08:00
Alex Holliday 34f06493ec Remove unused component 2025-01-31 10:07:19 -08:00
Alex Holliday 4d8f0b7287 conditionally render time frame picker 2025-01-31 10:06:57 -08:00
Alex Holliday 00a9630e29 Add reusable TimeFrameHeader component 2025-01-31 10:06:28 -08:00
Alexander Holliday a641c03f8e Merge pull request #1672 from bluewave-labs/fix/be/consistent-returns
update queries to return consistent values
2025-01-31 09:11:00 -08:00
Alex Holliday 22b20409fc update queries to return consistent values 2025-01-31 07:33:29 -08:00
Alex Holliday 6c2298b976 add empty view for uptime details 2025-01-31 07:32:49 -08:00
Alexander Holliday abd0006fb1 Merge pull request #1670 from bluewave-labs/fix/fe/infra-monitors
fix: fe/infra monitors
2025-01-31 07:09:56 -08:00
Alex Holliday 62f2888f2a fix proptype 2025-01-31 07:09:22 -08:00
Alex Holliday 398cfa0f15 replace default value of 0 for 2025-01-30 14:31:36 -08:00
Alex Holliday b928210f8a reactor infrastructure monitors page 2025-01-30 14:27:11 -08:00
Alex Holliday 880195efde set initial loading state to true, skip one render 2025-01-30 14:26:18 -08:00
Alex Holliday 016cd69763 Add shouldRender prop to table 2025-01-30 14:24:46 -08:00
Alex Holliday cdc407fd21 update route 2025-01-30 14:23:42 -08:00
Alex Holliday de7f0a1193 rename CreateMonitor header to match other headers 2025-01-30 14:23:05 -08:00
Alexander Holliday fdbb8e7409 Merge pull request #1669 from renovate-bot/renovate/react-router-monorepo
Update dependency react-router-dom to v6.29.0
2025-01-30 12:42:51 -08:00
Mend Renovate 1626ddc331 Update dependency react-router-dom to v6.29.0 2025-01-30 20:36:53 +00:00
Alexander Holliday 60b553a890 Merge pull request #1668 from renovate-bot/renovate/react-router-monorepo
Update dependency react-router to v6.29.0
2025-01-30 08:26:44 -08:00
Mend Renovate 645018c9fb Update dependency react-router to v6.29.0 2025-01-30 16:25:37 +00:00
Alexander Holliday 481196bd0e Merge pull request #1664 from bluewave-labs/fix/incidents-refactor
fix: incidents refactor
2025-01-30 08:25:16 -08:00
Alexander Holliday 1b26726010 Merge pull request #1667 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.39.1
2025-01-30 08:24:50 -08:00
Mend Renovate 61f2bee37a Update dependency bullmq to v5.39.1 2025-01-30 14:42:29 +00:00
Aryaman Kumar Sharma 959e555744 Fix: Enhance MuiButton disabled state styles in theme 2025-01-30 17:44:28 +05:30
Aryaman Kumar Sharma aac1d17e7d Merge remote-tracking branch 'checkmate/develop' into fix/fe/profilepanel-ui 2025-01-30 17:42:40 +05:30
Alex Holliday 02d93fdcd4 Refactor incidents 2025-01-29 15:06:41 -08:00
Alex Holliday c1144a4432 update proptypes 2025-01-29 15:06:30 -08:00
Alex Holliday 3c93c6ffc3 Add network operation hooks 2025-01-29 15:06:02 -08:00
Alex Holliday 6c3b026199 Add a skeleton for table component 2025-01-29 15:05:45 -08:00
Alex Holliday 2eeb8b6e4e Changed NetworkErrorFallback to a generic callback 2025-01-29 15:04:48 -08:00
Alexander Holliday 9c04ecd725 Merge pull request #1663 from bluewave-labs/fix/fe/consistent-initial-state
Fix/fe/consistent initial state
2025-01-29 12:36:55 -08:00
Alex Holliday 4559215316 add network error state to hooks 2025-01-29 12:32:09 -08:00
Alex Holliday d2d2e87184 Add a network fallback component 2025-01-29 12:31:43 -08:00
Alex Holliday c1fa39f608 move fallback css to fallback css file 2025-01-29 12:31:19 -08:00
Aryaman Kumar Sharma 7835b852c5 Fix: Ensure profile panel text and button visibility in dark mode 2025-01-30 01:41:19 +05:30
Alex Holliday 0feb2053a1 remove null return 2025-01-29 11:42:59 -08:00
Alex Holliday 80a16ef61a safe param access 2025-01-29 11:42:40 -08:00
Alex Holliday 4c3b348642 safe param access 2025-01-29 11:42:02 -08:00
Alex Holliday cfb5c7ae5d Update hooks to use undefined for initial state 2025-01-29 11:41:32 -08:00
Alex Holliday a9851787e8 Use MonitorCountHeader, initialze state to undefined' 2025-01-29 11:41:06 -08:00
Alex Holliday 12711e87ee set initial state explicitly to for consistency 2025-01-29 11:40:27 -08:00
Alex Holliday ef28f8c38b simplify UptimeDataTable 2025-01-29 11:39:47 -08:00
Alex Holliday 6788b5672e add ref to stop initial search 2025-01-29 11:39:17 -08:00
Alex Holliday 65c909e166 provide default props for Table 2025-01-29 11:38:34 -08:00
Alex Holliday cadb9bb951 provide default values for pagination 2025-01-29 11:38:16 -08:00
Alex Holliday a90ed64a6f fix monitorStatusHeader name, safe property access 2025-01-29 11:37:49 -08:00
Alexander Holliday c250f52c60 Merge pull request #1661 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-01-29 09:20:23 -08:00
Alexander Holliday 56b9438efd Merge pull request #1659 from bluewave-labs/gorkem-bwl-patch-2
Add blank space
2025-01-29 09:20:04 -08:00
Mend Renovate 566f756345 Update material-ui monorepo 2025-01-29 17:04:10 +00:00
Gorkem Cetin (BWL) 611dead71e Add blank space 2025-01-29 11:48:43 -05:00
Alexander Holliday c55ca3f593 Merge pull request #1657 from bluewave-labs/fix/fe/pagespeed-details-refactor
fix: fe/pagespeed details refactor
2025-01-29 07:22:53 -08:00
Alexander Holliday d523f0f4dd Merge pull request #1658 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.39.0
2025-01-29 07:19:22 -08:00
Mend Renovate b90cda80bc Update dependency bullmq to v5.39.0 2025-01-29 05:26:33 +00:00
Alex Holliday a33c0c16a0 Add skeletons and loading conditions 2025-01-28 15:51:58 -08:00
Alex Holliday ac2cf49082 Refactor pagespeed details 2025-01-28 15:42:46 -08:00
Alex Holliday 36b6173528 fix speedometer name 2025-01-28 15:42:29 -08:00
Alex Holliday 784dc4da63 Refactor reusable components out of Uptime Details 2025-01-28 15:42:09 -08:00
Alex Holliday fe0f861e98 fix incorrect variant type in 2025-01-28 15:38:43 -08:00
Alex Holliday 577c0b5d19 Safe property access in fallback 2025-01-28 15:38:14 -08:00
Alex Holliday 067d457b96 fix key error in Search 2025-01-28 15:37:49 -08:00
Alex Holliday b410c14d93 Passing as a child of breaks search wehn MonitorCountHeader rerenders 2025-01-28 15:37:01 -08:00
Alex Holliday ff17092e8a fix fallback condtion for Uptime 2025-01-28 15:35:52 -08:00
Shemy Gan 12b14e1938 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-28 15:05:29 -05:00
Alexander Holliday 3b6e9b24d8 Merge pull request #1656 from bluewave-labs/fix/fe/pagespeed-refactor
fix: fe/pagespeed refactor
2025-01-28 11:17:13 -08:00
Alex Holliday 5880993565 fix PageSpeed name 2025-01-28 11:06:24 -08:00
Alex Holliday 96d984f136 standardize directory names 2025-01-28 11:05:06 -08:00
Alex Holliday 74265d524a Refactor pagespeed page 2025-01-28 11:04:11 -08:00
Alex Holliday 9840999183 standardize uptime directory structure, use shared components 2025-01-28 11:03:46 -08:00
Alex Holliday ac669d8fe1 standardize directory structure 2025-01-28 11:03:15 -08:00
Alex Holliday e67b9ecb09 update fallback component 2025-01-28 10:58:19 -08:00
Alex Holliday 66de46f695 Remove basic table component 2025-01-28 10:58:03 -08:00
Alexander Holliday f00e7e668d Merge pull request #1648 from bluewave-labs/fix/fe/uptime-details-refactor
fix: fe/uptime details refactor
2025-01-28 07:17:26 -08:00
Alexander Holliday 7b39d0980c Merge pull request #1649 from renovate-bot/renovate/recharts-2.x
Update dependency recharts to v2.15.1
2025-01-28 07:14:35 -08:00
Alexander Holliday 6743977859 Merge pull request #1654 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.38.0
2025-01-28 07:14:20 -08:00
Mend Renovate 128745019d Update dependency bullmq to v5.38.0 2025-01-28 12:59:08 +00:00
Mend Renovate fe4f0fae35 Update dependency recharts to v2.15.1 2025-01-28 01:32:04 +00:00
Alex Holliday b2095670ff Add missing prop validation, cleanup 2025-01-27 14:58:37 -08:00
Alex Holliday cb0ec0e182 finish refactor 2025-01-27 14:55:55 -08:00
Alex Holliday 36d46c246e Add pagination label to prop types 2025-01-27 14:55:44 -08:00
Alex Holliday 671d297c2d refactor details 2025-01-27 13:18:05 -08:00
Alex Holliday 674c12af5c Consistent spacing in home page 2025-01-27 13:17:48 -08:00
Alex Holliday 9381429f40 Use Dot component in host 2025-01-27 13:17:23 -08:00
Alex Holliday 5622b3b47e use dayjs to parse dates 2025-01-27 13:17:05 -08:00
Alex Holliday 66e61fc8be Add Dot component 2025-01-27 13:16:26 -08:00
Shemy Gan b7a70c41bb -Fix Tab color 2025-01-27 15:46:46 -05:00
Alex Holliday 08d1a85f9a Add certificate expiry hook 2025-01-27 10:05:17 -08:00
Alex Holliday 94084acd86 iniital commit 2025-01-27 10:00:58 -08:00
Alexander Holliday 66ba0efe7a Merge pull request #1644 from Br0wnHammer/fix/fe/uptime-http
Fix: HTTPS monitors show HTTP on the table
2025-01-27 09:40:20 -08:00
Alexander Holliday 92acbba692 Merge pull request #1645 from bluewave-labs/hotfix/checks-query-params
hotfix: checks query params
2025-01-27 09:39:30 -08:00
Alex Holliday 875c13b5fe Update incident table queries 2025-01-27 09:37:39 -08:00
Alex Holliday cb624f1f29 conditionally add status to the match stage of the aggreagation pipeline 2025-01-27 09:37:29 -08:00
Alex Holliday c7c9835e9c Add validation for status param 2025-01-27 09:36:52 -08:00
Alex Holliday d65a5d001a Add status param to getChecks requests 2025-01-27 09:36:39 -08:00
Aryaman Kumar Sharma 7292af1902 Fix: Update UptimeDataTable to reflect HTTP(s) monitor types 2025-01-27 22:48:14 +05:30
Alexander Holliday 6c0a64d903 Merge pull request #1643 from mertssmnoglu/npmrc-disable-package-lock
Remove package-lock.json and add '.npmrc' to disable lockfile generation
2025-01-27 09:05:45 -08:00
Mert Şişmanoğlu dba266bcd2 chore(npm): Remove package-lock.json and add '.npmrc' to disable lockfile generation
Signed-off-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-27 19:27:05 +03:00
Alexander Holliday ec3b89d150 Merge pull request #1632 from bluewave-labs/fix/fe/uptime-refactor
Fix/fe/uptime refactor
2025-01-27 07:29:40 -08:00
Alex Holliday 65b104f38a remove console log, add back commented out container height 2025-01-27 07:27:53 -08:00
Alex Holliday d7a1c1bb4a Merge remote-tracking branch 'upstream/develop' into fix/fe/uptime-refactor 2025-01-27 07:26:54 -08:00
Alex Holliday 3259425c64 update border radius of circular count 2025-01-27 07:18:02 -08:00
Alex Holliday 6a08097be1 remove console log 2025-01-27 07:15:07 -08:00
Alex Holliday 4624a51a80 remove console.log 2025-01-27 07:11:19 -08:00
Alexander Holliday e0333af16b Merge pull request #1635 from YinDongFang/feature/style
Fix some UI style/Component bugs
2025-01-27 07:10:00 -08:00
Alexander Holliday e4081e5822 Merge pull request #1641 from YinDongFang/fix/networkservice
Fix redundant instantiation of NetworkService
2025-01-26 22:17:20 -08:00
YinDongfang e19dffb186 Fix infrastructure white page error cause by theme color 2025-01-27 12:50:53 +08:00
YinDongfang 7c889dde47 Avoid shadow the networkService 2025-01-27 12:21:46 +08:00
YinDongfang 22cae67ffe Fix redundant instantiation of NetworkService 2025-01-27 11:37:44 +08:00
Alexander Holliday 65b6d1c3ac Merge pull request #1636 from renovate-bot/renovate/reduxjs-toolkit-2.x
fix(deps): update dependency @reduxjs/toolkit to v2.5.1
2025-01-26 19:06:21 -08:00
Alexander Holliday 8b6d2ac1a7 Merge pull request #1638 from jasneetsingh6114/fix/1637
Move "Checks to perform" to the top of "General settings"
2025-01-26 19:06:09 -08:00
Jasneet Singh aa0f0621f9 Move "Checks to perform" to the top of "General settings" 2025-01-26 20:50:12 -05:00
YinDongfang 9a250e1460 Use 10000px instead of infinity 2025-01-27 08:21:46 +08:00
Gorkem Cetin (BWL) 3193ede1b1 Add port monitoring 2025-01-26 18:15:00 -05:00
Skorpios 84fe58b361 Refactor webhook integrations functions. 2025-01-26 14:11:36 -08:00
Mend Renovate e0b7928129 fix(deps): update dependency @reduxjs/toolkit to v2.5.1 2025-01-26 21:37:52 +00:00
Skorpios d83773abd1 Merge remote-tracking branch 'upstream/develop' into feat/be/webhook-integrations 2025-01-26 13:37:48 -08:00
Alexander Holliday b0f9fd4848 Merge pull request #1628 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo to v7.24.1
2025-01-26 09:08:23 -08:00
Alexander Holliday aaa4774a0f Merge pull request #1629 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.37.0
2025-01-26 09:08:09 -08:00
Alexander Holliday ab974ef72a Merge pull request #1631 from renovate-bot/renovate/eslint-monorepo
chore(deps): update eslint monorepo to v9.19.0
2025-01-26 09:07:46 -08:00
YinDongfang 000bb9929c Fix sidebar sticky error 2025-01-26 23:05:18 +08:00
YinDongfang 086a900613 Fix Error Component Stack 2025-01-26 22:48:45 +08:00
YinDongfang 2818ce89af Adjust count box style 2025-01-26 22:32:04 +08:00
Mend Renovate 6d1f085f74 fix(deps): update dependency bullmq to v5.37.0 2025-01-26 10:11:45 +00:00
Gorkem Cetin (BWL) 3024c20546 Better pull request template 2025-01-26 00:30:32 -05:00
Skorpios d3810db6cb Added telegram notifications 2025-01-25 16:13:16 -08:00
Alex Holliday be6d2f25ea rationalize host component 2025-01-24 16:22:14 -08:00
Alex Holliday 0234cab8b5 refactor uptime home page 2025-01-24 13:09:57 -08:00
Alex Holliday a18b817263 refactor components out to Components dir 2025-01-24 13:09:05 -08:00
Alex Holliday a011d83020 Create circular count component 2025-01-24 13:08:33 -08:00
Mend Renovate 2caa4d4609 chore(deps): update eslint monorepo to v9.19.0 2025-01-24 19:58:41 +00:00
Alexander Holliday e8d837b4ca Merge pull request #1627 from bluewave-labs/develop
Develop -> Master
2025-01-24 09:03:45 -08:00
Mend Renovate 130fd23bcd fix(deps): update material-ui monorepo to v7.24.1 2025-01-24 17:03:38 +00:00
Alexander Holliday 2625f9738f Merge pull request #1625 from bluewave-labs/fix/fe/infra-page-cpu-freq
fix: cpu frequency parsing, resolves #1620
2025-01-24 09:02:45 -08:00
Alexander HollidayandMert Şişmanoğlu e693e10d7c Update Client/src/Pages/Infrastructure/index.jsx
Co-authored-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-24 07:47:24 -08:00
Alexander HollidayandMert Şişmanoğlu 6c2f016db4 Update Client/src/Pages/Infrastructure/index.jsx
Co-authored-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-24 07:46:56 -08:00
Alex Holliday b72637476b fix cpu frequency parsing 2025-01-24 07:21:15 -08:00
Alexander Holliday c5c026158a Merge pull request #1622 from bluewave-labs/develop
Develop -> Master
2025-01-23 13:38:16 -08:00
Alexander Holliday cb7c118918 Merge pull request #1621 from bluewave-labs/hotfix/be/port-queue
hotfix: add port type monitors to queue mapping
2025-01-23 13:37:31 -08:00
Alex Holliday 6bb8461435 add port type monitors to queue mapping 2025-01-23 13:35:01 -08:00
Alexander Holliday cd082d1e9d Merge pull request #1619 from bluewave-labs/develop
Develop -> Master hotfix: monitor validation regex
2025-01-23 11:42:50 -08:00
Alexander Holliday 8ff101dca1 Merge pull request #1618 from bluewave-labs/fix/monitor-validation-regex
fix: remove local IP address exclusion from moniotr validation regex
2025-01-23 11:42:01 -08:00
Alex Holliday 35fa32796e remove local IP address exclusion from moniotr validation regex 2025-01-23 11:41:06 -08:00
Alexander Holliday 24be09efff Merge pull request #1617 from bluewave-labs/develop
Develop -> Master
2025-01-23 07:27:16 -08:00
Alexander Holliday 96b408d4dc Merge pull request #1616 from bluewave-labs/fix/demo-monitors
fix: reduce size of demo monitors
2025-01-23 07:26:30 -08:00
Alex Holliday 2c1e854004 reduce size of demo monitors 2025-01-23 07:25:56 -08:00
Alex Holliday c5ba1b1dbe Merge remote-tracking branch 'upstream/master' 2025-01-23 07:12:35 -08:00
Alex Holliday 6f53c31e99 Merge branch 'master' of github.com:popnfresh234/bluewave-uptime 2025-01-23 07:06:14 -08:00
Alexander Holliday 986166e7a5 Merge pull request #1613 from renovate-bot/renovate/nodemailer-6.x-lockfile
fix(deps): update dependency nodemailer to v6.10.0
2025-01-23 07:02:55 -08:00
Alexander Holliday 0e14d8a52e Merge pull request #1614 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.35.1
2025-01-23 07:02:32 -08:00
Mend Renovate 01592cf0f0 fix(deps): update dependency bullmq to v5.35.1 2025-01-23 13:37:56 +00:00
Mend Renovate ffffda7282 fix(deps): update dependency nodemailer to v6.10.0 2025-01-23 09:14:59 +00:00
Skorpios 172597e768 Add Slack webhook integration. 2025-01-22 18:46:50 -08:00
Skorpios 28f5d355a7 Add Discord webhook notification support 2025-01-22 15:41:47 -08:00
Alexander Holliday d3ad898f73 Merge pull request #1611 from bluewave-labs/fix/maintenance-colors
Fix/maintenance colors
2025-01-22 12:45:10 -08:00
Alexander Holliday 027b331220 Merge pull request #1607 from bluewave-labs/fix/be/incidents
fix: be/incidents, resolves #1567
2025-01-22 12:44:14 -08:00
Alex Holliday 7b5d49c0e2 Fix maintenace table and colors 2025-01-22 12:40:29 -08:00
Alex Holliday bc8d43e222 Merge branch 'fix/be/incidents' into fix/maintenance-colors 2025-01-22 12:18:39 -08:00
Alex Holliday 1b31f9ac4c Remove console logs, update UI 2025-01-22 11:36:27 -08:00
Alex Holliday 15cd3b23c3 Add daterange prop 2025-01-22 11:13:44 -08:00
Alex Holliday 4268966b44 Add hour filter to incidents page 2025-01-22 11:10:09 -08:00
Alex Holliday f46f8cb12b Add hour filter to incidents page 2025-01-22 11:07:43 -08:00
Alex Holliday fc36da4f7b Add hour filters to check queries 2025-01-22 11:07:32 -08:00
Alex Holliday 2a74f2e8da remove seed from index 2025-01-22 11:06:39 -08:00
Alex Holliday 9ffe17e9eb add db utils 2025-01-22 08:29:38 -08:00
Alexander Holliday e4f2cfb978 Merge pull request #1609 from renovate-bot/renovate/mocha-11.x
chore(deps): update dependency mocha to v11.1.0
2025-01-22 07:20:53 -08:00
Alex Holliday 9a8ce41c95 add db utils for seeding db 2025-01-22 07:06:53 -08:00
Mend Renovate 90e697a1bd chore(deps): update dependency mocha to v11.1.0 2025-01-22 14:57:22 +00:00
Alexander Holliday 488e50ace5 Merge pull request #1608 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.35.0
2025-01-22 06:56:36 -08:00
Mend Renovate 00e1286f24 fix(deps): update dependency bullmq to v5.35.0 2025-01-22 13:04:14 +00:00
Gorkem Cetin (BWL) fcd28afc97 Add github trending #1 badge 2025-01-22 01:38:07 -05:00
Alex Holliday 0d53a1e5fb Merge branch 'develop' into fix/be/incidents 2025-01-21 22:22:10 -08:00
Gorkem Cetin (BWL) c7b65e537a Update roadmap 2025-01-22 00:02:17 -05:00
Shemy Gan 083a134339 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-21 21:09:40 -05:00
Gorkem Cetin (BWL) 2c8e1c8444 Merge pull request #1606 from bluewave-labs/gorkem-bwl-patch-1
Update index.jsx
2025-01-21 20:21:09 -05:00
Gorkem Cetin (BWL) 9e9f5d435d Update index.jsx 2025-01-21 20:20:34 -05:00
Alex Holliday f5480cbfba Add default key to table rows 2025-01-21 15:39:49 -08:00
Alex Holliday 9535ffa192 Refactor Pagination component to accept a label to improve reusability. Use Pagination component with Incident table 2025-01-21 15:31:40 -08:00
Alex Holliday 4ed995692d Refactor incident endpoints to use aggregation 2025-01-21 15:30:51 -08:00
Alexander Holliday c4d223aee5 Merge pull request #1556 from bluewave-labs/fix/colors-general
Fix/colors general
2025-01-21 13:26:13 -08:00
Alex Holliday f8b3847577 Remove console log 2025-01-21 13:22:29 -08:00
Alex Holliday d92a477892 Add darker color to accent 2025-01-21 11:38:32 -08:00
Alex Holliday 6eedaa5ca0 various infra details page color fixes 2025-01-21 10:58:08 -08:00
Alex Holliday 239164e779 Fixed invisible text on login page 2025-01-21 10:57:53 -08:00
Alex Holliday 2070e24829 Fix gauge colors 2025-01-21 10:57:34 -08:00
Alex Holliday 8021786d0c fix gauge colors 2025-01-21 10:24:09 -08:00
Shemy Gan 66325bd471 - Adjust logo and Remove log button margins 2025-01-21 13:22:01 -05:00
Alex Holliday f68e885c88 status box fix 2025-01-21 10:20:43 -08:00
Alexander Holliday 0cfc041088 Merge pull request #1596 from renovate-bot/renovate/vite-5.x-lockfile
chore(deps): update dependency vite to v5.4.14
2025-01-21 07:04:22 -08:00
Alexander Holliday a53e0f7f20 Merge pull request #1601 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo
2025-01-21 07:04:04 -08:00
Gorkem Cetin (BWL) 5fb748156f Delete guides directory as all documentation is kept in a separate repo now 2025-01-21 09:38:19 -05:00
Mend Renovate 9ebe9fe613 fix(deps): update material-ui monorepo 2025-01-21 13:40:22 +00:00
Mend Renovate 2b957e5cac chore(deps): update dependency vite to v5.4.14 2025-01-21 13:40:15 +00:00
Alex Holliday 8048dae81c color fixes 2025-01-20 15:26:15 -08:00
Alexander Holliday d91fe03acc Merge pull request #1591 from bluewave-labs/feat/be/consistent-response-middleare
feat: be/consistent response middleare
2025-01-20 11:48:40 -08:00
Alexander Holliday 8d148cd4bf Merge pull request #1587 from DMJain/develop
#1584 Removed Checkboxes for Notification : SMS & Multi Email
2025-01-20 11:03:57 -08:00
Alex Holliday 792b51b488 fix typos 2025-01-20 11:02:55 -08:00
Alexander Holliday 261d32e51e Merge pull request #1592 from renovate-bot/renovate/vite-5.x-lockfile
chore(deps): update dependency vite to v5.4.12
2025-01-20 06:56:13 -08:00
Alexander Holliday abb4a53816 Merge pull request #1594 from mertssmnoglu/fix/client-old-name
Implement new Checkmate logo to frontend
2025-01-20 06:55:03 -08:00
Mert Şişmanoğlu f73be34877 chore: Replace BlueWave Uptime logo with Checkmate logo across the pages
Signed-off-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-20 15:06:17 +03:00
Mert Şişmanoğlu 2cee0b4690 chore(client): Update checkmate favicon
Signed-off-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-20 15:05:21 +03:00
Darshan Jain 4ed6942d8b Merge branch 'issue#1584' into develop 2025-01-20 16:37:16 +05:30
Darshan Jain ed9a89b526 #1584 comments 2025-01-20 16:36:50 +05:30
Darshan Jain e99010e81d Merge branch 'develop' of https://github.com/DMJain/Checkmate into develop 2025-01-20 16:33:56 +05:30
Mend Renovate 36d20f90f6 Update dependency vite to v5.4.12 2025-01-20 09:45:16 +00:00
Darshan Jain d8b1d63faa commenting out checkboxs and input box instead of deleting for future implementations 2025-01-20 13:26:29 +05:30
Alex Holliday 9f43336a03 Use response handler in handleErrors middleare 2025-01-19 20:14:03 -08:00
Mert Şişmanoğlu 84dd4a49c9 fix: Update BlueWave Uptime references to Checkmate on the Client side and /index.html
Signed-off-by: Mert Şişmanoğlu <mert190737fb@gmail.com>
2025-01-20 02:48:26 +03:00
Shemy Gan dba8517d25 - add onBlur to handle Serverslist validation 2025-01-19 15:43:14 -05:00
Alex Holliday e9eadfe838 use response middleware in StatusPageController 2025-01-19 12:05:45 -08:00
Alex Holliday 627c80581d use response middleware in SettingsController 2025-01-19 12:05:15 -08:00
Alex Holliday 3608eadb8c use response middleware in QueueController 2025-01-19 12:04:47 -08:00
Alex Holliday 378a190cd3 use response middleware in MonitorController 2025-01-19 12:01:27 -08:00
Darshan Jain f04cc6caf5 Merge branch 'bluewave-labs:develop' into develop 2025-01-19 23:40:59 +05:30
Darshan Jain 6ed8f93688 #1584 removed conditional input box for multi email 2025-01-19 23:35:01 +05:30
Alex Holliday f0bf680f19 use response middleware in MaintenanceWindowController 2025-01-19 10:01:48 -08:00
Darshan Jain 4d2c59b30c #1584 removed checkbox for incident notification: SMS, Multi Email 2025-01-19 23:30:08 +05:30
Alex Holliday e5f8d88c5a use response middleware in InviteController 2025-01-19 09:59:13 -08:00
Alex Holliday 0aaeeef113 remove unnecessary try/catch 2025-01-19 09:56:28 -08:00
Alex Holliday da89789a97 use response middleware in CheckController 2025-01-19 09:55:48 -08:00
Alex Holliday 252c16ac1b add a response middleware to enforce consistent API response 2025-01-19 09:53:03 -08:00
Alexander Holliday 5f9404178c Merge pull request #1574 from renovate-bot/renovate/dockerode-4.x
Update dependency dockerode to v4.0.4
2025-01-19 09:19:48 -08:00
Alexander Holliday 9b6e40fa34 Merge pull request #1575 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.24.0
2025-01-19 09:19:30 -08:00
Gorkem Cetin (BWL) 7abc2280af Update README.md 2025-01-19 01:29:03 -05:00
Gorkem Cetin (BWL) 8a356cf38d Map roadmap items to issues 2025-01-18 21:53:53 -05:00
Gorkem Cetin (BWL) cb1751f362 Update README.md 2025-01-18 14:07:35 -05:00
Gorkem Cetin (BWL) 0c7891f136 Update README.md 2025-01-18 13:21:19 -05:00
Shemy Gan f0352cc215 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-17 14:39:33 -05:00
Mend Renovate 0bf1cbdfa9 Update material-ui monorepo to v7.24.0 2025-01-17 19:35:15 +00:00
Mend Renovate 866f89ef09 Update dependency dockerode to v4.0.4 2025-01-17 19:35:05 +00:00
Shemy Gan 045a9cff3a - Remove Color picker OOTB label, add custom label
- Add label for logo
- Replace react beautiful dnd with hello-pangea to fix the  "defaultProps will not be supported " console warning due to react beatuful dnd deprecation
- Add all the checkboxes and respective validation
- Remove subdomain from UI display
- Pass Handlers as context for both tabs to ease code scalability
- All Status page fields are now ready for submission
2025-01-17 14:34:29 -05:00
Alexander Holliday ead3704173 Merge pull request #1563 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.34.10
2025-01-16 10:02:46 -08:00
Alexander Holliday b67f0bbfcd Merge pull request #1565 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-01-16 10:02:31 -08:00
Alexander Holliday 8d49ed50d8 Merge pull request #1572 from renovate-bot/renovate/npm-mongoose-vulnerability
Update dependency mongoose to v8.9.5 [SECURITY]
2025-01-16 10:02:16 -08:00
Mend Renovate 389ed2768a Update dependency mongoose to v8.9.5 [SECURITY] 2025-01-16 18:01:57 +00:00
Alexander Holliday d67acfe0ba Merge pull request #1571 from renovate-bot/renovate/react-router-monorepo
Update react-router monorepo to v6.28.2
2025-01-16 10:00:59 -08:00
Alexander Holliday d9a1f41b9d Merge pull request #1569 from not-Ryan/patch-1
Fix server is down mjml to show monitor name
2025-01-16 10:00:39 -08:00
Mend Renovate c073e086cb Update react-router monorepo to v6.28.2 2025-01-16 17:43:52 +00:00
Caio Cabral bc9d8f0b3c feat: fix INfrastructure counter 2025-01-15 19:34:49 -05:00
Caio Cabral ec94458de4 fix: Name on team table 2025-01-15 19:19:18 -05:00
Caio Cabral 8404cee349 refactor: change all selects instead of relying on sx 2025-01-15 19:16:33 -05:00
Caio Cabral 6864756552 feat: fix select 2025-01-15 19:13:34 -05:00
Caio Cabral 7d76aee647 feat: tabs 2025-01-15 18:58:44 -05:00
Caio Cabral 8661e8305d removing fixed height from css 2025-01-15 18:35:00 -05:00
Caio Cabral 851ad48b3e feat: Profile Panel buttons 2025-01-15 17:51:13 -05:00
Caio Cabral 53fcd5acc7 fix: pagespeed details 2025-01-15 08:07:48 -05:00
Caio Cabral 59f60d2184 fix inputs 2025-01-15 07:55:22 -05:00
notRyan 0345f06614 Fix server is down mjml to show monitor name
Was static google.com is now the monitor name in the header
2025-01-15 09:33:43 +01:00
Alexander Holliday aa852bd162 Merge pull request #1568 from bluewave-labs/hotfix/fe/maintenance-window-montior-list
hotfix: replace limit = -1 with limit = null
2025-01-14 22:24:31 -08:00
Alex Holliday 7e1b8df8fc replace limit = -1 with limit = null 2025-01-14 22:23:40 -08:00
Gorkem Cetin (BWL) f0aea3a534 Better screenshots 2025-01-14 23:11:44 -05:00
Caio Cabral b4ba9efd45 fix: table header color 2025-01-14 22:58:46 -05:00
Caio Cabral d09382bc71 fix: toast 2025-01-14 20:25:20 -05:00
Caio Cabral 8fe200fb8b feat: finished 2025-01-14 19:19:36 -05:00
Gorkem Cetin (BWL) 9538b5670f Update README.md 2025-01-14 18:57:15 -05:00
Caio Cabral 6cdac32bce feat: some colors fixed, table alignment 2025-01-14 18:54:00 -05:00
Mend Renovate bf74e8b64e Update material-ui monorepo 2025-01-14 21:11:41 +00:00
Shemy Gan 642c5f0479 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-14 16:11:19 -05:00
Shemy Gan e8a9c0da36 - Use React beautiful dnd library for servers list section
- The dnded servers list order can be sent for persistence now
- Removed the previous React DND and Html5 Backend libraries as it
is more lower level and hard to enable the drag indicator within AutoComplete
2025-01-14 16:10:34 -05:00
Mend Renovate c665a3777c Update dependency bullmq to v5.34.10 2025-01-14 17:55:00 +00:00
Alexander Holliday b599dcd68f Merge pull request #1560 from renovate-bot/renovate/eslint-plugin-react-7.x-lockfile
Update dependency eslint-plugin-react to v7.37.4
2025-01-14 09:54:36 -08:00
Alexander Holliday cfcaa0cbc5 Merge pull request #1555 from bluewave-labs/fix/fe/network-alerts
fix: fe axios error handler
2025-01-14 09:54:17 -08:00
Alexander Holliday 80ab5f0fd6 Merge pull request #1559 from bluewave-labs/fix/fe/has-monitors
fix: hasMonitors logic
2025-01-14 09:53:59 -08:00
Shemy Gan b5409f0c0f - Made the reorder icon having indicator and move it outside the search box 2025-01-14 10:38:55 -05:00
Caio Cabral d54272ba30 cleaning unused code 2025-01-14 08:36:48 -05:00
Caio Cabral 5e9629ee29 fix: primary buttons 2025-01-14 08:09:03 -05:00
Caio Cabral 921fb6e458 spotted errors nd marked to be solved after merge 2025-01-14 07:59:08 -05:00
Gorkem Cetin (BWL) c46ef40cb7 Update README.md 2025-01-13 16:22:47 -05:00
Mend Renovate 701bcf3b68 Update dependency eslint-plugin-react to v7.37.4 2025-01-13 08:21:44 +00:00
Alex Holliday a7c99fcd58 fix hasMonitors logic 2025-01-12 17:18:50 -08:00
Caio Cabral 2ab6a578c3 merging 2025-01-12 13:33:11 -05:00
Caio Cabral a6eb97050b feat: finishing adjusting colors 2025-01-12 13:03:09 -05:00
Alex Holliday ef4b11c72b fix error handler 2025-01-12 09:51:25 -08:00
Caio Cabral e235279af0 feat: fix incident table 2025-01-12 12:35:14 -05:00
Caio Cabral 541a5b3f12 feat: fixing lots of colors 2025-01-12 12:28:13 -05:00
Alexander Holliday 0e443e4088 Merge pull request #1551 from renovate-bot/renovate/eslint-monorepo
Update eslint monorepo to v9.18.0
2025-01-12 09:17:42 -08:00
Alexander Holliday 2b61ff4fca Merge pull request #1553 from renovate-bot/renovate/eslint-plugin-react-refresh-0.x-lockfile
Update dependency eslint-plugin-react-refresh to v0.4.18
2025-01-12 09:17:27 -08:00
Alexander Holliday c171a718f4 Merge pull request #1554 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.34.9
2025-01-12 09:17:15 -08:00
Mend Renovate 2f2977cfac Update dependency bullmq to v5.34.9 2025-01-12 16:54:16 +00:00
Caio Cabral 61aaa8489a feat: simplify and adjust status label 2025-01-12 09:39:31 -05:00
Caio Cabral 5eca39cd04 feat: set accent color buttons hover colors 2025-01-12 08:33:33 -05:00
Caio Cabral 9fb6db6921 feat: excluding selected path from hover changes 2025-01-12 08:24:09 -05:00
Caio Cabral 46af783ce6 feat: colors for sidebar 2025-01-12 08:19:29 -05:00
Caio Cabral 5fcc87dab4 feat: all colors inside of sideBar 2025-01-11 18:06:47 -05:00
Caio Cabral 74c598e191 feat: changed a whole bunch of colors 2025-01-11 17:21:10 -05:00
Mend Renovate 3b9c747b76 Update dependency eslint-plugin-react-refresh to v0.4.18 2025-01-11 22:16:36 +00:00
Caio Cabral 3b1657c415 feat: changing background main for primary main 2025-01-11 16:53:00 -05:00
Caio Cabral c0df164e46 feat: changing background accent for tertiary main 2025-01-11 16:50:48 -05:00
Caio Cabral 6bb38c9339 feat: extract function 2025-01-11 16:40:07 -05:00
Caio Cabral b0aa5e64f4 feat: changing green for dark mode 2025-01-11 11:53:35 -05:00
Caio Cabral 059927cc20 feat: changing green for light mode 2025-01-11 11:49:02 -05:00
Caio Cabral 78340ce63b fix: logo 2025-01-11 10:06:31 -05:00
Caio Cabral 8cf28fe947 fix: label background color 2025-01-11 10:03:11 -05:00
Caio Cabral d027407562 fix percentage uptimePoor 2025-01-11 09:54:11 -05:00
Caio Cabral dbd351b2f1 fix many 2025-01-11 09:53:27 -05:00
Gorkem Cetin (BWL) 6542852634 Update README.md 2025-01-11 03:34:25 -05:00
Gorkem Cetin (BWL) 4fab3f8713 Delete grant_funding.md as we are referencing to https://checkmate.so 2025-01-11 02:32:49 -05:00
Gorkem Cetin (BWL) 4a655b0328 Newreleases.io + fix star numbers 2025-01-10 23:48:24 -05:00
Alexander Holliday e4f7d9eb7a Merge pull request #1552 from bluewave-labs/hotfix/be/default-sort-order
hotfix: add a default sort order if a field to sort by is not specified
2025-01-10 20:07:37 -08:00
Alex Holliday c61f08b31c Add a default sort order if a field to sort by is not specified 2025-01-10 20:06:01 -08:00
Mend Renovate 64deae1257 Update eslint monorepo to v9.18.0 2025-01-11 01:09:50 +00:00
Alexander Holliday 9c484a59d6 Merge pull request #1550 from bluewave-labs/fix/be/fe/search
fix: be/fe/search, resolves #1549
2025-01-10 13:45:55 -08:00
Alex Holliday cd14659a59 Use all monitors for search component instead of filtered monitors 2025-01-10 13:23:32 -08:00
Alex Holliday 367d3602c8 add array of all monitors to response for search 2025-01-10 13:23:19 -08:00
Shemy Gan 6f4c606356 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-10 15:28:01 -05:00
Shemy Gan df86c926c7 - Make status page url disabled and read from env
- Use ColorPicker for color selection
2025-01-10 15:27:07 -05:00
Shemy Gan df4a7f6720 - Add MUI Color Picker component 2025-01-10 15:25:29 -05:00
Alexander Holliday af8f3a0351 Merge pull request #1548 from bluewave-labs/fix/be/uptime-duration
fix: be/uptime duration
2025-01-10 12:14:33 -08:00
Alexander Holliday b8a6258402 Merge pull request #1542 from bluewave-labs/fix/be/jobqueue-scheduler
fix: use jobScheduler instead of deprecatred repeatable
2025-01-10 12:14:12 -08:00
Alex Holliday 12cc20a852 refactor uptime details query 2025-01-10 12:12:33 -08:00
Alex Holliday d495ca67e1 Merge branch 'fix/be/jobqueue-scheduler' into fix/be/uptime-duration 2025-01-10 09:48:53 -08:00
Alex Holliday 70898da69d Merge branch 'develop' into fix/be/uptime-duration 2025-01-10 09:48:10 -08:00
Alex Holliday 59c6f39ea9 Remove incomplete line 2025-01-10 09:46:22 -08:00
Alexander Holliday 50a7741dcc Merge pull request #1544 from renovate-bot/renovate/mongoose-8.x-lockfile
Update dependency mongoose to v8.9.4
2025-01-10 09:44:03 -08:00
Alexander Holliday a2102ca77a Merge pull request #1524 from jasneetsingh6114/feat/issue-1482
Inform Admin incase of server issue.
2025-01-10 09:43:46 -08:00
Shemy Gan a1d4ec4185 Update based on meeting
- Query only uptime monitors without checks
- Change log validation from 640Kb  to 3Mb, fixed validation error text contrast issue
- Word/syntax updates, suburl is disabled and provided via env
2025-01-10 11:06:36 -05:00
Alex Holliday cd3767a040 new duration algorithm 2025-01-09 20:50:08 -08:00
Mend Renovate 5bb1e64f25 Update dependency mongoose to v8.9.4 2025-01-09 23:07:07 +00:00
Jasneet Singh 74f23c1792 Address pr comments 2025-01-09 17:38:08 -05:00
Alex Holliday c1d6433e6c use jobScheduler instead of deprecatred repeatable 2025-01-09 12:01:51 -08:00
Alexander Holliday 2dfe5dec7c Merge pull request #1540 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo to v7.23.6
2025-01-09 10:53:30 -08:00
Alexander Holliday 5db231351e Merge pull request #1541 from bluewave-labs/hotfix/fe/be/incidents-page
hotfix: fe/be/incidents page
2025-01-09 10:53:14 -08:00
Caio Cabral 3787f9c288 feat: fix success grdient 2025-01-09 13:50:50 -05:00
Alex Holliday ef23648941 ommit checks from query if limit is null 2025-01-09 10:42:25 -08:00
Alex Holliday e8aecb4041 fix method name 2025-01-09 10:42:01 -08:00
Alex Holliday d76f02ba51 repalce limit param of -1 with null 2025-01-09 10:41:33 -08:00
Caio Cabral be144c5ed2 feat: search and actions 2025-01-09 12:32:54 -05:00
Caio Cabral 07641a2bd8 feat: fixing table 2025-01-09 12:19:28 -05:00
Shemy Gan e8d9f310c1 - Pass custom file size to ImageField
- Update getmonitors to match be change (-1 is not accepted as valid param anymore)
- Fix Select not updateable
2025-01-09 11:19:07 -05:00
Mend Renovate 83b43d060a Update material-ui monorepo to v7.23.6 2025-01-09 15:21:09 +00:00
Caio Cabral 7686b1ecf5 fix: breadcrumbs 2025-01-09 08:40:25 -05:00
Caio Cabral 3ffcadc06e feat: setting new colors 2025-01-08 21:41:59 -05:00
Shemy Gan ff7fe7f5f2 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-08 19:44:27 -05:00
Alexander Holliday 975e6d61b5 Merge pull request #1537 from bluewave-labs/hotfix/remove-missing-import
hotfix: remove missing import
2025-01-08 15:22:46 -08:00
Alex Holliday 6d82cb7eb2 remove missing import 2025-01-08 15:22:06 -08:00
Alexander Holliday 7a140e75f1 Merge pull request #1529 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.34.8
2025-01-08 15:15:09 -08:00
Alexander Holliday 51ab3487ee Merge pull request #1536 from bluewave-labs/fix/fe/debounce-search
fix: fix unnecessary rerenders
2025-01-08 15:14:48 -08:00
Alex Holliday de01a430a3 fix unnecessary rerenders 2025-01-08 15:13:35 -08:00
Alexander Holliday 5b1fbf8817 Merge pull request #1535 from bluewave-labs/hotfix/fe/be/filtering
hotfix: move filtering to the monitors facet
2025-01-08 14:18:45 -08:00
Alex Holliday 40fbe4a822 move filtering to the monitors facet 2025-01-08 14:17:29 -08:00
Alexander Holliday 75c6a6e024 Merge pull request #1534 from bluewave-labs/hotfix/fe/uptime-skeleton
hotfix: readd skeleton
2025-01-08 14:04:07 -08:00
Alex Holliday 62541f3fdd readd skeleton 2025-01-08 14:03:23 -08:00
Alexander Holliday b909210d21 Merge pull request #1533 from bluewave-labs/feat/be/unified-uptime-query
feat: be/unified uptime query
2025-01-08 13:53:29 -08:00
Alex Holliday de3a8be76c Use new query in Uptime page 2025-01-08 13:47:42 -08:00
Alex Holliday 7862f8d967 use new query in PageSpeed page 2025-01-08 13:47:20 -08:00
Alex Holliday bde4269fd1 use new query in infra page 2025-01-08 13:46:49 -08:00
Alex Holliday e616df2766 Remove unused thunks from uptime slice 2025-01-08 13:46:19 -08:00
Alex Holliday 1805ca8d17 Remove unnecessary params from getMonitorsByTeamId 2025-01-08 13:45:34 -08:00
Alex Holliday 979110dd77 Rewrite team monitors query 2025-01-08 13:44:24 -08:00
Alex Holliday 87f9c35c74 remove unused validation, update monitors by team ID validation 2025-01-08 13:42:43 -08:00
Alex Holliday 8f572ba01d Remove summary controller method, rewrite getMonitosByTeamId 2025-01-08 13:42:08 -08:00
Alex Holliday 7cfc06b2da Remove summary route 2025-01-08 13:40:57 -08:00
Alex Holliday 5da542b99e formatting 2025-01-08 12:01:43 -08:00
Alex Holliday cf5152d0ec remove unused dispatch from pagespeed 2025-01-08 12:01:28 -08:00
Alexander Holliday 61ee7a1059 Merge pull request #1532 from bluewave-labs/hotfix/fe/pagination
hotfix: use redux state for pagination
2025-01-08 11:55:14 -08:00
Alex Holliday 8d8082bb83 use redux state for pagination 2025-01-08 11:53:13 -08:00
Alexander Holliday ac839cae6c Merge pull request #1531 from bluewave-labs/fix/be/get-monitors-by-team-id-query
Fix/be/get monitors by team id query
2025-01-08 10:19:10 -08:00
Alex Holliday 2694f836c7 fix destructuring 2025-01-08 10:17:51 -08:00
Alex Holliday 35796dccd4 add normalize check 2025-01-08 10:06:50 -08:00
Alex Holliday ef56283fa9 Fix merge conflict, remove unused dispatch 2025-01-08 10:05:34 -08:00
Gorkem Cetin (BWL) dc43c0486c Add OpenSSF best practices badge 2025-01-08 01:22:33 -05:00
Mend Renovate dffbce1de1 Update dependency bullmq to v5.34.8 2025-01-08 05:48:23 +00:00
Alexander Holliday cac5dff694 Merge pull request #1526 from KalyanBhowmick/fix/be/incident-filter
Query updated for Incidents page filter
2025-01-07 21:47:50 -08:00
Kalyan Bhowmick 0e4cf8cded resolve query reverted 2025-01-08 10:30:22 +05:30
Caio Cabral db86753701 feat: updating texts 2025-01-07 21:27:52 -05:00
Alex Holliday a4989d3e95 Merge branch 'develop' into fix/be/get-monitors-by-team-id-query 2025-01-07 16:27:58 -08:00
Alex Holliday 0b803da5fb rewrite query to use aggregation pipeline 2025-01-07 16:27:35 -08:00
Alexander Holliday da9345abf5 Merge pull request #1528 from bluewave-labs/fix/fe/uptime-home
fix: fe/uptime home
2025-01-07 14:57:13 -08:00
Alexander Holliday 803a110345 Merge branch 'develop' into fix/fe/uptime-home 2025-01-07 14:57:03 -08:00
Alexander Holliday cba6734623 Merge pull request #1527 from bluewave-labs/fix/fe/simplify-monitor-summary
remove monitors from summary, unused
2025-01-07 14:54:52 -08:00
Alexander Holliday 4409afc0d0 Merge pull request #1523 from renovate-bot/renovate/bullmq-5.x
Update dependency bullmq to v5.34.7
2025-01-07 14:54:32 -08:00
Alex Holliday 787bb09235 fix pagination icon positioning 2025-01-07 14:52:10 -08:00
Alex Holliday 0cc5c732c7 Fix sort arrow positioning 2025-01-07 14:45:18 -08:00
Alex Holliday 1898880774 remove utility hook 2025-01-07 14:34:18 -08:00
Alex Holliday 89d0a74ade Use new table component, remove old table 2025-01-07 14:31:25 -08:00
Alex Holliday e070ef472e Create new UptimeDataTable component to hold search, table, and pagination 2025-01-07 14:30:27 -08:00
Alex Holliday 8bc05e4424 Rewrite uptime home page for simplicity, move queries to parent 2025-01-07 14:29:47 -08:00
Alex Holliday 37207da9fa Rename get method in network service 2025-01-07 14:28:46 -08:00
Alex Holliday 33b3143298 use correct name for redux action 2025-01-07 14:27:55 -08:00
Alex Holliday 290740d58e Add getting monitors by team id to redux slice to make use of loading state 2025-01-07 14:24:47 -08:00
Alex Holliday 741f0d1884 Merge branch 'develop' into fix/fe/uptime-home 2025-01-07 12:05:19 -08:00
Kalyan Bhowmick de513c226c Query updated for Incidents page filter 2025-01-07 23:48:12 +05:30
Alex Holliday e2d5388a30 remove monitors from summary, unused 2025-01-07 10:12:41 -08:00
Alexander Holliday 624ea50684 Merge pull request #1522 from bluewave-labs/fix/fe/uptime-details
Fix incorrect uptime check count, refactor out query pipelines
2025-01-06 16:35:23 -08:00
Mend Renovate 3ff9b19abf Update dependency bullmq to v5.34.7 2025-01-07 00:35:23 +00:00
Alexander Holliday 05bfbe2154 Merge pull request #1515 from bluewave-labs/feat/fe/reusable-data-table
feat: fe/reusable data table
2025-01-06 16:35:05 -08:00
Alexander Holliday a5aa00337a Merge pull request #1512 from bluewave-labs/fix/fe/charts-date-display
fix: fe/charts date display
2025-01-06 16:34:47 -08:00
Alex Holliday 9e1f50bc8e remove unused var 2025-01-06 15:24:16 -08:00
Alexander Holliday 36bbf5aba0 Merge pull request #1521 from bluewave-labs/hotfix/be/jobqueue-logging
hotfic: add more logging to jobqueue
2025-01-06 14:31:40 -08:00
Alex Holliday 299ae95a0d Add more logging to jobqueue 2025-01-06 14:30:48 -08:00
Alex Holliday ca42e2608f Fix incorrect uptime check count, refactor out query pipelines 2025-01-06 14:24:08 -08:00
Alexander Holliday dd5e14b6a5 Merge pull request #1505 from bluewave-labs/feat/devops/redis-health-check
feat: devops/add healthcheck to redis image
2025-01-06 14:08:28 -08:00
Jasneet Singh 4398010a9f Inform Admin incase of server issue. 2025-01-06 16:38:58 -05:00
Gorkem Cetin (BWL) 208677f9bc fix anyways 2025-01-06 13:57:24 -05:00
Gorkem Cetin (BWL) d600779432 Suggest watching 2025-01-06 13:57:06 -05:00
Alexander Holliday 303d3c5ba8 Merge pull request #1520 from bluewave-labs/hotfix/fe/validation
hotfix: make protocol optional for validation
2025-01-06 10:14:16 -08:00
Alex Holliday abe2544a2a make protocol optional for validation 2025-01-06 10:13:24 -08:00
Alexander Holliday 8045d2a17c Merge pull request #1516 from renovate-bot/renovate/dockerode-4.x
Update dependency dockerode to v4.0.3
2025-01-06 10:09:23 -08:00
Alexander Holliday 40b302fcf5 Merge pull request #1519 from bluewave-labs/hotfix/fe/monitor-validation
hotfix: fe/monitor validation, resolves #1518
2025-01-06 10:09:07 -08:00
Alex Holliday 21a33f8f37 Added source 2025-01-06 10:06:26 -08:00
Alex Holliday e2ce886a16 Update regex to avoid catastrophic backtracking 2025-01-06 10:05:53 -08:00
Gorkem Cetin (BWL) a9ceecbdb2 Update README.md 2025-01-06 04:46:28 -05:00
Gorkem Cetin (BWL) a74085abbe Fix screenshot 2025-01-06 04:42:56 -05:00
Gorkem Cetin (BWL) 99089ab103 Update README.md 2025-01-05 20:49:23 -05:00
Gorkem Cetin (BWL) 2a99c87ff2 Update README.md 2025-01-05 11:30:39 -05:00
Mend Renovate 09aa62d42e Update dependency dockerode to v4.0.3 2025-01-04 14:03:58 +00:00
Alexander Holliday 91a93bd8fb Merge pull request #1513 from renovate-bot/renovate/material-ui-monorepo
Update material-ui monorepo
2025-01-03 12:44:29 -08:00
Alexander Holliday 118796c4ef Merge pull request #1514 from rafeyrana/issue#1508
Left align Profile > Password components
2025-01-03 12:44:12 -08:00
Alex Holliday 8dd1dc8cca Removed unused BasicTable 2025-01-03 12:41:14 -08:00
Alex Holliday bd502a610a Move pagination components from Infrastrucutre directory to reusable table directory 2025-01-03 12:24:06 -08:00
Alex Holliday 447c9ce70b Use reuseable table in Uptime home page 2025-01-03 12:23:08 -08:00
Alex Holliday c504fbbad6 use reusable table in infrastructure page 2025-01-03 12:22:24 -08:00
Alex Holliday c69389db2c use reusable table in incidents page 2025-01-03 12:21:59 -08:00
Alex Holliday a053eebdb0 Use reusable table in team page 2025-01-03 12:21:33 -08:00
Alex Holliday 0c608fdc8e Fix conditional rendering of empty view 2025-01-03 12:09:05 -08:00
Rafey Rana 2c21a44e76 Left align Profile > Password components 2025-01-03 14:30:12 -05:00
Shemy Gan a544a0f7e5 Merge branch 'develop' into feat/fe/statuspage-3 2025-01-03 14:28:37 -05:00
Shemy Gan 5226f3c9b1 - Update to add status page subdomain as env variable
- Adjust Server lists and Add new layout etc
- Adjust Save button
2025-01-03 14:26:41 -05:00
Alex Holliday c6ef46133c safe data access, add default empty view 2025-01-03 11:17:55 -08:00
Alex Holliday c192d7024e Add empty view to table 2025-01-03 11:14:23 -08:00
Alex Holliday 3d067e8030 make config optional, safe SX access 2025-01-03 10:36:53 -08:00
Alex Holliday 83dc96887d Create a reusable table component 2025-01-03 10:31:38 -08:00
Mend Renovate 6b1d6b64d6 Update material-ui monorepo 2025-01-03 14:04:46 +00:00
Alex Holliday 032adb4a77 Refactor date format lookup to util functions, refactor x-axis for infra details charts 2025-01-02 14:22:31 -08:00
Alex Holliday ef13af3884 Update x-axis labels for uptime monitor details chart 2025-01-02 14:07:38 -08:00
Shemy Gan 8b72f8447d - Update logo handling and validation
- Update card initialization
2025-01-02 15:30:24 -05:00
Alexander Holliday 67749585e0 Merge pull request #1511 from bluewave-labs/hotfix/be/env-config
hotfix: fix env vars for settings service
2025-01-02 12:30:15 -08:00
Alex Holliday eee33e85c4 Remove superfluous dotenv from authController, add missing dotenv to settingsService 2025-01-02 12:27:19 -08:00
Alexander Holliday d46cc3d037 Merge pull request #1510 from bluewave-labs/feat/be/distributed-uptime
feat: be/distributed uptime
2025-01-02 12:08:27 -08:00
Alex Holliday 648d40648c move ngrok to dev dependencies 2025-01-02 12:06:01 -08:00
Alex Holliday 56cd3f5d9f update docs 2025-01-02 12:02:44 -08:00
Alex Holliday 74ec29fbc1 add routes to app 2025-01-02 12:02:28 -08:00
Alex Holliday ba7cb151a2 Add distributed uptime router 2025-01-02 11:47:09 -08:00
Alex Holliday 3b5a1827ad Add distributedUptimeController 2025-01-02 11:45:29 -08:00
Alex Holliday 71fd2fb5ef use ngrok 2025-01-02 11:40:26 -08:00
Alex Holliday b91cf296f1 add ngrok 2025-01-02 11:40:13 -08:00
Alex Holliday c284eafd63 update logs to standard 2025-01-02 11:39:53 -08:00
Alex Holliday 3fc5d7a336 udpate log to standard 2025-01-02 11:34:09 -08:00
Alex Holliday 3fb114f898 udpate log to standard 2025-01-02 11:33:57 -08:00
Alex Holliday 50e3e2b97c Add distributed http type to monitor 2025-01-02 11:27:05 -08:00
Alex Holliday 1303497947 Add distributed uptime model 2025-01-02 11:26:08 -08:00
Alexander Holliday 1e0102a5b4 Merge pull request #1507 from bluewave-labs/develop
develop -> master
2025-01-02 11:09:31 -08:00
Alexander Holliday 70ba745e07 Merge pull request #1506 from bluewave-labs/hotfix/fe/bad-merge
add missing auth headers to hardware-details request
2025-01-02 10:59:41 -08:00
Alex Holliday decda4450b add missing auth headers to hardware-details request 2025-01-02 10:58:55 -08:00
Alex Holliday 0583bcb0b1 Add healthcheck to redis image 2025-01-02 10:54:30 -08:00
Alexander Holliday 43ff7a4318 Merge pull request #1504 from bluewave-labs/hotfix/fe/bad-merge
Fix bad merge commit
2025-01-02 10:04:49 -08:00
Alex Holliday 30d8595cac Fix bad merge commit 2025-01-02 10:04:23 -08:00
Alexander Holliday 7b3a83a37f Merge pull request #1502 from bluewave-labs/fix/be/improved-jobqueue
fix: be/improved jobqueue
2025-01-02 09:59:04 -08:00
Alexander Holliday b7bd641c7f Merge pull request #1501 from bluewave-labs/fix/be/pagespeed-index
fix: add indices for PageSpeedCheck
2025-01-02 09:58:44 -08:00
Alexander Holliday 1ce3e227fc Merge pull request #1498 from bluewave-labs/feat/be/hardware-details
feat: be/hardware details
2025-01-02 09:58:28 -08:00
Alexander Holliday 25fd0f7055 Merge branch 'develop' into feat/be/hardware-details 2025-01-02 09:58:19 -08:00
Alexander Holliday f958424793 Merge pull request #1497 from bluewave-labs/feat/fe/uptime-details
feat: fe/uptime details
2025-01-02 09:57:30 -08:00
Gorkem Cetin (BWL) 2dbf324615 Update README.md 2025-01-02 08:20:49 -05:00
Alex Holliday 62d1d34937 better worker task handling, implement progress updates 2025-01-01 20:14:03 -08:00
Alex Holliday c11e412e81 fix init job queue method 2025-01-01 18:18:39 -08:00
Alex Holliday b332bed14e modify date format to ISO standard, remove toTimeStamp method 2025-01-01 17:27:12 -08:00
Alex Holliday e7cf127fde Fix tooltip and proptypes 2025-01-01 17:20:00 -08:00
Alex Holliday 69f7cf2ab1 fix check spread 2025-01-01 17:11:38 -08:00
Alex Holliday 86d11c7277 remove console.log 2025-01-01 17:11:26 -08:00
Alex Holliday dafdb03ce0 safe variable access 2025-01-01 17:06:49 -08:00
Alex Holliday 4c2a0fd2d3 Use initJobQueue method to initialize JobQueue, flush Redis DB on shutdown timeout 2025-01-01 13:33:01 -08:00
Alex Holliday e222b13b51 add separate queue for each monitor type 2025-01-01 13:32:18 -08:00
Alex Holliday 8fcbe43a9d Remove console log from hardware check module 2025-01-01 13:31:38 -08:00
Alex Holliday 48e8c29dd4 Add indices for PageSpeedCheck 2025-01-01 13:27:23 -08:00
Alex Holliday 6563cedf88 add jsdoc and validation 2025-01-01 09:08:07 -08:00
Alex Holliday c572096a50 safe data access 2025-01-01 09:02:21 -08:00
Alexander Holliday 67fe63c980 Merge pull request #1496 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.34.6
2025-01-01 08:39:38 -08:00
Gorkem Cetin (BWL) ca258da7f0 Update README.md 2025-01-01 08:55:47 -05:00
Gorkem Cetin (BWL) 24f5c54fe5 Update README.md 2024-12-31 23:25:14 -05:00
Alex Holliday 180585806b Add last checked 2024-12-31 20:12:50 -08:00
Alex Holliday f176768b54 Refactor FE to use new query 2024-12-31 20:00:22 -08:00
Alex Holliday a3518e4462 add missing date range, add date range lookup 2024-12-31 20:00:02 -08:00
Alex Holliday cb425b2b3b Merge branch 'develop' into feat/be/hardware-details 2024-12-31 17:39:19 -08:00
Alex Holliday 2d9b4eaab6 write hardware monitor query 2024-12-31 17:39:02 -08:00
Alexander Holliday 350e560079 Merge pull request #1481 from bluewave-labs/fix/be/db-indices
fix: be/db indices
2024-12-31 17:38:29 -08:00
Alex Holliday 2a41642be7 add two mising date clauses to details query 2024-12-31 16:40:44 -08:00
Alex Holliday 58c416f909 use upchecksaggregate total checks instead of total checks 2024-12-31 16:40:16 -08:00
Alex Holliday e29b55408f Fixed color for upbarchart: 2024-12-31 16:39:50 -08:00
Alex Holliday 247bf44406 begin implementing aggregate query 2024-12-31 15:05:14 -08:00
Alex Holliday cf3305611f Add route and controller method for hardware details 2024-12-31 15:05:03 -08:00
Alex Holliday a466e91a45 remove old query 2024-12-31 13:46:56 -08:00
Alex Holliday 91b282e7d9 Refactor charts 2024-12-31 13:43:03 -08:00
Alex Holliday 17bd1f5286 Add temporary normalization functoins 2024-12-31 13:42:49 -08:00
Alex Holliday bbae5052c8 Add group checks to DB query 2024-12-31 13:42:25 -08:00
Gorkem Cetin (BWL) ee87a688ca Remove redundant pr template file 2024-12-31 16:34:55 -05:00
Gorkem Cetin (BWL) f8581a2da0 Create pull_request_template.md 2024-12-31 16:33:18 -05:00
Mend Renovate fabfbec329 fix(deps): update dependency bullmq to v5.34.6 2024-12-31 21:31:36 +00:00
Gorkem Cetin (BWL) 94e67f2377 Update grant_funding.md 2024-12-31 16:12:27 -05:00
Gorkem Cetin (BWL) 68ff079106 Fixes 2024-12-31 15:36:38 -05:00
Gorkem Cetin (BWL) e2c39bc293 Checkmate & Uprock grant funding call initial commit 2024-12-31 15:16:33 -05:00
Alex Holliday 7f601b1e11 rebuild query 2024-12-31 11:43:04 -08:00
Alexander Holliday 5567eec75d Merge pull request #1495 from renovate-bot/renovate/mongoose-8.x-lockfile
fix(deps): update dependency mongoose to v8.9.3
2024-12-31 10:12:14 -08:00
Alexander Holliday 11972c6c54 Merge pull request #1486 from mertssmnoglu/fix/server-lint-errors
fix(server-lint): Resolve lint errors in server-side test files
2024-12-31 10:09:49 -08:00
Alex Holliday 6f96e77fec modify query 2024-12-30 22:23:46 -08:00
Alex Holliday 3e995c82aa update response time gauge 2024-12-30 20:11:05 -08:00
Alex Holliday b5ceb5c4c1 Add timestamp method 2024-12-30 19:49:41 -08:00
Alex Holliday 853a28d316 migrate to new query 2024-12-30 19:49:28 -08:00
Alex Holliday d574faa7d8 Add groupUpChecks and groupDownChecks 2024-12-30 19:49:09 -08:00
Alex Holliday 107540b2a8 FE refactor 2024-12-30 16:07:28 -08:00
Alex Holliday e5181727fe Add netwokr request for uptime details 2024-12-30 14:58:20 -08:00
Alex Holliday 5391145a9a Add aggregate queries for uptime monitor stats 2024-12-30 14:57:19 -08:00
Alex Holliday 0551eb010d Add controller method for uptime details 2024-12-30 14:56:50 -08:00
Alex Holliday d9c583f972 Add a route for uptime details 2024-12-30 14:56:38 -08:00
Mend Renovate 566cd8538a fix(deps): update dependency mongoose to v8.9.3 2024-12-30 22:07:41 +00:00
Shemy Gan 031508ef9b - Updated existing components for the status page usage
- Add libraries for drag and drop
2024-12-30 14:07:05 -05:00
Shemy Gan 1206451989 - Update JSDoc 2024-12-30 13:52:22 -05:00
Alexander Holliday 334e8c32f6 Merge pull request #1491 from rafeyrana/sidebar-button
Hamburger Icon button rounded
2024-12-30 10:21:48 -08:00
Shemy Gan d8da182f60 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-30 13:06:22 -05:00
Shemy Gan a5df7be6a1 - Create new status page and retrieval are now working end to end, except the fields that currently does not have BE counterparts, including all checkboxes and uploaded logo 2024-12-30 13:04:04 -05:00
Rafey Rana 36ca55e2b6 code cleanup 2024-12-29 12:10:54 -05:00
Rafey Rana bf8fcadb4c Sidebar icon button rounded 2024-12-29 12:02:11 -05:00
Alexander Holliday 3e841b2e16 Merge pull request #1472 from aroy114/button
Red button mouse hover status has wrong color #1335
2024-12-29 08:59:59 -08:00
Alexander Holliday 811ccaeaf1 Merge pull request #1479 from bluewave-labs/feat/fe/tcp-port-monitoring
feat: fe/tcp port monitoring, resolves #1476
2024-12-29 08:58:05 -08:00
Alexander Holliday ba05405f82 Merge pull request #1478 from bluewave-labs/feat/be/tcp-port-monitoring
feat: be/tcp port monitoring, references #1476
2024-12-29 08:57:35 -08:00
Alexander Holliday 26f1c275df Merge pull request #1489 from aroy114/navbar
Clicking on settings shouldn't open the "Other" drawer, resolves #1485
2024-12-29 08:54:15 -08:00
Alexander Holliday 43b8a3cc6e Merge pull request #1487 from renovate-bot/renovate/fontsource-monorepo
fix(deps): update dependency @fontsource/roboto to v5.1.1
2024-12-29 08:48:34 -08:00
Anand Roy c2a178c99e fixed navbar links 2024-12-29 15:37:17 +00:00
Gorkem Cetin (BWL) d2ef1ab4bd I'll find a better design here with photos 2024-12-29 09:24:01 -05:00
Mend Renovate fee7997222 fix(deps): update dependency @fontsource/roboto to v5.1.1 2024-12-29 13:53:21 +00:00
Anand Roy 35697654b2 fixed variable 2024-12-29 13:37:23 +00:00
Mert Şişmanoğlu b9863e5eee chore(lint): Add chai globals to eslint config
- It will prevent ignore 'no-undef' errors for expect. We are globally registered the expect.
2024-12-29 14:41:42 +03:00
Mert Şişmanoğlu fcda60fe5b fix(test): Use 'npm run lint-fix' to fix 'mocha/no-mocha-arrows' like lint warnings
- ref: https://mochajs.org/#arrow-functions
2024-12-29 14:25:59 +03:00
Alex Holliday 0b5594f9c9 force index usage for getMonitorStatsById 2024-12-28 09:37:00 -08:00
Alex Holliday bdf23a45b7 Sync indices on startup 2024-12-28 09:35:34 -08:00
Alex Holliday ce3e7cf384 Add indices to HardwareCheck model 2024-12-28 09:35:00 -08:00
Alex Holliday 91e7229b23 Add indices to Check model 2024-12-28 09:34:27 -08:00
Gorkem Cetin (BWL) 319e6d6017 Add core maintainers 2024-12-28 00:43:27 -05:00
Shemy Gan 23d97f8e56 - Replace Doc icon with Reorder icon
- Replace Text input with Search component
- Extend Search component to accept start and end adorment
2024-12-27 20:59:03 -05:00
Alexander Holliday fab60f0da9 Merge pull request #1480 from bluewave-labs/hotfix/non-blocking-calls
hotfix: made adding jobs and scaling workers non-blocking
2024-12-27 14:02:18 -08:00
Alex Holliday d686a8de5e made adding jobs and scaling workers non-blocking 2024-12-27 14:00:47 -08:00
Alex Holliday bc748c57e5 Add port type to uptime queries 2024-12-27 11:17:25 -08:00
Alex Holliday ab27011b91 Add port option to create uptime monitors 2024-12-27 11:16:58 -08:00
Alex Holliday d27c44d498 Add validation for port to FE 2024-12-27 11:16:25 -08:00
Alex Holliday 004184b0f4 add port types to monitor operations on BE 2024-12-27 11:16:09 -08:00
Alex Holliday f155b8ceb8 Add validation and status messages 2024-12-27 10:49:54 -08:00
Alex Holliday 6ff1cd0b5d Add handling of ports to status service 2024-12-27 10:49:45 -08:00
Alex Holliday 9571af4dba Add port monitoring operation to network service 2024-12-27 10:49:31 -08:00
Alex Holliday 73994caa14 Add net module to network service 2024-12-27 10:49:06 -08:00
Alex Holliday 0a68611234 Add port type to Monitor 2024-12-27 10:48:44 -08:00
Alexander Holliday 955d3c6298 Merge pull request #1470 from bluewave-labs/feat/be/migrate-to-class
feat: be/migrate to class
2024-12-27 09:54:20 -08:00
Alexander Holliday bab0595834 Merge pull request #1477 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update dependency @mui/x-data-grid to v7.23.5
2024-12-27 09:01:19 -08:00
Mend Renovate f32caeaea6 fix(deps): update dependency @mui/x-data-grid to v7.23.5 2024-12-27 16:57:37 +00:00
Alexander Holliday f37b5f4458 Merge pull request #1475 from bluewave-labs/hotfix/fe/details-certificiate
hotfix: fix certificate format
2024-12-26 12:27:13 -08:00
Alex Holliday fd21155209 fix certificate format 2024-12-26 12:26:06 -08:00
Alexander Holliday e2e155f1e6 Merge pull request #1473 from aroy114/certificate
Move certificate expiry to a card #1327
2024-12-26 12:18:39 -08:00
Anand Roy b708e7aa7d added year in the date 2024-12-26 19:16:24 +00:00
Alexander Holliday b7c5d75f31 Merge pull request #1471 from renovate-bot/renovate/bullmq-5.x
fix(deps): update dependency bullmq to v5.34.5
2024-12-26 07:30:56 -08:00
Mend Renovate 9182e2a3a3 fix(deps): update dependency bullmq to v5.34.5 2024-12-25 13:58:22 +00:00
Alex Holliday 83e489cfe5 Use service registry instead of adding services to request 2024-12-24 12:00:52 -08:00
Alex Holliday 139c1fd215 refactor middleware to use service registry 2024-12-24 12:00:36 -08:00
Alex Holliday 7f6e096491 refacgtor MongoDB to be class based 2024-12-24 11:59:18 -08:00
Alex Holliday 0861595d39 Refactor routers to be class based 2024-12-24 11:58:56 -08:00
Alex Holliday cc40bd6006 refactor controllers to be class based 2024-12-24 11:58:42 -08:00
Alex Holliday 8b0af64761 Add static name exports to all services 2024-12-24 11:58:26 -08:00
Alex Holliday 7c1442e32f Add a service registry 2024-12-24 11:56:08 -08:00
Shemy Gan d844078ed7 - Update validation
- Switch to active tab when there are errors on it upon submission
- Add createStatusPage function
- Updated JSDOC for functions
2024-12-24 14:46:54 -05:00
Shemy Gan c535a6f99b - Update path 2024-12-24 10:18:45 -05:00
Alexander Holliday 2efd26da8d Merge pull request #1464 from renovate-bot/renovate/material-ui-monorepo
fix(deps): update material-ui monorepo
2024-12-24 07:13:18 -08:00
Alexander Holliday 169d58d0bd Merge pull request #1469 from renovate-bot/renovate/eslint-plugin-react-7.x-lockfile
chore(deps): update dependency eslint-plugin-react to v7.37.3
2024-12-24 07:13:05 -08:00
Shemy Gan feaf1e3272 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-24 10:11:11 -05:00
Mend Renovate 293bc12cef chore(deps): update dependency eslint-plugin-react to v7.37.3 2024-12-24 04:27:42 +00:00
Alexander Holliday fdcd0df126 Merge pull request #1465 from bluewave-labs/develop
Develop -> Master
2024-12-23 15:01:19 -08:00
Mend Renovate 3a4aa2f45f fix(deps): update material-ui monorepo 2024-12-23 18:43:38 +00:00
Shemy Gan 11154ad9ac - Code clean up 2024-12-20 10:59:12 -05:00
Shemy Gan 3a00742d06 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-17 13:49:41 -05:00
Shemy Gan c9b804a9ab - Update getStatusPageByUrl to match BE
- Change layout to use the one that has vertical line
- Update name to CreateStatusContext instead of TabContext to make it clearer
- Handle errors to land on the respective page tab
2024-12-17 11:24:01 -05:00
Shemy Gan 219bcd4361 - Add GetStatusPageByUrl to networkservice
- Make static status page and actual status config page toggleable
- Remove the sidebar nested menu item entry for status page tabs
- Pass context to status config page which contains general settings and contents tabs
- Status config page is now one submission and one validation
2024-12-16 20:18:05 -05:00
Gorkem Cetin (BWL) 0476644f44 Update for name changes 2024-12-13 22:43:54 -05:00
Shemy Gan 5045eafb8e - useContext from parent page for form fields 2024-12-13 15:59:54 -05:00
Shemy Gan 8292654d27 - Add context provider for both tabs 2024-12-13 15:58:52 -05:00
Shemy Gan c1dc04939e - Remove nested routes for tabs 2024-12-13 15:58:24 -05:00
Shemy Gan 406fa6ed9f - Merge feedback works from status page 1 and status page 2 branches 2024-12-13 11:29:50 -05:00
Shemy Gan fdca92e543 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-13 11:10:47 -05:00
Shemy Gan 9d212c9616 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-12 10:51:58 -05:00
Shemy Gan c61d1acfee Merge branch 'develop' into feat/fe/statuspage-3 2024-12-12 10:09:34 -05:00
Shemy Gan 00be6c219a - Fix the warning button can not be descendant of button
- Fix the warning possible change from uncontrolled to controlled component
2024-12-12 09:58:11 -05:00
Shemy Gan 9370db62cc - Fix the suburl prefix via extending existing HttpAdorment
- Add the rest of content panel UI layouts
- Update the card value with onChange
2024-12-10 16:07:42 -05:00
Shemy Gan 1ab4bd7275 Merge branch 'develop' into feat/fe/statuspage-3 2024-12-10 15:00:26 -05:00
Shemy Gan b1f056809f - Created Card type
- Implemented drag and drop for the server list section
2024-12-09 11:33:30 -05:00
Shemy Gan 03ce805e9f - Add React DND related libraries 2024-12-09 11:21:02 -05:00
Shemy Gan 2825ff4019 - WIP contents tab adding servers list 2024-12-06 10:41:43 -05:00
Shemy Gan cbec5fd25c - Change "Next" to "Save" 2024-12-06 10:28:42 -05:00
Shemy Gan b651369dc5 - WIP Server list tab 2024-12-06 10:26:22 -05:00
Shemy Gan 35a981abb0 - Update icons etc 2024-12-06 10:17:48 -05:00
Shemy Gan b275bdc8ef - Link general settings and contens to status page in navigation 2024-12-06 10:17:25 -05:00
Shemy Gan cc2187d51e - add routes to status page nested pages 2024-12-06 10:16:53 -05:00
Shemy Gan 0759b16f9e - add lower case first letter string util func 2024-12-06 10:09:16 -05:00
Shemy Gan 5df7ddbe0f - WIP Replace Field with TextInput , HttpAdornment seems not working 2024-12-06 10:06:56 -05:00
Shemy Gan df36f873ae - Add log and general settins tab validation
- WIP logo uploading in general settings tab
2024-12-06 10:05:35 -05:00
Shemy Gan 8506291586 - Fix the component not showing the file text and logo section issue 2024-12-06 10:02:08 -05:00
Shemy Gan 2405d017ec - update to match BE 2024-12-06 10:00:59 -05:00
Shemy Gan 5adffd8c1e - WIP general setting panel 2024-12-06 09:59:36 -05:00
Shemy Gan 4345d6988b - Fix the checkbox position to be conditional on non string label 2024-12-06 09:46:16 -05:00
Shemy Gan 136ed04b3a - Update status home page to connect to create status page
- Create CreateStatus page -WIP
2024-12-06 09:43:21 -05:00
Alexander Holliday 5b9a159d86 Merge pull request #1287 from bluewave-labs/develop
Develop -> Master 2.0 release
2024-12-04 18:06:21 -08:00
Alexander Holliday 2a9db50e32 Merge pull request #1096 from bluewave-labs/develop
Develop -> Master
2024-10-30 10:25:31 +08:00
Alexander Holliday 79d0f00826 Merge pull request #1091 from bluewave-labs/develop
Develop -> Master
2024-10-30 09:59:35 +08:00
Dr. Gorkem Cetin 07e82edab7 GITBOOK-23: No subject 2024-10-11 02:46:44 +00:00
Dr. Gorkem Cetin ba0a19d5fe GITBOOK-22: No subject 2024-10-11 02:44:26 +00:00
Dr. Gorkem Cetin 88590301c0 GITBOOK-21: No subject 2024-10-11 02:36:23 +00:00
Alexander Holliday 7c5930faff Merge pull request #928 from bluewave-labs/develop
Develop -> Master
2024-10-11 10:06:17 +08:00
Alexander Holliday 99a9013526 Merge pull request #925 from bluewave-labs/develop
Develop -> Master
2024-10-11 09:39:48 +08:00
947 changed files with 99242 additions and 45566 deletions

No files matched your search

+1
View File
@@ -0,0 +1 @@
release_notes: false
+1
View File
@@ -0,0 +1 @@
* @ajhollid @mohicody @Br0wnHammer @Owaiseimdad @karenvicent @shanikauwu1
+15
View File
@@ -0,0 +1,15 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: gorkemcetin
thanks_dev: # Replace with a single thanks.dev username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,22 +0,0 @@
**(when sending your PR, only remove this line. Do not remove any lines below. Check all the items before sending your PR)**
## Describe your changes
Briefly describe the changes you made and their purpose.
## Issue number
Mention the issue number(s) this PR addresses (e.g., #123).
## Please ensure all items are checked off before requesting a review:
- [ ] I deployed the application locally.
- [ ] I have performed a self-review and testing of my code.
- [ ] I have included the issue # in the PR.
- [ ] I have labelled the PR correctly.
- [ ] The issue I am working on is assigned to me.
- [ ] I didn't use any hardcoded values (otherwise it will not scale, and will make it difficult to maintain consistency across the application).
- [ ] I made sure font sizes, color choices etc are all referenced from the theme.
- [ ] My PR is granular and targeted to one specific feature.
- [ ] I took a screenshot or a video and attached to this PR if there is a UI change.
+27
View File
@@ -0,0 +1,27 @@
**(Please remove this line only before submitting your PR. Ensure that all relevant items are checked before submission.)**
## Describe your changes
Briefly describe the changes you made and their purpose.
## Write your issue number after "Fixes "
Fixes #123
## Please ensure all items are checked off before requesting a review. "Checked off" means you need to add an "x" character between brackets so they turn into checkmarks.
- [ ] (Do not skip this or your PR will be closed) I deployed the application locally.
- [ ] (Do not skip this or your PR will be closed) I have performed a self-review and testing of my code.
- [ ] I have included the issue # in the PR.
- [ ] I have added i18n support to visible strings (instead of `<div>Add</div>`, use):
```Javascript
const { t } = useTranslation();
<div>{t('add')}</div>
```
- [ ] I have **not** included any files that are not related to my pull request, including package-lock and package-json if dependencies have not changed
- [ ] I didn't use any hardcoded values (otherwise it will not scale, and will make it difficult to maintain consistency across the application).
- [ ] I made sure font sizes, color choices etc are all referenced from the theme. I don't have any hardcoded dimensions.
- [ ] My PR is granular and targeted to one specific feature.
- [ ] I ran `npm run format` in server and client directories, which automatically formats your code.
- [ ] I took a screenshot or a video and attached to this PR if there is a UI change.
+112
View File
@@ -0,0 +1,112 @@
import axios from "axios";
import fs from "fs-extra";
import path from "path";
import { URLSearchParams } from "url";
// POEditor API information
const API_TOKEN = process.env.POEDITOR_API;
const PROJECT_ID = process.env.POEDITOR_PROJECT_ID;
const LANGUAGES = (
process.env.LANGUAGES || "ar,zh-tw,cs,en,fi,fr,de,pt-br,ru,es,tr,ja,zh-cn,th"
).split(",");
const EXPORT_FORMAT = process.env.EXPORT_FORMAT || "key_value_json";
// POEditor API endpoint
const API_URL = "https://api.poeditor.com/v2";
function normalizeLanguageCode(language) {
if (language.includes("-")) {
const [base, region] = language.split("-");
return `${base}-${region.toUpperCase()}`;
}
return language;
}
// Function to download translations
async function downloadTranslations() {
try {
console.log("Downloading translations from POEditor...");
console.log(`Using export format: ${EXPORT_FORMAT}`);
for (const language of LANGUAGES) {
console.log(`Downloading translations for ${language} language...`);
// Get export URL from POEditor
const exportResponse = await axios.post(
`${API_URL}/projects/export`,
new URLSearchParams({
api_token: API_TOKEN,
id: PROJECT_ID,
language: language,
type: EXPORT_FORMAT,
})
);
if (exportResponse.data.response.status !== "success") {
throw new Error(
`Failed to get export URL for ${language} language: ${JSON.stringify(
exportResponse.data
)}`
);
}
const fileUrl = exportResponse.data.result.url;
console.log(`Export URL obtained for ${language}`);
// Download translation file
const downloadResponse = await axios.get(fileUrl, {
responseType: "json",
});
const translations = downloadResponse.data;
console.log(`Downloaded translations for ${language}`);
// Check the format of data returned from POEditor and convert if necessary
let formattedTranslations = translations;
// If data is in array format, convert it to key-value format
if (Array.isArray(translations)) {
console.log(
`Converting array format to key-value format for ${language}`
);
formattedTranslations = {};
translations.forEach((item) => {
if (item.term && item.definition) {
formattedTranslations[item.term] = item.definition;
}
});
}
// Determine the output filename based on language
const normalizedLanguage = normalizeLanguageCode(language);
const filename = `${normalizedLanguage}.json`;
const outputPath = path.join(process.cwd(), "temp", filename);
await fs.writeJson(outputPath, formattedTranslations, { spaces: 2 });
console.log(
`Translations for ${language} language successfully downloaded and saved as: ${filename}`
);
}
console.log("All translations successfully downloaded!");
} catch (error) {
console.error("An error occurred while downloading translations:", error);
process.exit(1);
}
}
// Main function
async function main() {
try {
// Clean temp folder
await fs.emptyDir(path.join(process.cwd(), "temp"));
// Download translations
await downloadTranslations();
} catch (error) {
console.error("An error occurred during the process:", error);
process.exit(1);
}
}
// Run script
main();
+64
View File
@@ -0,0 +1,64 @@
import axios from "axios";
import FormData from "form-data";
import fs from "fs-extra";
// POEditor API information
const API_TOKEN = process.env.POEDITOR_API;
const PROJECT_ID = process.env.POEDITOR_PROJECT_ID;
const FILE_PATH = process.env.FILE_PATH;
const LANGUAGE = process.env.LANGUAGE;
// POEditor API endpoint
const API_URL = 'https://api.poeditor.com/v2';
// Function to upload translations
async function uploadTranslations() {
try {
console.log(`Uploading translations for ${LANGUAGE} language from ${FILE_PATH}... test1`);
// Check if file exists
if (!await fs.pathExists(FILE_PATH)) {
throw new Error(`File not found: ${FILE_PATH}`);
}
// Read file content
const fileContent = await fs.readFile(FILE_PATH, 'utf8');
// Validate JSON format
try {
JSON.parse(fileContent);
} catch (error) {
throw new Error(`Invalid JSON format in ${FILE_PATH}: ${error.message}`);
}
// Create form data for upload
const formData = new FormData();
formData.append('api_token', API_TOKEN);
formData.append('id', PROJECT_ID);
formData.append('language', LANGUAGE);
formData.append('updating', 'terms_translations');
formData.append('file', fs.createReadStream(FILE_PATH));
formData.append('overwrite', '1');
formData.append('sync_terms', '1');
// Upload to POEditor
const response = await axios.post(`${API_URL}/projects/upload`, formData, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
}
});
if (response.data.response.status !== 'success') {
throw new Error(`Failed to upload translations: ${JSON.stringify(response.data)}`);
}
console.log(`Successfully uploaded translations for ${LANGUAGE} language.`);
console.log(`Statistics: ${JSON.stringify(response.data.result)}`);
} catch (error) {
console.error('An error occurred while uploading translations:', error);
process.exit(1);
}
}
// Run script
uploadTranslations();
+69
View File
@@ -0,0 +1,69 @@
# POEditor Translation Synchronization
This GitHub Actions workflow automatically downloads translation files from POEditor and integrates them into the project.
## How It Works
The workflow can be triggered in two ways:
1. **Manual Trigger**: You can manually run the "POEditor Translation Synchronization" workflow from the "Actions" tab in the GitHub interface.
2. **Automatic Trigger**: The workflow runs automatically every day at midnight (UTC).
## Required Settings
For this workflow to function, you need to define the following secrets in your GitHub repository:
1. `POEDITOR_API_TOKEN`: Your POEditor API token
2. `POEDITOR_PROJECT_ID`: Your POEditor project ID
You can add these secrets in the "Settings > Secrets and variables > Actions" section of your GitHub repository.
## Manual Execution
When running the workflow manually, you can specify which languages to download. Languages should be entered as comma-separated values (e.g., `tr,gb,es`).
If you don't specify any languages, the default languages `tr` and `en` will be downloaded.
## Output
When the workflow completes successfully:
1. Translation files for the specified languages are downloaded from POEditor
2. These files are copied to the `src/locales/` directory
3. Changes are automatically committed and pushed to the main branch
## Troubleshooting
If the workflow fails:
1. Check the GitHub Actions logs
2. Make sure your POEditor API token and project ID are correct
3. Ensure that the languages you specified exist in your POEditor project
# POEditor Upload Workflow
## Summary of Implemented Translation Workflow
We have successfully created a GitHub Actions workflow that automatically uploads translation files to POEditor when changes are merged to the develop branch. Here's a summary of what we've implemented:
### Created Files
1. .github/scripts/upload-translations.js
- A Node.js script that handles the upload of translation files to POEditor
- Uses the POEditor API to upload JSON translation files
- Validates file existence and JSON format before uploading
- Provides detailed logging of the upload process
2. .github/workflows/poeditor-upload-on-merge.yml - A GitHub Actions workflow that triggers when PRs are merged to the develop branch - Only runs when changes are made to files in the src/locales directory - Detects which translation files were changed in the PR - Extracts language codes from filenames (e.g., tr.json → "tr") - Calls the upload script for each changed file
### Workflow Process
1. When a PR is merged to the develop branch, the workflow checks if any files in src/locales were modified.
1. If translation files were changed, the workflow:
- Sets up the necessary Node.js environment
- Installs required dependencies
- Identifies which specific translation files were changed
- For each changed file, extracts the language code and uploads to POEditor
- Provides status notifications about the upload process
This automated workflow ensures that your translations are always in sync between your codebase and POEditor, eliminating the need for manual uploads and reducing the risk of translation inconsistencies.
+40
View File
@@ -0,0 +1,40 @@
name: Build Check (Client & Server)
on:
pull_request:
workflow_dispatch:
jobs:
build-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install client dependencies
working-directory: client
run: npm install
- name: Check client build
working-directory: client
run: npm run build
build-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install server dependencies
working-directory: server
run: npm install
- name: Check server build
working-directory: server
run: npm run build
+41
View File
@@ -0,0 +1,41 @@
name: Format Check (Client & Server)
on:
pull_request:
workflow_dispatch:
jobs:
format-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install client dependencies
working-directory: client
run: npm install
- name: Check client formatting
working-directory: client
run: npm run format-check
format-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install server dependencies
working-directory: server
run: npm install
- name: Check server formatting
working-directory: server
run: npm run format-check
@@ -0,0 +1,147 @@
name: Deploy images on release
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
docker-build-and-push-client:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version from tag
id: extract_tag
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Client Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-client:${{ steps.extract_tag.outputs.version }} \
-f ./docker/dist/client.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push Client Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-client:${{ steps.extract_tag.outputs.version }}
docker-build-and-push-server:
needs: docker-build-and-push-client
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Extract version
id: extract_tag
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-backend:${{ steps.extract_tag.outputs.version }} \
-f ./docker/dist/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push Server Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-backend:${{ steps.extract_tag.outputs.version }}
- name: Build Mongo Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-mongo:${{ steps.extract_tag.outputs.version }} \
-f ./docker/dist/mongoDB.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push MongoDB Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-mongo:${{ steps.extract_tag.outputs.version }}
docker-build-and-push-server-mono-multiarch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Extract version
id: extract_tag
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push multi-arch Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/dist-arm/server.Dockerfile
push: true
tags: |
ghcr.io/bluewave-labs/checkmate-backend-mono-multiarch:${{ steps.extract_tag.outputs.version }}
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate
build-args: |
VITE_APP_VERSION=${{ steps.extract_tag.outputs.version }}
docker-build-and-push-server-mono:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract version
id: extract_tag
run: echo "version=${GITHUB_REF#refs/tags/}" >> "$GITHUB_OUTPUT"
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-backend-mono:${{ steps.extract_tag.outputs.version }} \
-f ./docker/dist-mono/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
--build-arg VITE_APP_VERSION=${{ steps.extract_tag.outputs.version }} \
.
- name: Push Server Docker image
run: docker push ghcr.io/bluewave-labs/checkmate-backend-mono:${{ steps.extract_tag.outputs.version }}
+142
View File
@@ -0,0 +1,142 @@
name: Deploy images
on:
push:
branches: ["master"]
workflow_dispatch:
jobs:
docker-build-and-push-client:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: vars
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build Client Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-client:latest \
-f ./docker/dist/client.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
--build-arg VITE_APP_VERSION=${{ env.VERSION }} \
.
- name: Push Client Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-client:latest
docker-build-and-push-server:
needs: docker-build-and-push-client
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-backend:latest \
-f ./docker/dist/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push Server Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-backend:latest
- name: Build Mongo Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-mongo:latest \
-f ./docker/dist/mongoDB.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push MongoDB Docker image
run: |
docker push ghcr.io/bluewave-labs/checkmate-mongo:latest
docker-build-and-push-server-mono-multiarch:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: vars
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build and push multi-arch Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./docker/dist-arm/server.Dockerfile
push: true
tags: |
ghcr.io/bluewave-labs/checkmate-backend-mono-multiarch:latest
platforms: linux/amd64,linux/arm64
labels: |
org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate
build-args: |
VITE_APP_VERSION=${{ env.VERSION }}
docker-build-and-push-server-mono:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: vars
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate-backend-mono:latest \
-f ./docker/dist-mono/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
--build-arg VITE_APP_VERSION=${{ env.VERSION }} \
.
- name: Push Server Docker image
run: docker push ghcr.io/bluewave-labs/checkmate-backend-mono:latest
+120
View File
@@ -0,0 +1,120 @@
name: POEditor Translation Synchronization
on:
# For manual triggering
workflow_dispatch:
inputs:
languages:
description: "Languages to synchronize (comma separated, e.g.: tr,en,es)"
required: false
default: "ar,zh-tw,cs,en,fi,fr,de,pt-br,ru,es,tr,ja,zh-cn,th"
format:
description: "Export format (key_value_json or json)"
required: false
default: "key_value_json"
permissions:
contents: write
pull-requests: write
jobs:
sync-translations:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Create package.json for scripts
run: |
mkdir -p .github/scripts
cat > .github/scripts/package.json << EOF
{
"name": "poeditor-scripts",
"version": "1.0.0",
"private": true,
"type": "module",
"dependencies": {
"axios": "^1.6.0",
"fs-extra": "^11.1.1"
}
}
EOF
- name: Install dependencies
run: |
cd .github/scripts
npm install
- name: Download translations from POEditor
env:
POEDITOR_API: ${{ secrets.POEDITOR_API }}
POEDITOR_PROJECT_ID: ${{ secrets.POEDITOR_PROJECT_ID }}
LANGUAGES: ${{ github.event.inputs.languages || 'tr,en' }}
EXPORT_FORMAT: ${{ github.event.inputs.format || 'key_value_json' }}
run: |
mkdir -p temp
node .github/scripts/download-translations.js
- name: Verify translation files
run: |
echo "Verifying translation files..."
for file in temp/*.json; do
echo "Checking $file"
if [ ! -s "$file" ]; then
echo "Error: $file is empty or does not exist"
exit 1
fi
# Validate JSON format
cat "$file" | jq . > /dev/null || { echo "Error: $file is not valid JSON"; exit 1; }
done
echo "All translation files are valid"
- name: Copy translations to project
run: |
mkdir -p client/src/locales
cp -r temp/* client/src/locales/
echo "Translation files copied to client/src/locales/"
- name: Get current date
id: date
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
- name: Format client code
run: |
cd client
npm ci
npm run format
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "feat: translations updated from POEditor"
title: "🌐 Updated Translations from POEditor"
body: |
This PR contains the latest translations from POEditor.
📅 Update Date: ${{ steps.date.outputs.date }}
🔄 Updated Languages: ${{ github.event.inputs.languages || 'tr,en' }}
⚠️ Please review the translations and approve the PR if everything looks correct.
branch: translation-update-${{ github.run_number }}
delete-branch: true
base: develop
add-paths: |
client/src/locales/*.json
committer: GitHub Action <github-actions[bot]@users.noreply.github.com>
author: GitHub Action <github-actions[bot]@users.noreply.github.com>
+90
View File
@@ -0,0 +1,90 @@
name: Demo deploy
on:
push:
branches: ["demo"]
workflow_dispatch:
jobs:
docker-build-and-push-client:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: vars
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build Client Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:frontend-demo \
-f ./docker/prod/client.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
--build-arg VITE_APP_VERSION=${{ env.VERSION }} \
.
- name: Push Client Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:frontend-demo
docker-build-and-push-server:
needs: docker-build-and-push-client
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:backend-demo \
-f ./docker/prod/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push Server Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:backend-demo
- name: Build Mongo Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:mongo-demo \
-f ./docker/prod/mongoDB.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push MongoDB Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:mongo-demo
deploy-to-demo:
needs: docker-build-and-push-server
runs-on: ubuntu-latest
steps:
- name: SSH into server and restart container using Docker Compose
uses: appleboy/ssh-action@v1.2.2
with:
host: ${{ secrets.DEMO_SERVER_HOST }}
username: ${{ secrets.DEMO_SERVER_USER }}
key: ${{ secrets.DEMO_SERVER_SSH_KEY }}
script: |
cd checkmate
git pull
cd docker/prod
docker compose down
docker compose pull
docker compose up -d
+91
View File
@@ -0,0 +1,91 @@
name: Staging deploy
on:
push:
branches: ["develop"]
jobs:
docker-build-and-push-client:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get version
id: vars
run: echo "VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Build Client Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:frontend-staging \
-f ./docker/staging/client.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
--build-arg VITE_APP_VERSION=${{ env.VERSION }} \
.
- name: Push Client Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:frontend-staging
docker-build-and-push-server:
needs: docker-build-and-push-client
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Server Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:backend-staging \
-f ./docker/staging/server.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push Server Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:backend-staging
- name: Build Mongo Docker image
run: |
docker build \
-t ghcr.io/bluewave-labs/checkmate:mongo-staging \
-f ./docker/staging/mongoDB.Dockerfile \
--label org.opencontainers.image.source=https://github.com/bluewave-labs/checkmate \
.
- name: Push MongoDB Docker image
run: docker push ghcr.io/bluewave-labs/checkmate:mongo-staging
deploy-to-staging:
needs: docker-build-and-push-server
runs-on: ubuntu-latest
steps:
- name: SSH into server and restart container using Docker Compose
uses: appleboy/ssh-action@v1.2.2
with:
host: ${{ secrets.STAGING_SERVER_HOST }}
username: ${{ secrets.STAGING_SERVER_USER }}
key: ${{ secrets.STAGING_SERVER_SSH_KEY }}
script: |
cd checkmate
git pull
cd docker/staging
docker compose down
docker compose pull
docker compose up -d
docker system prune -af
+113
View File
@@ -0,0 +1,113 @@
name: Upload Translations to POEditor on PR Merge
on:
pull_request:
types: [closed]
branches:
- develop
paths:
- "client/src/locales/**"
jobs:
upload-translations:
# Only run if the PR was merged (not just closed) or manually triggered
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history to get changed files
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "22"
- name: Create package.json for scripts
run: |
mkdir -p .github/scripts
cat > .github/scripts/package.json << EOF
{
"name": "poeditor-scripts",
"version": "1.0.0",
"private": true,
"type": "module",
"dependencies": {
"axios": "^1.6.0",
"fs-extra": "^11.1.1",
"form-data": "^4.0.0"
}
}
EOF
- name: Install dependencies
run: |
cd .github/scripts
npm install
- name: Get changed locale files
id: changed-files
if: github.event_name == 'pull_request'
run: |
# Get base and head commits
BASE_SHA=${{ github.event.pull_request.base.sha }}
HEAD_SHA=${{ github.event.pull_request.head.sha }}
echo "Base SHA: $BASE_SHA"
echo "Head SHA: $HEAD_SHA"
# Get list of changed files in client/src/locales directory
CHANGED_FILES=$(git diff --name-only $BASE_SHA..$HEAD_SHA -- 'client/src/locales/*.json' || git ls-files 'client/src/locales/*.json')
if [ -z "$CHANGED_FILES" ]; then
echo "No changes detected in locale files"
echo "CHANGED_FILES=" >> $GITHUB_ENV
else
echo "Changed files:"
echo "$CHANGED_FILES"
echo "CHANGED_FILES<<EOF" >> $GITHUB_ENV
echo "$CHANGED_FILES" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
fi
- name: Upload changed translations to POEditor
if: env.CHANGED_FILES != ''
env:
POEDITOR_API: ${{ secrets.POEDITOR_API }}
POEDITOR_PROJECT_ID: ${{ secrets.POEDITOR_PROJECT_ID }}
run: |
# Process each changed file
for FILE in $CHANGED_FILES; do
if [[ -f "$FILE" ]]; then
# Extract language code from filename (e.g., client/src/locales/en.json -> en)
FILENAME=$(basename "$FILE")
# Special case: map gb.json to en language code
if [ "$FILENAME" == "gb.json" ]; then
LANG="en"
echo "Found gb.json, mapping to language code 'en'"
else
LANG=$(basename "$FILE" .json)
fi
echo "Processing $FILE for language $LANG"
# Upload to POEditor
LANGUAGE=$LANG FILE_PATH=$FILE node .github/scripts/upload-translations.js
fi
done
- name: Notify on success
if: success() && env.CHANGED_FILES != ''
run: |
echo "Successfully uploaded translation files to POEditor."
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "Manual trigger comment: ${{ github.event.inputs.comment }}"
fi
- name: Notify on no changes
if: env.CHANGED_FILES == ''
run: |
echo "No translation files were found to upload."
+3 -3
View File
@@ -1,5 +1,5 @@
.vite
.idea
.vscode
.VSCodeCounter
*.sh
!uptime.sh
*.idea
mongo
+145
View File
@@ -0,0 +1,145 @@
# CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
## Project Overview
Checkmate is an open-source uptime and infrastructure monitoring application. It monitors server hardware, uptime, response times, and incidents with real-time alerts. The companion agent [Capture](https://github.com/bluewave-labs/capture) provides infrastructure metrics (CPU, RAM, disk, temperature).
## Development Commands
### Client (React/Vite)
```bash
cd client
npm install
npm run dev # Start dev server at http://localhost:5173
npm run build # TypeScript check + production build
npm run lint # ESLint (strict, max-warnings 0)
npm run format # Prettier formatting
npm run format-check # Check formatting
```
### Server (Node.js/Express)
```bash
cd server
npm install
npm run dev # Start with hot-reload (nodemon + tsx) at http://localhost:52345
npm run build # TypeScript compile + path alias resolution
npm run test # Run Mocha tests with c8 coverage
npm run lint # ESLint v9
npm run lint-fix # Auto-fix lint issues
npm run format # Prettier formatting
```
### Docker Development
```bash
cd docker/dev
./build_images.sh
docker run -d -p 27017:27017 -v uptime_mongo_data:/data/db --name uptime_database_mongo mongo:6.0
```
## Environment Setup
### Server `.env` (minimum required)
```env
CLIENT_HOST="http://localhost:5173"
JWT_SECRET="my_secret_key_change_this"
DB_CONNECTION_STRING="mongodb://localhost:27017/uptime_db"
TOKEN_TTL="99d"
ORIGIN="localhost"
LOG_LEVEL="debug"
```
### Client `.env`
```env
VITE_APP_API_BASE_URL="http://localhost:52345/api/v1"
VITE_APP_LOG_LEVEL="debug"
```
## Architecture
### Monorepo Structure
- `/client` - React 18 + TypeScript + Vite + MUI frontend
- `/server` - Node.js 20+ + Express + TypeScript backend
- `/docker` - Multi-environment Docker configs (dev, staging, prod, arm, mono)
### Backend Layers
```
server/src/
├── controllers/ # Route handlers (authController, monitorController, etc.)
├── service/ # Business logic
│ ├── business/ # Core monitoring logic
│ ├── infrastructure/ # Server/system utilities
│ └── system/ # App-level settings
├── db/
│ ├── models/ # Mongoose schemas (Monitor, Check, Incident, User, etc.)
│ ├── migration/ # Database migrations (run on startup)
│ └── modules/ # Database-specific modules
├── middleware/v1/ # verifyJWT, rateLimiter, sanitization, responseHandler
├── routes/v1/ # API route definitions
├── validation/ # Joi input validation schemas
└── repositories/ # Data access layer
```
### Frontend Structure
```
client/src/
├── Components/ # Reusable UI components
├── Pages/ # Page components (Auth, Uptime, Infrastructure, Incidents, etc.)
├── Features/ # Redux slices (Auth, UI)
├── Hooks/ # Custom React hooks
├── Utils/ # Utilities (NetworkService.js is main API client)
├── Validation/ # Input validation
└── locales/ # i18n translations
```
### API
- Base URL: `/api/v1`
- Documentation: `http://localhost:52345/api-docs` (Swagger UI)
- OpenAPI spec: `/server/openapi.json`
### Key Technologies
- **State Management**: Redux Toolkit + Redux-Persist
- **Data Fetching**: SWR + Axios
- **Database**: MongoDB with Mongoose ODM
- **Queue/Cache**: Redis + BullMQ + Pulse (cron scheduling)
- **i18n**: i18next + react-i18next (translations via PoEditor)
## Code Conventions
### Internationalization
All user-facing strings must use the translation function:
```javascript
t('your.key') // Never hardcode UI strings
```
### Branching
- Always branch from `develop` (not master)
- Use descriptive names: `feat/add-alerts`, `fix/login-error`
- PRs target `develop` branch
### Formatting
- **Client**: Prettier with `printWidth: 90`, tabs, double quotes
- **Server**: Prettier with `printWidth: 150`, tabs, double quotes
- Both use ESLint with strict settings
### Testing
Server tests use Mocha + Chai + Sinon:
```bash
npm test # Run all tests with coverage
npm test -- --grep "pattern" # Run specific tests
```
Test files: `server/tests/**/*.test.js`
## Database Models
Key Mongoose models in `/server/src/db/models/`:
- **Monitor** - Monitoring configuration (website, infrastructure, port, etc.)
- **Check** - Individual monitoring check results
- **Incident** - Downtime incidents
- **User** - User accounts
- **Team** - Team/workspace management
- **StatusPage** - Public status pages
- **Notification** - Alert configuration (email, Discord, Slack, webhooks)
- **MaintenanceWindow** - Scheduled maintenance periods
- **AppSettings** - Global application settings
+306 -83
View File
@@ -1,105 +1,328 @@
# Contributing to Checkmate
# Contributing to Uptime Manager application
Thanks for your interest in contributing! Checkmate is an open-source, friendly project focused on learning and growth.
First off, thanks for taking the time to contribute! ❤️
We truly appreciate all kinds of contributions — code, ideas, translations or documentation. Contributing helps you level up while making the project better for everyone.
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how the Uptime Manager project handles them. Please make sure to read the relevant section before making your contribution. It will make it much easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
Before you start, please take a moment to read the relevant section. It helps us review and accept contributions faster, and makes the whole process smoother for everyone. 💚
> And if you like the project, but don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
> - Star the project
> - Tweet about it
> - Refer this project in your project's readme
> - Mention the project at local meetups and tell your friends/colleagues
PS: **We work closely with contributors on our [Discord channel](https://discord.com/invite/NAb6H3UTjK)**. You'll find community members, core maintainers, and first-timers helping each other out.
## Table of Contents
- [I Have a Question](#i-have-a-question)
- [I Want To Contribute](#i-want-to-contribute)
- [Suggesting Enhancements](#suggesting-enhancements)
## I Have a Question
If you'd like to ask a question, we assume that you have read the available readme.md files. In the near future we'll come up with a proper installation and usage document.
Before you ask a question, search for existing [Issues](/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
If you then still feel the need to ask a question and need clarification, we recommend the following:
- Open an [Issue](/issues/new).
- Provide as much context as you can about what you're running into.
- Provide project and platform versions (NodeJs, MongoDB, etc), depending on what seems relevant.
We will then take care of the issue as soon as possible.
---
## I Want To Contribute
## 🚀 Quick Setup Checklist
> ### Legal Notice
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project license.
Before you dive in, make sure you have these installed:
### Reporting Bugs
```bash
# Check Node.js (v16+ required)
node --version
#### Before Submitting a Bug Report
# Check npm
npm --version
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
# Check Docker
docker --version
# Check Git
git --version
```
**New to contributing?** Start here:
1. Pick a [`good-first-issue`](https://github.com/bluewave-labs/checkmate/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22)
2. Comment that you'd like to work on it
3. Follow the [setup guide](#set-up-checkmate-locally) below
4. Join our [Discord](https://discord.com/invite/NAb6H3UTjK) if you get stuck
## Table of contents
- [How do I...?](#how-do-i)
- [Get help or ask a question?](#get-help-or-ask-a-question)
- [Report a bug?](#report-a-bug)
- [Suggest a new feature?](#suggest-a-new-feature)
- [Set up Checkmate locally?](#set-up-checkmate-locally)
- [Start contributing code?](#start-contributing-code)
- [Improve the documentation?](#improve-the-documentation)
- [Help with translations?](#help-with-translations)
- [Submit a pull request?](#submit-a-pull-request)
- [Code guidelines](#code-guidelines)
- [Pull request checklist](#pull-request-checklist)
- [Branching model](#branching-model)
- [Thank you](#thank-you)
---
## How do I...
### Get help or ask a question?
Ask anything in our [Discord server](https://discord.com/invite/NAb6H3UTjK) — we're friendly and happy to help. [Our core contributors](https://github.com/bluewave-labs/checkmate?tab=readme-ov-file#-contributing) are active and ready to support you. You can also use [GitHub Discussions](https://github.com/bluewave-labs/Checkmate/discussions) section to ask your questions.
### Report a bug?
1. Search [existing issues](https://github.com/bluewave-labs/checkmate/issues).
2. If it's not listed, open a **new issue**.
3. Include as much detail as possible: what happened, what you expected, and steps to reproduce. Logs and screenshots help.
### Suggest a new feature?
1. Open a new issue with the **feature request** template.
2. Share your use case and why it would help.
3. You can discuss it in [Discord](https://discord.com/invite/NAb6H3UTjK) before you code.
### Set up Checkmate locally?
#### Prerequisites
- Node.js (with npm)
- Docker
- Git
#### Step 1: Clone the Repository
```bash
git clone https://github.com/bluewave-labs/Checkmate.git
cd Checkmate
```
#### Step 2: Set Up Docker Containers (MongoDB)
Navigate to the Docker dev directory:
```bash
cd docker/dev
```
Build the Docker images:
```bash
./build_images.sh
```
Run MongoDB container:
```bash
docker run -d -p 27017:27017 -v uptime_mongo_data:/data/db --name uptime_database_mongo mongo:6.0
```
Navigate back to the root directory:
```bash
cd ../..
```
#### Step 3: Set Up the Backend (Server)
Navigate to the server directory:
```bash
cd server
```
Install dependencies:
```bash
npm install
```
Create a `.env` file in the `server` directory with the following minimum required configuration:
```env
CLIENT_HOST="http://localhost:5173"
JWT_SECRET="my_secret_key_change_this"
DB_CONNECTION_STRING="mongodb://localhost:27017/uptime_db"
TOKEN_TTL="99d"
ORIGIN="localhost"
LOG_LEVEL="debug"
```
**Environment Variables Explained:**
- `CLIENT_HOST`: Frontend URL (default: http://localhost:5173)
- `JWT_SECRET`: Secret key for JWT tokens (change to something secure)
- `DB_CONNECTION_STRING`: MongoDB connection URL
- `ORIGIN`: Origin for CORS purposes
- `TOKEN_TTL`: Token time to live (in vercel/ms format)
- `LOG_LEVEL`: Debug level (debug, info, warn, error)
Start the backend server:
```bash
npm run dev
```
The server will run at `http://localhost:52345`.
#### Step 4: Set Up the Frontend (Client)
Open a new terminal window and navigate to the client directory from the root:
```bash
cd client
```
Install dependencies:
```bash
npm install
```
Create a `.env` file in the `client` directory:
```env
VITE_APP_API_BASE_URL="http://localhost:52345/api/v1"
VITE_APP_LOG_LEVEL="debug"
```
**Environment Variables Explained:**
- `VITE_APP_API_BASE_URL`: Backend API URL
- `VITE_APP_LOG_LEVEL`: Log level (none, error, warn, debug, info)
Start the frontend:
```bash
npm run dev
```
The client will run at `http://localhost:5173`.
#### Step 5: Access the Application
Open your browser and navigate to:
- **Frontend**: http://localhost:5173
- **Backend API**: http://localhost:52345
- **API Documentation**: http://localhost:52345/api-docs
#### Managing Docker Containers
Stop containers:
```bash
docker stop uptime_database_mongo
```
Start containers:
```bash
docker start uptime_database_mongo
```
Remove containers (if needed):
```bash
docker rm uptime_database_mongo
```
#### Troubleshooting
**Port already in use:**
- Check if another service is using ports 5173, 52345, 27017, or 6379
- Stop the conflicting service or change the port in `.env` files
**MongoDB connection issues:**
- Verify container is running: `docker ps`
- Check container logs: `docker logs uptime_database_mongo`
**Module not found errors:**
- Ensure you ran `npm install` in both `client` and `server` directories
**Need more help?**
- Check the [full documentation](https://docs.checkmate.so)
- Ask on [Discord](https://discord.com/invite/NAb6H3UTjK)
### Start contributing code?
1. Pick or open an issue (check `good-first-issue`s first)
2. (optional but highly suggested) Read a detailed structure of [Checkmate](https://deepwiki.com/bluewave-labs/Checkmate) if you would like to deep dive into the architecture.
3. Ask to be assigned. If there is already someone assigned and it's been more than 7 days, you can raise the flag and ask to be assigned as well.
4. Create a branch from `develop`.
5. Write your code.
6. Run and test locally.
7. Open a PR to `develop`.
Start with [good first issues](https://github.com/bluewave-labs/checkmate/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22).
### Improve the documentation?
Docs live in [checkmate-documentation](https://github.com/bluewave-labs/checkmate-documentation). You can fix typos, add guides, or explain features better.
### Help with translations?
We use [PoEditor](https://poeditor.com) for translations. You can:
- [Sign up and join your language team](https://poeditor.com/join/project/lRUoGZFCsJ).
- Translate UI strings.
- Ask questions on Discord in the relevant #translations channel.
Make sure all new UI strings in code use `t('key')`.
### Submit a pull request?
Follow the [pull request checklist](#pull-request-checklist). Your PR should:
- Be focused on one issue.
- Be tested locally.
- Use our linting and translation rules.
- Include the related issue (e.g. `Fixes #123`).
- Be opened against the `develop` branch.
---
## Code guidelines
- Use ESLint and Prettier (`npm run lint`).
- Follow naming conventions: `camelCase` for variables, `PascalCase` for components, `UPPER_CASE` for constants.
- No hard-coded strings — use `t('your.key')` for everything visible.
- Use the shared theme and components. No magic numbers or hardcoded styles.
- Follow structure and patterns already used in the codebase.
---
## Pull request checklist
Before submitting your pull request, please confirm the following:
- **You have tested the app locally and confirmed your changes work.**
- You reviewed your code and removed debug logs or leftover code.
- The GitHub issue is assigned to you.
- You included the related issue number in the PR description (e.g. `Fixes #123`).
- All user-facing text uses the translation function `t('key')`; no hardcoded strings.
- You avoided hardcoded URLs, config values, or sensitive data.
- You used the shared theme for any styling — no magic numbers or inline styles.
- The pull request addresses only one issue or topic.
- You added screenshots or a video for any UI-related changes.
- Your code passes linting and has no TypeScript errors.
If one or more of these are missing, we may ask you to update your pull request before we can merge it.
---
## Branching model
- Code contributions should go to the `develop` branch.
- `master` is used for stable releases.
- Use descriptive branch names, like `fix/login-error` or `feat/add-alerts`.
- Make sure that you are using the latest version.
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions. If you are looking for support, you might want to check [this section](#i-have-a-question)).
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](issues?q=label%3Abug).
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
- Collect information about the bug:
- Stack trace (Traceback)
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
- Version of the interpreter, compiler, SDK, runtime environment and package manager, depending on what seems relevant.
- Possibly your input and the output
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
#### How Do I Submit a Good Bug Report?
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to security@bluewavelabs.ca
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
- Open an [Issue](/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
- Explain the behaviour you would expect and the actual behaviour.
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports, you should isolate the problem and create a reduced test case.
- Provide the information you collected in the previous section.
Once it's filed:
- The project team will label the issue accordingly.
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
## Suggesting Enhancements
This section guides you through submitting an enhancement suggestion for the application, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community understand your enhancements and find related suggestions.
- Make sure that you are using the latest version.
- Make sure you run the code locally. The Uptime Manager [documentation](https://bluewavelabs.gitbook.io/uptime-manager) covers it.
- Make sure you run the code locally. The Checkmate [documentation](https://docs.checkmate.so) covers it.
- Find out if the functionality is already covered, maybe by an individual configuration.
- Perform a [search](/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
#### How Do I Submit a Good Enhancement Suggestion?
---
Enhancement suggestions are tracked as [GitHub issues](/issues).
## Thank you
- Use a **clear and descriptive title** for the issue to identify the suggestion.
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
- You may want to **include screenshots and animated GIFs** which help you demonstrate the steps or point out the part which the suggestion is related to.
- **Explain why this enhancement would be useful** to most CONTRIBUTING.md users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
Thanks for making Checkmate better. We mean it. Whether it's your first pull request or your 50th, we're excited to build with you.
We have a Figma file that includes:
PS: feel free to introduce yourself on [Discord](https://discord.gg/NAb6H3UTjK) and say hi.
- All the dashboard elements and components
- The design guideline for the app
-- Checkmate team
You can see it [here](https://www.figma.com/design/RPSfaw66HjzSwzntKcgDUV/Uptime-Genie?node-id=0-1&t=WqOFv9jqNTFGItpL-1). Since it is read-only, we encourage you to copy to your own Figma page, then work on it.
[This document](https://docs.google.com/document/d/1Gy3LiimGUNoSiWAMbwyK3SeMADcCMjCLu6cQYoawtSE/edit#heading=h.1lj2lgut6m7h) outlines the process every developer should follow for managing the issues lifecycle. Also make sure you read the [document about how to make a good pull request](/PULLREQUESTS.md).
## Attribution
This guide is based on the **contributing.md**. [Make your own](https://contributing.md/)!
Also make sure you read the [document about how to make a good pull request](/PULLREQUESTS.md).
+11325
View File
File diff suppressed because it is too large. Load diff
-1
View File
@@ -1 +0,0 @@
VITE_APP_API_BASE_URL=UPTIME_APP_API_BASE_URL
-8
View File
@@ -1,8 +0,0 @@
# React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
-16
View File
@@ -1,16 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="./checkmate_favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Checkmate</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
-49
View File
@@ -1,49 +0,0 @@
{
"name": "client",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"build-dev": "vite build --mode development",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@fontsource/roboto": "^5.0.13",
"@mui/icons-material": "6.2.1",
"@mui/lab": "6.0.0-beta.20",
"@mui/material": "6.2.1",
"@mui/x-charts": "^7.5.1",
"@mui/x-data-grid": "7.23.3",
"@mui/x-date-pickers": "7.23.3",
"@reduxjs/toolkit": "2.5.0",
"axios": "^1.7.4",
"dayjs": "1.11.13",
"joi": "17.13.3",
"jwt-decode": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "9.2.0",
"react-router": "^6.23.0",
"react-router-dom": "^6.23.1",
"react-toastify": "^10.0.5",
"recharts": "2.15.0",
"redux-persist": "6.0.0",
"vite-plugin-svgr": "^4.2.0"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.6",
"prettier": "^3.3.3",
"vite": "^5.2.0"
}
}
-4
View File
@@ -1,4 +0,0 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="32" height="32" fill="#1570EF"/>
<path d="M21.8849 14.3622H19.2287C19.1529 13.9266 19.0133 13.5407 18.8097 13.2045C18.6061 12.8636 18.3527 12.5748 18.0497 12.3381C17.7467 12.1013 17.401 11.9238 17.0128 11.8054C16.6293 11.6823 16.215 11.6207 15.7699 11.6207C14.9792 11.6207 14.2784 11.8196 13.6676 12.2173C13.0568 12.6103 12.5786 13.188 12.233 13.9503C11.8873 14.7079 11.7145 15.6335 11.7145 16.7273C11.7145 17.84 11.8873 18.7775 12.233 19.5398C12.5833 20.2973 13.0616 20.8703 13.6676 21.2585C14.2784 21.642 14.9768 21.8338 15.7628 21.8338C16.1984 21.8338 16.6056 21.777 16.9844 21.6634C17.3679 21.545 17.7112 21.3722 18.0142 21.1449C18.322 20.9176 18.58 20.6383 18.7884 20.3068C19.0014 19.9754 19.1482 19.5966 19.2287 19.1705L21.8849 19.1847C21.7855 19.8759 21.5701 20.5246 21.2386 21.1307C20.9119 21.7367 20.4834 22.2718 19.9531 22.7358C19.4228 23.1951 18.8026 23.5549 18.0923 23.8153C17.3821 24.071 16.5938 24.1989 15.7273 24.1989C14.4489 24.1989 13.3078 23.9029 12.304 23.3111C11.3002 22.7192 10.5095 21.8646 9.93182 20.7472C9.35417 19.6297 9.06534 18.2898 9.06534 16.7273C9.06534 15.16 9.35653 13.8201 9.93892 12.7074C10.5213 11.59 11.3144 10.7353 12.3182 10.1435C13.322 9.55161 14.4583 9.25568 15.7273 9.25568C16.5369 9.25568 17.2898 9.36932 17.9858 9.59659C18.6818 9.82386 19.3021 10.1577 19.8466 10.598C20.3911 11.0336 20.8385 11.5687 21.1889 12.2031C21.544 12.8329 21.776 13.5526 21.8849 14.3622Z" fill="white"/>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

-130
View File
@@ -1,130 +0,0 @@
.MuiTable-root .host {
width: fit-content;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.MuiTable-root .host span {
font-size: 11px;
}
.MuiTable-root .label {
line-height: 1;
border-radius: var(--env-var-radius-2);
padding: 7px;
font-size: var(--env-var-font-size-small-plus);
}
.MuiPaper-root:has(table.MuiTable-root) {
box-shadow: none;
}
.MuiTable-root .MuiTableBody-root .MuiTableRow-root:last-child .MuiTableCell-root {
border: none;
}
.MuiTable-root .MuiTableHead-root .MuiTableCell-root,
.MuiTable-root .MuiTableBody-root .MuiTableCell-root {
font-size: var(--env-var-font-size-medium);
}
.MuiTable-root .MuiTableHead-root .MuiTableCell-root {
padding: var(--env-var-spacing-1);
font-weight: 500;
}
.MuiTable-root .MuiTableHead-root span {
display: inline-block;
height: 17px;
width: 20px;
overflow: hidden;
margin-bottom: -3px;
margin-left: 3px;
}
.MuiTable-root .MuiTableHead-root span svg {
width: 20px;
height: 20px;
}
.MuiTable-root .MuiTableBody-root .MuiTableCell-root {
padding: var(--env-var-spacing-1);
}
.MuiTable-root .MuiTableBody-root .MuiTableRow-root {
height: 50px;
}
.MuiPaper-root + .MuiPagination-root {
border-radius: var(--env-var-radius-1);
padding: var(--env-var-spacing-1-plus) var(--env-var-spacing-2);
}
.MuiPaper-root + .MuiPagination-root ul {
justify-content: center;
}
.MuiPaper-root + .MuiPagination-root button {
font-size: var(--env-var-font-size-medium);
font-weight: 500;
}
.MuiPaper-root + .MuiPagination-root ul li:first-child {
margin-right: auto;
}
.MuiPaper-root + .MuiPagination-root ul li:last-child {
margin-left: auto;
}
.MuiPaper-root + .MuiPagination-root ul li:first-child button {
padding: 0 var(--env-var-spacing-1) 0 var(--env-var-spacing-1-plus);
}
.MuiPaper-root + .MuiPagination-root ul li:last-child button {
padding: 0 var(--env-var-spacing-1-plus) 0 var(--env-var-spacing-1);
}
.MuiPaper-root + .MuiPagination-root ul li:first-child button::after,
.MuiPaper-root + .MuiPagination-root ul li:last-child button::before {
position: relative;
display: inline-block;
}
.MuiPaper-root + .MuiPagination-root ul li:first-child button::after {
content: "Previous";
margin-left: 15px;
}
.MuiPaper-root + .MuiPagination-root ul li:last-child button::before {
content: "Next";
margin-right: 15px;
}
.MuiPaper-root + .MuiPagination-root div.MuiPaginationItem-root {
user-select: none;
}
.MuiTablePagination-root p {
font-weight: 500;
font-size: var(--env-var-font-size-small-plus);
}
.MuiTablePagination-root .MuiTablePagination-select.MuiSelect-select {
text-align: left;
text-align-last: left;
}
.MuiTablePagination-root button {
min-width: 0;
padding: 4px;
margin-left: 5px;
}
.MuiTablePagination-root svg {
width: 22px;
height: 22px;
}
.MuiTablePagination-root .MuiSelect-icon {
width: 16px;
height: 16px;
top: 50%;
right: 8%;
transform: translateY(-50%);
}
.MuiTablePagination-root button.Mui-disabled {
opacity: 0.4;
}
.table-container .MuiTable-root .MuiTableHead-root .MuiTableCell-root {
text-transform: uppercase;
opacity: 0.8;
font-size: var(--env-var-font-size-small-plus);
font-weight: 400;
}
.monitors .MuiTableCell-root:not(:first-of-type):not(:last-of-type),
.monitors .MuiTableCell-root:not(:first-of-type):not(:last-of-type) {
padding-left: var(--env-var-spacing-1);
padding-right: var(--env-var-spacing-1);
}
-335
View File
@@ -1,335 +0,0 @@
import PropTypes from "prop-types";
import { useState, useEffect } from "react";
import { useTheme } from "@emotion/react";
import {
TableContainer,
Paper,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
TablePagination,
Box,
Typography,
Stack,
Button,
} from "@mui/material";
import { useDispatch, useSelector } from "react-redux";
import { setRowsPerPage } from "../../Features/UI/uiSlice";
import LeftArrowDouble from "../../assets/icons/left-arrow-double.svg?react";
import RightArrowDouble from "../../assets/icons/right-arrow-double.svg?react";
import LeftArrow from "../../assets/icons/left-arrow.svg?react";
import RightArrow from "../../assets/icons/right-arrow.svg?react";
import SelectorVertical from "../../assets/icons/selector-vertical.svg?react";
import "./index.css";
/**
* Component for pagination actions (first, previous, next, last).
*
* @component
* @param {Object} props
* @param {number} props.count - Total number of items.
* @param {number} props.page - Current page number.
* @param {number} props.rowsPerPage - Number of rows per page.
* @param {function} props.onPageChange - Callback function to handle page change.
*
* @returns {JSX.Element} Pagination actions component.
*/
const TablePaginationActions = (props) => {
const { count, page, rowsPerPage, onPageChange } = props;
const handleFirstPageButtonClick = (event) => {
onPageChange(event, 0);
};
const handleBackButtonClick = (event) => {
onPageChange(event, page - 1);
};
const handleNextButtonClick = (event) => {
onPageChange(event, page + 1);
};
const handleLastPageButtonClick = (event) => {
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
};
return (
<Box sx={{ flexShrink: 0, ml: "24px" }}>
<Button
variant="group"
onClick={handleFirstPageButtonClick}
disabled={page === 0}
aria-label="first page"
>
<LeftArrowDouble />
</Button>
<Button
variant="group"
onClick={handleBackButtonClick}
disabled={page === 0}
aria-label="previous page"
>
<LeftArrow />
</Button>
<Button
variant="group"
onClick={handleNextButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="next page"
>
<RightArrow />
</Button>
<Button
variant="group"
onClick={handleLastPageButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="last page"
>
<RightArrowDouble />
</Button>
</Box>
);
};
TablePaginationActions.propTypes = {
count: PropTypes.number.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
};
/**
* BasicTable Component
* Renders a table with optional pagination.
*
* @component
* @param {Object} props - Component props.
* @param {Object} props.data - Data for the table including columns and rows.
* @param {Array} props.data.cols - Array of objects for column headers.
* @param {number} props.data.cols[].id - Unique identifier for the column.
* @param {string} props.data.cols[].name - Name of the column to display as header.
* @param {Array} props.data.rows - Array of row objects.
* @param {number} props.data.rows[].id - Unique identifier for the row.
* @param {Array} props.data.rows[].data - Array of cell data objects for the row.
* @param {number} props.data.rows[].data[].id - Unique identifier for the cell.
* @param {JSX.Element} props.data.rows[].data[].data - The content to display in the cell.
* @param {function} props.data.rows.data.handleClick - Function to call when the row is clicked.
* @param {boolean} [props.paginated=false] - Flag to enable pagination.
* @param {boolean} [props.reversed=false] - Flag to enable reverse order.
* @param {number} props.rowsPerPage- Number of rows per page (table).
* @param {string} props.emptyMessage - Message to display when there is no data.
* @example
* const data = {
* cols: [
* { id: 1, name: "First Col" },
* { id: 2, name: "Second Col" },
* { id: 3, name: "Third Col" },
* { id: 4, name: "Fourth Col" },
* ],
* rows: [
* {
* id: 1,
* data: [
* { id: 1, data: <div>Data for Row 1 Col 1</div> },
* { id: 2, data: <div>Data for Row 1 Col 2</div> },
* { id: 3, data: <div>Data for Row 1 Col 3</div> },
* { id: 4, data: <div>Data for Row 1 Col 4</div> },
* ],
* },
* {
* id: 2,
* data: [
* { id: 5, data: <div>Data for Row 2 Col 1</div> },
* { id: 6, data: <div>Data for Row 2 Col 2</div> },
* { id: 7, data: <div>Data for Row 2 Col 3</div> },
* { id: 8, data: <div>Data for Row 2 Col 4</div> },
* ],
* },
* ],
* };
*
* <BasicTable data={data} rows={rows} paginated={true} />
*/
const BasicTable = ({ data, paginated, reversed, table, emptyMessage = "No data" }) => {
const DEFAULT_ROWS_PER_PAGE = 5;
const theme = useTheme();
const dispatch = useDispatch();
const uiState = useSelector((state) => state.ui);
let rowsPerPage = uiState?.[table]?.rowsPerPage ?? DEFAULT_ROWS_PER_PAGE;
const [page, setPage] = useState(0);
useEffect(() => {
setPage(0);
}, [data]);
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
dispatch(
setRowsPerPage({
value: parseInt(event.target.value, 10),
table: table,
})
);
setPage(0);
};
let displayData = [];
if (data && data.rows) {
let rows = reversed ? [...data.rows].reverse() : data.rows;
displayData = paginated
? rows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)
: rows;
}
if (!data || !data.cols || !data.rows) {
return <div>No data</div>;
}
/**
* Helper function to calculate the range of displayed rows.
* @returns {string}
*/
const getRange = () => {
let start = page * rowsPerPage + 1;
let end = Math.min(page * rowsPerPage + rowsPerPage, data.rows.length);
return `${start} - ${end}`;
};
return (
<>
<TableContainer component={Paper}>
<Table>
<TableHead>
<TableRow>
{data.cols.map((col) => (
<TableCell key={col.id}>{col.name}</TableCell>
))}
</TableRow>
</TableHead>
<TableBody>
{displayData.map((row) => {
return (
<TableRow
sx={{
cursor: row.handleClick ? "pointer" : "default",
"&:hover": {
filter: "brightness(.75)",
opacity: 0.75,
transition: "filter 0.3s ease, opacity 0.3s ease",
},
}}
key={row.id}
onClick={row.handleClick ? row.handleClick : null}
>
{row.data.map((cell) => {
return <TableCell key={cell.id}>{cell.data}</TableCell>;
})}
</TableRow>
);
})}
{displayData.length === 0 && (
<TableRow>
<TableCell
sx={{ textAlign: "center" }}
colSpan={data.cols.length}
>
{emptyMessage}
</TableCell>
</TableRow>
)}
</TableBody>
</Table>
</TableContainer>
{paginated && (
<Stack
direction="row"
alignItems="center"
justifyContent="space-between"
px={theme.spacing(4)}
sx={{
"& p": {
color: theme.palette.text.tertiary,
},
}}
>
<Typography
px={theme.spacing(2)}
fontSize={12}
sx={{ opacity: 0.7 }}
>
Showing {getRange()} of {data.rows.length} monitor(s)
</Typography>
<TablePagination
component="div"
count={data.rows.length}
page={page}
onPageChange={handleChangePage}
rowsPerPage={rowsPerPage}
rowsPerPageOptions={[5, 10, 15, 25]}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={TablePaginationActions}
labelRowsPerPage="Rows per page"
labelDisplayedRows={({ page, count }) =>
`Page ${page + 1} of ${Math.max(0, Math.ceil(count / rowsPerPage))}`
}
slotProps={{
select: {
MenuProps: {
keepMounted: true,
PaperProps: {
className: "pagination-dropdown",
sx: {
mt: 0,
mb: theme.spacing(2),
},
},
transformOrigin: { vertical: "bottom", horizontal: "left" },
anchorOrigin: { vertical: "top", horizontal: "left" },
sx: { mt: theme.spacing(-2) },
},
inputProps: { id: "pagination-dropdown" },
IconComponent: SelectorVertical,
sx: {
ml: theme.spacing(4),
mr: theme.spacing(12),
minWidth: theme.spacing(20),
textAlign: "left",
"&.Mui-focused > div": {
backgroundColor: theme.palette.background.main,
},
},
},
}}
sx={{
mt: theme.spacing(6),
color: theme.palette.text.secondary,
"& svg path": {
stroke: theme.palette.text.tertiary,
strokeWidth: 1.3,
},
"& .MuiSelect-select": {
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
},
}}
/>
</Stack>
)}
</>
);
};
BasicTable.propTypes = {
data: PropTypes.object.isRequired,
paginated: PropTypes.bool,
reversed: PropTypes.bool,
rowPerPage: PropTypes.number,
table: PropTypes.string,
emptyMessage: PropTypes.string,
};
export default BasicTable;
@@ -1,111 +0,0 @@
import { RadialBarChart, RadialBar, ResponsiveContainer } from "recharts";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
/* TODO delete component */
const MINIMUM_VALUE = 0;
const MAXIMUM_VALUE = 100;
const CHART_MAXIMUM_DATA = {
value: MAXIMUM_VALUE,
fill: "transparent",
};
const PROGRESS_THRESHOLD = 50;
const DEFAULT_WIDTH = 60;
const RADIUS_SIZE = "90%";
const START_ANGLE = 90;
const CHART_RANGE = 360;
const RADIAL_BAR_CHART_PROPS = {
innerRadius: RADIUS_SIZE,
outerRadius: RADIUS_SIZE,
barSize: 6,
startAngle: START_ANGLE,
endAngle: START_ANGLE - CHART_RANGE,
margin: { top: 0, right: 0, bottom: 0, left: 0 },
};
const RADIAL_BAR_PROPS = {
dataKey: "value",
cornerRadius: 8,
};
Gauge.propTypes = {
progressValue: PropTypes.number.isRequired,
width: PropTypes.number,
};
/**
* A circular gauge component that displays a progress value and text.
* The gauge fills based on the progress value and changes color at a 50% threshold.
*
* @component
* @param {Object} props - Component props
* @param {number} props.progressValue - The value to display in the gauge (0-100)
* @param {number} props.width - Width of the gauge container in pixels
* @returns {JSX.Element} A circular gauge chart with progress value and text
*
* @example
* <Gauge
* progressValue={75}
* width={200}
* />
*/
function Gauge({ progressValue, width = DEFAULT_WIDTH }) {
const theme = useTheme();
const myProgressValue = Math.max(MINIMUM_VALUE, Math.min(progressValue, MAXIMUM_VALUE));
const chartColor =
progressValue > PROGRESS_THRESHOLD
? theme.palette.primary.main
: theme.palette.percentage.uptimePoor;
const chartData = [
CHART_MAXIMUM_DATA,
{
value: myProgressValue,
fill: chartColor,
},
];
return (
<ResponsiveContainer
aspect={1}
width={width}
style={{ marginInline: "auto" }}
>
<RadialBarChart
{...RADIAL_BAR_CHART_PROPS}
data={chartData}
>
<RadialBar
{...RADIAL_BAR_PROPS}
fill={
progressValue > PROGRESS_THRESHOLD
? theme.palette.primary.main
: theme.palette.percentage.uptimePoor
}
background={{ fill: theme.palette.background.fill }}
label={{
position: "center",
content: () => (
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
style={{
...theme.typography.body2,
fill: theme.typography.body2.color,
}}
>
{`${myProgressValue}%`}
</text>
),
}}
/>
</RadialBarChart>
</ResponsiveContainer>
);
}
export { Gauge };
-92
View File
@@ -1,92 +0,0 @@
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack, Typography } from "@mui/material";
import Skeleton from "../../assets/Images/create-placeholder.svg?react";
import SkeletonDark from "../../assets/Images/create-placeholder-dark.svg?react";
import Background from "../../assets/Images/background-grid.svg?react";
import Check from "../Check/Check";
import { useNavigate } from "react-router-dom";
import { useSelector } from "react-redux";
import "./index.css";
/**
* Fallback component to display a fallback UI with a title, a list of checks, and a navigation button.
*
* @param {Object} props - The component props.
* @param {string} props.title - The title to be displayed in the fallback UI.
* @param {Array<string>} props.checks - An array of strings representing the checks to display.
* @param {string} [props.link="/"] - The link to navigate to.
* @param {boolean} [props.vowelStart=false] - Whether the title starts with a vowel.
* @returns {JSX.Element} The rendered fallback UI.
*/
const Fallback = ({ title, checks, link = "/", isAdmin, vowelStart = false }) => {
const theme = useTheme();
const navigate = useNavigate();
const mode = useSelector((state) => state.ui.mode);
return (
<Stack
className={`fallback__${title.trim().split(" ")[0]}`}
alignItems="center"
gap={theme.spacing(20)}
>
{mode === "light" ? (
<Skeleton style={{ zIndex: 1 }} />
) : (
<SkeletonDark style={{ zIndex: 1 }} />
)}
<Box
className="background-pattern-svg"
sx={{
"& svg g g:last-of-type path": {
stroke: theme.palette.border.light,
},
}}
>
<Background style={{ width: "100%" }} />
</Box>
<Stack
gap={theme.spacing(4)}
maxWidth={"300px"}
zIndex={1}
>
<Typography
component="h1"
marginY={theme.spacing(4)}
color={theme.palette.text.tertiary}
>
{vowelStart ? "An" : "A"} {title} is used to:
</Typography>
{checks.map((check, index) => (
<Check
text={check}
key={`${title.trim().split(" ")[0]}-${index}`}
outlined={true}
/>
))}
</Stack>
{/* TODO - display a different fallback if user is not an admin*/}
{isAdmin && (
<Button
variant="contained"
color="primary"
sx={{ alignSelf: "center" }}
onClick={() => navigate(link)}
>
Let's create your {title}
</Button>
)}
</Stack>
);
};
Fallback.propTypes = {
title: PropTypes.string.isRequired,
checks: PropTypes.arrayOf(PropTypes.string).isRequired,
link: PropTypes.string,
isAdmin: PropTypes.bool,
vowelStart: PropTypes.bool,
};
export default Fallback;
@@ -1,18 +0,0 @@
.MuiStack-root:has(#modal-update-picture) h1.MuiTypography-root {
font-weight: 600;
}
.image-field-wrapper h2.MuiTypography-root,
.MuiStack-root:has(#modal-update-picture) button,
.MuiStack-root:has(#modal-update-picture) h1.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
}
.image-field-wrapper h2.MuiTypography-root {
margin-top: 10px;
}
.image-field-wrapper + p.MuiTypography-root {
margin-top: 8px;
}
.image-field-wrapper + p.MuiTypography-root,
.image-field-wrapper p.MuiTypography-root {
font-size: var(--env-var-font-size-small-plus);
}
@@ -1,153 +0,0 @@
import React, { useState } from "react";
import PropTypes from "prop-types";
import { Box, IconButton, Stack, TextField, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import CloudUploadIcon from "@mui/icons-material/CloudUpload";
import "./index.css";
import { checkImage } from "../../../Utils/fileUtils";
/**
* @param {Object} props - The component props.
* @param {string} props.id - The unique identifier for the input field.
* @param {string} props.src - The URL of the image to display.
* @param {function} props.onChange - The function to handle file input change.
* @returns {JSX.Element} The rendered component.
*/
const ImageField = ({ id, src, loading, onChange }) => {
const theme = useTheme();
const [isDragging, setIsDragging] = useState(false);
const handleDragEnter = () => {
setIsDragging(true);
};
const handleDragLeave = () => {
setIsDragging(false);
};
return (
<>
{!checkImage(src) || loading ? (
<>
<Box
className="image-field-wrapper"
mt={theme.spacing(8)}
sx={{
position: "relative",
height: "fit-content",
border: "dashed",
borderRadius: theme.shape.borderRadius,
borderColor: isDragging
? theme.palette.primary.main
: theme.palette.border.light,
borderWidth: "2px",
transition: "0.2s",
"&:hover": {
borderColor: theme.palette.primary.main,
backgroundColor: "hsl(215, 87%, 51%, 0.05)",
},
}}
onDragEnter={handleDragEnter}
onDragLeave={handleDragLeave}
onDrop={handleDragLeave}
>
<TextField
id={id}
type="file"
onChange={onChange}
sx={{
width: "100%",
"& .MuiInputBase-input[type='file']": {
opacity: 0,
cursor: "pointer",
maxWidth: "500px",
minHeight: "175px",
},
"& fieldset": {
padding: 0,
border: "none",
},
}}
/>
<Stack
className="custom-file-text"
alignItems="center"
gap="4px"
sx={{
position: "absolute",
top: "50%",
left: "50%",
transform: "translate(-50%, -50%)",
zIndex: "-1",
width: "100%",
}}
>
<IconButton
sx={{
pointerEvents: "none",
borderRadius: theme.shape.borderRadius,
border: `solid ${theme.shape.borderThick}px ${theme.palette.border.light}`,
boxShadow: theme.shape.boxShadow,
}}
>
<CloudUploadIcon />
</IconButton>
<Typography
component="h2"
color={theme.palette.text.tertiary}
>
<Typography
component="span"
fontSize="inherit"
color={theme.palette.primary.main}
fontWeight={500}
>
Click to upload
</Typography>{" "}
or drag and drop
</Typography>
<Typography
component="p"
color={theme.palette.text.tertiary}
sx={{ opacity: 0.6 }}
>
(maximum size: 3MB)
</Typography>
</Stack>
</Box>
<Typography
component="p"
color={theme.palette.text.tertiary}
sx={{ opacity: 0.6 }}
>
Supported formats: JPG, PNG
</Typography>
</>
) : (
<Stack
direction="row"
justifyContent="center"
>
<Box
sx={{
width: "250px",
height: "250px",
borderRadius: "50%",
overflow: "hidden",
backgroundImage: `url(${src})`,
backgroundSize: "cover",
}}
></Box>
</Stack>
)}
</>
);
};
ImageField.propTypes = {
id: PropTypes.string.isRequired,
src: PropTypes.string,
onChange: PropTypes.func.isRequired,
};
export default ImageField;
@@ -1,200 +0,0 @@
import PropTypes from "prop-types";
import { Box, ListItem, Autocomplete, TextField, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import SearchIcon from "../../../assets/icons/search.svg?react";
/**
* Search component using Material UI's Autocomplete.
*
* @param {Object} props
* @param {string} props.id - Unique identifier for the Autocomplete component
* @param {Array<Object>} props.options - Options to display in the Autocomplete dropdown
* @param {string} props.filteredBy - Key to access the option label from the options
* @param {string} props.value - Current input value for the Autocomplete
* @param {Function} props.handleChange - Function to call when the input changes
* @param {Object} props.sx - Additional styles to apply to the component
* @returns {JSX.Element} The rendered Search component
*/
const SearchAdornment = () => {
const theme = useTheme();
return (
<Box
mr={theme.spacing(4)}
height={16}
sx={{
"& svg": {
width: 16,
height: 16,
"& path": {
stroke: theme.palette.text.tertiary,
strokeWidth: 1.2,
},
},
}}
>
<SearchIcon />
</Box>
);
};
//TODO keep search state inside of component
const Search = ({
label,
id,
options,
filteredBy,
secondaryLabel,
value,
inputValue,
handleInputChange,
handleChange,
sx,
multiple = false,
isAdorned = true,
error,
disabled,
}) => {
const theme = useTheme();
return (
<Autocomplete
multiple={multiple}
id={id}
value={value}
inputValue={inputValue}
onInputChange={(_, newValue) => {
handleInputChange(newValue);
}}
onChange={(_, newValue) => {
handleChange && handleChange(newValue);
}}
fullWidth
freeSolo
disabled={disabled}
disableClearable
options={options}
getOptionLabel={(option) => option[filteredBy]}
renderInput={(params) => (
<Stack>
<Typography
component="h3"
fontSize={"var(--env-var-font-size-medium)"}
color={theme.palette.text.secondary}
fontWeight={500}
>
{label}
</Typography>
<TextField
{...params}
error={Boolean(error)}
placeholder="Type to search"
InputProps={{
...params.InputProps,
...(isAdorned && { startAdornment: <SearchAdornment /> }),
}}
sx={{
"& fieldset": {
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
},
"& .MuiOutlinedInput-root:hover:not(:has(input:focus)):not(:has(textarea:focus)) fieldset":
{
borderColor: theme.palette.border.light,
},
"& .MuiOutlinedInput-root": {
paddingY: 0,
},
}}
/>
{error && (
<Typography
component="span"
className="input-error"
color={theme.palette.error.contrastText}
mt={theme.spacing(2)}
sx={{
opacity: 0.8,
}}
>
{error}
</Typography>
)}
</Stack>
)}
filterOptions={(options, { inputValue }) => {
const filtered = options.filter((option) =>
option[filteredBy].toLowerCase().includes(inputValue.toLowerCase())
);
if (filtered.length === 0) {
return [{ [filteredBy]: "No monitors found", noOptions: true }];
}
return filtered;
}}
renderOption={(props, option) => {
const { key, ...optionProps } = props;
return (
<ListItem
key={key}
{...optionProps}
sx={
option.noOptions
? {
pointerEvents: "none",
backgroundColor: theme.palette.background.main,
}
: {}
}
>
{option[filteredBy] + (secondaryLabel ? ` (${option[secondaryLabel]})` : "")}
</ListItem>
);
}}
slotProps={{
popper: {
keepMounted: true,
sx: {
"& ul": { p: 2 },
"& li.MuiAutocomplete-option": {
color: theme.palette.text.secondary,
px: 4,
borderRadius: theme.shape.borderRadius,
},
"& .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'], & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true'].Mui-focused, & .MuiAutocomplete-listbox .MuiAutocomplete-option[aria-selected='true']:hover":
{
backgroundColor: theme.palette.background.fill,
},
"& .MuiAutocomplete-noOptions": {
px: theme.spacing(6),
py: theme.spacing(5),
},
},
},
}}
sx={{
/* height: 34,*/
"&.MuiAutocomplete-root .MuiAutocomplete-input": { p: 0 },
...sx,
}}
/>
);
};
Search.propTypes = {
id: PropTypes.string,
multiple: PropTypes.bool,
options: PropTypes.array.isRequired,
filteredBy: PropTypes.string.isRequired,
secondaryLabel: PropTypes.string,
value: PropTypes.array,
inputValue: PropTypes.string.isRequired,
handleInputChange: PropTypes.func.isRequired,
handleChange: PropTypes.func,
isAdorned: PropTypes.bool,
sx: PropTypes.object,
error: PropTypes.string,
disabled: PropTypes.bool,
};
export default Search;
@@ -1,151 +0,0 @@
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { MenuItem, Select as MuiSelect, Stack, Typography } from "@mui/material";
import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
import "./index.css";
/**
* @component
* @param {object} props
* @param {string} props.id - The ID attribute for the select element.
* @param {string} props.placeholder - The label of the select element.
* @param {string} props.placeholder - The placeholder text when no option is selected.
* @param {boolean} props.isHidden - Whether the placeholder should be hidden.
* @param {string} props.value - The currently selected value.
* @param {object[]} props.items - The array of items to populate in the select dropdown.
* @param {(string | number)} props.items._id - The unique identifier of each item.
* @param {string} props.items.name - The display name of each item.
* @param {function} props.onChange - The function to handle onChange event.
* @param {object} props.sx - The custom styles object for MUI Select component.
* @returns {JSX.Element}
*
* @example
* const frequencies = [
* { _id: 1, name: "1 minute" },
* { _id: 2, name: "2 minutes" },
* { _id: 3, name: "3 minutes" },
* ];
*
* <Select
* id="frequency-id"
* name="my-name"
* label="Check frequency"
* placeholder="Select frequency"
* value={value}
* onChange={handleChange}
* items={frequencies}
* />
*/
const Select = ({
id,
label,
placeholder,
isHidden,
value,
items,
onChange,
onBlur,
sx,
name = "",
labelControlSpacing = 2,
}) => {
const theme = useTheme();
const itemStyles = {
fontSize: "var(--env-var-font-size-medium)",
color: theme.palette.text.tertiary,
borderRadius: theme.shape.borderRadius,
margin: theme.spacing(2),
};
return (
<Stack
gap={theme.spacing(labelControlSpacing)}
className="select-wrapper"
>
{label && (
<Typography
component="h3"
color={theme.palette.text.secondary}
fontWeight={500}
fontSize={13}
>
{label}
</Typography>
)}
<MuiSelect
className="select-component"
value={value}
onChange={onChange}
onBlur={onBlur}
displayEmpty
name={name}
inputProps={{ id: id }}
IconComponent={KeyboardArrowDownIcon}
MenuProps={{ disableScrollLock: true }}
sx={{
fontSize: 13,
minWidth: "125px",
"& fieldset": {
borderRadius: theme.shape.borderRadius,
borderColor: theme.palette.border.dark,
},
"&:not(.Mui-focused):hover fieldset": {
borderColor: theme.palette.border.dark,
},
"& svg path": {
fill: theme.palette.other.icon,
},
...sx,
}}
>
{placeholder && (
<MenuItem
className="select-placeholder"
value="0"
sx={{
display: isHidden ? "none" : "flex",
visibility: isHidden ? "none" : "visible",
...itemStyles,
}}
>
{placeholder}
</MenuItem>
)}
{items.map((item) => (
<MenuItem
value={item._id}
key={`${id}-${item._id}`}
sx={{
...itemStyles,
}}
>
{item.name}
</MenuItem>
))}
</MuiSelect>
</Stack>
);
};
Select.propTypes = {
id: PropTypes.string.isRequired,
name: PropTypes.string,
label: PropTypes.string,
placeholder: PropTypes.string,
isHidden: PropTypes.bool,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
items: PropTypes.arrayOf(
PropTypes.shape({
_id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
name: PropTypes.string.isRequired,
})
).isRequired,
onChange: PropTypes.func.isRequired,
onBlur: PropTypes.func,
sx: PropTypes.object,
labelControlSpacing: PropTypes.number,
};
export default Select;
-94
View File
@@ -1,94 +0,0 @@
aside .MuiList-root svg {
width: 20px;
height: 20px;
opacity: 0.9;
}
aside span.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
line-height: 1;
}
aside .MuiStack-root + span.MuiTypography-root {
font-size: var(--env-var-font-size-medium-plus);
}
aside .MuiListSubheader-root {
font-size: var(--env-var-font-size-small);
font-weight: 500;
line-height: 1.5;
text-transform: uppercase;
margin-bottom: 2px;
opacity: 0.6;
}
aside p.MuiTypography-root {
font-size: var(--env-var-font-size-small);
opacity: 0.8;
}
aside .MuiListItemButton-root:not(.selected-path) > * {
opacity: 0.9;
}
aside .selected-path > * {
opacity: 1;
}
aside .selected-path span.MuiTypography-root {
font-weight: 600;
}
aside .MuiCollapse-wrapperInner .MuiList-root > .MuiListItemButton-root {
position: relative;
}
aside .MuiCollapse-wrapperInner .MuiList-root svg,
aside .MuiList-root .MuiListItemText-root + svg {
width: 18px;
height: 18px;
}
.sidebar-popup li.MuiButtonBase-root:has(.MuiBox-root) {
padding-bottom: 0;
}
.sidebar-popup svg {
width: 16px;
height: 16px;
opacity: 0.9;
}
/* TRANSITIONS */
aside {
flex: 1;
transition: max-width 650ms cubic-bezier(0.36, -0.01, 0, 0.77);
}
.home-layout aside.collapsed {
max-width: 64px;
}
aside.expanded .MuiTypography-root,
aside.expanded p.MuiTypography-root,
aside.expanded .MuiListItemText-root + svg,
aside.expanded .MuiAvatar-root + .MuiBox-root + .MuiIconButton-root {
visibility: visible;
animation: fadeIn 1s ease;
}
aside.collapsed .MuiTypography-root,
aside.collapsed p.MuiTypography-root,
aside.collapsed .MuiListItemText-root + svg,
aside.collapsed .MuiAvatar-root + .MuiBox-root + .MuiIconButton-root {
opacity: 0;
visibility: hidden;
}
aside .MuiListSubheader-root {
transition: padding 200ms ease;
}
@keyframes fadeIn {
0% {
opacity: 0;
visibility: hidden;
}
30% {
opacity: 0;
visibility: hidden;
}
100% {
opacity: 0.9;
visibility: visible;
}
}
-660
View File
@@ -1,660 +0,0 @@
import React, { useEffect, useState } from "react";
import {
Box,
Collapse,
Divider,
IconButton,
List,
ListItemButton,
ListItemIcon,
ListItemText,
ListSubheader,
Menu,
MenuItem,
Stack,
Tooltip,
Typography,
} from "@mui/material";
import { useLocation, useNavigate } from "react-router";
import { useTheme } from "@emotion/react";
import { useDispatch, useSelector } from "react-redux";
import { clearAuthState } from "../../Features/Auth/authSlice";
import { toggleSidebar } from "../../Features/UI/uiSlice";
import { clearUptimeMonitorState } from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
import ThemeSwitch from "../ThemeSwitch";
import Avatar from "../Avatar";
import LockSvg from "../../assets/icons/lock.svg?react";
import UserSvg from "../../assets/icons/user.svg?react";
import TeamSvg from "../../assets/icons/user-two.svg?react";
import LogoutSvg from "../../assets/icons/logout.svg?react";
import Support from "../../assets/icons/support.svg?react";
import Account from "../../assets/icons/user-edit.svg?react";
import Maintenance from "../../assets/icons/maintenance.svg?react";
import Monitors from "../../assets/icons/monitors.svg?react";
import Incidents from "../../assets/icons/incidents.svg?react";
import Integrations from "../../assets/icons/integrations.svg?react";
import PageSpeed from "../../assets/icons/page-speed.svg?react";
import Settings from "../../assets/icons/settings.svg?react";
import ArrowDown from "../../assets/icons/down-arrow.svg?react";
import ArrowUp from "../../assets/icons/up-arrow.svg?react";
import ArrowRight from "../../assets/icons/right-arrow.svg?react";
import ArrowLeft from "../../assets/icons/left-arrow.svg?react";
import DotsVertical from "../../assets/icons/dots-vertical.svg?react";
import ChangeLog from "../../assets/icons/changeLog.svg?react";
import Docs from "../../assets/icons/docs.svg?react";
import Folder from "../../assets/icons/folder.svg?react";
import ChatBubbleOutlineRoundedIcon from "@mui/icons-material/ChatBubbleOutlineRounded";
import "./index.css";
const menu = [
{ name: "Uptime", path: "uptime", icon: <Monitors /> },
{ name: "Pagespeed", path: "pagespeed", icon: <PageSpeed /> },
{ name: "Infrastructure", path: "infrastructure", icon: <Integrations /> },
{ name: "Incidents", path: "incidents", icon: <Incidents /> },
// { name: "Status pages", path: "status", icon: <StatusPages /> },
{ name: "Maintenance", path: "maintenance", icon: <Maintenance /> },
// { name: "Integrations", path: "integrations", icon: <Integrations /> },
{
name: "Account",
icon: <Account />,
nested: [
{ name: "Profile", path: "account/profile", icon: <UserSvg /> },
{ name: "Password", path: "account/password", icon: <LockSvg /> },
{ name: "Team", path: "account/team", icon: <TeamSvg /> },
],
},
{
name: "Settings",
icon: <Settings />,
path: "settings",
},
{
name: "Other",
icon: <Folder />,
nested: [
{ name: "Support", path: "support", icon: <Support /> },
{
name: "Discussions",
path: "discussions",
icon: <ChatBubbleOutlineRoundedIcon />,
},
{ name: "Docs", path: "docs", icon: <Docs /> },
{ name: "Changelog", path: "changelog", icon: <ChangeLog /> },
],
},
];
/* TODO this could be a key in nested Path would be the link */
const URL_MAP = {
support: "https://discord.com/invite/NAb6H3UTjK",
discussions: "https://github.com/bluewave-labs/checkmate/discussions",
docs: "https://bluewavelabs.gitbook.io/checkmate",
changelog: "https://github.com/bluewave-labs/bluewave-uptime/releases",
};
const PATH_MAP = {
monitors: "Dashboard",
pagespeed: "Dashboard",
infrastructure: "Dashboard",
account: "Account",
settings: "Other",
};
/**
* @component
* Sidebar component serves as a sidebar containing a menu.
*
* @returns {JSX.Element} The JSX element representing the Sidebar component.
*/
function Sidebar() {
const theme = useTheme();
const navigate = useNavigate();
const location = useLocation();
const dispatch = useDispatch();
const authState = useSelector((state) => state.auth);
const collapsed = useSelector((state) => state.ui.sidebar.collapsed);
const [open, setOpen] = useState({ Dashboard: false, Account: false, Other: false });
const [anchorEl, setAnchorEl] = useState(null);
const [popup, setPopup] = useState();
const { user } = useSelector((state) => state.auth);
const accountMenuItem = menu.find((item) => item.name === "Account");
if (user.role?.includes("demo") && accountMenuItem) {
accountMenuItem.nested = accountMenuItem.nested.filter((item) => {
return item.name !== "Password";
});
}
const openPopup = (event, id) => {
setAnchorEl(event.currentTarget);
setPopup(id);
};
const closePopup = () => {
setAnchorEl(null);
};
/**
* Handles logging out the user
*
*/
const logout = async () => {
// Clear auth state
dispatch(clearAuthState());
dispatch(clearUptimeMonitorState());
navigate("/login");
};
useEffect(() => {
const matchedKey = Object.keys(PATH_MAP).find((key) =>
location.pathname.includes(key)
);
if (matchedKey) {
setOpen((prev) => ({ ...prev, [PATH_MAP[matchedKey]]: true }));
}
}, [location]);
/* TODO refactor this, there are a some ternaries and comments in the return */
return (
<Stack
component="aside"
className={collapsed ? "collapsed" : "expanded"}
py={theme.spacing(6)}
gap={theme.spacing(6)}
sx={{
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.background.main,
"& .selected-path, & .MuiListItemButton-root:hover": {
backgroundColor: theme.palette.background.accent,
},
"& .MuiList-root svg path": {
stroke: theme.palette.text.tertiary,
},
"& p, & span, & .MuiListSubheader-root": {
color: theme.palette.text.secondary,
},
}}
>
<Stack
pt={theme.spacing(6)}
pb={theme.spacing(12)}
pl={theme.spacing(8)}
>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(4)}
onClick={() => navigate("/")}
sx={{ cursor: "pointer" }}
>
<Stack
justifyContent="center"
alignItems="center"
minWidth={theme.spacing(16)}
minHeight={theme.spacing(16)}
pl="1px"
fontSize={18}
color="white"
sx={{
position: "relative",
backgroundColor: theme.palette.primary.main,
borderRadius: theme.shape.borderRadius,
userSelect: "none",
}}
>
C
</Stack>
<Typography
component="span"
mt={theme.spacing(2)}
sx={{ opacity: 0.8, fontWeight: 500 }}
>
Checkmate
</Typography>
</Stack>
<IconButton
sx={{
position: "absolute",
top: 60,
right: 0,
transform: `translate(50%, 0)`,
backgroundColor: theme.palette.background.fill,
border: 1,
borderColor: theme.palette.border.light,
p: theme.spacing(2.5),
"& svg": {
width: theme.spacing(8),
height: theme.spacing(8),
"& path": {
stroke: theme.palette.text.secondary,
},
},
"&:focus": { outline: "none" },
"&:hover": {
backgroundColor: theme.palette.border.light,
borderColor: theme.palette.border.light,
},
}}
onClick={() => {
setOpen((prev) =>
Object.fromEntries(Object.keys(prev).map((key) => [key, false]))
);
dispatch(toggleSidebar());
}}
>
{collapsed ? <ArrowRight /> : <ArrowLeft />}
</IconButton>
</Stack>
{/* menu */}
<List
component="nav"
aria-labelledby="nested-menu-subheader"
disablePadding
subheader={
<ListSubheader
component="div"
id="nested-menu-subheader"
sx={{
pt: theme.spacing(4),
px: collapsed ? theme.spacing(2) : theme.spacing(4),
backgroundColor: "transparent",
}}
>
Menu
</ListSubheader>
}
sx={{
px: theme.spacing(6),
height: "100%",
overflow: "hidden",
}}
>
{menu.map((item) =>
item.path ? (
<Tooltip
key={item.path}
placement="right"
title={collapsed ? item.name : ""}
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -16],
},
},
],
},
}}
disableInteractive
>
<ListItemButton
className={location.pathname.includes(item.path) ? "selected-path" : ""}
onClick={() => navigate(`/${item.path}`)}
sx={{
height: "37px",
gap: theme.spacing(4),
borderRadius: theme.shape.borderRadius,
px: theme.spacing(4),
}}
>
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
<ListItemText>{item.name}</ListItemText>
</ListItemButton>
</Tooltip>
) : collapsed ? (
/* TODO Do we ever get here? */
<React.Fragment key={item.name}>
<Tooltip
placement="right"
title={collapsed ? item.name : ""}
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -16],
},
},
],
},
}}
disableInteractive
>
<ListItemButton
className={
Boolean(anchorEl) && popup === item.name ? "selected-path" : ""
}
onClick={(event) => openPopup(event, item.name)}
sx={{
position: "relative",
gap: theme.spacing(4),
borderRadius: theme.shape.borderRadius,
px: theme.spacing(4),
}}
>
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
<ListItemText>{item.name}</ListItemText>
</ListItemButton>
</Tooltip>
<Menu
className="sidebar-popup"
anchorEl={anchorEl}
open={Boolean(anchorEl) && popup === item.name}
onClose={closePopup}
disableScrollLock
anchorOrigin={{
vertical: "top",
horizontal: "right",
}}
slotProps={{
paper: {
sx: {
mt: theme.spacing(-2),
ml: theme.spacing(1),
},
},
}}
MenuListProps={{ sx: { px: 1, py: 2 } }}
sx={{
ml: theme.spacing(8),
"& .selected-path": {
backgroundColor: theme.palette.background.accent,
},
}}
>
{item.nested.map((child) => {
if (
child.name === "Team" &&
authState.user?.role &&
!authState.user.role.includes("superadmin")
) {
return null;
}
return (
<MenuItem
className={
location.pathname.includes(child.path) ? "selected-path" : ""
}
key={child.path}
onClick={() => {
const url = URL_MAP[child.path];
if (url) {
window.open(url, "_blank", "noreferrer");
} else {
navigate(`/${child.path}`);
}
closePopup();
}}
sx={{
gap: theme.spacing(4),
opacity: 0.9,
"& svg": {
"& path": {
stroke: theme.palette.other.icon,
strokeWidth: 1.1,
},
},
}}
>
{child.icon}
{child.name}
</MenuItem>
);
})}
</Menu>
</React.Fragment>
) : (
<React.Fragment key={item.name}>
<ListItemButton
onClick={() =>
setOpen((prev) => ({
...Object.fromEntries(Object.keys(prev).map((key) => [key, false])),
[item.name]: !prev[item.name],
}))
}
sx={{
gap: theme.spacing(4),
borderRadius: theme.shape.borderRadius,
px: theme.spacing(4),
}}
>
<ListItemIcon sx={{ minWidth: 0 }}>{item.icon}</ListItemIcon>
<ListItemText>{item.name}</ListItemText>
{open[`${item.name}`] ? <ArrowUp /> : <ArrowDown />}
</ListItemButton>
<Collapse
in={open[`${item.name}`]}
timeout="auto"
>
<List
component="div"
disablePadding
sx={{ pl: theme.spacing(12) }}
>
{item.nested.map((child) => {
if (
child.name === "Team" &&
authState.user?.role &&
!authState.user.role.includes("superadmin")
) {
return null;
}
return (
<ListItemButton
className={
location.pathname.includes(child.path) ? "selected-path" : ""
}
key={child.path}
onClick={() => {
const url = URL_MAP[child.path];
if (url) {
window.open(url, "_blank", "noreferrer");
} else {
navigate(`/${child.path}`);
}
}}
sx={{
gap: theme.spacing(4),
borderRadius: theme.shape.borderRadius,
pl: theme.spacing(4),
"&::before": {
content: `""`,
position: "absolute",
top: 0,
left: "-7px",
height: "100%",
borderLeft: 1,
borderLeftColor: theme.palette.other.line,
},
"&:last-child::before": {
height: "50%",
},
"&::after": {
content: `""`,
position: "absolute",
top: "45%",
left: "-8px",
height: "3px",
width: "3px",
borderRadius: "50%",
backgroundColor: theme.palette.other.line,
},
"&.selected-path::after": {
backgroundColor: theme.palette.text.tertiary,
transform: "scale(1.2)",
},
}}
>
<ListItemIcon sx={{ minWidth: 0 }}>{child.icon}</ListItemIcon>
<ListItemText>{child.name}</ListItemText>
</ListItemButton>
);
})}
</List>
</Collapse>
</React.Fragment>
)
)}
</List>
<Divider sx={{ mt: "auto" }} />
<Stack
direction="row"
height="50px"
alignItems="center"
py={theme.spacing(4)}
px={theme.spacing(8)}
gap={theme.spacing(2)}
borderRadius={theme.shape.borderRadius}
>
{collapsed ? (
<>
<Tooltip
title="Options"
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -10],
},
},
],
},
}}
disableInteractive
>
<IconButton
onClick={(event) => openPopup(event, "logout")}
sx={{ p: 0, "&:focus": { outline: "none" } }}
>
<Avatar small={true} />
</IconButton>
</Tooltip>
</>
) : (
<>
<Avatar small={true} />
<Box ml={theme.spacing(2)}>
<Typography
component="span"
fontWeight={500}
>
{authState.user?.firstName} {authState.user?.lastName}
</Typography>
<Typography sx={{ textTransform: "capitalize" }}>
{authState.user?.role}
</Typography>
</Box>
<Stack
flexDirection={"row"}
marginLeft={"auto"}
columnGap={theme.spacing(2)}
>
<ThemeSwitch />
<Tooltip
title="Controls"
disableInteractive
>
<IconButton
sx={{
ml: "auto",
mr: "-8px",
"&:focus": { outline: "none" },
"& svg": {
width: "20px",
height: "20px",
},
"& svg path": {
stroke: theme.palette.other.icon,
},
}}
onClick={(event) => openPopup(event, "logout")}
>
<DotsVertical />
</IconButton>
</Tooltip>
</Stack>
</>
)}
<Menu
className="sidebar-popup"
anchorEl={anchorEl}
open={Boolean(anchorEl) && popup === "logout"}
onClose={closePopup}
disableScrollLock
anchorOrigin={{
vertical: "top",
horizontal: "right",
}}
slotProps={{
paper: {
sx: {
marginTop: theme.spacing(-4),
marginLeft: collapsed ? theme.spacing(2) : 0,
},
},
}}
MenuListProps={{
sx: {
p: 2,
"& li": { m: 0 },
"& li:has(.MuiBox-root):hover": {
backgroundColor: "transparent",
},
},
}}
sx={{
ml: theme.spacing(8),
}}
>
{collapsed && (
<MenuItem sx={{ cursor: "default", minWidth: "150px" }}>
<Box mb={theme.spacing(2)}>
<Typography
component="span"
fontWeight={500}
fontSize={13}
>
{authState.user?.firstName} {authState.user?.lastName}
</Typography>
<Typography sx={{ textTransform: "capitalize", fontSize: 12 }}>
{authState.user?.role}
</Typography>
</Box>
</MenuItem>
)}
{collapsed && <Divider />}
<Divider />
<MenuItem
onClick={logout}
sx={{
gap: theme.spacing(4),
borderRadius: theme.shape.borderRadius,
pl: theme.spacing(4),
"& svg path": {
stroke: theme.palette.other.icon,
},
}}
>
<LogoutSvg />
Log out
</MenuItem>
</Menu>
</Stack>
</Stack>
);
}
export default Sidebar;
-74
View File
@@ -1,74 +0,0 @@
import { Box, Typography } from "@mui/material";
import { useTheme } from "@mui/material/styles";
import PropTypes from "prop-types";
/**
* StatBox Component
*
* A reusable component that displays a statistic with a heading and subheading
* in a styled box with a gradient background.
*
* @component
* @param {Object} props - The component props
* @param {string} props.heading - The primary heading/title of the statistic
* @param {string|React.ReactNode} props.subHeading - The value or description of the statistic
* @param {Object} [props.sx] - Additional custom styling to be applied to the box
*
* @example
* return (
* <StatBox
* heading="Total Users"
* subHeading="1,234"
* sx={{ width: 300 }}
* />
* )
*
* @returns {React.ReactElement} A styled box containing the statistic
*/
const StatBox = ({ heading, subHeading, sx }) => {
const theme = useTheme();
return (
<Box
sx={{
padding: `${theme.spacing(4)} ${theme.spacing(8)}`,
minWidth: 200,
width: 225,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
background: `linear-gradient(340deg, ${theme.palette.background.accent} 20%, ${theme.palette.background.main} 45%)`,
"& h2": {
fontSize: 13,
fontWeight: 500,
color: theme.palette.text.secondary,
textTransform: "uppercase",
},
"& p": {
fontSize: 18,
color: theme.palette.text.primary,
marginTop: theme.spacing(2),
"& span": {
color: theme.palette.text.tertiary,
marginLeft: theme.spacing(2),
fontSize: 15,
},
},
...sx,
}}
>
<Typography component="h2">{heading}</Typography>
<Typography>{subHeading}</Typography>
</Box>
);
};
StatBox.propTypes = {
heading: PropTypes.string.isRequired,
subHeading: PropTypes.node.isRequired,
sx: PropTypes.object,
};
export default StatBox;
@@ -1,411 +0,0 @@
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { jwtDecode } from "jwt-decode";
import { networkService } from "../../main";
const initialState = {
isLoading: false,
monitorsSummary: [],
success: null,
msg: null,
};
export const createInfrastructureMonitor = createAsyncThunk(
"infrastructureMonitors/createMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.createMonitor({
authToken: authToken,
monitor: monitor,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const checkInfrastructureEndpointResolution = createAsyncThunk(
"infrastructureMonitors/CheckEndpoint",
async (data, thunkApi) => {
try {
const { authToken, monitorURL } = data;
const res = await networkService.checkEndpointResolution({
authToken: authToken,
monitorURL: monitorURL,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const getInfrastructureMonitorById = createAsyncThunk(
"infrastructureMonitors/getMonitorById",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.getMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const getInfrastructureMonitorsByTeamId = createAsyncThunk(
"infrastructureMonitors/getMonitorsByTeamId",
async (token, thunkApi) => {
const user = jwtDecode(token);
try {
const res = await networkService.getMonitorsAndSummaryByTeamId({
authToken: token,
teamId: user.teamId,
types: ["hardware"],
limit: 1,
rowsPerPage: 0,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const updateInfrastructureMonitor = createAsyncThunk(
"infrastructureMonitors/updateMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const updatedFields = {
name: monitor.name,
description: monitor.description,
interval: monitor.interval,
notifications: monitor.notifications,
threshold: monitor.threshold,
};
const res = await networkService.updateMonitor({
authToken: authToken,
monitorId: monitor._id,
updatedFields: updatedFields,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteInfrastructureMonitor = createAsyncThunk(
"infrastructureMonitors/deleteMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.deleteMonitorById({
authToken: authToken,
monitorId: monitor._id,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const pauseInfrastructureMonitor = createAsyncThunk(
"infrastructureMonitors/pauseMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.pauseMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteInfrastructureMonitorChecksByTeamId = createAsyncThunk(
"infrastructureMonitors/deleteChecksByTeamId",
async (data, thunkApi) => {
try {
const { authToken, teamId } = data;
const res = await networkService.deleteChecksByTeamId({
authToken: authToken,
teamId: teamId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteAllInfrastructureMonitors = createAsyncThunk(
"infrastructureMonitors/deleteAllMonitors",
async (data, thunkApi) => {
try {
const { authToken } = data;
const res = await networkService.deleteAllMonitors({
authToken: authToken,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
const infrastructureMonitorsSlice = createSlice({
name: "infrastructureMonitors",
initialState,
reducers: {
clearInfrastructureMonitorState: (state) => {
state.isLoading = false;
state.monitorsSummary = [];
state.success = null;
state.msg = null;
},
},
extraReducers: (builder) => {
builder
// *****************************************************
// Monitors by teamId
// *****************************************************
.addCase(getInfrastructureMonitorsByTeamId.pending, (state) => {
state.isLoading = true;
})
.addCase(getInfrastructureMonitorsByTeamId.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.msg;
state.monitorsSummary = action.payload.data;
})
.addCase(getInfrastructureMonitorsByTeamId.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Getting infrastructure monitors failed";
})
// *****************************************************
// Create Monitor
// *****************************************************
.addCase(createInfrastructureMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(createInfrastructureMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(createInfrastructureMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to create infrastructure monitor";
})
// *****************************************************
// Resolve Endpoint
// *****************************************************
.addCase(checkInfrastructureEndpointResolution.pending, (state) => {
state.isLoading = true;
})
.addCase(checkInfrastructureEndpointResolution.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(checkInfrastructureEndpointResolution.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to check endpoint resolution";
})
// *****************************************************
// Get Monitor By Id
// *****************************************************
.addCase(getInfrastructureMonitorById.pending, (state) => {
state.isLoading = true;
})
.addCase(getInfrastructureMonitorById.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(getInfrastructureMonitorById.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to get infrastructure monitor";
})
// *****************************************************
// update Monitor
// *****************************************************
.addCase(updateInfrastructureMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(updateInfrastructureMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(updateInfrastructureMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to update infrastructure monitor";
})
// *****************************************************
// Delete Monitor
// *****************************************************
.addCase(deleteInfrastructureMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteInfrastructureMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteInfrastructureMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to delete infrastructure monitor";
})
// *****************************************************
// Delete Monitor checks by Team ID
// *****************************************************
.addCase(deleteInfrastructureMonitorChecksByTeamId.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteInfrastructureMonitorChecksByTeamId.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteInfrastructureMonitorChecksByTeamId.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to delete monitor checks";
})
// *****************************************************
// Pause Monitor
// *****************************************************
.addCase(pauseInfrastructureMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(pauseInfrastructureMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(pauseInfrastructureMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to pause infrastructure monitor";
})
// *****************************************************
// Delete all Monitors
// *****************************************************
.addCase(deleteAllInfrastructureMonitors.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteAllInfrastructureMonitors.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteAllInfrastructureMonitors.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload ? action.payload.msg : "Failed to delete all monitors";
});
},
});
export const { setInfrastructureMonitors, clearInfrastructureMonitorState } =
infrastructureMonitorsSlice.actions;
export default infrastructureMonitorsSlice.reducer;
@@ -1,327 +0,0 @@
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { jwtDecode } from "jwt-decode";
import { networkService } from "../../main";
const initialState = {
isLoading: false,
monitorsSummary: [],
success: null,
msg: null,
};
export const createPageSpeed = createAsyncThunk(
"pageSpeedMonitors/createPageSpeed",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.createMonitor({
authToken: authToken,
monitor: monitor,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const checkEndpointResolution = createAsyncThunk(
"monitors/checkEndpoint",
async (data, thunkApi) => {
try {
const { authToken, monitorURL } = data;
const res = await networkService.checkEndpointResolution({
authToken: authToken,
monitorURL: monitorURL,
})
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
)
export const getPagespeedMonitorById = createAsyncThunk(
"monitors/getMonitorById",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.getMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const getPageSpeedByTeamId = createAsyncThunk(
"pageSpeedMonitors/getPageSpeedByTeamId",
async (token, thunkApi) => {
const user = jwtDecode(token);
try {
const res = await networkService.getMonitorsAndSummaryByTeamId({
authToken: token,
teamId: user.teamId,
types: ["pagespeed"],
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const updatePageSpeed = createAsyncThunk(
"pageSpeedMonitors/updatePageSpeed",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const updatedFields = {
name: monitor.name,
description: monitor.description,
interval: monitor.interval,
// notifications: monitor.notifications,
};
const res = await networkService.updateMonitor({
authToken: authToken,
monitorId: monitor._id,
updatedFields: updatedFields,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deletePageSpeed = createAsyncThunk(
"pageSpeedMonitors/deletePageSpeed",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.deleteMonitorById({
authToken: authToken,
monitorId: monitor._id,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const pausePageSpeed = createAsyncThunk(
"pageSpeedMonitors/pausePageSpeed",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.pauseMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
const pageSpeedMonitorSlice = createSlice({
name: "pageSpeedMonitor",
initialState,
reducers: {
clearMonitorState: (state) => {
state.isLoading = false;
state.monitorsSummary = [];
state.success = null;
state.msg = null;
},
},
extraReducers: (builder) => {
builder
// *****************************************************
// Monitors by teamId
// *****************************************************
.addCase(getPageSpeedByTeamId.pending, (state) => {
state.isLoading = true;
})
.addCase(getPageSpeedByTeamId.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.msg;
state.monitorsSummary = action.payload.data;
})
.addCase(getPageSpeedByTeamId.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Getting page speed monitors failed";
})
// *****************************************************
.addCase(getPagespeedMonitorById.pending, (state) => {
state.isLoading = true;
})
.addCase(getPagespeedMonitorById.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(getPagespeedMonitorById.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to get pagespeed monitor";
})
// *****************************************************
// Create Monitor
// *****************************************************
.addCase(createPageSpeed.pending, (state) => {
state.isLoading = true;
})
.addCase(createPageSpeed.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(createPageSpeed.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to create page speed monitor";
})
// *****************************************************
// Resolve Endpoint
// *****************************************************
.addCase(checkEndpointResolution.pending, (state) => {
state.isLoading = true;
})
.addCase(checkEndpointResolution.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(checkEndpointResolution.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to check endpoint resolution";
})
// *****************************************************
// Update Monitor
// *****************************************************
.addCase(updatePageSpeed.pending, (state) => {
state.isLoading = true;
})
.addCase(updatePageSpeed.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(updatePageSpeed.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to update page speed monitor";
})
// *****************************************************
// Delete Monitor
// *****************************************************
.addCase(deletePageSpeed.pending, (state) => {
state.isLoading = true;
})
.addCase(deletePageSpeed.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deletePageSpeed.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to delete page speed monitor";
})
// *****************************************************
// Pause Monitor
// *****************************************************
.addCase(pausePageSpeed.pending, (state) => {
state.isLoading = true;
})
.addCase(pausePageSpeed.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(pausePageSpeed.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to pause page speed monitor";
});
},
});
export const { setMonitors, clearMonitorState } = pageSpeedMonitorSlice.actions;
export default pageSpeedMonitorSlice.reducer;
@@ -1,115 +0,0 @@
import { networkService } from "../../main";
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
const initialState = {
isLoading: false,
apiBaseUrl: "",
logLevel: "debug",
};
export const getAppSettings = createAsyncThunk(
"settings/getSettings",
async (data, thunkApi) => {
try {
const res = await networkService.getAppSettings({
authToken: data.authToken,
});
return res.data;
} catch (error) {
if (error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const updateAppSettings = createAsyncThunk(
"settings/updateSettings",
async ({ settings, authToken }, thunkApi) => {
networkService.setBaseUrl(settings.apiBaseUrl);
try {
const parsedSettings = {
apiBaseUrl: settings.apiBaseUrl,
logLevel: settings.logLevel,
clientHost: settings.clientHost,
jwtSecret: settings.jwtSecret,
dbType: settings.dbType,
dbConnectionString: settings.dbConnectionString,
redisHost: settings.redisHost,
redisPort: settings.redisPort,
jwtTTL: settings.jwtTTL,
pagespeedApiKey: settings.pagespeedApiKey,
systemEmailHost: settings.systemEmailHost,
systemEmailPort: settings.systemEmailPort,
systemEmailAddress: settings.systemEmailAddress,
systemEmailPassword: settings.systemEmailPassword,
};
const res = await networkService.updateAppSettings({
settings: parsedSettings,
authToken,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
const handleGetSettingsFulfilled = (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
state.apiBaseUrl = action.payload.data.apiBaseUrl;
state.logLevel = action.payload.data.logLevel;
};
const handleGetSettingsRejected = (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload ? action.payload.msg : "Failed to get settings.";
};
const handleUpdateSettingsFulfilled = (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
state.apiBaseUrl = action.payload.data.apiBaseUrl;
state.logLevel = action.payload.data.logLevel;
};
const handleUpdateSettingsRejected = (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload ? action.payload.msg : "Failed to update settings.";
};
const settingsSlice = createSlice({
name: "settings",
initialState,
extraReducers: (builder) => {
builder
.addCase(getAppSettings.pending, (state) => {
state.isLoading = true;
})
.addCase(getAppSettings.fulfilled, handleGetSettingsFulfilled)
.addCase(getAppSettings.rejected, handleGetSettingsRejected);
builder
.addCase(updateAppSettings.pending, (state) => {
state.isLoading = true;
})
.addCase(updateAppSettings.fulfilled, handleUpdateSettingsFulfilled)
.addCase(updateAppSettings.rejected, handleUpdateSettingsRejected);
},
});
export default settingsSlice.reducer;
@@ -1,444 +0,0 @@
import { createAsyncThunk, createSlice } from "@reduxjs/toolkit";
import { jwtDecode } from "jwt-decode";
import { networkService } from "../../main";
const initialState = {
isLoading: false,
monitorsSummary: [],
success: null,
msg: null,
};
export const createUptimeMonitor = createAsyncThunk(
"monitors/createMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.createMonitor({
authToken: authToken,
monitor: monitor,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const checkEndpointResolution = createAsyncThunk(
"monitors/checkEndpoint",
async (data, thunkApi) => {
try {
const { authToken, monitorURL } = data;
const res = await networkService.checkEndpointResolution({
authToken: authToken,
monitorURL: monitorURL,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const getUptimeMonitorById = createAsyncThunk(
"monitors/getMonitorById",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.getMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const getUptimeMonitorsByTeamId = createAsyncThunk(
"monitors/getMonitorsByTeamId",
async (token, thunkApi) => {
const user = jwtDecode(token);
try {
const res = await networkService.getMonitorsAndSummaryByTeamId({
authToken: token,
teamId: user.teamId,
types: ["http", "ping", "docker"],
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const updateUptimeMonitor = createAsyncThunk(
"monitors/updateMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const updatedFields = {
name: monitor.name,
description: monitor.description,
interval: monitor.interval,
notifications: monitor.notifications,
};
const res = await networkService.updateMonitor({
authToken: authToken,
monitorId: monitor._id,
updatedFields: updatedFields,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteUptimeMonitor = createAsyncThunk(
"monitors/deleteMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitor } = data;
const res = await networkService.deleteMonitorById({
authToken: authToken,
monitorId: monitor._id,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const pauseUptimeMonitor = createAsyncThunk(
"monitors/pauseMonitor",
async (data, thunkApi) => {
try {
const { authToken, monitorId } = data;
const res = await networkService.pauseMonitorById({
authToken: authToken,
monitorId: monitorId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteMonitorChecksByTeamId = createAsyncThunk(
"monitors/deleteChecksByTeamId",
async (data, thunkApi) => {
try {
const { authToken, teamId } = data;
const res = await networkService.deleteChecksByTeamId({
authToken: authToken,
teamId: teamId,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const addDemoMonitors = createAsyncThunk(
"monitors/addDemoMonitors",
async (data, thunkApi) => {
try {
const { authToken } = data;
const res = await networkService.addDemoMonitors({
authToken: authToken,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
export const deleteAllMonitors = createAsyncThunk(
"monitors/deleteAllMonitors",
async (data, thunkApi) => {
try {
const { authToken } = data;
const res = await networkService.deleteAllMonitors({
authToken: authToken,
});
return res.data;
} catch (error) {
if (error.response && error.response.data) {
return thunkApi.rejectWithValue(error.response.data);
}
const payload = {
status: false,
msg: error.message ? error.message : "Unknown error",
};
return thunkApi.rejectWithValue(payload);
}
}
);
const uptimeMonitorsSlice = createSlice({
name: "uptimeMonitors",
initialState,
reducers: {
clearUptimeMonitorState: (state) => {
state.isLoading = false;
state.monitorsSummary = [];
state.success = null;
state.msg = null;
},
},
extraReducers: (builder) => {
builder
// *****************************************************
// Monitors by teamId
// *****************************************************
.addCase(getUptimeMonitorsByTeamId.pending, (state) => {
state.isLoading = true;
})
.addCase(getUptimeMonitorsByTeamId.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.msg;
state.monitorsSummary = action.payload.data;
})
.addCase(getUptimeMonitorsByTeamId.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Getting uptime monitors failed";
})
// *****************************************************
// Create Monitor
// *****************************************************
.addCase(createUptimeMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(createUptimeMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(createUptimeMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to create uptime monitor";
})
// *****************************************************
// Resolve Endpoint
// *****************************************************
.addCase(checkEndpointResolution.pending, (state) => {
state.isLoading = true;
})
.addCase(checkEndpointResolution.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(checkEndpointResolution.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to check endpoint resolution";
})
// *****************************************************
// Get Monitor By Id
// *****************************************************
.addCase(getUptimeMonitorById.pending, (state) => {
state.isLoading = true;
})
.addCase(getUptimeMonitorById.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(getUptimeMonitorById.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload ? action.payload.msg : "Failed to get uptime monitor";
})
// *****************************************************
// update Monitor
// *****************************************************
.addCase(updateUptimeMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(updateUptimeMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(updateUptimeMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to update uptime monitor";
})
// *****************************************************
// Delete Monitor
// *****************************************************
.addCase(deleteUptimeMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteUptimeMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteUptimeMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to delete uptime monitor";
})
// *****************************************************
// Delete Monitor checks by Team ID
// *****************************************************
.addCase(deleteMonitorChecksByTeamId.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteMonitorChecksByTeamId.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteMonitorChecksByTeamId.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to delete monitor checks";
})
// *****************************************************
// Pause Monitor
// *****************************************************
.addCase(pauseUptimeMonitor.pending, (state) => {
state.isLoading = true;
})
.addCase(pauseUptimeMonitor.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(pauseUptimeMonitor.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to pause uptime monitor";
})
// *****************************************************
// Add Demo Monitors
// *****************************************************
.addCase(addDemoMonitors.pending, (state) => {
state.isLoading = true;
})
.addCase(addDemoMonitors.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(addDemoMonitors.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload
? action.payload.msg
: "Failed to add demo uptime monitors";
})
// *****************************************************
// Delete all Monitors
// *****************************************************
.addCase(deleteAllMonitors.pending, (state) => {
state.isLoading = true;
})
.addCase(deleteAllMonitors.fulfilled, (state, action) => {
state.isLoading = false;
state.success = action.payload.success;
state.msg = action.payload.msg;
})
.addCase(deleteAllMonitors.rejected, (state, action) => {
state.isLoading = false;
state.success = false;
state.msg = action.payload ? action.payload.msg : "Failed to delete all monitors";
});
},
});
export const { setUptimeMonitors, clearUptimeMonitorState } = uptimeMonitorsSlice.actions;
export default uptimeMonitorsSlice.reducer;
-38
View File
@@ -1,38 +0,0 @@
.account h1.MuiTypography-root,
.account p.MuiTypography-root,
.account input,
.account button,
.account td,
.account .MuiSelect-select {
font-size: var(--env-var-font-size-medium);
}
.account h1.MuiTypography-root {
font-weight: 600;
}
.account .MuiTabPanel-root {
padding: 0;
margin-top: 50px;
}
.account button:not(.MuiIconButton-root) {
height: 34px;
}
.account .field {
flex: 1;
}
#modal-delete-account,
#modal-edit-org-name,
#modal-invite-member {
font-size: var(--env-var-font-size-large);
}
.account .MuiStack-root:has(span.MuiTypography-root.input-error) {
position: relative;
}
.account:not(:has(#modal-invite-member)) span.MuiTypography-root.input-error {
position: absolute;
top: 100%;
}
.account .MuiTableBody-root .MuiTableCell-root {
padding: var(--env-var-spacing-1-plus) var(--env-var-spacing-2);
}
-120
View File
@@ -1,120 +0,0 @@
import { useState } from "react";
import PropTypes from "prop-types";
import { useNavigate } from "react-router";
import { useSelector } from "react-redux";
import { Box, Tab, useTheme } from "@mui/material";
import TabContext from "@mui/lab/TabContext";
import TabList from "@mui/lab/TabList";
import ProfilePanel from "../../Components/TabPanels/Account/ProfilePanel";
import PasswordPanel from "../../Components/TabPanels/Account/PasswordPanel";
import TeamPanel from "../../Components/TabPanels/Account/TeamPanel";
import "./index.css";
/**
* Account component renders a settings page with tabs for Profile, Password, and Team settings.
* @param {string} [props.open] - Specifies the initially open tab: 'profile', 'password', or 'team'.
* @returns {JSX.Element}
*/
const Account = ({ open = "profile" }) => {
const theme = useTheme();
const navigate = useNavigate();
const [focusedTab, setFocusedTab] = useState(null); // Track focused tab
const tab = open;
const handleTabChange = (event, newTab) => {
navigate(`/account/${newTab}`);
};
const { user } = useSelector((state) => state.auth);
const requiredRoles = ["superadmin", "admin"];
let tabList = ["Profile", "Password", "Team"];
const hideTeams = !requiredRoles.some((role) => user.role.includes(role));
if (hideTeams) {
tabList = ["Profile", "Password"];
}
// Remove password for demo
if (user.role.includes("demo")) {
tabList = ["Profile"];
}
const handleKeyDown = (event) => {
const currentIndex = tabList.findIndex((label) => label.toLowerCase() === tab);
if (event.key === "Tab") {
const nextIndex = (currentIndex + 1) % tabList.length;
setFocusedTab(tabList[nextIndex].toLowerCase());
} else if (event.key === "Enter") {
event.preventDefault();
navigate(`/account/${focusedTab}`);
}
};
const handleFocus = (tabName) => {
setFocusedTab(tabName);
};
return (
<Box
className="account"
px={theme.spacing(20)}
py={theme.spacing(12)}
border={1}
borderColor={theme.palette.border.light}
borderRadius={theme.shape.borderRadius}
backgroundColor={theme.palette.background.main}
>
<TabContext value={tab}>
<Box
sx={{
borderBottom: 1,
borderColor: theme.palette.border.light,
"& .MuiTabs-root": { height: "fit-content", minHeight: "0" },
}}
>
<TabList
onChange={handleTabChange}
aria-label="account tabs"
>
{tabList.map((label, index) => (
<Tab
label={label}
key={index}
value={label.toLowerCase()}
onKeyDown={handleKeyDown}
onFocus={() => handleFocus(label.toLowerCase())}
tabIndex={index}
sx={{
fontSize: 13,
color: theme.palette.text.tertiary,
textTransform: "none",
minWidth: "fit-content",
minHeight: 0,
paddingLeft: 0,
paddingY: theme.spacing(4),
fontWeight: 400,
marginRight: theme.spacing(8),
borderBottom: "2px solid transparent",
"&:focus": {
borderBottom: `2px solid ${theme.palette.border.light}`,
},
"&:hover": {
borderBottom: `2px solid ${theme.palette.border.light}`,
},
}}
/>
))}
</TabList>
</Box>
<ProfilePanel />
{user.role.includes("superadmin") && <PasswordPanel />}
{!hideTeams && <TeamPanel />}
</TabContext>
</Box>
);
};
Account.propTypes = {
open: PropTypes.oneOf(["profile", "password", "team"]),
};
export default Account;
@@ -1,96 +0,0 @@
import { useRef, useEffect } from "react";
import { Box, Button, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import TextInput from "../../../../Components/Inputs/TextInput";
import PropTypes from "prop-types";
/**
* Renders the email step of the login process which includes an email field.
*
* @param {Object} props
* @param {Object} props.form - Form state object.
* @param {Object} props.errors - Object containing form validation errors.
* @param {Function} props.onSubmit - Callback function to handle form submission.
* @param {Function} props.onChange - Callback function to handle form input changes.
* @param {Function} props.onBack - Callback function to handle "Back" button click.
* @returns {JSX.Element}
*/
const EmailStep = ({ form, errors, onSubmit, onChange }) => {
const theme = useTheme();
const inputRef = useRef(null);
useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);
return (
<>
<Stack
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
textAlign="center"
position="relative"
>
<Box>
<Typography component="h1">Log In</Typography>
<Typography>Enter your email address</Typography>
</Box>
<Box
textAlign="left"
component="form"
noValidate
spellCheck={false}
onSubmit={onSubmit}
display="grid"
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
>
<TextInput
type="email"
id="login-email-input"
label="Email"
isRequired={true}
placeholder="jordan.ellis@domain.com"
autoComplete="email"
value={form.email}
onInput={(e) => (e.target.value = e.target.value.toLowerCase())}
onChange={onChange}
error={errors.email ? true : false}
helperText={errors.email}
ref={inputRef}
/>
<Stack
direction="row"
justifyContent="flex-end"
>
<Button
variant="contained"
color="primary"
type="submit"
disabled={errors.email && true}
sx={{
width: "30%",
"&.Mui-focusVisible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
boxShadow: `none`,
},
}}
>
Continue
</Button>
</Stack>
</Box>
</Stack>
</>
);
};
EmailStep.propTypes = {
form: PropTypes.object.isRequired,
errors: PropTypes.object.isRequired,
onSubmit: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
};
export default EmailStep;
@@ -1,43 +0,0 @@
import { Box, Typography, useTheme } from "@mui/material";
import PropTypes from "prop-types";
import { useNavigate } from "react-router";
const ForgotPasswordLabel = ({ email, errorEmail }) => {
const theme = useTheme();
const navigate = useNavigate();
const handleNavigate = () => {
if (email !== "" && !errorEmail) {
sessionStorage.setItem("email", email);
}
navigate("/forgot-password");
};
return (
<Box textAlign="center">
<Typography
className="forgot-p"
display="inline-block"
color={theme.palette.primary.main}
>
Forgot password?
</Typography>
<Typography
component="span"
color={theme.palette.primary.main}
ml={theme.spacing(2)}
sx={{ userSelect: "none" }}
onClick={handleNavigate}
>
Reset password
</Typography>
</Box>
);
};
ForgotPasswordLabel.proptype = {
email: PropTypes.string.isRequired,
emailError: PropTypes.string.isRequired,
};
export default ForgotPasswordLabel;
@@ -1,124 +0,0 @@
import { useRef, useEffect } from "react";
import { Box, Button, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import LoadingButton from "@mui/lab/LoadingButton";
import { useSelector } from "react-redux";
import TextInput from "../../../../Components/Inputs/TextInput";
import { PasswordEndAdornment } from "../../../../Components/Inputs/TextInput/Adornments";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import PropTypes from "prop-types";
/**
* Renders the password step of the login process, including a password input field.
*
* @param {Object} props
* @param {Object} props.form - Form state object.
* @param {Object} props.errors - Object containing form validation errors.
* @param {Function} props.onSubmit - Callback function to handle form submission.
* @param {Function} props.onChange - Callback function to handle form input changes.
* @param {Function} props.onBack - Callback function to handle "Back" button click.
* @returns {JSX.Element}
*/
const PasswordStep = ({ form, errors, onSubmit, onChange, onBack }) => {
const theme = useTheme();
const inputRef = useRef(null);
const authState = useSelector((state) => state.auth);
useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);
return (
<>
<Stack
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
position="relative"
textAlign="center"
>
<Box>
<Typography component="h1">Log In</Typography>
<Typography>Enter your password</Typography>
</Box>
<Box
component="form"
noValidate
spellCheck={false}
onSubmit={onSubmit}
textAlign="left"
mb={theme.spacing(5)}
sx={{
display: "grid",
gap: { xs: theme.spacing(12), sm: theme.spacing(16) },
}}
>
<TextInput
type="password"
id="login-password-input"
label="Password"
isRequired={true}
placeholder="••••••••••"
autoComplete="current-password"
value={form.password}
onChange={onChange}
error={errors.password ? true : false}
helperText={errors.password}
ref={inputRef}
endAdornment={<PasswordEndAdornment />}
/>
<Stack
direction="row"
justifyContent="space-between"
>
<Button
variant="outlined"
color="info"
onClick={onBack}
sx={{
px: theme.spacing(5),
"& svg.MuiSvgIcon-root": {
mr: theme.spacing(3),
},
"&:focus-visible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
},
}}
>
<ArrowBackRoundedIcon />
Back
</Button>
<LoadingButton
variant="contained"
color="primary"
type="submit"
loading={authState.isLoading}
disabled={errors.password && true}
sx={{
width: "30%",
"&.Mui-focusVisible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
boxShadow: `none`,
},
}}
>
Continue
</LoadingButton>
</Stack>
</Box>
</Stack>
</>
);
};
PasswordStep.propTypes = {
form: PropTypes.object.isRequired,
errors: PropTypes.object.isRequired,
onSubmit: PropTypes.func.isRequired,
onChange: PropTypes.func.isRequired,
onBack: PropTypes.func.isRequired,
};
export default PasswordStep;
-223
View File
@@ -1,223 +0,0 @@
import { useState, useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { Box, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import { credentials } from "../../../Validation/validation";
import { login } from "../../../Features/Auth/authSlice";
import { useDispatch, useSelector } from "react-redux";
import { createToast } from "../../../Utils/toastUtils";
import { networkService } from "../../../main";
import Background from "../../../assets/Images/background-grid.svg?react";
import Logo from "../../../assets/icons/bwu-icon.svg?react";
import { logger } from "../../../Utils/Logger";
import "../index.css";
import EmailStep from "./Components/EmailStep";
import PasswordStep from "./Components/PasswordStep";
import ThemeSwitch from "../../../Components/ThemeSwitch";
import ForgotPasswordLabel from "./Components/ForgotPasswordLabel";
const DEMO = import.meta.env.VITE_APP_DEMO;
/**
* Displays the login page.
*/
const Login = () => {
const dispatch = useDispatch();
const navigate = useNavigate();
const theme = useTheme();
const authState = useSelector((state) => state.auth);
const { authToken } = authState;
const idMap = {
"login-email-input": "email",
"login-password-input": "password",
};
const [form, setForm] = useState({
email: DEMO !== undefined ? "uptimedemo@demo.com" : "",
password: DEMO !== undefined ? "Demouser1!" : "",
});
const [errors, setErrors] = useState({});
const [step, setStep] = useState(0);
useEffect(() => {
if (authToken) {
navigate("/uptime");
return;
}
networkService
.doesSuperAdminExist()
.then((response) => {
if (response.data.data === false) {
navigate("/register");
}
})
.catch((error) => {
logger.error(error);
});
}, [authToken, navigate]);
const handleChange = (event) => {
const { value, id } = event.target;
const name = idMap[id];
setForm((prev) => ({
...prev,
[name]: value,
}));
const { error } = credentials.validate({ [name]: value }, { abortEarly: false });
setErrors((prev) => {
const prevErrors = { ...prev };
if (error) prevErrors[name] = error.details[0].message;
else delete prevErrors[name];
return prevErrors;
});
};
const handleSubmit = async (event) => {
event.preventDefault();
if (step === 0) {
const { error } = credentials.validate(
{ email: form.email },
{ abortEarly: false }
);
if (error) {
setErrors((prev) => ({ ...prev, email: error.details[0].message }));
createToast({ body: error.details[0].message });
} else {
setStep(1);
}
} else if (step === 1) {
const { error } = credentials.validate(form, { abortEarly: false });
if (error) {
// validation errors
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
createToast({
body:
error.details && error.details.length > 0
? error.details[0].message
: "Error validating data.",
});
} else {
const action = await dispatch(login(form));
if (action.payload.success) {
navigate("/uptime");
createToast({
body: "Welcome back! You're successfully logged in.",
});
} else {
if (action.payload) {
if (action.payload.msg === "Incorrect password")
setErrors({
password: "The password you provided does not match our records",
});
// dispatch errors
createToast({
body: action.payload.msg,
});
} else {
// unknown errors
createToast({
body: "Unknown error.",
});
}
}
}
}
};
return (
<Stack
className="login-page auth"
overflow="hidden"
sx={{
"& h1": {
color: theme.palette.primary.main,
fontWeight: 600,
fontSize: 28,
},
"& p": { fontSize: 14, color: theme.palette.text.accent },
"& span": { fontSize: "inherit" },
}}
>
<Box
className="background-pattern-svg"
sx={{
"& svg g g:last-of-type path": {
stroke: theme.palette.border.light,
},
}}
>
<Background style={{ width: "100%" }} />
</Box>
<Stack
direction="row"
alignItems="center"
px={theme.spacing(12)}
gap={theme.spacing(4)}
>
<Logo style={{ borderRadius: theme.shape.borderRadius }} />
<Typography sx={{ userSelect: "none" }}>BlueWave Uptime</Typography>
</Stack>
<Stack
width="100%"
maxWidth={600}
flex={1}
justifyContent="center"
px={{ xs: theme.spacing(12), lg: theme.spacing(20) }}
pb={theme.spacing(20)}
mx="auto"
rowGap={theme.spacing(8)}
sx={{
"& > .MuiStack-root": {
border: 1,
borderRadius: theme.spacing(5),
borderColor: theme.palette.border.light,
backgroundColor: theme.palette.background.main,
padding: {
xs: theme.spacing(12),
sm: theme.spacing(20),
},
},
}}
>
{step === 0 ? (
<EmailStep
form={form}
errors={errors}
onSubmit={handleSubmit}
onChange={handleChange}
/>
) : (
step === 1 && (
<PasswordStep
form={form}
errors={errors}
onSubmit={handleSubmit}
onChange={handleChange}
onBack={() => setStep(0)}
/>
)
)}
<ForgotPasswordLabel
email={form.email}
errorEmail={errors.email}
/>
<Box marginX={"auto"}>
<ThemeSwitch />
</Box>
</Stack>
</Stack>
);
};
export default Login;
-387
View File
@@ -1,387 +0,0 @@
import { useState, useEffect } from "react";
import { useNavigate, useParams } from "react-router-dom";
import { useDispatch } from "react-redux";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack, Typography } from "@mui/material";
import { StepOne } from "./StepOne";
import { StepTwo } from "./StepTwo";
import { StepThree } from "./StepThree";
import { networkService } from "../../../main";
import { credentials } from "../../../Validation/validation";
import { createToast } from "../../../Utils/toastUtils";
import { register } from "../../../Features/Auth/authSlice";
import Background from "../../../assets/Images/background-grid.svg?react";
import Logo from "../../../assets/icons/bwu-icon.svg?react";
import Mail from "../../../assets/icons/mail.svg?react";
import "../index.css";
/**
* Displays the initial landing page.
*
* @param {Object} props
* @param {boolean} props.isSuperAdmin - Whether the user is creating and admin account
* @param {Function} props.onContinue - Callback function to handle "Continue with Email" button click.
* @returns {JSX.Element}
*/
const LandingPage = ({ isSuperAdmin, onSignup }) => {
const theme = useTheme();
return (
<>
<Stack
gap={{ xs: theme.spacing(8), sm: theme.spacing(12) }}
alignItems="center"
textAlign="center"
>
<Box>
<Typography component="h1">Sign Up</Typography>
<Typography>
Create your {isSuperAdmin ? "Super admin " : ""}account to get started.
</Typography>
</Box>
<Box width="100%">
<Button
variant="outlined"
color="info"
onClick={onSignup}
sx={{
width: "100%",
"& svg": {
mr: theme.spacing(4),
"& path": {
stroke: theme.palette.other.icon,
},
},
"&:focus-visible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
},
}}
>
<Mail />
Sign up with Email
</Button>
</Box>
<Box maxWidth={400}>
<Typography className="tos-p">
By signing up, you agree to our{" "}
<Typography
component="span"
onClick={() => {
window.open(
"https://bluewavelabs.ca/terms-of-service-open-source",
"_blank",
"noreferrer"
);
}}
sx={{
"&:hover": {
color: theme.palette.text.tertiary,
},
}}
>
Terms of Service
</Typography>{" "}
and{" "}
<Typography
component="span"
onClick={() => {
window.open(
"https://bluewavelabs.ca/privacy-policy-open-source",
"_blank",
"noreferrer"
);
}}
sx={{
"&:hover": {
color: theme.palette.text.tertiary,
},
}}
>
Privacy Policy.
</Typography>
</Typography>
</Box>
</Stack>
</>
);
};
LandingPage.propTypes = {
isSuperAdmin: PropTypes.bool,
onSignup: PropTypes.func,
};
const Register = ({ isSuperAdmin }) => {
const dispatch = useDispatch();
const navigate = useNavigate();
const { token } = useParams();
const theme = useTheme();
// TODO If possible, change the IDs of these fields to match the backend
const idMap = {
"register-firstname-input": "firstName",
"register-lastname-input": "lastName",
"register-email-input": "email",
"register-password-input": "password",
"register-confirm-input": "confirm",
};
const [form, setForm] = useState({
firstName: "",
lastName: "",
email: "",
password: "",
confirm: "",
role: [],
teamId: "",
});
const [errors, setErrors] = useState({});
const [step, setStep] = useState(0);
useEffect(() => {
const fetchInvite = async () => {
if (token !== undefined) {
try {
const res = await networkService.verifyInvitationToken(token);
const invite = res.data.data;
const { role, email, teamId } = invite;
setForm({ ...form, email, role, teamId });
} catch (error) {
navigate("/register", { replace: true });
}
}
};
fetchInvite();
}, []);
/**
* Validates the form data against the validation schema.
*
* @param {Object} data - The form data to validate.
* @param {Object} [options] - Optional settings for validation.
* @returns {Object | undefined} - Returns the validation error object if there are validation errors; otherwise, `undefined`.
*/
const validateForm = (data, options = {}) => {
const { error } = credentials.validate(data, {
abortEarly: false,
...options,
});
return error;
};
/**
* Handles validation errors by setting the state with error messages and displaying a toast notification.
*
* @param {Object} error - The validation error object returned from the validation schema.
*/
const handleError = (error) => {
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
createToast({ body: error.details[0].message || "Error validating data." });
};
const handleStepOne = async (e) => {
e.preventDefault();
let error = validateForm({
firstName: form.firstName,
lastName: form.lastName,
});
if (error) {
handleError(error);
return;
}
setStep(2);
};
const handleStepTwo = async (e) => {
e.preventDefault();
let error;
error = validateForm({ email: form.email });
if (error) {
handleError(error);
return;
}
setStep(3);
};
// Final step
// Attempts account registration
const handleStepThree = async (e) => {
e.preventDefault();
const { password, confirm } = e.target.elements;
let registerForm = {
...form,
password: password.value,
confirm: confirm.value,
role: isSuperAdmin ? ["superadmin"] : form.role,
inviteToken: token ? token : "", // Add the token to the request for verification
};
let error = validateForm(registerForm, {
context: { password: registerForm.password },
});
if (error) {
handleError(error);
return;
}
delete registerForm.confirm;
const action = await dispatch(register(registerForm));
if (action.payload.success) {
const authToken = action.payload.data;
localStorage.setItem("token", authToken);
navigate("/uptime");
createToast({
body: "Welcome! Your account was created successfully.",
});
} else {
if (action.payload) {
createToast({
body: action.payload.msg,
});
} else {
createToast({
body: "Unknown error.",
});
}
}
};
const handleChange = (event) => {
const { value, id } = event.target;
const name = idMap[id];
setForm((prev) => ({
...prev,
[name]: value,
}));
const { error } = credentials.validate(
{ [name]: value },
{ abortEarly: false, context: { password: form.password } }
);
setErrors((prev) => {
const prevErrors = { ...prev };
if (error) prevErrors[name] = error.details[0].message;
else delete prevErrors[name];
return prevErrors;
});
};
return (
<Stack
className="register-page auth"
overflow="hidden"
sx={{
"& h1": {
color: theme.palette.primary.main,
fontWeight: 600,
fontSize: 28,
},
"& p": { fontSize: 14, color: theme.palette.text.accent },
"& span": { fontSize: "inherit" },
}}
>
<Box
className="background-pattern-svg"
sx={{
"& svg g g:last-of-type path": {
stroke: theme.palette.border.light,
},
}}
>
<Background style={{ width: "100%" }} />
</Box>
<Stack
direction="row"
alignItems="center"
px={theme.spacing(12)}
gap={theme.spacing(4)}
>
<Logo style={{ borderRadius: theme.shape.borderRadius }} />
<Typography sx={{ userSelect: "none" }}>BlueWave Uptime</Typography>
</Stack>
<Stack
width="100%"
maxWidth={600}
flex={1}
justifyContent="center"
px={{ xs: theme.spacing(12), lg: theme.spacing(20) }}
pb={theme.spacing(20)}
mx="auto"
sx={{
"& > .MuiStack-root": {
border: 1,
borderRadius: theme.spacing(5),
borderColor: theme.palette.border.light,
backgroundColor: theme.palette.background.main,
padding: {
xs: theme.spacing(12),
sm: theme.spacing(20),
},
},
}}
>
{step === 0 ? (
<LandingPage
isSuperAdmin={isSuperAdmin}
onSignup={() => setStep(1)}
/>
) : step === 1 ? (
<StepOne
form={form}
errors={errors}
onSubmit={handleStepOne}
onChange={handleChange}
onBack={() => setStep(0)}
/>
) : step === 2 ? (
<StepTwo
form={form}
errors={errors}
onSubmit={handleStepTwo}
onChange={handleChange}
onBack={() => setStep(1)}
/>
) : step === 3 ? (
<StepThree
/* form={form}
errors={errors} */
onSubmit={handleStepThree}
/* onChange={handleChange} */
onBack={() => setStep(2)}
/>
) : (
""
)}
</Stack>
<Box
textAlign="center"
p={theme.spacing(12)}
>
<Typography display="inline-block">Already have an account? —</Typography>
<Typography
component="span"
ml={theme.spacing(2)}
onClick={() => {
navigate("/login");
}}
sx={{ userSelect: "none", color: theme.palette.primary.main }}
>
Log In
</Typography>
</Box>
</Stack>
);
};
Register.propTypes = {
isSuperAdmin: PropTypes.bool,
};
export default Register;
@@ -1,135 +0,0 @@
import { useEffect, useRef } from "react";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack, Typography } from "@mui/material";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import TextInput from "../../../../Components/Inputs/TextInput";
StepOne.propTypes = {
form: PropTypes.object,
errors: PropTypes.object,
onSubmit: PropTypes.func,
onChange: PropTypes.func,
onBack: PropTypes.func,
};
/**
* Renders the first step of the sign up process.
*
* @param {Object} props
* @param {Object} props.form - Form state object.
* @param {Object} props.errors - Object containing form validation errors.
* @param {Function} props.onSubmit - Callback function to handle form submission.
* @param {Function} props.onChange - Callback function to handle form input changes.
* @param {Function} props.onBack - Callback function to handle "Back" button click.
* @returns {JSX.Element}
*/
function StepOne({ form, errors, onSubmit, onChange, onBack }) {
const theme = useTheme();
const inputRef = useRef(null);
useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);
return (
<>
{/* TODO this stack should be a component */}
<Stack
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
textAlign="center"
>
<Box>
<Typography component="h1">Sign Up</Typography>
<Typography>Enter your personal details</Typography>
</Box>
<Box
textAlign="left"
component="form"
noValidate
spellCheck={false}
onSubmit={onSubmit}
display="grid"
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
>
<Box
display="grid"
gap={{ xs: theme.spacing(8), sm: theme.spacing(12) }}
>
<TextInput
id="register-firstname-input"
label="Name"
isRequired={true}
placeholder="Jordan"
autoComplete="given-name"
value={form.firstName}
onChange={onChange}
error={errors.firstName ? true : false}
helperText={errors.firstName}
ref={inputRef}
/>
<TextInput
id="register-lastname-input"
label="Surname"
isRequired={true}
placeholder="Ellis"
autoComplete="family-name"
value={form.lastName}
onChange={onChange}
error={errors.lastName ? true : false}
helperText={errors.lastName}
ref={inputRef}
/>
</Box>
<Stack
direction="row"
justifyContent="space-between"
>
{/* TODO buttons should be a component should be a component */}
<Button
variant="outlined"
color="info"
onClick={onBack}
sx={{
px: theme.spacing(5),
"& svg.MuiSvgIcon-root": {
mr: theme.spacing(3),
},
"&:focus-visible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
},
}}
>
<ArrowBackRoundedIcon />
Back
</Button>
<Button
variant="contained"
color="primary"
type="submit"
disabled={(errors.firstName || errors.lastName) && true}
sx={{
width: "30%",
"&.Mui-focusVisible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
boxShadow: `none`,
},
}}
>
Continue
</Button>
</Stack>
</Box>
</Stack>
</>
);
}
export { StepOne };
@@ -1,172 +0,0 @@
import { useEffect, useRef } from "react";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack, Typography } from "@mui/material";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import TextInput from "../../../../Components/Inputs/TextInput";
import Check from "../../../../Components/Check/Check";
import { useValidatePassword } from "../../hooks/useValidatePassword";
StepThree.propTypes = {
onSubmit: PropTypes.func,
onBack: PropTypes.func,
};
/**
* Renders the third step of the sign up process.
*
* @param {Object} props
* @param {Function} props.onSubmit - Callback function to handle form submission.
* @param {Function} props.onBack - Callback function to handle "Back" button click.
* @returns {JSX.Element}
*/
function StepThree({ onSubmit, onBack }) {
const theme = useTheme();
const inputRef = useRef(null);
useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);
const { handleChange, feedbacks, form, errors } = useValidatePassword();
return (
<>
<Stack
gap={{ xs: theme.spacing(8), sm: theme.spacing(12) }}
textAlign="center"
>
<Box>
<Typography component="h1">Sign Up</Typography>
<Typography>Create your password</Typography>
</Box>
<Box
component="form"
noValidate
spellCheck={false}
onSubmit={onSubmit}
textAlign="left"
display="grid"
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
sx={{
"& .input-error": {
display: "none",
},
}}
>
<Box
display="grid"
gap={{ xs: theme.spacing(8), sm: theme.spacing(12) }}
>
<TextInput
type="password"
id="register-password-input"
name="password"
label="Password"
isRequired={true}
placeholder="Create a password"
autoComplete="current-password"
value={form.password}
onChange={handleChange}
error={errors.password && errors.password[0] ? true : false}
ref={inputRef}
/>
<TextInput
type="password"
id="register-confirm-input"
name="confirm"
label="Confirm password"
isRequired={true}
placeholder="Confirm your password"
autoComplete="current-password"
value={form.confirm}
onChange={handleChange}
error={errors.confirm && errors.confirm[0] ? true : false}
/>
</Box>
<Stack
gap={theme.spacing(4)}
mb={{ xs: theme.spacing(6), sm: theme.spacing(8) }}
>
<Check
noHighlightText={"Must be at least"}
text={"8 characters long"}
variant={feedbacks.length}
/>
<Check
noHighlightText={"Must contain at least"}
text={"one special character"}
variant={feedbacks.special}
/>
<Check
noHighlightText={"Must contain at least"}
text={"one number"}
variant={feedbacks.number}
/>
<Check
noHighlightText={"Must contain at least"}
text={"one upper character"}
variant={feedbacks.uppercase}
/>
<Check
noHighlightText={"Must contain at least"}
text={"one lower character"}
variant={feedbacks.lowercase}
/>
<Check
noHighlightText={"Confirm password and password"}
text={"must match"}
variant={feedbacks.confirm}
/>
</Stack>
<Stack
direction="row"
justifyContent="space-between"
>
<Button
variant="outlined"
color="info"
onClick={onBack}
sx={{
px: theme.spacing(5),
"& svg.MuiSvgIcon-root": {
mr: theme.spacing(3),
},
":focus-visible": {
outline: `2px solid ${theme.palette.primary.dark}`,
outlineOffset: "4px",
},
}}
>
<ArrowBackRoundedIcon />
Back
</Button>
<Button
type="submit"
variant="contained"
color="primary"
disabled={
form.password.length === 0 ||
form.confirm.length === 0 ||
Object.keys(errors).length !== 0
}
sx={{
width: "30%",
"&.Mui-focusVisible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
boxShadow: `none`,
},
}}
>
Continue
</Button>
</Stack>
</Box>
</Stack>
</>
);
}
export { StepThree };
@@ -1,117 +0,0 @@
import { useEffect, useRef } from "react";
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack, Typography } from "@mui/material";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import TextInput from "../../../../Components/Inputs/TextInput";
StepTwo.propTypes = {
form: PropTypes.object,
errors: PropTypes.object,
onSubmit: PropTypes.func,
onChange: PropTypes.func,
onBack: PropTypes.func,
};
/**
* Renders the second step of the sign up process.
*
* @param {Object} props
* @param {Object} props.form - Form state object.
* @param {Object} props.errors - Object containing form validation errors.
* @param {Function} props.onSubmit - Callback function to handle form submission.
* @param {Function} props.onChange - Callback function to handle form input changes.
* @param {Function} props.onBack - Callback function to handle "Back" button click.
* @returns {JSX.Element}
*/
function StepTwo({ form, errors, onSubmit, onChange, onBack }) {
const theme = useTheme();
const inputRef = useRef(null);
useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);
return (
<>
<Stack
gap={{ xs: theme.spacing(8), sm: theme.spacing(12) }}
textAlign="center"
>
<Box>
<Typography component="h1">Sign Up</Typography>
<Typography>Enter your email address</Typography>
</Box>
<Box
component="form"
textAlign="left"
noValidate
spellCheck={false}
onSubmit={onSubmit}
mb={theme.spacing(5)}
display="grid"
gap={{ xs: theme.spacing(12), sm: theme.spacing(16) }}
>
<TextInput
type="email"
id="register-email-input"
label="Email"
isRequired={true}
placeholder="jordan.ellis@domain.com"
autoComplete="email"
value={form.email}
onInput={(e) => (e.target.value = e.target.value.toLowerCase())}
onChange={onChange}
error={errors.email ? true : false}
helperText={errors.email}
ref={inputRef}
/>
<Stack
direction="row"
justifyContent="space-between"
>
<Button
variant="outlined"
color="info"
onClick={onBack}
sx={{
px: theme.spacing(5),
"& svg.MuiSvgIcon-root": {
mr: theme.spacing(3),
},
"&:focus-visible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
},
}}
>
<ArrowBackRoundedIcon />
Back
</Button>
<Button
variant="contained"
color="primary"
onClick={onSubmit}
disabled={errors.email && true}
sx={{
width: "30%",
"&.Mui-focusVisible": {
outline: `2px solid ${theme.palette.primary.main}`,
outlineOffset: `2px`,
boxShadow: `none`,
},
}}
>
Continue
</Button>
</Stack>
</Box>
</Stack>
</>
);
}
export { StepTwo };
@@ -1,32 +0,0 @@
import { useTheme } from "@emotion/react";
import PlaceholderLight from "../../../../assets/Images/data_placeholder.svg?react";
import PlaceholderDark from "../../../../assets/Images/data_placeholder_dark.svg?react";
import { Box, Typography } from "@mui/material";
import PropTypes from "prop-types";
const Empty = ({ styles, mode }) => {
const theme = useTheme();
return (
<Box sx={{ ...styles }}>
<Box
textAlign="center"
pb={theme.spacing(20)}
>
{mode === "light" ? <PlaceholderLight /> : <PlaceholderDark />}
</Box>
<Typography
textAlign="center"
color={theme.palette.text.secondary}
>
No incidents recorded yet.
</Typography>
</Box>
);
};
Empty.propTypes = {
styles: PropTypes.object,
mode: PropTypes.string,
};
export { Empty };
@@ -1,21 +0,0 @@
import { Skeleton /* , Stack */ } from "@mui/material";
const IncidentSkeleton = () => {
return (
<>
<Skeleton
animation={"wave"}
variant="rounded"
width="100%"
height={300}
/>
<Skeleton
animation={"wave"}
variant="rounded"
width="100%"
height={100}
/>
</>
);
};
export { IncidentSkeleton };
@@ -1,223 +0,0 @@
import PropTypes from "prop-types";
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
Pagination,
PaginationItem,
Paper,
Typography,
Box,
} from "@mui/material";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import ArrowForwardRoundedIcon from "@mui/icons-material/ArrowForwardRounded";
import { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { networkService } from "../../../main";
import { StatusLabel } from "../../../Components/Label";
import { logger } from "../../../Utils/Logger";
import { useTheme } from "@emotion/react";
import { formatDateWithTz } from "../../../Utils/timeUtils";
import PlaceholderLight from "../../../assets/Images/data_placeholder.svg?react";
import PlaceholderDark from "../../../assets/Images/data_placeholder_dark.svg?react";
import { HttpStatusLabel } from "../../../Components/HttpStatusLabel";
import { Empty } from "./Empty/Empty";
import { IncidentSkeleton } from "./Skeleton/Skeleton";
const IncidentTable = ({ monitors, selectedMonitor, filter }) => {
const uiTimezone = useSelector((state) => state.ui.timezone);
const theme = useTheme();
const { authToken, user } = useSelector((state) => state.auth);
const mode = useSelector((state) => state.ui.mode);
const [checks, setChecks] = useState([]);
const [checksCount, setChecksCount] = useState(0);
const [paginationController, setPaginationController] = useState({
page: 0,
rowsPerPage: 14,
});
const [isLoading, setIsLoading] = useState(false);
useEffect(() => {
setPaginationController((prevPaginationController) => ({
...prevPaginationController,
page: 0,
}));
}, [filter, selectedMonitor]);
useEffect(() => {
const fetchPage = async () => {
if (!monitors || Object.keys(monitors).length === 0) {
return;
}
try {
setIsLoading(true);
let res;
if (selectedMonitor === "0") {
res = await networkService.getChecksByTeam({
authToken: authToken,
teamId: user.teamId,
sortOrder: "desc",
limit: null,
dateRange: null,
filter: filter,
page: paginationController.page,
rowsPerPage: paginationController.rowsPerPage,
});
} else {
res = await networkService.getChecksByMonitor({
authToken: authToken,
monitorId: selectedMonitor,
sortOrder: "desc",
limit: null,
dateRange: null,
filter: filter,
page: paginationController.page,
rowsPerPage: paginationController.rowsPerPage,
});
}
setChecks(res.data.data.checks);
setChecksCount(res.data.data.checksCount);
} catch (error) {
logger.error(error);
} finally {
setIsLoading(false);
}
};
fetchPage();
}, [
authToken,
user,
monitors,
selectedMonitor,
filter,
paginationController.page,
paginationController.rowsPerPage,
]);
const handlePageChange = (_, newPage) => {
setPaginationController({
...paginationController,
page: newPage - 1, // 0-indexed
});
};
let paginationComponent = <></>;
if (checksCount > paginationController.rowsPerPage) {
paginationComponent = (
<Pagination
count={Math.ceil(checksCount / paginationController.rowsPerPage)}
page={paginationController.page + 1} //0-indexed
onChange={handlePageChange}
shape="rounded"
renderItem={(item) => (
<PaginationItem
slots={{
previous: ArrowBackRoundedIcon,
next: ArrowForwardRoundedIcon,
}}
{...item}
/>
)}
sx={{ mt: "auto" }}
/>
);
}
let sharedStyles = {
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.background.main,
p: theme.spacing(30),
};
const hasChecks = checks?.length === 0;
const noIncidentsRecordedYet = hasChecks && selectedMonitor === "0";
const noIncidentsForThatMonitor = hasChecks && selectedMonitor !== "0";
return (
<>
{isLoading ? (
<IncidentSkeleton />
) : noIncidentsRecordedYet ? (
<Empty
mode={mode}
styles={sharedStyles}
/>
) : noIncidentsForThatMonitor ? (
<Box sx={{ ...sharedStyles }}>
<Box
textAlign="center"
pb={theme.spacing(20)}
>
{mode === "light" ? <PlaceholderLight /> : <PlaceholderDark />}
</Box>
<Typography
textAlign="center"
color={theme.palette.text.secondary}
>
The monitor you have selected has no recorded incidents yet.
</Typography>
</Box>
) : (
<>
<TableContainer component={Paper}>
<Table>
<TableHead>
<TableRow>
<TableCell>Monitor Name</TableCell>
<TableCell>Status</TableCell>
<TableCell>Date & Time</TableCell>
<TableCell>Status Code</TableCell>
<TableCell>Message</TableCell>
</TableRow>
</TableHead>
<TableBody>
{checks.map((check) => {
const status = check.status === true ? "up" : "down";
const formattedDate = formatDateWithTz(
check.createdAt,
"YYYY-MM-DD HH:mm:ss A",
uiTimezone
);
return (
<TableRow key={check._id}>
<TableCell>{monitors[check.monitorId]?.name}</TableCell>
<TableCell>
<StatusLabel
status={status}
text={status}
customStyles={{ textTransform: "capitalize" }}
/>
</TableCell>
<TableCell>{formattedDate}</TableCell>
<TableCell>
<HttpStatusLabel status={check.statusCode} />
</TableCell>
<TableCell>{check.message}</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
</TableContainer>
{paginationComponent}
</>
)}
</>
);
};
IncidentTable.propTypes = {
monitors: PropTypes.object.isRequired,
selectedMonitor: PropTypes.string.isRequired,
filter: PropTypes.string.isRequired,
};
export default IncidentTable;
-11
View File
@@ -1,11 +0,0 @@
.incidents h1.MuiTypography-root {
font-size: var(--env-var-font-size-large);
font-weight: 600;
}
.incidents button.MuiButtonBase-root,
.incidents p.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
}
.incidents button.MuiButtonBase-root {
height: 34px;
}
-143
View File
@@ -1,143 +0,0 @@
import { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { ButtonGroup, Stack, Typography, Button } from "@mui/material";
import { useParams } from "react-router-dom";
import { networkService } from "../../main";
import { useTheme } from "@emotion/react";
import Select from "../../Components/Inputs/Select";
import IncidentTable from "./IncidentTable";
import SkeletonLayout from "./skeleton";
import "./index.css";
const Incidents = () => {
const theme = useTheme();
const authState = useSelector((state) => state.auth);
const { monitorId } = useParams();
const [monitors, setMonitors] = useState({});
const [selectedMonitor, setSelectedMonitor] = useState("0");
const [isLoading, setIsLoading] = useState(true);
// TODO do something with these filters
const [filter, setFilter] = useState("all");
useEffect(() => {
const fetchMonitors = async () => {
try {
setIsLoading(true);
const res = await networkService.getMonitorsByTeamId({
authToken: authState.authToken,
teamId: authState.user.teamId,
limit: -1,
types: null,
status: null,
checkOrder: null,
normalize: null,
page: null,
rowsPerPage: null,
filter: null,
field: null,
order: null,
});
// Reduce to a lookup object for 0(1) lookup
if (res?.data?.data?.monitors?.length > 0) {
const monitorLookup = res.data.data.monitors.reduce((acc, monitor) => {
acc[monitor._id] = monitor;
return acc;
}, {});
setMonitors(monitorLookup);
monitorId !== undefined && setSelectedMonitor(monitorId);
}
} catch (error) {
console.info(error);
} finally {
setIsLoading(false);
}
};
fetchMonitors();
}, [authState]);
useEffect(() => {}, [monitors]);
const handleSelect = (event) => {
setSelectedMonitor(event.target.value);
};
const isActuallyLoading = isLoading && Object.keys(monitors)?.length === 0;
return (
<Stack
className="incidents"
pt={theme.spacing(6)}
gap={theme.spacing(12)}
>
{isActuallyLoading ? (
<SkeletonLayout />
) : (
<>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<Typography
display="inline-block"
component="h1"
color={theme.palette.text.secondary}
>
Incidents for
</Typography>
<Select
id="incidents-select-monitor"
placeholder="All servers"
value={selectedMonitor}
onChange={handleSelect}
items={Object.values(monitors)}
sx={{
backgroundColor: theme.palette.background.main,
}}
/>
<ButtonGroup
sx={{
ml: "auto",
"& .MuiButtonBase-root, & .MuiButtonBase-root:hover": {
borderColor: theme.palette.border.light,
},
}}
>
<Button
variant="group"
filled={(filter === "all").toString()}
onClick={() => setFilter("all")}
>
All
</Button>
<Button
variant="group"
filled={(filter === "down").toString()}
onClick={() => setFilter("down")}
>
Down
</Button>
<Button
variant="group"
filled={(filter === "resolve").toString()}
onClick={() => setFilter("resolve")}
>
Cannot Resolve
</Button>
</ButtonGroup>
</Stack>
<IncidentTable
monitors={monitors}
selectedMonitor={selectedMonitor}
filter={filter}
/>
</>
)}
</Stack>
);
};
export default Incidents;
-50
View File
@@ -1,50 +0,0 @@
import { Stack, Skeleton } from "@mui/material";
import { useTheme } from "@emotion/react";
/**
* Renders a skeleton layout.
*
* @returns {JSX.Element}
*/
const SkeletonLayout = () => {
const theme = useTheme();
return (
<>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<Skeleton
variant="rounded"
width={150}
height={34}
/>
<Skeleton
variant="rounded"
width="15%"
height={34}
/>
<Skeleton
variant="rounded"
width="20%"
height={34}
sx={{ ml: "auto" }}
/>
</Stack>
<Skeleton
variant="rounded"
width="100%"
height={300}
/>
<Skeleton
variant="rounded"
width="100%"
height={100}
/>
</>
);
};
export default SkeletonLayout;
@@ -1,422 +0,0 @@
// React, Redux, Router
import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router-dom";
import { useState } from "react";
import { useSelector, useDispatch } from "react-redux";
// Utility and Network
import { infrastructureMonitorValidation } from "../../../Validation/validation";
import { createInfrastructureMonitor } from "../../../Features/InfrastructureMonitors/infrastructureMonitorsSlice";
import { capitalizeFirstLetter } from "../../../Utils/stringUtils";
// MUI
import { Box, Stack, Typography, Button, ButtonGroup } from "@mui/material";
import LoadingButton from "@mui/lab/LoadingButton";
//Components
import Breadcrumbs from "../../../Components/Breadcrumbs";
import Link from "../../../Components/Link";
import ConfigBox from "../../../Components/ConfigBox";
import TextInput from "../../../Components/Inputs/TextInput";
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
import { createToast } from "../../../Utils/toastUtils";
import Checkbox from "../../../Components/Inputs/Checkbox";
import Select from "../../../Components/Inputs/Select";
import { CustomThreshold } from "./CustomThreshold";
const SELECT_VALUES = [
{ _id: 0.25, name: "15 seconds" },
{ _id: 0.5, name: "30 seconds" },
{ _id: 1, name: "1 minute" },
{ _id: 2, name: "2 minutes" },
{ _id: 5, name: "5 minutes" },
{ _id: 10, name: "10 minutes" },
];
const METRICS = ["cpu", "memory", "disk", "temperature"];
const METRIC_PREFIX = "usage_";
const MS_PER_MINUTE = 60000;
const hasAlertError = (errors) => {
return Object.keys(errors).filter((k) => k.startsWith(METRIC_PREFIX)).length > 0;
};
const getAlertError = (errors) => {
return Object.keys(errors).find((key) => key.startsWith(METRIC_PREFIX))
? errors[Object.keys(errors).find((key) => key.startsWith(METRIC_PREFIX))]
: null;
};
const CreateInfrastructureMonitor = () => {
const theme = useTheme();
const { user, authToken } = useSelector((state) => state.auth);
const monitorState = useSelector((state) => state.infrastructureMonitor);
const dispatch = useDispatch();
const navigate = useNavigate();
// State
const [errors, setErrors] = useState({});
const [https, setHttps] = useState(false);
const [infrastructureMonitor, setInfrastructureMonitor] = useState({
url: "",
name: "",
notifications: [],
interval: 0.25,
cpu: false,
usage_cpu: "",
memory: false,
usage_memory: "",
disk: false,
usage_disk: "",
temperature: false,
usage_temperature: "",
secret: "",
});
// Handlers
const handleCreateInfrastructureMonitor = async (event) => {
event.preventDefault();
// Build the form
let form = {
url: `http${https ? "s" : ""}://` + infrastructureMonitor.url,
name:
infrastructureMonitor.name === ""
? infrastructureMonitor.url
: infrastructureMonitor.name,
interval: infrastructureMonitor.interval * MS_PER_MINUTE,
cpu: infrastructureMonitor.cpu,
...(infrastructureMonitor.cpu
? { usage_cpu: infrastructureMonitor.usage_cpu }
: {}),
memory: infrastructureMonitor.memory,
...(infrastructureMonitor.memory
? { usage_memory: infrastructureMonitor.usage_memory }
: {}),
disk: infrastructureMonitor.disk,
...(infrastructureMonitor.disk
? { usage_disk: infrastructureMonitor.usage_disk }
: {}),
temperature: infrastructureMonitor.temperature,
...(infrastructureMonitor.temperature
? { usage_temperature: infrastructureMonitor.usage_temperature }
: {}),
secret: infrastructureMonitor.secret,
};
const { error } = infrastructureMonitorValidation.validate(form, {
abortEarly: false,
});
if (error) {
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
createToast({ body: "Please check the form for errors." });
return;
}
// Build the thresholds for the form
const {
cpu,
usage_cpu,
memory,
usage_memory,
disk,
usage_disk,
temperature,
usage_temperature,
...rest
} = form;
const thresholds = {
...(cpu ? { usage_cpu: usage_cpu / 100 } : {}),
...(memory ? { usage_memory: usage_memory / 100 } : {}),
...(disk ? { usage_disk: usage_disk / 100 } : {}),
...(temperature ? { usage_temperature: usage_temperature / 100 } : {}),
};
form = {
...rest,
description: form.name,
teamId: user.teamId,
userId: user._id,
type: "hardware",
notifications: infrastructureMonitor.notifications,
thresholds,
};
const action = await dispatch(
createInfrastructureMonitor({ authToken, monitor: form })
);
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Infrastructure monitor created successfully!" });
navigate("/infrastructure");
} else {
createToast({ body: "Failed to create monitor." });
}
};
const handleChange = (event) => {
const { value, name } = event.target;
setInfrastructureMonitor({
...infrastructureMonitor,
[name]: value,
});
const { error } = infrastructureMonitorValidation.validate(
{ [name]: value },
{ abortEarly: false }
);
setErrors((prev) => ({
...prev,
...(error ? { [name]: error.details[0].message } : { [name]: undefined }),
}));
};
const handleCheckboxChange = (event) => {
const { name } = event.target;
const { checked } = event.target;
setInfrastructureMonitor({
...infrastructureMonitor,
[name]: checked,
});
};
const handleNotifications = (event, type) => {
const { value } = event.target;
let notifications = [...infrastructureMonitor.notifications];
const notificationExists = notifications.some((notification) => {
if (notification.type === type && notification.address === value) {
return true;
}
return false;
});
if (notificationExists) {
notifications = notifications.filter((notification) => {
if (notification.type === type && notification.address === value) {
return false;
}
return true;
});
} else {
notifications.push({ type, address: value });
}
setInfrastructureMonitor((prev) => ({
...prev,
notifications,
}));
};
return (
<Box className="create-infrastructure-monitor">
<Breadcrumbs
list={[
{ name: "Infrastructure monitors", path: "/infrastructure" },
{ name: "create", path: `/infrastructure/create` },
]}
/>
<Stack
component="form"
className="create-infrastructure-monitor-form"
onSubmit={handleCreateInfrastructureMonitor}
noValidate
spellCheck="false"
gap={theme.spacing(12)}
mt={theme.spacing(6)}
>
<Typography
component="h1"
variant="h1"
>
<Typography
component="span"
fontSize="inherit"
>
Create your{" "}
</Typography>
<Typography
component="span"
variant="h2"
fontSize="inherit"
fontWeight="inherit"
>
monitor
</Typography>
</Typography>
<ConfigBox>
<Stack gap={theme.spacing(6)}>
<Typography component="h2">General settings</Typography>
<Typography component="p">
Here you can select the URL of the host, together with the friendly name and
authorization secret to connect to the server agent.
</Typography>
<Typography component="p">
The server you are monitoring must be running the{" "}
<Link
level="primary"
url="https://github.com/bluewave-labs/checkmate-agent"
label="Checkmate Monitoring Agent"
/>
</Typography>
</Stack>
<Stack gap={theme.spacing(15)}>
<TextInput
type="url"
id="url"
name="url"
startAdornment={<HttpAdornment https={https} />}
placeholder={"localhost:59232/api/v1/metrics"}
label="Server URL"
https={https}
value={infrastructureMonitor.url}
onChange={handleChange}
error={errors["url"] ? true : false}
helperText={errors["url"]}
/>
<Box>
<Typography component="p">Protocol</Typography>
<ButtonGroup>
<Button
variant="group"
filled={https.toString()}
onClick={() => setHttps(true)}
>
HTTPS
</Button>
<Button
variant="group"
filled={(!https).toString()}
onClick={() => setHttps(false)}
>
HTTP
</Button>
</ButtonGroup>
</Box>
<TextInput
type="text"
id="name"
name="name"
label="Display name"
placeholder="Google"
isOptional={true}
value={infrastructureMonitor.name}
onChange={handleChange}
error={errors["name"]}
/>
<TextInput
type="text"
id="secret"
name="secret"
label="Authorization secret"
value={infrastructureMonitor.secret}
onChange={handleChange}
error={errors["secret"] ? true : false}
helperText={errors["secret"]}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Incident notifications</Typography>
<Typography component="p">
When there is an incident, notify users.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
<Checkbox
id="notify-email-default"
label={`Notify via email (to ${user.email})`}
isChecked={infrastructureMonitor.notifications.some(
(notification) => notification.type === "email"
)}
value={user?.email}
onChange={(event) => handleNotifications(event, "email")}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Customize alerts</Typography>
<Typography component="p">
Send a notification to user(s) when thresholds exceed a specified
percentage.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
{METRICS.map((metric) => {
return (
<CustomThreshold
key={metric}
infrastructureMonitor={infrastructureMonitor}
errors={errors}
checkboxId={metric}
checkboxName={metric}
checkboxLabel={
metric !== "cpu"
? capitalizeFirstLetter(metric)
: metric.toUpperCase()
}
onCheckboxChange={handleCheckboxChange}
isChecked={infrastructureMonitor[metric]}
fieldId={METRIC_PREFIX + metric}
fieldName={METRIC_PREFIX + metric}
fieldValue={infrastructureMonitor[METRIC_PREFIX + metric]}
onFieldChange={handleChange}
alertUnit={metric == "temperature" ? "°C" : "%"}
/>
);
})}
{/* Error text */}
{hasAlertError(errors) && (
<Typography
component="span"
className="input-error"
color={theme.palette.error.main}
mt={theme.spacing(2)}
sx={{
opacity: 0.8,
}}
>
{getAlertError(errors)}
</Typography>
)}
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Advanced settings</Typography>
</Box>
<Stack gap={theme.spacing(12)}>
<Select
id="interval"
name="interval"
label="Check frequency"
value={infrastructureMonitor.interval || 15}
onChange={handleChange}
items={SELECT_VALUES}
/>
</Stack>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
>
<LoadingButton
variant="contained"
color="primary"
onClick={handleCreateInfrastructureMonitor}
loading={monitorState?.isLoading}
>
Create infrastructure monitor
</LoadingButton>
</Stack>
</Stack>
</Box>
);
};
export default CreateInfrastructureMonitor;
@@ -1,36 +0,0 @@
import { useTheme } from "@emotion/react";
import PlaceholderLight from "../../../assets/Images/data_placeholder.svg?react";
import PlaceholderDark from "../../../assets/Images/data_placeholder_dark.svg?react";
import { Box, Typography, Stack } from "@mui/material";
import PropTypes from "prop-types";
import { useSelector } from "react-redux";
const Empty = ({ styles }) => {
const theme = useTheme();
const mode = useSelector((state) => state.ui.mode);
return (
<Box sx={{ ...styles, marginTop: theme.spacing(24) }}>
<Stack
direction="column"
gap={theme.spacing(8)}
alignItems="center"
>
{mode === "light" ? <PlaceholderLight /> : <PlaceholderDark />}
<Typography variant="h2">Your infrastructure dashboard will show here</Typography>
<Typography
textAlign="center"
color={theme.palette.text.secondary}
>
Hang tight! Data is loading
</Typography>
</Stack>
</Box>
);
};
Empty.propTypes = {
styles: PropTypes.object,
mode: PropTypes.string,
};
export default Empty;
@@ -1,635 +0,0 @@
import { useParams } from "react-router-dom";
import { useEffect, useState } from "react";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import { Stack, Box, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import CustomGauge from "../../../Components/Charts/CustomGauge";
import AreaChart from "../../../Components/Charts/AreaChart";
import { useSelector } from "react-redux";
import { networkService } from "../../../main";
import PulseDot from "../../../Components/Animated/PulseDot";
import useUtils from "../../Uptime/utils";
import { useNavigate } from "react-router-dom";
import Empty from "./empty";
import { logger } from "../../../Utils/Logger";
import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils";
import {
TzTick,
PercentTick,
InfrastructureTooltip,
TemperatureTooltip,
} from "../../../Components/Charts/Utils/chartUtils";
import PropTypes from "prop-types";
import StatBox from "../../../Components/StatBox";
const BASE_BOX_PADDING_VERTICAL = 4;
const BASE_BOX_PADDING_HORIZONTAL = 8;
const TYPOGRAPHY_PADDING = 8;
/**
* Converts bytes to gigabytes
* @param {number} bytes - Number of bytes to convert
* @returns {number} Converted value in gigabytes
*/
const formatBytes = (bytes, space = false) => {
if (bytes === undefined || bytes === null)
return (
<>
{0}
{space ? " " : ""}
<Typography component="span">GB</Typography>
</>
);
if (typeof bytes !== "number")
return (
<>
{0}
{space ? " " : ""}
<Typography component="span">GB</Typography>
</>
);
if (bytes === 0)
return (
<>
{0}
{space ? " " : ""}
<Typography component="span">GB</Typography>
</>
);
const GB = bytes / (1024 * 1024 * 1024);
const MB = bytes / (1024 * 1024);
if (GB >= 1) {
return (
<>
{Number(GB.toFixed(0))}
{space ? " " : ""}
<Typography component="span">GB</Typography>
</>
);
} else {
return (
<>
{Number(MB.toFixed(0))}
<Typography component="span">MB</Typography>
</>
);
}
};
/**
* Converts a decimal value to a percentage
*
* @function decimalToPercentage
* @param {number} value - Decimal value to convert
* @returns {number} Percentage representation
*
* @example
* decimalToPercentage(0.75) // Returns 75
* decimalToPercentage(null) // Returns 0
*/
const decimalToPercentage = (value) => {
if (value === null || value === undefined) return 0;
return value * 100;
};
/**
* Renders a base box with consistent styling
* @param {Object} props - Component properties
* @param {React.ReactNode} props.children - Child components to render inside the box
* @param {Object} props.sx - Additional styling for the box
* @returns {React.ReactElement} Styled box component
*/
const BaseBox = ({ children, sx = {} }) => {
const theme = useTheme();
return (
<Box
sx={{
height: "100%",
padding: `${theme.spacing(BASE_BOX_PADDING_VERTICAL)} ${theme.spacing(BASE_BOX_PADDING_HORIZONTAL)}`,
minWidth: 200,
width: 225,
backgroundColor: theme.palette.background.main,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
...sx,
}}
>
{children}
</Box>
);
};
BaseBox.propTypes = {
children: PropTypes.node.isRequired,
sx: PropTypes.object,
};
/**
* Renders a gauge box with usage visualization
* @param {Object} props - Component properties
* @param {number} props.value - Percentage value for gauge
* @param {string} props.heading - Box heading
* @param {string} props.metricOne - First metric label
* @param {string} props.valueOne - First metric value
* @param {string} props.metricTwo - Second metric label
* @param {string} props.valueTwo - Second metric value
* @returns {React.ReactElement} Gauge box component
*/
const GaugeBox = ({ value, heading, metricOne, valueOne, metricTwo, valueTwo }) => {
const theme = useTheme();
return (
<BaseBox>
<Stack
direction="column"
gap={theme.spacing(2)}
alignItems="center"
>
<CustomGauge
progress={value}
radius={100}
color={theme.palette.primary.main}
/>
<Typography component="h2">{heading}</Typography>
<Box
sx={{
width: "100%",
borderTop: `1px solid ${theme.palette.border.light}`,
}}
>
<Stack
justifyContent={"space-between"}
direction="row"
gap={theme.spacing(2)}
>
<Typography>{metricOne}</Typography>
<Typography>{valueOne}</Typography>
</Stack>
<Stack
justifyContent={"space-between"}
direction="row"
gap={theme.spacing(2)}
>
<Typography>{metricTwo}</Typography>
<Typography>{valueTwo}</Typography>
</Stack>
</Box>
</Stack>
</BaseBox>
);
};
GaugeBox.propTypes = {
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
heading: PropTypes.string.isRequired,
metricOne: PropTypes.string.isRequired,
valueOne: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
metricTwo: PropTypes.string.isRequired,
valueTwo: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
};
/**
* Renders the infrastructure details page
* @returns {React.ReactElement} Infrastructure details page component
*/
const InfrastructureDetails = () => {
const navigate = useNavigate();
const theme = useTheme();
const { monitorId } = useParams();
const navList = [
{ name: "infrastructure monitors", path: "/infrastructure" },
{ name: "details", path: `/infrastructure/${monitorId}` },
];
const [monitor, setMonitor] = useState(null);
const { authToken } = useSelector((state) => state.auth);
const [dateRange, setDateRange] = useState("all");
const { statusColor, statusStyles, determineState } = useUtils();
// These calculations are needed because ResponsiveContainer
// doesn't take padding of parent/siblings into account
// when calculating height.
const chartContainerHeight = 300;
const totalChartContainerPadding =
parseInt(theme.spacing(BASE_BOX_PADDING_VERTICAL), 10) * 2;
const totalTypographyPadding = parseInt(theme.spacing(TYPOGRAPHY_PADDING), 10) * 2;
const areaChartHeight =
(chartContainerHeight - totalChartContainerPadding - totalTypographyPadding) * 0.95;
// end height calculations
const buildStatBoxes = (checks, uptime) => {
let latestCheck = checks[0] ?? null;
if (latestCheck === null) return [];
// Extract values from latest check
const physicalCores = latestCheck?.cpu?.physical_core ?? 0;
const logicalCores = latestCheck?.cpu?.logical_core ?? 0;
const cpuFrequency = latestCheck?.cpu?.frequency ?? 0;
const cpuTemperature =
latestCheck?.cpu?.temperature?.length > 0
? latestCheck.cpu.temperature.reduce((acc, curr) => acc + curr, 0) /
latestCheck.cpu.temperature.length
: 0;
const memoryTotalBytes = latestCheck?.memory?.total_bytes ?? 0;
const diskTotalBytes = latestCheck?.disk[0]?.total_bytes ?? 0;
const os = latestCheck?.host?.os ?? null;
const platform = latestCheck?.host?.platform ?? null;
const osPlatform = os === null && platform === null ? null : `${os} ${platform}`;
return [
{
id: 7,
sx: statusStyles[determineState(monitor)],
heading: "Status",
subHeading: monitor?.status === true ? "Active" : "Inactive",
},
{
id: 0,
heading: "CPU (Physical)",
subHeading: (
<>
{physicalCores}
<Typography component="span">cores</Typography>
</>
),
},
{
id: 1,
heading: "CPU (Logical)",
subHeading: (
<>
{logicalCores}
<Typography component="span">cores</Typography>
</>
),
},
{
id: 2,
heading: "CPU Frequency",
subHeading: (
<>
{(cpuFrequency / 1000).toFixed(2)}
<Typography component="span">Ghz</Typography>
</>
),
},
{
id: 3,
heading: "Average CPU Temperature",
subHeading: (
<>
{cpuTemperature.toFixed(2)}
<Typography component="span">C</Typography>
</>
),
},
{
id: 4,
heading: "Memory",
subHeading: formatBytes(memoryTotalBytes),
},
{
id: 5,
heading: "Disk",
subHeading: formatBytes(diskTotalBytes),
},
{
id: 6,
heading: "Uptime",
subHeading: (
<>
{(uptime * 100).toFixed(2)}
<Typography component="span">%</Typography>
</>
),
},
{
id: 8,
heading: "OS",
subHeading: osPlatform,
},
];
};
const buildGaugeBoxConfigs = (checks) => {
let latestCheck = checks[0] ?? null;
if (latestCheck === null) return [];
// Extract values from latest check
const memoryUsagePercent = latestCheck?.memory?.usage_percent ?? 0;
const memoryUsedBytes = latestCheck?.memory?.used_bytes ?? 0;
const memoryTotalBytes = latestCheck?.memory?.total_bytes ?? 0;
const cpuUsagePercent = latestCheck?.cpu?.usage_percent ?? 0;
const cpuPhysicalCores = latestCheck?.cpu?.physical_core ?? 0;
const cpuFrequency = latestCheck?.cpu?.frequency ?? 0;
return [
{
type: "memory",
value: decimalToPercentage(memoryUsagePercent),
heading: "Memory usage",
metricOne: "Used",
valueOne: formatBytes(memoryUsedBytes, true),
metricTwo: "Total",
valueTwo: formatBytes(memoryTotalBytes, true),
},
{
type: "cpu",
value: decimalToPercentage(cpuUsagePercent),
heading: "CPU usage",
metricOne: "Cores",
valueOne: cpuPhysicalCores ?? 0,
metricTwo: "Frequency",
valueTwo: `${(cpuFrequency / 1000).toFixed(2)} Ghz`,
},
...(latestCheck?.disk ?? []).map((disk, idx) => ({
type: "disk",
diskIndex: idx,
value: decimalToPercentage(disk.usage_percent),
heading: `Disk${idx} usage`,
metricOne: "Used",
valueOne: formatBytes(disk.total_bytes - disk.free_bytes, true),
metricTwo: "Total",
valueTwo: formatBytes(disk.total_bytes, true),
})),
];
};
const buildTemps = (checks) => {
let numCores = 1;
if (checks === null) return { temps: [], tempKeys: [] };
for (const check of checks) {
if (check?.cpu?.temperature?.length > numCores) {
numCores = check.cpu.temperature.length;
break;
}
}
const temps = checks.map((check) => {
// If there's no data, set the temperature to 0
if (
check?.cpu?.temperature?.length === 0 ||
check?.cpu?.temperature === undefined ||
check?.cpu?.temperature === null
) {
check.cpu.temperature = Array(numCores).fill(0);
}
const res = check?.cpu?.temperature?.reduce(
(acc, cur, idx) => {
acc[`core${idx + 1}`] = cur;
return acc;
},
{
createdAt: check.createdAt,
}
);
return res;
});
if (temps.length === 0 || !temps[0]) {
return { temps: [], tempKeys: [] };
}
return {
tempKeys: Object.keys(temps[0] || {}).filter((key) => key !== "createdAt"),
temps,
};
};
const buildAreaChartConfigs = (checks) => {
let latestCheck = checks[0] ?? null;
if (latestCheck === null) return [];
const reversedChecks = checks.toReversed();
const tempData = buildTemps(reversedChecks);
return [
{
type: "memory",
data: reversedChecks,
dataKeys: ["memory.usage_percent"],
heading: "Memory usage",
strokeColor: theme.palette.primary.main,
gradientStartColor: theme.palette.primary.main,
yLabel: "Memory usage",
yDomain: [0, 1],
yTick: <PercentTick />,
xTick: <TzTick />,
toolTip: (
<InfrastructureTooltip
dotColor={theme.palette.primary.main}
yKey={"memory.usage_percent"}
yLabel={"Memory usage"}
/>
),
},
{
type: "cpu",
data: reversedChecks,
dataKeys: ["cpu.usage_percent"],
heading: "CPU usage",
strokeColor: theme.palette.success.main,
gradientStartColor: theme.palette.success.main,
yLabel: "CPU usage",
yDomain: [0, 1],
yTick: <PercentTick />,
xTick: <TzTick />,
toolTip: (
<InfrastructureTooltip
dotColor={theme.palette.success.main}
yKey={"cpu.usage_percent"}
yLabel={"CPU usage"}
/>
),
},
{
type: "temperature",
data: tempData.temps,
dataKeys: tempData.tempKeys,
strokeColor: theme.palette.error.main,
gradientStartColor: theme.palette.error.main,
heading: "CPU Temperature",
yLabel: "Temperature",
xTick: <TzTick />,
yDomain: [
0,
Math.max(
Math.max(
...tempData.temps.flatMap((t) => tempData.tempKeys.map((k) => t[k]))
) * 1.1,
200
),
],
toolTip: (
<TemperatureTooltip
keys={tempData.tempKeys}
dotColor={theme.palette.error.main}
/>
),
},
...(latestCheck?.disk?.map((disk, idx) => ({
type: "disk",
data: reversedChecks,
diskIndex: idx,
dataKeys: [`disk[${idx}].usage_percent`],
heading: `Disk${idx} usage`,
strokeColor: theme.palette.warning.main,
gradientStartColor: theme.palette.warning.main,
yLabel: "Disk Usage",
yDomain: [0, 1],
yTick: <PercentTick />,
xTick: <TzTick />,
toolTip: (
<InfrastructureTooltip
dotColor={theme.palette.warning.main}
yKey={`disk.usage_percent`}
yLabel={"Disc usage"}
yIdx={idx}
/>
),
})) || []),
];
};
// Fetch data
useEffect(() => {
const fetchData = async () => {
try {
const response = await networkService.getStatsByMonitorId({
authToken: authToken,
monitorId: monitorId,
sortOrder: null,
limit: null,
dateRange: dateRange,
numToDisplay: 50,
normalize: false,
});
setMonitor(response.data.data);
} catch (error) {
navigate("/not-found", { replace: true });
logger.error(error);
}
};
fetchData();
}, [authToken, monitorId, dateRange, navigate]);
const statBoxConfigs = buildStatBoxes(
monitor?.checks ?? [],
monitor?.uptimePercentage ?? "Unknown"
);
const gaugeBoxConfigs = buildGaugeBoxConfigs(monitor?.checks ?? []);
const areaChartConfigs = buildAreaChartConfigs(monitor?.checks ?? []);
return (
<Box>
<Breadcrumbs list={navList} />
{monitor?.checks?.length > 0 ? (
<Stack
direction="column"
gap={theme.spacing(10)}
mt={theme.spacing(10)}
>
<Stack
direction="row"
gap={theme.spacing(8)}
>
<Box>
<PulseDot color={statusColor[determineState(monitor)]} />
</Box>
<Typography
alignSelf="end"
component="h1"
variant="h1"
>
{monitor.name}
</Typography>
<Typography alignSelf="end">{monitor.url || "..."}</Typography>
<Box sx={{ flexGrow: 1 }} />
<Typography alignSelf="end">
Checking every {formatDurationRounded(monitor?.interval)}
</Typography>
<Typography alignSelf="end">
Last checked {formatDurationSplit(monitor?.lastChecked).time}{" "}
{formatDurationSplit(monitor?.lastChecked).format} ago
</Typography>
</Stack>
<Stack
direction="row"
flexWrap="wrap"
gap={theme.spacing(8)}
>
{statBoxConfigs.map((statBox) => (
<StatBox
key={statBox.id}
{...statBox}
/>
))}
</Stack>
<Stack
direction="row"
gap={theme.spacing(8)}
>
{gaugeBoxConfigs.map((config) => (
<GaugeBox
key={`${config.type}-${config.diskIndex ?? ""}`}
value={config.value}
heading={config.heading}
metricOne={config.metricOne}
valueOne={config.valueOne}
metricTwo={config.metricTwo}
valueTwo={config.valueTwo}
/>
))}
</Stack>
<Stack
direction={"row"}
height={chartContainerHeight} // FE team HELP!
gap={theme.spacing(8)} // FE team HELP!
flexWrap="wrap" // //FE team HELP! Better way to do this?
sx={{
"& > *": {
flexBasis: `calc(50% - ${theme.spacing(8)})`,
maxWidth: `calc(50% - ${theme.spacing(8)})`,
},
}}
>
{areaChartConfigs.map((config) => {
return (
<BaseBox key={`${config.type}-${config.diskIndex ?? ""}`}>
<Typography
component="h2"
padding={theme.spacing(8)}
>
{config.heading}
</Typography>
<AreaChart
height={areaChartHeight}
data={config.data}
dataKeys={config.dataKeys}
xKey="createdAt"
yDomain={config.yDomain}
customTooltip={config.toolTip}
xTick={config.xTick}
yTick={config.yTick}
strokeColor={config.strokeColor}
gradient={true}
gradientStartColor={config.gradientStartColor}
gradientEndColor="#ffffff"
/>
</BaseBox>
);
})}
</Stack>
</Stack>
) : (
<Empty
styles={{
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
backgroundColor: theme.palette.background.main,
p: theme.spacing(30),
}}
/>
)}
</Box>
);
};
export default InfrastructureDetails;
-363
View File
@@ -1,363 +0,0 @@
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import { /* useDispatch, */ useSelector } from "react-redux";
import { useTheme } from "@emotion/react";
import useUtils from "../Uptime/utils.jsx";
import { jwtDecode } from "jwt-decode";
import SkeletonLayout from "./skeleton";
import Fallback from "../../Components/Fallback";
// import GearIcon from "../../Assets/icons/settings-bold.svg?react";
import CPUChipIcon from "../../assets/icons/cpu-chip.svg?react";
import {
Box,
Button,
IconButton,
Paper,
Stack,
Table,
TableBody,
TableCell,
TableContainer,
TableHead,
TableRow,
} from "@mui/material";
import Breadcrumbs from "../../Components/Breadcrumbs";
import { StatusLabel } from "../../Components/Label";
import { Heading } from "../../Components/Heading";
import { Pagination } from "./components/TablePagination";
// import { getInfrastructureMonitorsByTeamId } from "../../Features/InfrastructureMonitors/infrastructureMonitorsSlice";
import { networkService } from "../../Utils/NetworkService.js";
import CustomGauge from "../../Components/Charts/CustomGauge/index.jsx";
import Host from "../Uptime/Home/host.jsx";
import { useIsAdmin } from "../../Hooks/useIsAdmin.js";
import { InfrastructureMenu } from "./components/Menu";
const columns = [
{ label: "Host" },
{ label: "Status" },
{ label: "Frequency" },
{ label: "CPU" },
{ label: "Mem" },
{ label: "Disk" },
{ label: "Actions" },
];
const BREADCRUMBS = [{ name: `infrastructure`, path: "/infrastructure" }];
/* TODO
Create reusable table component.
It should receive as a parameter the following object:
tableData = [
columns = [
{
id: example,
label: Example Extendable,
align: "center" | "left" (default)
}
],
rows: [
{
**Number of keys will be equal to number of columns**
key1: string,
key2: number,
key3: Component
}
]
]
Apply to Monitor Table, and Account/Team.
Analyze existing BasicTable
*/
/**
* This is the Infrastructure monitoring page. This is a work in progress
*
* @param - Define params.
* @returns {JSX.Element} The infrastructure monitoring page.
*/
function Infrastructure() {
/* Adding this custom hook so we can avoid using the HOC approach that can lower performance (we are calling the admin logic N times on initializing the project. using a custom hook will cal it ass needed ) */
const isAdmin = useIsAdmin();
const theme = useTheme();
const [isLoading, setIsLoading] = useState(true);
const navigate = useNavigate();
const navigateToCreate = () => navigate("/infrastructure/create");
const [page, setPage] = useState(0);
/* TODO refactor this, so it is not aware of the MUI implementation. First argument only exists because of MUI. This should require onlu the new page. Adapting for MUI should happen inside of table pagination component */
const handleChangePage = (_, newPage) => {
setPage(newPage);
};
const [rowsPerPage, setRowsPerPage] = useState(5);
const handleChangeRowsPerPage = (event) => {
setRowsPerPage(parseInt(event.target.value));
setPage(0);
};
const [monitorState, setMonitorState] = useState({ monitors: [], total: 0 });
const { authToken } = useSelector((state) => state.auth);
const user = jwtDecode(authToken);
const fetchMonitors = async () => {
try {
setIsLoading(true);
const response = await networkService.getMonitorsByTeamId({
authToken,
teamId: user.teamId,
limit: 1,
types: ["hardware"],
status: null,
checkOrder: "desc",
normalize: true,
page: page,
rowsPerPage: rowsPerPage,
});
setMonitorState({
monitors: response?.data?.data?.monitors ?? [],
total: response?.data?.data?.monitorCount ?? 0,
});
} catch (error) {
console.error(error);
} finally {
setIsLoading(false);
}
};
useEffect(() => {
fetchMonitors();
}, [page, rowsPerPage]);
const { determineState } = useUtils();
const { monitors, total: totalMonitors } = monitorState;
// do it here
function openDetails(id) {
navigate(`/infrastructure/${id}`);
}
function handleActionMenuDelete() {
fetchMonitors();
}
const monitorsAsRows = monitors.map((monitor) => {
const processor =
((monitor.checks[0]?.cpu?.usage_frequency ?? 0) / 1000).toFixed(2) + " GHz";
const cpu = (monitor?.checks[0]?.cpu.usage_percent ?? 0) * 100;
const mem = (monitor?.checks[0]?.memory.usage_percent ?? 0) * 100;
const disk = (monitor?.checks[0]?.disk[0]?.usage_percent ?? 0) * 100;
const status = determineState(monitor);
const uptimePercentage = ((monitor?.uptimePercentage ?? 0) * 100)
.toFixed(2)
.toString();
const percentageColor =
monitor.uptimePercentage < 0.25
? theme.palette.percentage.uptimePoor
: monitor.uptimePercentage < 0.5
? theme.palette.percentage.uptimeFair
: monitor.uptimePercentage < 0.75
? theme.palette.percentage.uptimeGood
: theme.palette.percentage.uptimeExcellent;
return {
id: monitor._id,
name: monitor.name,
url: monitor.url,
processor,
cpu,
mem,
disk,
status,
uptimePercentage,
percentageColor,
};
});
let isActuallyLoading = isLoading && monitorState.monitors?.length === 0;
return (
<Box
className="infrastructure-monitor"
sx={{
':has(> [class*="fallback__"])': {
position: "relative",
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
borderStyle: "dashed",
backgroundColor: theme.palette.background.main,
overflow: "hidden",
},
}}
>
{isActuallyLoading ? (
<SkeletonLayout />
) : monitorState.monitors?.length !== 0 ? (
<Stack gap={theme.spacing(8)}>
<Box>
<Breadcrumbs list={BREADCRUMBS} />
<Stack
direction="row"
justifyContent="end"
alignItems="center"
mt={theme.spacing(5)}
>
{isAdmin && (
<Button
variant="contained"
color="primary"
onClick={navigateToCreate}
sx={{ fontWeight: 500, whiteSpace: "nowrap" }}
>
Create new
</Button>
)}
</Stack>
</Box>
<Stack
sx={{
gap: "1rem",
}}
>
<Stack
direction="row"
sx={{
alignItems: "center",
gap: ".25rem",
flexWrap: "wrap",
}}
>
<Heading component="h2">Infrastructure monitors</Heading>
{/* TODO Correct the class current-monitors-counter, there are some unnecessary things there */}
<Box
component="span"
className="current-monitors-counter"
color={theme.palette.text.primary}
border={1}
borderColor={theme.palette.border.light}
backgroundColor={theme.palette.background.accent}
>
{totalMonitors}
</Box>
</Stack>
<TableContainer component={Paper}>
<Table stickyHeader>
<TableHead sx={{ backgroundColor: theme.palette.background.accent }}>
<TableRow>
{columns.map((column, index) => (
<TableCell
key={index}
align={index === 0 ? "left" : "center"}
sx={{
backgroundColor: theme.palette.background.accent,
}}
>
{column.label}
</TableCell>
))}
</TableRow>
</TableHead>
<TableBody>
{monitorsAsRows.map((row) => {
return (
<TableRow
key={row.id}
onClick={() => openDetails(row.id)}
sx={{
cursor: "pointer",
"&:hover": {
backgroundColor: theme.palette.background.accent,
},
}}
>
{/* TODO iterate over column and get column id, applying row[column.id] */}
<TableCell>
<Host
title={row.name}
url={row.url}
percentage={row.uptimePercentage}
percentageColor={row.percentageColor}
/>
</TableCell>
<TableCell align="center">
<StatusLabel
status={row.status}
text={row.status}
/* Use capitalize inside of Status Label */
/* Update component so we don't need to pass text and status separately*/
customStyles={{ textTransform: "capitalize" }}
/>
</TableCell>
<TableCell align="center">
<Stack
direction={"row"}
justifyContent={"center"}
alignItems={"center"}
gap=".25rem"
>
<CPUChipIcon
width={20}
height={20}
/>
{row.processor}
</Stack>
</TableCell>
<TableCell align="center">
<CustomGauge progress={row.cpu} />
</TableCell>
<TableCell align="center">
<CustomGauge progress={row.mem} />
</TableCell>
<TableCell align="center">
<CustomGauge progress={row.disk} />
</TableCell>
<TableCell align="center">
{/* Get ActionsMenu from Monitor Table and create a component */}
<IconButton
sx={{
"& svg path": {
stroke: theme.palette.other.icon,
},
}}
>
<InfrastructureMenu
monitor={row}
isAdmin={isAdmin}
updateCallback={handleActionMenuDelete}
/>
{/* <GearIcon
width={20}
height={20}
/> */}
</IconButton>
</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
</TableContainer>
<Pagination
monitorCount={totalMonitors}
page={page}
rowsPerPage={rowsPerPage}
handleChangePage={handleChangePage}
handleChangeRowsPerPage={handleChangeRowsPerPage}
/>
</Stack>
</Stack>
) : (
<Fallback
vowelStart={true}
title="infrastructure monitor"
checks={[
"Track the performance of your servers",
"Identify bottlenecks and optimize usage",
"Ensure reliability with real-time monitoring",
]}
link="/infrastructure/create"
isAdmin={isAdmin}
/>
)}
</Box>
);
}
export { Infrastructure };
@@ -1,73 +0,0 @@
import { Box, Skeleton, Stack } from "@mui/material";
import { useTheme } from "@emotion/react";
/**
* Renders a skeleton layout.
*
* @returns {JSX.Element}
*/
const SkeletonLayout = () => {
const theme = useTheme();
return (
<Stack gap={theme.spacing(2)}>
<Stack
direction="row"
justifyContent="space-between"
mb={theme.spacing(12)}
>
<Box width="80%">
<Skeleton
variant="rounded"
width="25%"
height={24}
/>
<Skeleton
variant="rounded"
width="50%"
height={19.5}
sx={{ mt: theme.spacing(2) }}
/>
</Box>
<Skeleton
variant="rounded"
width="20%"
height={34}
sx={{ alignSelf: "flex-end" }}
/>
</Stack>
<Stack
direction="row"
flexWrap="wrap"
gap={theme.spacing(12)}
>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
</Stack>
</Stack>
);
};
export default SkeletonLayout;
@@ -1,363 +0,0 @@
import PropTypes from "prop-types";
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
Paper,
Box,
TablePagination,
Stack,
Typography,
Button,
} from "@mui/material";
import ArrowDownwardRoundedIcon from "@mui/icons-material/ArrowDownwardRounded";
import ArrowUpwardRoundedIcon from "@mui/icons-material/ArrowUpwardRounded";
import ActionsMenu from "./ActionsMenu";
import { useState, useEffect, memo, useCallback, useRef } from "react";
import { useDispatch, useSelector } from "react-redux";
import { useTheme } from "@emotion/react";
import LeftArrowDouble from "../../../assets/icons/left-arrow-double.svg?react";
import RightArrowDouble from "../../../assets/icons/right-arrow-double.svg?react";
import LeftArrow from "../../../assets/icons/left-arrow.svg?react";
import RightArrow from "../../../assets/icons/right-arrow.svg?react";
import SelectorVertical from "../../../assets/icons/selector-vertical.svg?react";
import { formatDurationRounded } from "../../../Utils/timeUtils";
import { StatusLabel } from "../../../Components/Label";
import { setRowsPerPage } from "../../../Features/UI/uiSlice";
import dayjs from "dayjs";
/**
* Component for pagination actions (first, previous, next, last).
*
* @component
* @param {Object} props
* @param {number} props.count - Total number of items.
* @param {number} props.page - Current page number.
* @param {number} props.rowsPerPage - Number of rows per page.
* @param {function} props.onPageChange - Callback function to handle page change.
*
* @returns {JSX.Element} Pagination actions component.
*/
const TablePaginationActions = (props) => {
const { count, page, rowsPerPage, onPageChange } = props;
const handleFirstPageButtonClick = (event) => {
onPageChange(event, 0);
};
const handleBackButtonClick = (event) => {
onPageChange(event, page - 1);
};
const handleNextButtonClick = (event) => {
onPageChange(event, page + 1);
};
const handleLastPageButtonClick = (event) => {
onPageChange(event, Math.max(0, Math.ceil(count / rowsPerPage) - 1));
};
return (
<Box sx={{ flexShrink: 0, ml: "24px" }}>
<Button
variant="group"
onClick={handleFirstPageButtonClick}
disabled={page === 0}
aria-label="first page"
>
<LeftArrowDouble />
</Button>
<Button
variant="group"
onClick={handleBackButtonClick}
disabled={page === 0}
aria-label="previous page"
>
<LeftArrow />
</Button>
<Button
variant="group"
onClick={handleNextButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="next page"
>
<RightArrow />
</Button>
<Button
variant="group"
onClick={handleLastPageButtonClick}
disabled={page >= Math.ceil(count / rowsPerPage) - 1}
aria-label="last page"
>
<RightArrowDouble />
</Button>
</Box>
);
};
TablePaginationActions.propTypes = {
count: PropTypes.number.isRequired,
page: PropTypes.number.isRequired,
rowsPerPage: PropTypes.number.isRequired,
onPageChange: PropTypes.func.isRequired,
};
const MaintenanceTable = ({
page,
setPage,
sort,
setSort,
maintenanceWindows,
maintenanceWindowCount,
updateCallback,
}) => {
const { rowsPerPage } = useSelector((state) => state.ui.maintenance);
const theme = useTheme();
const dispatch = useDispatch();
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const getTimeToNextWindow = (startTime, endTime, repeat) => {
//1. Advance time closest to next window as possible
const now = dayjs();
let start = dayjs(startTime);
let end = dayjs(endTime);
if (repeat > 0) {
// Advance time closest to next window as possible
while (start.isBefore(now) && end.isBefore(now)) {
start = start.add(repeat, "milliseconds");
end = end.add(repeat, "milliseconds");
}
}
//Check if we are in a window
if (now.isAfter(start) && now.isBefore(end)) {
return "In maintenance window";
}
if (start.isAfter(now)) {
const diffInMinutes = start.diff(now, "minutes");
const diffInHours = start.diff(now, "hours");
const diffInDays = start.diff(now, "days");
if (diffInMinutes < 60) {
return diffInMinutes + " minutes";
} else if (diffInHours < 24) {
return diffInHours + " hours";
} else if (diffInDays < 7) {
return diffInDays + " days";
} else {
return diffInDays + " days";
}
}
};
const handleChangeRowsPerPage = (event) => {
dispatch(
setRowsPerPage({
value: parseInt(event.target.value, 10),
table: "maintenance",
})
);
setPage(0);
};
/**
* Helper function to calculate the range of displayed rows.
* @returns {string}
*/
const getRange = () => {
let start = page * rowsPerPage + 1;
let end = Math.min(page * rowsPerPage + rowsPerPage, maintenanceWindowCount);
return `${start} - ${end}`;
};
const handleSort = async (field) => {
let order = "";
if (sort.field !== field) {
order = "desc";
} else {
order = sort.order === "asc" ? "desc" : "asc";
}
setSort({ field, order });
};
return (
<>
<TableContainer component={Paper}>
<Table>
<TableHead>
<TableRow>
<TableCell
sx={{ cursor: "pointer" }}
onClick={() => handleSort("name")}
>
<Box>
Maintenance Window Name
<span
style={{
visibility: sort.field === "name" ? "visible" : "hidden",
}}
>
{sort.order === "asc" ? (
<ArrowUpwardRoundedIcon />
) : (
<ArrowDownwardRoundedIcon />
)}
</span>
</Box>
</TableCell>
<TableCell
sx={{ cursor: "pointer" }}
onClick={() => handleSort("status")}
>
{" "}
<Box width="max-content">
{" "}
Status
<span
style={{
visibility: sort.field === "active" ? "visible" : "hidden",
}}
>
{sort.order === "asc" ? (
<ArrowUpwardRoundedIcon />
) : (
<ArrowDownwardRoundedIcon />
)}
</span>
</Box>
</TableCell>
<TableCell>Next Window</TableCell>
<TableCell>Repeat</TableCell>
<TableCell>Actions</TableCell>
</TableRow>
</TableHead>
<TableBody>
{maintenanceWindows.map((maintenanceWindow) => {
const text = maintenanceWindow.active ? "active" : "paused";
const status = maintenanceWindow.active ? "up" : "paused";
return (
<TableRow key={maintenanceWindow._id}>
<TableCell>{maintenanceWindow.name}</TableCell>
<TableCell>
<StatusLabel
status={status}
text={text}
customStyles={{ textTransform: "capitalize" }}
/>
</TableCell>
<TableCell>
{getTimeToNextWindow(
maintenanceWindow.start,
maintenanceWindow.end,
maintenanceWindow.repeat
)}
</TableCell>
<TableCell>
{maintenanceWindow.repeat === 0
? "N/A"
: formatDurationRounded(maintenanceWindow.repeat)}
</TableCell>
<TableCell>
<ActionsMenu
maintenanceWindow={maintenanceWindow}
updateCallback={updateCallback}
/>
</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
</TableContainer>
<Stack
direction="row"
alignItems="center"
justifyContent="space-between"
px={theme.spacing(4)}
>
<Typography
px={theme.spacing(2)}
variant="body2"
sx={{ opacity: 0.7 }}
>
Showing {getRange()} of {maintenanceWindowCount} maintenance window(s)
</Typography>
<TablePagination
component="div"
count={maintenanceWindowCount}
page={page}
onPageChange={handleChangePage}
rowsPerPage={rowsPerPage}
rowsPerPageOptions={[5, 10, 15, 25]}
onRowsPerPageChange={handleChangeRowsPerPage}
ActionsComponent={TablePaginationActions}
labelRowsPerPage="Rows per page"
labelDisplayedRows={({ page, count }) =>
`Page ${page + 1} of ${Math.max(0, Math.ceil(count / rowsPerPage))}`
}
slotProps={{
select: {
MenuProps: {
keepMounted: true,
disableScrollLock: true,
PaperProps: {
className: "pagination-dropdown",
sx: {
mt: 0,
mb: theme.spacing(2),
},
},
transformOrigin: { vertical: "bottom", horizontal: "left" },
anchorOrigin: { vertical: "top", horizontal: "left" },
sx: { mt: theme.spacing(-2) },
},
inputProps: { id: "pagination-dropdown" },
IconComponent: SelectorVertical,
sx: {
ml: theme.spacing(4),
mr: theme.spacing(12),
minWidth: theme.spacing(20),
textAlign: "left",
"&.Mui-focused > div": {
backgroundColor: theme.palette.background.main,
},
},
},
}}
sx={{
mt: theme.spacing(6),
color: theme.palette.text.secondary,
"& svg path": {
stroke: theme.palette.text.tertiary,
strokeWidth: 1.3,
},
"& .MuiSelect-select": {
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
},
}}
/>
</Stack>
</>
);
};
MaintenanceTable.propTypes = {
isAdmin: PropTypes.bool,
page: PropTypes.number,
setPage: PropTypes.func,
rowsPerPage: PropTypes.number,
setRowsPerPage: PropTypes.func,
sort: PropTypes.object,
setSort: PropTypes.func,
maintenanceWindows: PropTypes.array,
maintenanceWindowCount: PropTypes.number,
updateCallback: PropTypes.func,
};
const MemoizedMaintenanceTable = memo(MaintenanceTable);
export default MemoizedMaintenanceTable;
@@ -1,9 +0,0 @@
.configure-pagespeed button {
height: var(--env-var-height-2);
}
.configure-pagespeed .field,
.configure-pagespeed .section-disabled,
.configure-pagespeed .select-wrapper {
flex: 1;
}
@@ -1,453 +0,0 @@
import { useEffect, useState } from "react";
import { useTheme } from "@emotion/react";
import { Box, Stack, Tooltip, Typography } from "@mui/material";
import { useDispatch, useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router";
import {
deletePageSpeed,
getPagespeedMonitorById,
getPageSpeedByTeamId,
updatePageSpeed,
pausePageSpeed,
} from "../../../Features/PageSpeedMonitor/pageSpeedMonitorSlice";
import { monitorValidation } from "../../../Validation/validation";
import { createToast } from "../../../Utils/toastUtils";
import { logger } from "../../../Utils/Logger";
import ConfigBox from "../../../Components/ConfigBox";
import TextInput from "../../../Components/Inputs/TextInput";
import Select from "../../../Components/Inputs/Select";
import Checkbox from "../../../Components/Inputs/Checkbox";
import PauseCircleOutlineIcon from "@mui/icons-material/PauseCircleOutline";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import PulseDot from "../../../Components/Animated/PulseDot";
import LoadingButton from "@mui/lab/LoadingButton";
import PlayCircleOutlineRoundedIcon from "@mui/icons-material/PlayCircleOutlineRounded";
import SkeletonLayout from "./skeleton";
import useUtils from "../../Uptime/utils";
import "./index.css";
import Dialog from "../../../Components/Dialog";
const PageSpeedConfigure = () => {
const theme = useTheme();
const navigate = useNavigate();
const dispatch = useDispatch();
const MS_PER_MINUTE = 60000;
const { user, authToken } = useSelector((state) => state.auth);
const { isLoading } = useSelector((state) => state.pageSpeedMonitors);
const { monitorId } = useParams();
const [monitor, setMonitor] = useState({});
const [errors, setErrors] = useState({});
const { statusColor, pagespeedStatusMsg, determineState } = useUtils();
const [buttonLoading, setButtonLoading] = useState(false);
const idMap = {
"monitor-url": "url",
"monitor-name": "name",
"monitor-checks-http": "type",
"monitor-checks-ping": "type",
"notify-email-default": "notification-email",
};
const frequencies = [
{ _id: 3, name: "3 minutes" },
{ _id: 5, name: "5 minutes" },
{ _id: 10, name: "10 minutes" },
{ _id: 20, name: "20 minutes" },
{ _id: 60, name: "1 hour" },
{ _id: 1440, name: "1 day" },
{ _id: 10080, name: "1 week" },
];
useEffect(() => {
const fetchMonitor = async () => {
try {
const action = await dispatch(getPagespeedMonitorById({ authToken, monitorId }));
if (getPagespeedMonitorById.fulfilled.match(action)) {
const monitor = action.payload.data;
setMonitor(monitor);
} else if (getPagespeedMonitorById.rejected.match(action)) {
throw new Error(action.error.message);
}
} catch (error) {
logger.error("Error fetching monitor of id: " + monitorId);
navigate("/not-found", { replace: true });
}
};
fetchMonitor();
}, [dispatch, authToken, monitorId, navigate]);
const handleChange = (event, name) => {
let { value, id } = event.target;
if (!name) name = idMap[id];
if (name.includes("notification-")) {
name = name.replace("notification-", "");
let hasNotif = monitor.notifications.some(
(notification) => notification.type === name
);
setMonitor((prev) => {
const notifs = [...prev.notifications];
if (hasNotif) {
return {
...prev,
notifications: notifs.filter((notif) => notif.type !== name),
};
} else {
return {
...prev,
notifications: [
...notifs,
name === "email"
? { type: name, address: value }
: // TODO - phone number
{ type: name, phone: value },
],
};
}
});
} else {
if (name === "interval") {
value = value * MS_PER_MINUTE;
}
setMonitor((prev) => ({
...prev,
[name]: value,
}));
const validation = monitorValidation.validate(
{ [name]: value },
{ abortEarly: false }
);
setErrors((prev) => {
const updatedErrors = { ...prev };
if (validation.error) updatedErrors[name] = validation.error.details[0].message;
else delete updatedErrors[name];
return updatedErrors;
});
}
};
const handlePause = async () => {
try {
const action = await dispatch(pausePageSpeed({ authToken, monitorId }));
if (pausePageSpeed.fulfilled.match(action)) {
const monitor = action.payload.data;
setMonitor(monitor);
const state = action?.payload?.data.isActive === false ? "paused" : "resumed";
createToast({ body: `Monitor ${state} successfully.` });
} else if (pausePageSpeed.rejected.match(action)) {
throw new Error(action.error.message);
}
} catch (error) {
logger.error("Error pausing monitor: " + monitorId);
createToast({ body: "Failed to pause monitor" });
}
};
const handleSave = async (event) => {
event.preventDefault();
const action = await dispatch(updatePageSpeed({ authToken, monitor: monitor }));
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Monitor updated successfully!" });
dispatch(getPageSpeedByTeamId(authToken));
} else {
createToast({ body: "Failed to update monitor." });
}
};
const [isOpen, setIsOpen] = useState(false);
const handleRemove = async (event) => {
event.preventDefault();
setButtonLoading(true);
const action = await dispatch(deletePageSpeed({ authToken, monitor }));
if (action.meta.requestStatus === "fulfilled") {
navigate("/pagespeed");
} else {
createToast({ body: "Failed to delete monitor." });
}
setButtonLoading(false);
};
return (
<Stack
className="configure-pagespeed"
gap={theme.spacing(10)}
>
{Object.keys(monitor).length === 0 ? (
<SkeletonLayout />
) : (
<>
<Breadcrumbs
list={[
{ name: "pagespeed", path: "/pagespeed" },
{ name: "details", path: `/pagespeed/${monitorId}` },
{ name: "configure", path: `/pagespeed/configure/${monitorId}` },
]}
/>
<Stack
component="form"
noValidate
spellCheck="false"
onSubmit={handleSave}
flex={1}
gap={theme.spacing(10)}
>
<Stack
direction="row"
gap={theme.spacing(2)}
>
<Box>
<Typography
component="h1"
variant="h1"
>
{monitor.name}
</Typography>
<Stack
direction="row"
alignItems="center"
height="fit-content"
gap={theme.spacing(2)}
>
<Tooltip
title={pagespeedStatusMsg[determineState(monitor)]}
disableInteractive
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -8],
},
},
],
},
}}
>
<Box>
<PulseDot color={statusColor[determineState(monitor)]} />
</Box>
</Tooltip>
<Typography
component="h2"
variant="h2"
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>
<Typography
position="relative"
variant="body2"
ml={theme.spacing(6)}
mt={theme.spacing(1)}
sx={{
"&:before": {
position: "absolute",
content: `""`,
width: 4,
height: 4,
borderRadius: "50%",
backgroundColor: theme.palette.text.tertiary,
opacity: 0.8,
left: -10,
top: "50%",
transform: "translateY(-50%)",
},
}}
>
Editing...
</Typography>
</Stack>
</Box>
<Box
alignSelf="flex-end"
ml="auto"
>
<LoadingButton
onClick={handlePause}
loading={isLoading}
variant="contained"
color="secondary"
sx={{
pl: theme.spacing(4),
pr: theme.spacing(6),
"& svg": {
mr: theme.spacing(2),
"& path": {
stroke: theme.palette.other.icon,
strokeWidth: 0.1,
},
},
}}
>
{monitor?.isActive ? (
<>
<PauseCircleOutlineIcon />
Pause
</>
) : (
<>
<PlayCircleOutlineRoundedIcon />
Resume
</>
)}
</LoadingButton>
<LoadingButton
loading={isLoading}
variant="contained"
color="error"
onClick={() => setIsOpen(true)}
sx={{
ml: theme.spacing(6),
}}
>
Remove
</LoadingButton>
</Box>
</Stack>
<ConfigBox>
<Box>
<Typography component="h2">General settings</Typography>
<Typography component="p">
Here you can select the URL of the host, together with the type of
monitor.
</Typography>
</Box>
<Stack
gap={theme.spacing(20)}
sx={{
".MuiInputBase-root:has(> .Mui-disabled)": {
backgroundColor: theme.palette.background.accent,
},
}}
>
<TextInput
type="url"
id="monitor-url"
label="URL"
placeholder="random.website.com"
value={monitor?.url || ""}
onChange={handleChange}
error={errors.url ? true : false}
helperText={errors.url}
disabled={true}
/>
<TextInput
type="text"
id="monitor-name"
label="Monitor display name"
placeholder="Example monitor"
isOptional={true}
value={monitor?.name || ""}
onChange={handleChange}
error={errors.name ? true : false}
helperText={errors.name}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Incident notifications</Typography>
<Typography component="p">
When there is an incident, notify users.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
<Typography component="p">When there is a new incident,</Typography>
<Checkbox
id="notify-sms"
label="Notify via SMS (coming soon)"
isChecked={false}
value=""
onChange={() => logger.warn("disabled")}
isDisabled={true}
/>
<Checkbox
id="notify-email-default"
label={`Notify via email (to ${user.email})`}
isChecked={
monitor?.notifications?.some(
(notification) => notification.type === "email"
) || false
}
value={user?.email}
onChange={(event) => handleChange(event)}
/>
<Checkbox
id="notify-email"
label="Also notify via email to multiple addresses (coming soon)"
isChecked={false}
value=""
onChange={() => logger.warn("disabled")}
isDisabled={true}
/>
{monitor?.notifications?.some(
(notification) => notification.type === "emails"
) ? (
<Box mx={theme.spacing(16)}>
<TextInput
id="notify-email-list"
type="text"
placeholder="name@gmail.com"
value=""
onChange={() => logger.warn("disabled")}
/>
<Typography mt={theme.spacing(4)}>
You can separate multiple emails with a comma
</Typography>
</Box>
) : (
""
)}
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Advanced settings</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<Select
id="monitor-frequency"
label="Check frequency"
items={frequencies}
value={monitor?.interval / MS_PER_MINUTE || 3}
onChange={(event) => handleChange(event, "interval")}
/>
</Stack>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
mt="auto"
>
<LoadingButton
loading={isLoading}
type="submit"
variant="contained"
color="primary"
onClick={handleSave}
sx={{ px: theme.spacing(12) }}
>
Save
</LoadingButton>
</Stack>
</Stack>
</>
)}
<Dialog
open={isOpen}
theme={theme}
title={"Do you really want to delete this monitor?"}
description={"Once deleted, this monitor cannot be retrieved."}
onCancel={() => setIsOpen(false)}
confirmationButtonLabel={"Delete"}
onConfirm={handleRemove}
isLoading={buttonLoading}
/>
</Stack>
);
};
export default PageSpeedConfigure;
@@ -1,352 +0,0 @@
// React, Redux, Router
import { useNavigate } from "react-router-dom";
import { useState } from "react";
import { useSelector, useDispatch } from "react-redux";
// Utility and Network
import { monitorValidation } from "../../../Validation/validation";
import {
createPageSpeed,
checkEndpointResolution,
} from "../../../Features/PageSpeedMonitor/pageSpeedMonitorSlice";
import { parseDomainName } from "../../../Utils/monitorUtils";
// MUI
import { useTheme } from "@emotion/react";
import { Box, Stack, Typography, Button, ButtonGroup } from "@mui/material";
import LoadingButton from "@mui/lab/LoadingButton";
//Components
import Breadcrumbs from "../../../Components/Breadcrumbs";
import TextInput from "../../../Components/Inputs/TextInput";
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
import ConfigBox from "../../../Components/ConfigBox";
import { createToast } from "../../../Utils/toastUtils";
import Radio from "../../../Components/Inputs/Radio";
import Checkbox from "../../../Components/Inputs/Checkbox";
import Select from "../../../Components/Inputs/Select";
const MS_PER_MINUTE = 60000;
const CRUMBS = [
{ name: "pagespeed", path: "/pagespeed" },
{ name: "create", path: `/pagespeed/create` },
];
const SELECT_VALUES = [
{ _id: 3, name: "3 minutes" },
{ _id: 5, name: "5 minutes" },
{ _id: 10, name: "10 minutes" },
{ _id: 20, name: "20 minutes" },
{ _id: 60, name: "1 hour" },
{ _id: 1440, name: "1 day" },
{ _id: 10080, name: "1 week" },
];
const CreatePageSpeed = () => {
// State
const [monitor, setMonitor] = useState({
url: "",
name: "",
type: "pagespeed",
notifications: [],
interval: 3,
});
const [https, setHttps] = useState(true);
const [errors, setErrors] = useState({});
const { user, authToken } = useSelector((state) => state.auth);
const { isLoading } = useSelector((state) => state.pageSpeedMonitors);
// Setup
const dispatch = useDispatch();
const navigate = useNavigate();
const theme = useTheme();
// Handlers
const handleCreateMonitor = async (event) => {
event.preventDefault();
let form = {
url: `http${https ? "s" : ""}://` + monitor.url,
name: monitor.name === "" ? monitor.url : monitor.name,
type: monitor.type,
interval: monitor.interval * MS_PER_MINUTE,
};
const { error } = monitorValidation.validate(form, {
abortEarly: false,
});
if (error) {
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
createToast({ body: "Please check the form for errors." });
return;
}
const checkEndpointAction = await dispatch(
checkEndpointResolution({ authToken, monitorURL: form.url })
);
if (checkEndpointAction.meta.requestStatus === "rejected") {
createToast({
body: "The endpoint you entered doesn't resolve. Check the URL again.",
});
setErrors({ url: "The entered URL is not reachable." });
return;
}
form = {
...form,
description: form.name,
teamId: user.teamId,
userId: user._id,
notifications: monitor.notifications,
};
const action = await dispatch(createPageSpeed({ authToken, monitor: form }));
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Monitor created successfully!" });
navigate("/pagespeed");
} else {
createToast({ body: "Failed to create monitor." });
}
};
const handleChange = (event) => {
const { value, name } = event.target;
setMonitor({
...monitor,
[name]: value,
});
const { error } = monitorValidation.validate(
{ [name]: value },
{ abortEarly: false }
);
setErrors((prev) => ({
...prev,
...(error ? { [name]: error.details[0].message } : { [name]: undefined }),
}));
};
const handleNotifications = (event, type) => {
const { value } = event.target;
let notifications = [...monitor.notifications];
const notificationExists = notifications.some((notification) => {
if (notification.type === type && notification.address === value) {
return true;
}
return false;
});
if (notificationExists) {
notifications = notifications.filter((notification) => {
if (notification.type === type && notification.address === value) {
return false;
}
return true;
});
} else {
notifications.push({ type, address: value });
}
setMonitor((prev) => ({
...prev,
notifications,
}));
};
const handleBlur = (event) => {
const { name } = event.target;
if (name === "url") {
const { value } = event.target;
if (monitor.name !== "") {
return;
}
setMonitor((prev) => ({
...prev,
name: parseDomainName(value),
}));
}
};
return (
<Box
className="create-monitor"
sx={{
"& h1": {
color: theme.palette.text.primary,
},
}}
>
<Breadcrumbs list={CRUMBS} />
<Stack
component="form"
className="create-monitor-form"
onSubmit={handleCreateMonitor}
noValidate
spellCheck="false"
gap={theme.spacing(12)}
mt={theme.spacing(6)}
>
<Typography
component="h1"
variant="h1"
>
<Typography
component="span"
fontSize="inherit"
>
Create your{" "}
</Typography>
<Typography
component="span"
fontSize="inherit"
fontWeight="inherit"
color={theme.palette.text.secondary}
>
PageSpeed monitor
</Typography>
</Typography>
<ConfigBox>
<Box>
<Typography component="h2">General settings</Typography>
<Typography component="p">
Here you can select the URL of the host, together with the type of monitor.
</Typography>
</Box>
<Stack gap={theme.spacing(15)}>
<TextInput
type={"url"}
name="url"
id="monitor-url"
label="URL to monitor"
startAdornment={<HttpAdornment https={https} />}
placeholder="google.com"
value={monitor.url}
onChange={handleChange}
onBlur={handleBlur}
error={errors["url"] ? true : false}
helperText={errors["url"]}
/>
<TextInput
type="text"
id="monitor-name"
name="name"
label="Display name"
isOptional={true}
placeholder="Google"
value={monitor.name}
onChange={handleChange}
error={errors["name"] ? true : false}
helperText={errors["name"]}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Checks to perform</Typography>
<Typography component="p">
You can always add or remove checks after adding your site.
</Typography>
</Box>
<Stack gap={theme.spacing(12)}>
<Stack gap={theme.spacing(6)}>
<Radio
id="monitor-checks-http"
title="PageSpeed"
desc="Use the Lighthouse PageSpeed API to monitor your website"
size="small"
value="http"
checked={monitor.type === "pagespeed"}
/>
<ButtonGroup sx={{ ml: "32px" }}>
<Button
variant="group"
filled={https.toString()}
onClick={() => setHttps(true)}
>
HTTPS
</Button>
<Button
variant="group" // Why does this work?
filled={(!https).toString()} // There's nothing in the docs about this either
onClick={() => setHttps(false)}
>
HTTP
</Button>
</ButtonGroup>
</Stack>
{errors["type"] ? (
<Box className="error-container">
<Typography
component="p"
className="input-error"
color={theme.palette.error.contrastText}
>
{errors["type"]}
</Typography>
</Box>
) : (
""
)}
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Incident notifications</Typography>
<Typography component="p">
When there is an incident, notify users.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
<Typography component="p">When there is a new incident,</Typography>
<Checkbox
id="notify-email-default"
label={`Notify via email (to ${user.email})`}
isChecked={monitor.notifications.some(
(notification) => notification.type === "email"
)}
value={user?.email}
onChange={(event) => handleNotifications(event, "email")}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Advanced settings</Typography>
</Box>
<Stack gap={theme.spacing(12)}>
<Select
id="monitor-interval"
name="interval"
label="Check frequency"
value={monitor.interval || 3}
onChange={handleChange}
items={SELECT_VALUES}
/>
</Stack>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
>
<LoadingButton
variant="contained"
color="primary"
onClick={handleCreateMonitor}
disabled={!Object.values(errors).every((value) => value === undefined)}
loading={isLoading}
>
Create monitor
</LoadingButton>
</Stack>
</Stack>
</Box>
);
};
export default CreatePageSpeed;
@@ -1,18 +0,0 @@
.page-speed-details button.MuiButtonBase-root {
height: 34px;
}
.page-speed-details .MuiPieArcLabel-root {
font-size: var(--env-var-font-size-small-plus);
transition: fill 300ms ease;
}
.page-speed-details .MuiPieArcLabel-faded {
fill: rgba(0, 0, 0, 0.3);
}
.page-speed-details .pie-label,
.page-speed-details .pie-value-label {
transition: all 400ms ease;
}
.page-speed-details .MuiPieArc-root {
stroke: inherit;
}
@@ -1,447 +0,0 @@
import PropTypes from "prop-types";
import { Box, Button, Divider, Stack, Tooltip, Typography } from "@mui/material";
import { useEffect, useState } from "react";
import { useTheme } from "@emotion/react";
import { useNavigate, useParams } from "react-router-dom";
import { useSelector } from "react-redux";
import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils";
import { ChartBox } from "./styled";
import { logger } from "../../../Utils/Logger";
import { networkService } from "../../../main";
import SkeletonLayout from "./skeleton";
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
import SpedometerIcon from "../../../assets/icons/spedometer-icon.svg?react";
import MetricsIcon from "../../../assets/icons/ruler-icon.svg?react";
import ScoreIcon from "../../../assets/icons/monitor-graph-line.svg?react";
import PerformanceIcon from "../../../assets/icons/performance-report.svg?react";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import PulseDot from "../../../Components/Animated/PulseDot";
import PagespeedDetailsAreaChart from "./Charts/AreaChart";
import Checkbox from "../../../Components/Inputs/Checkbox";
import PieChart from "./Charts/PieChart";
import useUtils from "../../Uptime/utils";
import "./index.css";
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
import StatBox from "../../../Components/StatBox";
import IconBox from "../../../Components/IconBox";
const PageSpeedDetails = () => {
const theme = useTheme();
const navigate = useNavigate();
const isAdmin = useIsAdmin();
const { statusColor, pagespeedStatusMsg, determineState } = useUtils();
const [monitor, setMonitor] = useState({});
const [audits, setAudits] = useState({});
const { monitorId } = useParams();
const { authToken } = useSelector((state) => state.auth);
useEffect(() => {
const fetchMonitor = async () => {
try {
const res = await networkService.getStatsByMonitorId({
authToken: authToken,
monitorId: monitorId,
sortOrder: "desc",
limit: 50,
dateRange: "day",
numToDisplay: null,
normalize: null,
});
setMonitor(res?.data?.data ?? {});
setAudits(res?.data?.data?.checks?.[0]?.audits ?? {});
} catch (error) {
logger.error(logger);
navigate("/not-found", { replace: true });
}
};
fetchMonitor();
}, [monitorId, authToken, navigate]);
let loading = Object.keys(monitor).length === 0;
const data = monitor?.checks ? [...monitor.checks].reverse() : [];
const splitDuration = (duration) => {
const { time, format } = formatDurationSplit(duration);
return (
<>
{time}
<Typography component="span">{format}</Typography>
</>
);
};
const [metrics, setMetrics] = useState({
accessibility: true,
bestPractices: true,
performance: true,
seo: true,
});
const handleMetrics = (id) => {
setMetrics((prev) => ({ ...prev, [id]: !prev[id] }));
};
return (
<Stack
className="page-speed-details"
gap={theme.spacing(10)}
>
{loading ? (
<SkeletonLayout />
) : (
<>
<Breadcrumbs
list={[
{ name: "pagespeed", path: "/pagespeed" },
{ name: "details", path: `/pagespeed/${monitorId}` },
]}
/>
<Stack
direction="row"
gap={theme.spacing(2)}
>
<Box>
<Typography
component="h1"
variant="h1"
>
{monitor.name}
</Typography>
<Stack
direction="row"
alignItems="center"
height="fit-content"
gap={theme.spacing(2)}
>
<Tooltip
title={pagespeedStatusMsg[determineState(monitor)]}
disableInteractive
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -8],
},
},
],
},
}}
>
<Box>
<PulseDot color={statusColor[determineState(monitor)]} />
</Box>
</Tooltip>
<Typography
component="h2"
variant="h2"
>
{monitor?.url}
</Typography>
<Typography
position="relative"
variant="body2"
mt={theme.spacing(1)}
ml={theme.spacing(6)}
sx={{
"&:before": {
position: "absolute",
content: `""`,
width: 4,
height: 4,
borderRadius: "50%",
backgroundColor: theme.palette.text.tertiary,
opacity: 0.8,
left: -9,
top: "50%",
transform: "translateY(-50%)",
},
}}
>
Checking every {formatDurationRounded(monitor?.interval)}.
</Typography>
</Stack>
</Box>
{isAdmin && (
<Button
variant="contained"
color="secondary"
onClick={() => navigate(`/pagespeed/configure/${monitorId}`)}
sx={{
ml: "auto",
alignSelf: "flex-end",
px: theme.spacing(5),
"& svg": {
mr: theme.spacing(3),
"& path": {
stroke: theme.palette.other.icon,
},
},
}}
>
<SettingsIcon />
Configure
</Button>
)}
</Stack>
<Stack
direction="row"
gap={theme.spacing(8)}
>
<StatBox
heading="checks since"
subHeading={
<>
{splitDuration(monitor?.uptimeDuration)}
<Typography component="span">ago</Typography>
</>
}
/>
<StatBox
heading="last check"
subHeading={
<>
{splitDuration(monitor?.lastChecked)}
<Typography component="span">ago</Typography>
</>
}
/>
</Stack>
<Box>
<Typography
variant="body2"
my={theme.spacing(8)}
>
Showing statistics for past 24 hours.
</Typography>
<ChartBox sx={{ gridTemplateColumns: "75% 25%" }}>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<IconBox>
<ScoreIcon />
</IconBox>
<Typography component="h2">Score history</Typography>
</Stack>
<Box>
<PagespeedDetailsAreaChart
data={data}
interval={monitor?.interval}
metrics={metrics}
/>
</Box>
<Box>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<IconBox>
<MetricsIcon />
</IconBox>
<Typography component="h2">Metrics</Typography>
</Stack>
<Stack
gap={theme.spacing(4)}
mt={theme.spacing(16)}
sx={{
"& label": { pl: theme.spacing(6) },
}}
>
<Box>
<Typography
fontSize={11}
fontWeight={500}
>
Shown
</Typography>
<Divider sx={{ mt: theme.spacing(2) }} />
</Box>
<Checkbox
id="accessibility-toggle"
label="Accessibility"
isChecked={metrics.accessibility}
onChange={() => handleMetrics("accessibility")}
/>
<Divider />
<Checkbox
id="best-practices-toggle"
label="Best Practices"
isChecked={metrics.bestPractices}
onChange={() => handleMetrics("bestPractices")}
/>
<Divider />
<Checkbox
id="performance-toggle"
label="Performance"
isChecked={metrics.performance}
onChange={() => handleMetrics("performance")}
/>
<Divider />
<Checkbox
id="seo-toggle"
label="Search Engine Optimization"
isChecked={metrics.seo}
onChange={() => handleMetrics("seo")}
/>
<Divider />
</Stack>
</Box>
</ChartBox>
</Box>
<ChartBox
flex={1}
/* TODO apply 1fr 1fr for columns, and auto 1fr for Rows */
sx={{ gridTemplateColumns: "50% 50%", gridTemplateRows: "15% 85%" }}
>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<IconBox>
<PerformanceIcon />
</IconBox>
<Typography component="h2">Performance report</Typography>
</Stack>
<Stack
alignItems="center"
textAlign="center"
minWidth="300px"
flex={1}
pt={theme.spacing(6)}
pb={theme.spacing(12)}
>
<PieChart audits={audits} />
<Typography
variant="body1"
mt="auto"
>
Values are estimated and may vary.{" "}
<Typography
component="span"
fontSize="inherit"
sx={{
color: theme.palette.primary.main,
fontWeight: 500,
textDecoration: "underline",
textUnderlineOffset: 2,
transition: "all 200ms",
cursor: "pointer",
"&:hover": {
textUnderlineOffset: 4,
},
}}
>
See calculator
</Typography>
</Typography>
</Stack>
<Box
px={theme.spacing(20)}
py={theme.spacing(8)}
height="100%"
>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(6)}
>
<IconBox>
<SpedometerIcon />
</IconBox>
<Typography component="h2">Performance Metrics</Typography>
</Stack>
<Stack
flexWrap="wrap"
mt={theme.spacing(4)}
gap={theme.spacing(4)}
>
{Object.keys(audits).map((key) => {
if (key === "_id") return;
let audit = audits[key];
let score = audit.score * 100;
let bg =
score >= 90
? theme.palette.success.main
: score >= 50
? theme.palette.warning.main
: score >= 0
? theme.palette.error.contrastText
: theme.palette.unresolved.main;
// Find the position where the number ends and the unit begins
const match = audit.displayValue.match(/(\d+\.?\d*)\s*([a-zA-Z]+)/);
let value;
let unit;
if (match) {
value = match[1];
match[2] === "s" ? (unit = "seconds") : (unit = match[2]);
} else {
value = audit.displayValue;
}
return (
<Stack
key={`${key}-box`}
justifyContent="space-between"
direction="row"
gap={theme.spacing(4)}
p={theme.spacing(3)}
border={1}
borderColor={theme.palette.border.light}
borderRadius={4}
>
<Box>
<Typography
fontSize={12}
fontWeight={500}
lineHeight={1}
mb={1}
textTransform="uppercase"
>
{audit.title}
</Typography>
<Typography
component="span"
fontSize={14}
fontWeight={500}
color={theme.palette.text.primary}
>
{value}
<Typography
component="span"
variant="body2"
ml={2}
>
{unit}
</Typography>
</Typography>
</Box>
<Box
width={4}
backgroundColor={bg}
borderRadius={4}
/>
</Stack>
);
})}
</Stack>
</Box>
</ChartBox>
</>
)}
</Stack>
);
};
PageSpeedDetails.propTypes = {
isAdmin: PropTypes.bool,
push: PropTypes.func,
};
export default PageSpeedDetails;
@@ -1,93 +0,0 @@
import { Box, Skeleton, Stack } from "@mui/material";
/**
* Renders a skeleton layout.
*
* @returns {JSX.Element}
*/
const SkeletonLayout = () => {
return (
<>
<Skeleton
variant="rounded"
width="15%"
height={34}
/>
<Stack
direction="row"
gap={4}
>
<Skeleton
variant="circular"
style={{ minWidth: 24, minHeight: 24 }}
/>
<Box width="85%">
<Skeleton
variant="rounded"
width="50%"
height={24}
/>
<Skeleton
variant="rounded"
width="50%"
height={18}
sx={{ mt: 4 }}
/>
</Box>
<Skeleton
variant="rounded"
width="15%"
height={34}
sx={{ alignSelf: "flex-end" }}
/>
</Stack>
<Stack
direction="row"
justifyContent="space-between"
gap={20}
flexWrap="wrap"
>
<Skeleton
variant="rounded"
width="30%"
height={90}
sx={{ flex: 1 }}
/>
<Skeleton
variant="rounded"
width="30%"
height={90}
sx={{ flex: 1 }}
/>
<Skeleton
variant="rounded"
width="30%"
height={90}
sx={{ flex: 1 }}
/>
</Stack>
<Skeleton
variant="rounded"
width="25%"
height={24}
/>
<Skeleton
variant="rounded"
width="100%"
height={300}
/>
<Skeleton
variant="rounded"
width="25%"
height={24}
/>
<Skeleton
variant="rounded"
width="100%"
height={300}
/>
</>
);
};
export default SkeletonLayout;
@@ -1,42 +0,0 @@
import { Stack, styled } from "@mui/material";
export const ChartBox = styled(Stack)(({ theme }) => ({
display: "grid",
minHeight: 300,
minWidth: 250,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
borderTopRightRadius: 16,
borderBottomRightRadius: 16,
backgroundColor: theme.palette.background.main,
"& h2": {
color: theme.palette.text.secondary,
fontSize: 15,
fontWeight: 500,
},
"& p": { color: theme.palette.text.tertiary },
"& > :nth-of-type(1)": {
gridColumn: 1,
gridRow: 1,
height: "fit-content",
paddingTop: theme.spacing(8),
paddingLeft: theme.spacing(8),
},
"& > :nth-of-type(2)": { gridColumn: 1, gridRow: 2 },
"& > :nth-of-type(3)": {
gridColumn: 2,
gridRow: "span 2",
padding: theme.spacing(8),
borderLeft: 1,
borderLeftStyle: "solid",
borderLeftColor: theme.palette.border.light,
borderRadius: 16,
backgroundColor: theme.palette.background.main,
background: `linear-gradient(325deg, ${theme.palette.background.accent} 20%, ${theme.palette.background.main} 45%)`,
},
"& path": {
transition: "stroke-width 400ms ease",
},
}));
-8
View File
@@ -1,8 +0,0 @@
.page-speed .label {
padding: 7px;
height: 24px;
font-size: var(--env-var-font-size-small);
}
.page-speed:not(:has([class*="fallback__"])) button {
height: 34px;
}
-155
View File
@@ -1,155 +0,0 @@
import { Box, Button, Grid, Stack } from "@mui/material";
import { useEffect, useState } from "react";
import { useTheme } from "@emotion/react";
import { useDispatch, useSelector } from "react-redux";
import { getPageSpeedByTeamId } from "../../Features/PageSpeedMonitor/pageSpeedMonitorSlice";
import Fallback from "../../Components/Fallback";
import "./index.css";
import { useNavigate } from "react-router";
import PropTypes from "prop-types";
import Breadcrumbs from "../../Components/Breadcrumbs";
import SkeletonLayout from "./skeleton";
import Card from "./card";
import { networkService } from "../../main";
import { Heading } from "../../Components/Heading";
import { useIsAdmin } from "../../Hooks/useIsAdmin";
const PageSpeed = () => {
const theme = useTheme();
const dispatch = useDispatch();
const navigate = useNavigate();
const isAdmin = useIsAdmin();
const { user, authToken } = useSelector((state) => state.auth);
const [isLoading, setIsLoading] = useState(true);
const [monitors, setMonitors] = useState([]);
const [monitorCount, setMonitorCount] = useState(0);
useEffect(() => {
dispatch(getPageSpeedByTeamId(authToken));
}, [authToken, dispatch]);
useEffect(() => {
const fetchMonitors = async () => {
try {
setIsLoading(true);
const res = await networkService.getMonitorsByTeamId({
authToken: authToken,
teamId: user.teamId,
limit: 10,
types: ["pagespeed"],
status: null,
checkOrder: "desc",
normalize: true,
page: null,
rowsPerPage: null,
filter: null,
field: null,
order: null,
});
if (res?.data?.data?.monitors) {
setMonitors(res.data.data.monitors);
setMonitorCount(res.data.data.monitorCount);
}
} catch (error) {
console.log(error);
} finally {
setIsLoading(false);
}
};
fetchMonitors();
}, [authToken, user.teamId]);
// will show skeletons only on initial load
// since monitor state is being added to redux persist, there's no reason to display skeletons on every render
let isActuallyLoading = isLoading && monitors?.length === 0;
return (
<Box
className="page-speed"
sx={{
':has(> [class*="fallback__"])': {
position: "relative",
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
borderStyle: "dashed",
backgroundColor: theme.palette.background.main,
overflow: "hidden",
},
}}
>
{isActuallyLoading ? (
<SkeletonLayout />
) : monitors?.length !== 0 ? (
<Stack gap={theme.spacing(8)}>
<Box>
<Breadcrumbs list={[{ name: `pagespeed`, path: "/pagespeed" }]} />
<Stack
direction="row"
justifyContent="end"
alignItems="center"
mt={theme.spacing(5)}
>
{isAdmin && (
<Button
variant="contained"
color="primary"
onClick={() => navigate("/pagespeed/create")}
sx={{ fontWeight: 500, whiteSpace: "nowrap" }}
>
Create new
</Button>
)}
</Stack>
</Box>
<Stack
direction="row"
sx={{
alignItems: "center",
gap: ".25rem",
flexWrap: "wrap",
}}
>
<Heading component="h2">PageSpeed monitors</Heading>
{/* TODO Correct the class current-monitors-counter, there are some unnecessary things there */}
<Box
component="span"
className="current-monitors-counter"
color={theme.palette.text.primary}
border={1}
borderColor={theme.palette.border.light}
backgroundColor={theme.palette.background.accent}
>
{monitorCount}
</Box>
</Stack>
<Grid
container
spacing={theme.spacing(12)}
>
{monitors?.map((monitor) => (
<Card
monitor={monitor}
key={monitor._id}
/>
))}
</Grid>
</Stack>
) : (
<Fallback
title="pagespeed monitor"
checks={[
"Report on the user experience of a page",
"Help analyze webpage speed",
"Give suggestions on how the page can be improved",
]}
link="/pagespeed/create"
isAdmin={isAdmin}
/>
)}
</Box>
);
};
PageSpeed.propTypes = {
isAdmin: PropTypes.bool,
};
export default PageSpeed;
-73
View File
@@ -1,73 +0,0 @@
import { Box, Skeleton, Stack } from "@mui/material";
import { useTheme } from "@emotion/react";
/**
* Renders a skeleton layout.
*
* @returns {JSX.Element}
*/
const SkeletonLayout = () => {
const theme = useTheme();
return (
<Stack gap={theme.spacing(2)}>
<Stack
direction="row"
justifyContent="space-between"
mb={theme.spacing(12)}
>
<Box width="80%">
<Skeleton
variant="rounded"
width="25%"
height={24}
/>
<Skeleton
variant="rounded"
width="50%"
height={19.5}
sx={{ mt: theme.spacing(2) }}
/>
</Box>
<Skeleton
variant="rounded"
width="20%"
height={34}
sx={{ alignSelf: "flex-end" }}
/>
</Stack>
<Stack
direction="row"
flexWrap="wrap"
gap={theme.spacing(12)}
>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
<Skeleton
variant="rounded"
width="100%"
height={120}
sx={{ flex: "35%" }}
/>
</Stack>
</Stack>
);
};
export default SkeletonLayout;
-21
View File
@@ -1,21 +0,0 @@
.settings a.MuiTypography-root,
.settings h2.MuiTypography-root,
.settings span.MuiTypography-root,
.settings button,
.settings p.MuiTypography-root {
font-size: var(--env-var-font-size-medium);
}
.settings h1.MuiTypography-root {
font-size: var(--env-var-font-size-large);
}
.settings h1.MuiTypography-root,
.settings h2.MuiTypography-root {
font-weight: 600;
}
.settings button {
height: 34px;
}
.settings span.MuiTypography-root {
opacity: 0.6;
margin-right: 4px;
}
-364
View File
@@ -1,364 +0,0 @@
import { useTheme } from "@emotion/react";
import { Box, Stack, Typography, Button } from "@mui/material";
import TextInput from "../../Components/Inputs/TextInput";
import Link from "../../Components/Link";
import Select from "../../Components/Inputs/Select";
import { logger } from "../../Utils/Logger";
import "./index.css";
import { useDispatch, useSelector } from "react-redux";
import { createToast } from "../../Utils/toastUtils";
import {
deleteMonitorChecksByTeamId,
addDemoMonitors,
deleteAllMonitors,
} from "../../Features/UptimeMonitors/uptimeMonitorsSlice";
import { update } from "../../Features/Auth/authSlice";
import PropTypes from "prop-types";
import LoadingButton from "@mui/lab/LoadingButton";
import { setTimezone, setMode } from "../../Features/UI/uiSlice";
import timezones from "../../Utils/timezones.json";
import { useState, useEffect } from "react";
import { networkService } from "../../main";
import { settingsValidation } from "../../Validation/validation";
import Dialog from "../../Components/Dialog";
import { useIsAdmin } from "../../Hooks/useIsAdmin";
import ConfigBox from "../../Components/ConfigBox";
const SECONDS_PER_DAY = 86400;
const Settings = () => {
const theme = useTheme();
const isAdmin = useIsAdmin();
const { user, authToken } = useSelector((state) => state.auth);
const { checkTTL } = user;
const { isLoading } = useSelector((state) => state.uptimeMonitors);
const { isLoading: authIsLoading } = useSelector((state) => state.auth);
const { timezone } = useSelector((state) => state.ui);
const { mode } = useSelector((state) => state.ui);
const [checksIsLoading, setChecksIsLoading] = useState(false);
const [form, setForm] = useState({
ttl: checkTTL ? (checkTTL / SECONDS_PER_DAY).toString() : 0,
});
const [version, setVersion] = useState("unknown");
const [errors, setErrors] = useState({});
const deleteStatsMonitorsInitState = { deleteMonitors: false, deleteStats: false };
const [isOpen, setIsOpen] = useState(deleteStatsMonitorsInitState);
const dispatch = useDispatch();
//Fetching latest release version from github
useEffect(() => {
const fetchLatestVersion = async () => {
let version = "unknown";
try {
const response = await networkService.fetchGithubLatestRelease();
if (!response.status === 200) {
throw new Error("Failed to fetch latest version");
}
version = response.data.tag_name;
} catch (error) {
createToast({ body: error.message || "Error fetching latest version" }); // Set error message
} finally {
setVersion(version);
}
};
fetchLatestVersion();
}, []);
const handleChange = (event) => {
const { value, id } = event.target;
const { error } = settingsValidation.validate(
{ [id]: value },
{
abortEarly: false,
}
);
if (!error || error.details.length === 0) {
setErrors({});
} else {
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
console.log(newErrors);
logger.error("Validation errors:", error.details);
}
let inputValue = value;
id === "ttl" && (inputValue = value.replace(/[^0-9]/g, ""));
setForm((prev) => ({
...prev,
[id]: inputValue,
}));
};
// TODO Handle saving
const handleSave = async () => {
try {
setChecksIsLoading(true);
await networkService.updateChecksTTL({
authToken: authToken,
ttl: form.ttl,
});
const updatedUser = { ...user, checkTTL: form.ttl };
const action = await dispatch(update({ authToken, localData: updatedUser }));
if (action.payload.success) {
createToast({
body: "Settings saved successfully",
});
} else {
if (action.payload) {
// dispatch errors
createToast({
body: action.payload.msg,
});
} else {
// unknown errors
createToast({
body: "Unknown error.",
});
}
}
} catch (error) {
console.log(error);
createToast({ body: "Failed to save settings" });
} finally {
setChecksIsLoading(false);
}
};
const handleClearStats = async () => {
try {
const action = await dispatch(
deleteMonitorChecksByTeamId({ teamId: user.teamId, authToken })
);
if (deleteMonitorChecksByTeamId.fulfilled.match(action)) {
createToast({ body: "Stats cleared successfully" });
} else {
createToast({ body: "Failed to clear stats" });
}
} catch (error) {
logger.error(error);
createToast({ body: "Failed to clear stats" });
} finally {
setIsOpen(deleteStatsMonitorsInitState);
}
};
const handleInsertDemoMonitors = async () => {
try {
const action = await dispatch(addDemoMonitors({ authToken }));
if (addDemoMonitors.fulfilled.match(action)) {
createToast({ body: "Successfully added demo monitors" });
} else {
createToast({ body: "Failed to add demo monitors" });
}
} catch (error) {
logger.error(error);
createToast({ Body: "Failed to add demo monitors" });
}
};
const handleDeleteAllMonitors = async () => {
try {
const action = await dispatch(deleteAllMonitors({ authToken }));
if (deleteAllMonitors.fulfilled.match(action)) {
createToast({ body: "Successfully deleted all monitors" });
} else {
createToast({ body: "Failed to add demo monitors" });
}
} catch (error) {
logger.error(error);
createToast({ Body: "Failed to delete all monitors" });
} finally {
setIsOpen(deleteStatsMonitorsInitState);
}
};
return (
<Box
className="settings"
style={{
paddingBottom: 0,
}}
>
<Stack
component="form"
gap={theme.spacing(12)}
noValidate
spellCheck="false"
>
<ConfigBox>
<Box>
<Typography component="h1">General settings</Typography>
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(2) }}>
<Typography component="span">Display timezone</Typography>- The timezone of
the dashboard you publicly display.
</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<Select
id="display-timezone"
label="Display timezone"
value={timezone}
onChange={(e) => {
dispatch(setTimezone({ timezone: e.target.value }));
}}
items={timezones}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h1">Appearance</Typography>
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(2) }}>
Switch between light and dark mode.
</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<Select
id="theme-mode"
label="Theme Mode"
value={mode}
onChange={(e) => {
dispatch(setMode(e.target.value));
}}
items={[
{ _id: "light", name: "Light" },
{ _id: "dark", name: "Dark" },
]}
></Select>
</Stack>
</ConfigBox>
{isAdmin && (
<ConfigBox>
<Box>
<Typography component="h1">History and monitoring</Typography>
<Typography sx={{ mt: theme.spacing(2) }}>
Define here for how long you want to keep the data. You can also remove
all past data.
</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<TextInput
id="ttl"
label="The days you want to keep monitoring history."
optionalLabel="0 for infinite"
value={form.ttl}
onChange={handleChange}
error={errors.ttl ? true : false}
helperText={errors.ttl}
/>
<Box>
<Typography>Clear all stats. This is irreversible.</Typography>
<Button
variant="contained"
color="error"
onClick={() =>
setIsOpen({ ...deleteStatsMonitorsInitState, deleteStats: true })
}
sx={{ mt: theme.spacing(4) }}
>
Clear all stats
</Button>
</Box>
</Stack>
<Dialog
open={isOpen.deleteStats}
theme={theme}
title="Do you want to clear all stats?"
description="Once deleted, this monitor cannot be retrieved."
onCancel={() => setIsOpen(deleteStatsMonitorsInitState)}
confirmationButtonLabel="Yes, clear all stats"
onConfirm={handleClearStats}
isLoading={isLoading || authIsLoading || checksIsLoading}
/>
</ConfigBox>
)}
{isAdmin && (
<ConfigBox>
<Box>
<Typography component="h1">Demo monitors</Typography>
<Typography sx={{ mt: theme.spacing(2) }}>
Here you can add and remove demo monitors
</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<Box>
<Typography>Add demo monitors</Typography>
<LoadingButton
variant="contained"
color="primary"
loading={isLoading || authIsLoading || checksIsLoading}
onClick={handleInsertDemoMonitors}
sx={{ mt: theme.spacing(4) }}
>
Add demo monitors
</LoadingButton>
</Box>
<Box>
<Typography>Remove all monitors</Typography>
<LoadingButton
variant="contained"
color="error"
loading={isLoading || authIsLoading || checksIsLoading}
onClick={() =>
setIsOpen({ ...deleteStatsMonitorsInitState, deleteMonitors: true })
}
sx={{ mt: theme.spacing(4) }}
>
Remove all monitors
</LoadingButton>
</Box>
</Stack>
<Dialog
open={isOpen.deleteMonitors}
theme={theme}
title="Do you want to remove all monitors?"
onCancel={() => setIsOpen(deleteStatsMonitorsInitState)}
confirmationButtonLabel="Yes, clear all monitors"
onConfirm={handleDeleteAllMonitors}
isLoading={isLoading || authIsLoading || checksIsLoading}
/>
</ConfigBox>
)}
<ConfigBox>
<Box>
<Typography component="h1">About</Typography>
</Box>
<Box>
<Typography component="h2">Checkmate {version}</Typography>
<Typography sx={{ mt: theme.spacing(2), mb: theme.spacing(6), opacity: 0.6 }}>
Developed by Bluewave Labs.
</Typography>
<Link
level="secondary"
url="https://github.com/bluewave-labs/checkmate"
label="https://github.com/bluewave-labs/checkmate"
/>
</Box>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
>
<LoadingButton
loading={isLoading || authIsLoading || checksIsLoading}
disabled={Object.keys(errors).length > 0}
variant="contained"
color="primary"
sx={{ px: theme.spacing(12), mt: theme.spacing(20) }}
onClick={handleSave}
>
Save
</LoadingButton>
</Stack>
</Stack>
</Box>
);
};
Settings.propTypes = {
isAdmin: PropTypes.bool,
};
export default Settings;
-35
View File
@@ -1,35 +0,0 @@
import { Box } from "@mui/material";
import { useTheme } from "@emotion/react";
import Fallback from "../../Components/Fallback";
const Status = () => {
const theme = useTheme();
return (
<Box
className="status"
sx={{
':has(> [class*="fallback__"])': {
position: "relative",
border: 1,
borderColor: theme.palette.border.light,
borderRadius: theme.shape.borderRadius,
borderStyle: "dashed",
backgroundColor: theme.palette.background.main,
overflow: "hidden",
},
}}
>
<Fallback
title="status page"
checks={[
"Share your uptime publicly",
"Keep your users informed about incidents",
"Build trust with your customers",
]}
/>
</Box>
);
};
export default Status;
@@ -1,11 +0,0 @@
.configure-monitor button.MuiButtonBase-root {
height: var(--env-var-height-2);
}
.configure-monitor .MuiStack-root:has(span.MuiTypography-root.input-error) {
position: relative;
}
.configure-monitor span.MuiTypography-root.input-error {
position: absolute;
top: 100%;
}
-475
View File
@@ -1,475 +0,0 @@
import { useNavigate, useParams } from "react-router";
import { useTheme } from "@emotion/react";
import { useDispatch, useSelector } from "react-redux";
import { useEffect, useState } from "react";
import { Box, Stack, Tooltip, Typography } from "@mui/material";
import { monitorValidation } from "../../../Validation/validation";
import { createToast } from "../../../Utils/toastUtils";
import { logger } from "../../../Utils/Logger";
import ConfigBox from "../../../Components/ConfigBox";
import {
updateUptimeMonitor,
pauseUptimeMonitor,
getUptimeMonitorById,
getUptimeMonitorsByTeamId,
deleteUptimeMonitor,
} from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
import TextInput from "../../../Components/Inputs/TextInput";
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
import PauseIcon from "../../../assets/icons/pause-icon.svg?react";
import ResumeIcon from "../../../assets/icons/resume-icon.svg?react";
import Select from "../../../Components/Inputs/Select";
import Checkbox from "../../../Components/Inputs/Checkbox";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import PulseDot from "../../../Components/Animated/PulseDot";
import SkeletonLayout from "./skeleton";
import LoadingButton from "@mui/lab/LoadingButton";
import "./index.css";
import Dialog from "../../../Components/Dialog";
/**
* Parses a URL string and returns a URL object.
*
* @param {string} url - The URL string to parse.
* @returns {URL} - The parsed URL object if valid, otherwise an empty string.
*/
const parseUrl = (url) => {
try {
return new URL(url);
} catch (error) {
return null;
}
};
/**
* Configure page displays monitor configurations and allows for editing actions.
* @component
*/
const Configure = () => {
const MS_PER_MINUTE = 60000;
const navigate = useNavigate();
const theme = useTheme();
const dispatch = useDispatch();
const { user, authToken } = useSelector((state) => state.auth);
const { isLoading } = useSelector((state) => state.uptimeMonitors);
const [monitor, setMonitor] = useState({});
const [errors, setErrors] = useState({});
const { monitorId } = useParams();
const idMap = {
"monitor-url": "url",
"monitor-name": "name",
"monitor-checks-http": "type",
"monitor-checks-ping": "type",
"notify-email-default": "notification-email",
};
useEffect(() => {
const fetchMonitor = async () => {
try {
const action = await dispatch(getUptimeMonitorById({ authToken, monitorId }));
if (getUptimeMonitorById.fulfilled.match(action)) {
const monitor = action.payload.data;
setMonitor(monitor);
} else if (getUptimeMonitorById.rejected.match(action)) {
throw new Error(action.error.message);
}
} catch (error) {
logger.error("Error fetching monitor of id: " + monitorId);
navigate("/not-found", { replace: true });
}
};
fetchMonitor();
}, [monitorId, authToken, navigate]);
const handleChange = (event, name) => {
let { value, id } = event.target;
if (!name) name = idMap[id];
if (name.includes("notification-")) {
name = name.replace("notification-", "");
let hasNotif = monitor.notifications.some(
(notification) => notification.type === name
);
setMonitor((prev) => {
const notifs = [...prev.notifications];
if (hasNotif) {
return {
...prev,
notifications: notifs.filter((notif) => notif.type !== name),
};
} else {
return {
...prev,
notifications: [
...notifs,
name === "email"
? { type: name, address: value }
: // TODO - phone number
{ type: name, phone: value },
],
};
}
});
} else {
if (name === "interval") {
value = value * MS_PER_MINUTE;
}
setMonitor((prev) => ({
...prev,
[name]: value,
}));
const validation = monitorValidation.validate(
{ [name]: value },
{ abortEarly: false }
);
setErrors((prev) => {
const updatedErrors = { ...prev };
if (validation.error) updatedErrors[name] = validation.error.details[0].message;
else delete updatedErrors[name];
return updatedErrors;
});
}
};
const handlePause = async () => {
try {
const action = await dispatch(pauseUptimeMonitor({ authToken, monitorId }));
if (pauseUptimeMonitor.fulfilled.match(action)) {
const monitor = action.payload.data;
setMonitor(monitor);
const state = action?.payload?.data.isActive === false ? "paused" : "resumed";
createToast({ body: `Monitor ${state} successfully.` });
} else if (pauseUptimeMonitor.rejected.match(action)) {
throw new Error(action.error.message);
}
} catch (error) {
logger.error("Error pausing monitor: " + monitorId);
createToast({ body: "Failed to pause monitor" });
}
};
const handleSubmit = async (event) => {
event.preventDefault();
const action = await dispatch(updateUptimeMonitor({ authToken, monitor: monitor }));
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Monitor updated successfully!" });
dispatch(getUptimeMonitorsByTeamId(authToken));
} else {
createToast({ body: "Failed to update monitor." });
}
};
const [isOpen, setIsOpen] = useState(false);
const handleRemove = async (event) => {
event.preventDefault();
const action = await dispatch(deleteUptimeMonitor({ authToken, monitor }));
if (action.meta.requestStatus === "fulfilled") {
navigate("/uptime");
} else {
createToast({ body: "Failed to delete monitor." });
}
};
const frequencies = [
{ _id: 1, name: "1 minute" },
{ _id: 2, name: "2 minutes" },
{ _id: 3, name: "3 minutes" },
{ _id: 4, name: "4 minutes" },
{ _id: 5, name: "5 minutes" },
];
// Parse the URL
const parsedUrl = parseUrl(monitor?.url);
const protocol = parsedUrl?.protocol?.replace(":", "") || "";
const statusColor = {
true: theme.palette.success.main,
false: theme.palette.error.main,
undefined: theme.palette.warning.main,
};
const statusMsg = {
true: "Your site is up.",
false: "Your site is down.",
undefined: "Pending...",
};
return (
<Stack
className="configure-monitor"
gap={theme.spacing(10)}
>
{Object.keys(monitor).length === 0 ? (
<SkeletonLayout />
) : (
<>
<Breadcrumbs
list={[
{ name: "uptime", path: "/uptime" },
{ name: "details", path: `/uptime/${monitorId}` },
{ name: "configure", path: `/uptime/configure/${monitorId}` },
]}
/>
<Stack
component="form"
noValidate
spellCheck="false"
gap={theme.spacing(12)}
flex={1}
>
<Stack
direction="row"
gap={theme.spacing(2)}
>
<Box>
<Typography
component="h1"
variant="h1"
>
{monitor.name}
</Typography>
<Stack
direction="row"
alignItems="center"
height="fit-content"
gap={theme.spacing(2)}
>
<Tooltip
title={statusMsg[monitor?.status ?? undefined]}
disableInteractive
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -8],
},
},
],
},
}}
>
<Box>
<PulseDot color={statusColor[monitor?.status ?? undefined]} />
</Box>
</Tooltip>
<Typography
component="h2"
variant="h2"
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>
<Typography
position="relative"
variant="body2"
ml={theme.spacing(6)}
mt={theme.spacing(1)}
sx={{
"&:before": {
position: "absolute",
content: `""`,
width: 4,
height: 4,
borderRadius: "50%",
backgroundColor: theme.palette.text.tertiary,
opacity: 0.8,
left: -10,
top: "50%",
transform: "translateY(-50%)",
},
}}
>
Editing...
</Typography>
</Stack>
</Box>
<Box
sx={{
alignSelf: "flex-end",
ml: "auto",
}}
>
<LoadingButton
variant="contained"
color="secondary"
loading={isLoading}
sx={{
pl: theme.spacing(4),
pr: theme.spacing(6),
mr: theme.spacing(6),
"& svg": {
mr: theme.spacing(2),
width: 22,
height: 22,
"& path": {
stroke: theme.palette.text.tertiary,
strokeWidth: 1.7,
},
},
}}
onClick={handlePause}
>
{monitor?.isActive ? (
<>
<PauseIcon />
Pause
</>
) : (
<>
<ResumeIcon />
Resume
</>
)}
</LoadingButton>
<LoadingButton
loading={isLoading}
variant="contained"
color="error"
sx={{ px: theme.spacing(8) }}
onClick={() => setIsOpen(true)}
>
Remove
</LoadingButton>
</Box>
</Stack>
<ConfigBox>
<Box>
<Typography component="h2">General settings</Typography>
<Typography component="p">
Here you can select the URL of the host, together with the type of
monitor.
</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<TextInput
type={monitor?.type === "http" ? "url" : "text"}
https={protocol === "https"}
startAdornment={<HttpAdornment https={protocol === "https"} />}
id="monitor-url"
label="URL to monitor"
placeholder="google.com"
value={parsedUrl?.host || monitor?.url || ""}
disabled={true}
/>
<TextInput
type="text"
id="monitor-name"
label="Display name"
isOptional={true}
placeholder="Google"
value={monitor?.name || ""}
onChange={handleChange}
error={errors["name"] ? true : false}
helperText={errors["name"]}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Incident notifications</Typography>
<Typography component="p">
When there is an incident, notify users.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
<Typography component="p">When there is a new incident,</Typography>
<Checkbox
id="notify-sms"
label="Notify via SMS (coming soon)"
isChecked={false}
value=""
onChange={() => logger.warn("disabled")}
isDisabled={true}
/>
<Checkbox
id="notify-email-default"
label={`Notify via email (to ${user.email})`}
isChecked={
monitor?.notifications?.some(
(notification) => notification.type === "email"
) || false
}
value={user?.email}
onChange={(event) => handleChange(event)}
/>
<Checkbox
id="notify-email"
label="Also notify via email to multiple addresses (coming soon)"
isChecked={false}
value=""
onChange={() => logger.warn("disabled")}
isDisabled={true}
/>
{monitor?.notifications?.some(
(notification) => notification.type === "emails"
) ? (
<Box mx={theme.spacing(16)}>
<TextInput
id="notify-email-list"
type="text"
placeholder="name@gmail.com"
value=""
onChange={() => logger.warn("disabled")}
/>
<Typography mt={theme.spacing(4)}>
You can separate multiple emails with a comma
</Typography>
</Box>
) : (
""
)}
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Advanced settings</Typography>
</Box>
<Stack gap={theme.spacing(20)}>
<Select
id="monitor-interval-configure"
label="Check frequency"
value={monitor?.interval / MS_PER_MINUTE || 1}
onChange={(event) => handleChange(event, "interval")}
items={frequencies}
/>
</Stack>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
mt="auto"
>
<LoadingButton
variant="contained"
color="primary"
loading={isLoading}
sx={{ px: theme.spacing(12) }}
onClick={handleSubmit}
>
Save
</LoadingButton>
</Stack>
</Stack>
</>
)}
<Dialog
open={isOpen}
theme={theme}
title="Do you really want to delete this monitor?"
description="Once deleted, this monitor cannot be retrieved."
onCancel={() => setIsOpen(false)}
confirmationButtonLabel="Delete"
onConfirm={handleRemove}
isLoading={isLoading}
/>
</Stack>
);
};
export default Configure;
@@ -1,391 +0,0 @@
// React, Redux, Router
import { useTheme } from "@emotion/react";
import { useNavigate, useParams } from "react-router-dom";
import { useEffect } from "react";
import { useState } from "react";
import { useSelector, useDispatch } from "react-redux";
// Utility and Network
import { checkEndpointResolution } from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
import { monitorValidation } from "../../../Validation/validation";
import { getUptimeMonitorById } from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
import { createUptimeMonitor } from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
// MUI
import { Box, Stack, Typography, Button, ButtonGroup } from "@mui/material";
import LoadingButton from "@mui/lab/LoadingButton";
//Components
import Breadcrumbs from "../../../Components/Breadcrumbs";
import TextInput from "../../../Components/Inputs/TextInput";
import { HttpAdornment } from "../../../Components/Inputs/TextInput/Adornments";
import { createToast } from "../../../Utils/toastUtils";
import Radio from "../../../Components/Inputs/Radio";
import Checkbox from "../../../Components/Inputs/Checkbox";
import Select from "../../../Components/Inputs/Select";
import ConfigBox from "../../../Components/ConfigBox";
const CreateMonitor = () => {
const MS_PER_MINUTE = 60000;
const SELECT_VALUES = [
{ _id: 1, name: "1 minute" },
{ _id: 2, name: "2 minutes" },
{ _id: 3, name: "3 minutes" },
{ _id: 4, name: "4 minutes" },
{ _id: 5, name: "5 minutes" },
];
const monitorTypeMaps = {
http: {
label: "URL to monitor",
placeholder: "google.com",
namePlaceholder: "Google",
},
ping: {
label: "IP address to monitor",
placeholder: "1.1.1.1",
namePlaceholder: "Google",
},
docker: {
label: "Container ID",
placeholder: "abc123",
namePlaceholder: "My Container",
},
};
const { user, authToken } = useSelector((state) => state.auth);
const { monitors, isLoading } = useSelector((state) => state.uptimeMonitors);
const dispatch = useDispatch();
const navigate = useNavigate();
const theme = useTheme();
const { monitorId } = useParams();
const crumbs = [
{ name: "uptime", path: "/uptime" },
{ name: "create", path: `/uptime/create` },
];
// State
const [errors, setErrors] = useState({});
const [https, setHttps] = useState(true);
const [monitor, setMonitor] = useState({
url: "",
name: "",
type: "http",
notifications: [],
interval: 1,
});
const handleCreateMonitor = async (event) => {
event.preventDefault();
let form = {
url:
//prepending protocol for url
monitor.type === "http"
? `http${https ? "s" : ""}://` + monitor.url
: monitor.url,
name: monitor.name === "" ? monitor.url : monitor.name,
type: monitor.type,
interval: monitor.interval * MS_PER_MINUTE,
};
const { error } = monitorValidation.validate(form, {
abortEarly: false,
});
if (error) {
const newErrors = {};
error.details.forEach((err) => {
newErrors[err.path[0]] = err.message;
});
setErrors(newErrors);
createToast({ body: "Please check the form for errors." });
return;
}
if (monitor.type === "http") {
const checkEndpointAction = await dispatch(
checkEndpointResolution({ authToken, monitorURL: form.url })
);
if (checkEndpointAction.meta.requestStatus === "rejected") {
createToast({
body: "The endpoint you entered doesn't resolve. Check the URL again.",
});
setErrors({ url: "The entered URL is not reachable." });
return;
}
}
form = {
...form,
description: form.name,
teamId: user.teamId,
userId: user._id,
notifications: monitor.notifications,
};
const action = await dispatch(createUptimeMonitor({ authToken, monitor: form }));
if (action.meta.requestStatus === "fulfilled") {
createToast({ body: "Monitor created successfully!" });
navigate("/uptime");
} else {
createToast({ body: "Failed to create monitor." });
}
};
const handleChange = (event, formName) => {
const { value } = event.target;
setMonitor({
...monitor,
[formName]: value,
});
const { error } = monitorValidation.validate(
{ [formName]: value },
{ abortEarly: false }
);
setErrors((prev) => ({
...prev,
...(error ? { [formName]: error.details[0].message } : { [formName]: undefined }),
}));
};
const handleNotifications = (event, type) => {
const { value } = event.target;
let notifications = [...monitor.notifications];
const notificationExists = notifications.some((notification) => {
if (notification.type === type && notification.address === value) {
return true;
}
return false;
});
if (notificationExists) {
notifications = notifications.filter((notification) => {
if (notification.type === type && notification.address === value) {
return false;
}
return true;
});
} else {
notifications.push({ type, address: value });
}
setMonitor((prev) => ({
...prev,
notifications,
}));
};
useEffect(() => {
const fetchMonitor = async () => {
if (monitorId) {
const action = await dispatch(getUptimeMonitorById({ authToken, monitorId }));
if (action.payload.success) {
const data = action.payload.data;
const { name, ...rest } = data; //data.name is read-only
if (rest.type === "http") {
const url = new URL(rest.url);
rest.url = url.host;
}
rest.name = `${name} (Clone)`;
rest.interval /= MS_PER_MINUTE;
setMonitor({
...rest,
});
} else {
navigate("/not-found", { replace: true });
createToast({
body: "There was an error cloning the monitor.",
});
}
}
};
fetchMonitor();
}, [monitorId, authToken, monitors, dispatch, navigate]);
return (
<Box className="create-monitor">
<Breadcrumbs list={crumbs} />
<Stack
component="form"
gap={theme.spacing(12)}
mt={theme.spacing(6)}
onSubmit={handleCreateMonitor}
>
<Typography
component="h1"
variant="h1"
>
<Typography
component="span"
fontSize="inherit"
>
Create your{" "}
</Typography>
<Typography
component="span"
variant="h2"
fontSize="inherit"
fontWeight="inherit"
>
monitor
</Typography>
</Typography>
<ConfigBox>
<Box>
<Typography component="h2">General settings</Typography>
<Typography component="p">
Here you can select the URL of the host, together with the type of monitor.
</Typography>
</Box>
<Stack gap={theme.spacing(15)}>
<TextInput
type={monitor.type === "http" ? "url" : "text"}
id="monitor-url"
startAdornment={
monitor.type === "http" ? <HttpAdornment https={https} /> : null
}
label={monitorTypeMaps[monitor.type].label || "URL to monitor"}
https={https}
placeholder={monitorTypeMaps[monitor.type].placeholder || ""}
value={monitor.url}
onChange={(event) => handleChange(event, "url")}
error={errors["url"] ? true : false}
helperText={errors["url"]}
/>
<TextInput
type="text"
id="monitor-name"
label="Display name"
isOptional={true}
value={monitor.name}
onChange={(event) => handleChange(event, "name")}
error={errors["name"] ? true : false}
helperText={errors["name"]}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Checks to perform</Typography>
<Typography component="p">
You can always add or remove checks after adding your site.
</Typography>
</Box>
<Stack gap={theme.spacing(12)}>
<Stack gap={theme.spacing(6)}>
<Radio
id="monitor-checks-http"
title="Website monitoring"
desc="Use HTTP(s) to monitor your website or API endpoint."
size="small"
value="http"
checked={monitor.type === "http"}
onChange={(event) => handleChange(event, "type")}
/>
{monitor.type === "http" ? (
<ButtonGroup sx={{ ml: theme.spacing(16) }}>
<Button
variant="group"
filled={https.toString()}
onClick={() => setHttps(true)}
>
HTTPS
</Button>
<Button
variant="group"
filled={(!https).toString()}
onClick={() => setHttps(false)}
>
HTTP
</Button>
</ButtonGroup>
) : (
""
)}
</Stack>
<Radio
id="monitor-checks-ping"
title="Ping monitoring"
desc="Check whether your server is available or not."
size="small"
value="ping"
checked={monitor.type === "ping"}
onChange={(event) => handleChange(event, "type")}
/>
<Radio
id="monitor-checks-docker"
title="Docker container monitoring"
desc="Check whether your container is running or not."
size="small"
value="docker"
checked={monitor.type === "docker"}
onChange={(event) => handleChange(event, "type")}
/>
{errors["type"] ? (
<Box className="error-container">
<Typography
component="p"
className="input-error"
color={theme.palette.error.contrastText}
>
{errors["type"]}
</Typography>
</Box>
) : (
""
)}
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Incident notifications</Typography>
<Typography component="p">
When there is an incident, notify users.
</Typography>
</Box>
<Stack gap={theme.spacing(6)}>
<Checkbox
id="notify-email-default"
label={`Notify via email (to ${user.email})`}
isChecked={monitor.notifications.some(
(notification) => notification.type === "email"
)}
value={user?.email}
onChange={(event) => handleNotifications(event, "email")}
/>
</Stack>
</ConfigBox>
<ConfigBox>
<Box>
<Typography component="h2">Advanced settings</Typography>
</Box>
<Stack gap={theme.spacing(12)}>
<Select
id="monitor-interval"
label="Check frequency"
value={monitor.interval || 1}
onChange={(event) => handleChange(event, "interval")}
items={SELECT_VALUES}
/>
</Stack>
</ConfigBox>
<Stack
direction="row"
justifyContent="flex-end"
>
<LoadingButton
variant="contained"
color="primary"
onClick={handleCreateMonitor}
disabled={!Object.values(errors).every((value) => value === undefined)}
loading={isLoading}
>
Create monitor
</LoadingButton>
</Stack>
</Stack>
</Box>
);
};
export default CreateMonitor;
@@ -1,346 +0,0 @@
import { useTheme } from "@emotion/react";
import PropTypes from "prop-types";
import {
BarChart,
Bar,
XAxis,
ResponsiveContainer,
Cell,
RadialBarChart,
RadialBar,
} from "recharts";
import { memo, useMemo, useState } from "react";
import { useSelector } from "react-redux";
import { formatDateWithTz } from "../../../../Utils/timeUtils";
const CustomLabels = ({ x, width, height, firstDataPoint, lastDataPoint, type }) => {
const uiTimezone = useSelector((state) => state.ui.timezone);
const dateFormat = type === "day" ? "MMM D, h:mm A" : "MMM D";
return (
<>
<text
x={x}
y={height}
dy={-3}
textAnchor="start"
fontSize={11}
>
{formatDateWithTz(new Date(firstDataPoint.time), dateFormat, uiTimezone)}
</text>
<text
x={width}
y={height}
dy={-3}
textAnchor="end"
fontSize={11}
>
{formatDateWithTz(new Date(lastDataPoint.time), dateFormat, uiTimezone)}
</text>
</>
);
};
CustomLabels.propTypes = {
x: PropTypes.number.isRequired,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
firstDataPoint: PropTypes.object.isRequired,
lastDataPoint: PropTypes.object.isRequired,
type: PropTypes.string.isRequired,
};
const UpBarChart = memo(({ data, type, onBarHover }) => {
const theme = useTheme();
const [chartHovered, setChartHovered] = useState(false);
const [hoveredBarIndex, setHoveredBarIndex] = useState(null);
const getColorRange = (uptime) => {
return uptime > 80
? { main: theme.palette.success.main, light: theme.palette.success.light }
: uptime > 50
? { main: theme.palette.warning.main, light: theme.palette.warning.light }
: { main: theme.palette.error.contrastText, light: theme.palette.error.light };
};
// TODO - REMOVE THIS LATER
const reversedData = useMemo(() => [...data].reverse(), [data]);
return (
<ResponsiveContainer
width="100%"
minWidth={210}
height={155}
>
<BarChart
width="100%"
height="100%"
data={reversedData}
onMouseEnter={() => {
setChartHovered(true);
onBarHover({ time: null, totalChecks: 0, uptimePercentage: 0 });
}}
onMouseLeave={() => {
setChartHovered(false);
setHoveredBarIndex(null);
onBarHover(null);
}}
>
<XAxis
stroke={theme.palette.border.dark}
height={15}
tick={false}
label={
<CustomLabels
x={0}
y={0}
width="100%"
height="100%"
firstDataPoint={reversedData[0]}
lastDataPoint={reversedData[reversedData.length - 1]}
type={type}
/>
}
/>
<Bar
dataKey="totalChecks"
maxBarSize={7}
background={{ fill: "transparent" }}
>
{reversedData.map((entry, index) => {
let { main, light } = getColorRange(entry.uptimePercentage);
return (
<Cell
key={`cell-${entry.time}`}
fill={hoveredBarIndex === index ? main : chartHovered ? light : main}
onMouseEnter={() => {
setHoveredBarIndex(index);
onBarHover(entry);
}}
onMouseLeave={() => {
setHoveredBarIndex(null);
onBarHover({
time: null,
totalChecks: 0,
uptimePercentage: 0,
});
}}
/>
);
})}
</Bar>
</BarChart>
</ResponsiveContainer>
);
});
// Add display name for the component
UpBarChart.displayName = "UpBarChart";
// Validate props using PropTypes
UpBarChart.propTypes = {
data: PropTypes.arrayOf(PropTypes.object),
type: PropTypes.string,
onBarHover: PropTypes.func,
};
export { UpBarChart };
const DownBarChart = memo(({ data, type, onBarHover }) => {
const theme = useTheme();
const [chartHovered, setChartHovered] = useState(false);
const [hoveredBarIndex, setHoveredBarIndex] = useState(null);
// TODO - REMOVE THIS LATER
const reversedData = useMemo(() => [...data].reverse(), [data]);
return (
<ResponsiveContainer
width="100%"
minWidth={250}
height={155}
>
<BarChart
width="100%"
height="100%"
data={reversedData}
onMouseEnter={() => {
setChartHovered(true);
onBarHover({ time: null, totalIncidents: 0 });
}}
onMouseLeave={() => {
setChartHovered(false);
setHoveredBarIndex(null);
onBarHover(null);
}}
>
<XAxis
stroke={theme.palette.border.dark}
height={15}
tick={false}
label={
<CustomLabels
x={0}
y={0}
width="100%"
height="100%"
firstDataPoint={reversedData[0]}
lastDataPoint={reversedData[reversedData.length - 1]}
type={type}
/>
}
/>
<Bar
dataKey="totalIncidents"
maxBarSize={7}
background={{ fill: "transparent" }}
>
{reversedData.map((entry, index) => (
<Cell
key={`cell-${entry.time}`}
fill={
hoveredBarIndex === index
? theme.palette.error.contrastText
: chartHovered
? theme.palette.error.light
: theme.palette.error.contrastText
}
onMouseEnter={() => {
setHoveredBarIndex(index);
onBarHover(entry);
}}
onMouseLeave={() => {
setHoveredBarIndex(null);
onBarHover({ time: null, totalIncidents: 0 });
}}
/>
))}
</Bar>
</BarChart>
</ResponsiveContainer>
);
});
DownBarChart.displayName = "DownBarChart";
DownBarChart.propTypes = {
data: PropTypes.arrayOf(PropTypes.object),
type: PropTypes.string,
onBarHover: PropTypes.func,
};
export { DownBarChart };
const ResponseGaugeChart = ({ data }) => {
const theme = useTheme();
let max = 1000; // max ms
const memoizedData = useMemo(
() => [{ response: max, fill: "transparent", background: false }, ...data],
[data[0].response]
);
let responseTime = Math.floor(memoizedData[1].response);
let responseProps =
responseTime <= 200
? {
category: "Excellent",
main: theme.palette.success.main,
bg: theme.palette.success.contrastText,
}
: responseTime <= 500
? {
category: "Fair",
main: theme.palette.success.main,
bg: theme.palette.success.contrastText,
}
: responseTime <= 600
? {
category: "Acceptable",
main: theme.palette.warning.main,
bg: theme.palette.warning.dark,
}
: {
category: "Poor",
main: theme.palette.error.light,
bg: theme.palette.error.dark,
};
return (
<ResponsiveContainer
width="100%"
minWidth={210}
height={155}
>
<RadialBarChart
width="100%"
height="100%"
cy="89%"
data={memoizedData}
startAngle={180}
endAngle={0}
innerRadius={100}
outerRadius={150}
>
<text
x={0}
y="100%"
dx="5%"
dy={-2}
textAnchor="start"
fontSize={11}
>
low
</text>
<text
x="100%"
y="100%"
dx="-3%"
dy={-2}
textAnchor="end"
fontSize={11}
>
high
</text>
<text
x="50%"
y="45%"
textAnchor="middle"
dominantBaseline="middle"
fontSize={18}
fontWeight={400}
>
{responseProps.category}
</text>
<text
x="50%"
y="55%"
textAnchor="middle"
dominantBaseline="hanging"
fontSize={25}
>
<tspan fontWeight={600}>{responseTime}</tspan> <tspan opacity={0.8}>ms</tspan>
</text>
<RadialBar
background={{ fill: responseProps.bg }}
clockWise
dataKey="response"
stroke="none"
>
<Cell
fill="transparent"
background={false}
barSize={0}
/>
<Cell fill={responseProps.main} />
</RadialBar>
</RadialBarChart>
</ResponsiveContainer>
);
};
ResponseGaugeChart.propTypes = {
data: PropTypes.arrayOf(PropTypes.object).isRequired,
};
export { ResponseGaugeChart };
@@ -1,146 +0,0 @@
import PropTypes from "prop-types";
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
PaginationItem,
Pagination,
Paper,
} from "@mui/material";
import { useState, useEffect } from "react";
import { useSelector } from "react-redux";
import { networkService } from "../../../../main";
import { StatusLabel } from "../../../../Components/Label";
import ArrowBackRoundedIcon from "@mui/icons-material/ArrowBackRounded";
import ArrowForwardRoundedIcon from "@mui/icons-material/ArrowForwardRounded";
import { logger } from "../../../../Utils/Logger";
import { formatDateWithTz } from "../../../../Utils/timeUtils";
const PaginationTable = ({ monitorId, dateRange }) => {
const { authToken } = useSelector((state) => state.auth);
const [checks, setChecks] = useState([]);
const [checksCount, setChecksCount] = useState(0);
const [paginationController, setPaginationController] = useState({
page: 0,
rowsPerPage: 5,
});
const uiTimezone = useSelector((state) => state.ui.timezone);
useEffect(() => {
setPaginationController((prevPaginationController) => ({
...prevPaginationController,
page: 0,
}));
}, [dateRange]);
useEffect(() => {
const fetchPage = async () => {
try {
const res = await networkService.getChecksByMonitor({
authToken: authToken,
monitorId: monitorId,
sortOrder: "desc",
limit: null,
dateRange: dateRange,
filter: null,
page: paginationController.page,
rowsPerPage: paginationController.rowsPerPage,
});
setChecks(res.data.data.checks);
setChecksCount(res.data.data.checksCount);
} catch (error) {
logger.error(error);
}
};
fetchPage();
}, [
authToken,
monitorId,
dateRange,
paginationController.page,
paginationController.rowsPerPage,
]);
const handlePageChange = (_, newPage) => {
setPaginationController({
...paginationController,
page: newPage - 1, // 0-indexed
});
};
let paginationComponent = <></>;
if (checksCount > paginationController.rowsPerPage) {
paginationComponent = (
<Pagination
count={Math.ceil(checksCount / paginationController.rowsPerPage)}
page={paginationController.page + 1} //0-indexed
onChange={handlePageChange}
shape="rounded"
renderItem={(item) => (
<PaginationItem
slots={{
previous: ArrowBackRoundedIcon,
next: ArrowForwardRoundedIcon,
}}
{...item}
/>
)}
/>
);
}
return (
<>
<TableContainer component={Paper}>
<Table>
<TableHead>
<TableRow>
<TableCell>Status</TableCell>
<TableCell>Date & Time</TableCell>
<TableCell>Status Code</TableCell>
<TableCell>Message</TableCell>
</TableRow>
</TableHead>
<TableBody>
{checks.map((check) => {
const status = check.status === true ? "up" : "down";
return (
<TableRow key={check._id}>
<TableCell>
<StatusLabel
status={status}
text={status}
customStyles={{ textTransform: "capitalize" }}
/>
</TableCell>
<TableCell>
{formatDateWithTz(
check.createdAt,
"ddd, MMMM D, YYYY, HH:mm A",
uiTimezone
)}
</TableCell>
<TableCell>{check.statusCode ? check.statusCode : "N/A"}</TableCell>
<TableCell>{check.message}</TableCell>
</TableRow>
);
})}
</TableBody>
</Table>
</TableContainer>
{paginationComponent}
</>
);
};
PaginationTable.propTypes = {
monitorId: PropTypes.string.isRequired,
dateRange: PropTypes.string.isRequired,
};
export default PaginationTable;
Whitespace-only changes.
-495
View File
@@ -1,495 +0,0 @@
import PropTypes from "prop-types";
import { useEffect, useState, useCallback } from "react";
import {
Box,
Button,
Popover,
Stack,
Tooltip,
Typography,
useTheme,
} from "@mui/material";
import { useSelector } from "react-redux";
import { useNavigate, useParams } from "react-router-dom";
import { networkService } from "../../../main";
import { logger } from "../../../Utils/Logger";
import { formatDurationRounded, formatDurationSplit } from "../../../Utils/timeUtils";
import MonitorDetailsAreaChart from "../../../Components/Charts/MonitorDetailsAreaChart";
import ButtonGroup from "@mui/material/ButtonGroup";
import SettingsIcon from "../../../assets/icons/settings-bold.svg?react";
import CertificateIcon from "../../../assets/icons/certificate.svg?react";
import UptimeIcon from "../../../assets/icons/uptime-icon.svg?react";
import ResponseTimeIcon from "../../../assets/icons/response-time-icon.svg?react";
import AverageResponseIcon from "../../../assets/icons/average-response-icon.svg?react";
import IncidentsIcon from "../../../assets/icons/incidents.svg?react";
import HistoryIcon from "../../../assets/icons/history-icon.svg?react";
import PaginationTable from "./PaginationTable";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import PulseDot from "../../../Components/Animated/PulseDot";
import { ChartBox } from "./styled";
import { DownBarChart, ResponseGaugeChart, UpBarChart } from "./Charts";
import SkeletonLayout from "./skeleton";
import "./index.css";
import useUtils from "../utils";
import { formatDateWithTz } from "../../../Utils/timeUtils";
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
import IconBox from "../../../Components/IconBox";
import StatBox from "../../../Components/StatBox";
/**
* Details page component displaying monitor details and related information.
* @component
*/
const DetailsPage = () => {
const theme = useTheme();
const { statusColor, statusStyles, statusMsg, determineState } = useUtils();
const isAdmin = useIsAdmin();
const [monitor, setMonitor] = useState({});
const { monitorId } = useParams();
const { authToken } = useSelector((state) => state.auth);
const [dateRange, setDateRange] = useState("day");
const [certificateExpiry, setCertificateExpiry] = useState("N/A");
const navigate = useNavigate();
const [anchorEl, setAnchorEl] = useState(null);
const openCertificate = (event) => {
setAnchorEl(event.currentTarget);
};
const closeCertificate = () => {
setAnchorEl(null);
};
const dateFormat = dateRange === "day" ? "MMM D, h A" : "MMM D";
const uiTimezone = useSelector((state) => state.ui.timezone);
const fetchMonitor = useCallback(async () => {
try {
const res = await networkService.getStatsByMonitorId({
authToken: authToken,
monitorId: monitorId,
sortOrder: null,
limit: null,
dateRange: dateRange,
numToDisplay: 50,
normalize: true,
});
setMonitor(res?.data?.data ?? {});
} catch (error) {
logger.error(error);
navigate("/not-found", { replace: true });
}
}, [authToken, monitorId, navigate, dateRange]);
useEffect(() => {
fetchMonitor();
}, [fetchMonitor]);
useEffect(() => {
const fetchCertificate = async () => {
if (monitor?.type !== "http") {
return;
}
try {
const res = await networkService.getCertificateExpiry({
authToken: authToken,
monitorId: monitorId,
});
if (res?.data?.data?.certificateDate) {
const date = res.data.data.certificateDate;
setCertificateExpiry(formatDateWithTz(date, dateFormat, uiTimezone) ?? "N/A");
}
} catch (error) {
setCertificateExpiry("N/A");
console.error(error);
}
};
fetchCertificate();
}, [authToken, monitorId, monitor, uiTimezone, dateFormat]);
const splitDuration = (duration) => {
const { time, format } = formatDurationSplit(duration);
return (
<>
{time}
<Typography component="span">{format}</Typography>
</>
);
};
let loading = Object.keys(monitor).length === 0;
const [hoveredUptimeData, setHoveredUptimeData] = useState(null);
const [hoveredIncidentsData, setHoveredIncidentsData] = useState(null);
const BREADCRUMBS = [
{ name: "uptime", path: "/uptime" },
{ name: "details", path: `/uptime/${monitorId}` },
];
return (
<Box className="monitor-details">
{loading ? (
<SkeletonLayout />
) : (
<>
<Breadcrumbs list={BREADCRUMBS} />
<Stack
gap={theme.spacing(10)}
mt={theme.spacing(10)}
>
<Stack
direction="row"
gap={theme.spacing(2)}
>
<Box>
<Typography
component="h1"
variant="h1"
>
{monitor.name}
</Typography>
<Stack
direction="row"
alignItems="center"
height="fit-content"
gap={theme.spacing(2)}
>
<Tooltip
title={statusMsg[determineState(monitor)]}
disableInteractive
slotProps={{
popper: {
modifiers: [
{
name: "offset",
options: {
offset: [0, -8],
},
},
],
},
}}
>
<Box>
<PulseDot color={statusColor[determineState(monitor)]} />
</Box>
</Tooltip>
<Typography
component="h2"
variant="h2"
>
{monitor.url?.replace(/^https?:\/\//, "") || "..."}
</Typography>
<Typography
position="relative"
variant="body2"
mt={theme.spacing(1)}
ml={theme.spacing(6)}
sx={{
"&:before": {
position: "absolute",
content: `""`,
width: 4,
height: 4,
borderRadius: "50%",
backgroundColor: theme.palette.text.tertiary,
opacity: 0.8,
left: -9,
top: "50%",
transform: "translateY(-50%)",
},
}}
>
Checking every {formatDurationRounded(monitor?.interval)}.
</Typography>
</Stack>
</Box>
<Stack
direction="row"
height={34}
sx={{
ml: "auto",
alignSelf: "flex-end",
}}
>
<IconBox
mr={theme.spacing(4)}
onClick={openCertificate}
sx={{
cursor: "pointer",
"& svg": {
width: 23,
height: 23,
top: "52%",
},
}}
>
<CertificateIcon />
</IconBox>
<Popover
id="certificate-dropdown"
anchorEl={anchorEl}
open={Boolean(anchorEl)}
onClose={closeCertificate}
disableScrollLock
marginThreshold={null}
anchorOrigin={{
vertical: "bottom",
horizontal: "center",
}}
transformOrigin={{
vertical: "top",
horizontal: "center",
}}
slotProps={{
paper: {
sx: {
mt: theme.spacing(4),
py: theme.spacing(2),
px: theme.spacing(4),
width: 140,
backgroundColor: theme.palette.background.accent,
},
},
}}
>
<Typography variant="body2">Certificate Expiry</Typography>
<Typography
component="span"
fontSize={13}
color={theme.palette.text.primary}
>
{certificateExpiry}
</Typography>
</Popover>
{isAdmin && (
<Button
variant="contained"
color="secondary"
onClick={() => navigate(`/uptime/configure/${monitorId}`)}
sx={{
px: theme.spacing(5),
"& svg": {
mr: theme.spacing(3),
"& path": {
stroke: theme.palette.text.tertiary,
},
},
}}
>
<SettingsIcon /> Configure
</Button>
)}
</Stack>
</Stack>
<Stack
direction="row"
gap={theme.spacing(8)}
>
<StatBox
sx={statusStyles[determineState(monitor)]}
heading={"active for"}
subHeading={splitDuration(monitor?.uptimeDuration)}
/>
<StatBox
heading="last check"
subHeading={splitDuration(monitor?.lastChecked)}
/>
<StatBox
heading="last response time"
subHeading={
<>
{monitor?.latestResponseTime}
<Typography component="span">{"ms"}</Typography>
</>
}
/>
</Stack>
<Box>
<Stack
direction="row"
justifyContent="space-between"
alignItems="flex-end"
gap={theme.spacing(4)}
mb={theme.spacing(8)}
>
<Typography variant="body2">
Showing statistics for past{" "}
{dateRange === "day"
? "24 hours"
: dateRange === "week"
? "7 days"
: "30 days"}
.
</Typography>
<ButtonGroup sx={{ height: 32 }}>
<Button
variant="group"
filled={(dateRange === "day").toString()}
onClick={() => setDateRange("day")}
>
Day
</Button>
<Button
variant="group"
filled={(dateRange === "week").toString()}
onClick={() => setDateRange("week")}
>
Week
</Button>
<Button
variant="group"
filled={(dateRange === "month").toString()}
onClick={() => setDateRange("month")}
>
Month
</Button>
</ButtonGroup>
</Stack>
<Stack
direction="row"
flexWrap="wrap"
gap={theme.spacing(8)}
>
<ChartBox>
<Stack>
<IconBox>
<UptimeIcon />
</IconBox>
<Typography component="h2">Uptime</Typography>
</Stack>
<Stack justifyContent="space-between">
<Box position="relative">
<Typography>Total Checks</Typography>
<Typography component="span">
{hoveredUptimeData !== null
? hoveredUptimeData.totalChecks
: monitor?.periodTotalChecks}
</Typography>
{hoveredUptimeData !== null && hoveredUptimeData.time !== null && (
<Typography
component="h5"
position="absolute"
top="100%"
fontSize={11}
color={theme.palette.text.tertiary}
>
{formatDateWithTz(
hoveredUptimeData.time,
dateFormat,
uiTimezone
)}
</Typography>
)}
</Box>
<Box>
<Typography>Uptime Percentage</Typography>
<Typography component="span">
{hoveredUptimeData !== null
? Math.floor(hoveredUptimeData.uptimePercentage * 10) / 10
: Math.floor(monitor?.periodUptime * 10) / 10}
<Typography component="span">%</Typography>
</Typography>
</Box>
</Stack>
<UpBarChart
data={monitor?.aggregateData}
type={dateRange}
onBarHover={setHoveredUptimeData}
/>
</ChartBox>
<ChartBox>
<Stack>
<IconBox>
<IncidentsIcon />
</IconBox>
<Typography component="h2">Incidents</Typography>
</Stack>
<Box position="relative">
<Typography>Total Incidents</Typography>
<Typography component="span">
{hoveredIncidentsData !== null
? hoveredIncidentsData.totalIncidents
: monitor?.periodIncidents}
</Typography>
{hoveredIncidentsData !== null &&
hoveredIncidentsData.time !== null && (
<Typography
component="h5"
position="absolute"
top="100%"
fontSize={11}
color={theme.palette.text.tertiary}
>
{formatDateWithTz(
hoveredIncidentsData.time,
dateFormat,
uiTimezone
)}
</Typography>
)}
</Box>
<DownBarChart
data={monitor?.aggregateData}
type={dateRange}
onBarHover={setHoveredIncidentsData}
/>
</ChartBox>
<ChartBox justifyContent="space-between">
<Stack>
<IconBox>
<AverageResponseIcon />
</IconBox>
<Typography component="h2">Average Response Time</Typography>
</Stack>
<ResponseGaugeChart
data={[{ response: monitor?.periodAvgResponseTime }]}
/>
</ChartBox>
<ChartBox sx={{ padding: 0 }}>
<Stack
pt={theme.spacing(8)}
pl={theme.spacing(8)}
>
<IconBox>
<ResponseTimeIcon />
</IconBox>
<Typography component="h2">Response Times</Typography>
</Stack>
<MonitorDetailsAreaChart checks={[...monitor.checks].reverse()} />
</ChartBox>
<ChartBox
gap={theme.spacing(8)}
sx={{
flex: "100%",
height: "fit-content",
"& nav": { mt: theme.spacing(12) },
}}
>
<Stack mb={theme.spacing(8)}>
<IconBox>
<HistoryIcon />
</IconBox>
<Typography
component="h2"
color={theme.palette.text.secondary}
>
History
</Typography>
</Stack>
<PaginationTable
monitorId={monitorId}
dateRange={dateRange}
/>
</ChartBox>
</Stack>
</Box>
</Stack>
</>
)}
</Box>
);
};
DetailsPage.propTypes = {
isAdmin: PropTypes.bool,
};
export default DetailsPage;
@@ -1,120 +0,0 @@
import { Box, Skeleton, Stack, useTheme } from "@mui/material";
/**
* Renders a skeleton layout.
*
* @returns {JSX.Element}
*/
const SkeletonLayout = () => {
const theme = useTheme();
return (
<>
<Skeleton
variant="rounded"
width="20%"
height={34}
/>
<Stack
gap={theme.spacing(20)}
mt={theme.spacing(6)}
>
<Stack
direction="row"
gap={theme.spacing(4)}
mt={theme.spacing(4)}
>
<Skeleton
variant="circular"
style={{ minWidth: 24, minHeight: 24 }}
/>
<Box width="80%">
<Skeleton
variant="rounded"
width="50%"
height={24}
/>
<Skeleton
variant="rounded"
width="50%"
height={18}
sx={{ mt: theme.spacing(4) }}
/>
</Box>
<Skeleton
variant="rounded"
width="20%"
height={34}
sx={{ alignSelf: "flex-end" }}
/>
</Stack>
<Stack
direction="row"
justifyContent="space-between"
gap={theme.spacing(12)}
>
<Skeleton
variant="rounded"
width="100%"
height={80}
/>
<Skeleton
variant="rounded"
width="100%"
height={80}
/>
<Skeleton
variant="rounded"
width="100%"
height={80}
/>
</Stack>
<Box>
<Stack
direction="row"
justifyContent="space-between"
mb={theme.spacing(8)}
>
<Skeleton
variant="rounded"
width="20%"
height={24}
sx={{ alignSelf: "flex-end" }}
/>
<Skeleton
variant="rounded"
width="20%"
height={34}
/>
</Stack>
<Box sx={{ height: "200px" }}>
<Skeleton
variant="rounded"
width="100%"
height="100%"
/>
</Box>
</Box>
<Stack gap={theme.spacing(8)}>
<Skeleton
variant="rounded"
width="20%"
height={24}
/>
<Skeleton
variant="rounded"
width="100%"
height={200}
/>
<Skeleton
variant="rounded"
width="100%"
height={50}
/>
</Stack>
</Stack>
</>
);
};
export default SkeletonLayout;
@@ -1,45 +0,0 @@
import { Stack, styled } from "@mui/material";
export const ChartBox = styled(Stack)(({ theme }) => ({
flex: "1 30%",
gap: theme.spacing(8),
height: 300,
minWidth: 250,
padding: theme.spacing(8),
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
backgroundColor: theme.palette.background.main,
"& h2": {
color: theme.palette.text.secondary,
fontSize: 15,
fontWeight: 500,
},
"& .MuiBox-root:not(.area-tooltip) p": {
color: theme.palette.text.tertiary,
fontSize: 13,
},
"& .MuiBox-root > span": {
color: theme.palette.text.primary,
fontSize: 20,
"& span": {
opacity: 0.8,
marginLeft: 2,
fontSize: 15,
},
},
"& .MuiStack-root": {
flexDirection: "row",
gap: theme.spacing(6),
},
"& .MuiStack-root:first-of-type": {
alignItems: "center",
},
"& tspan, & text": {
fill: theme.palette.text.tertiary,
},
"& path": {
transition: "fill 300ms ease, stroke-width 400ms ease",
},
}));
@@ -1,71 +0,0 @@
import { useTheme } from "@emotion/react";
import { Box, Stack } from "@mui/material";
import Search from "../../../../Components/Inputs/Search";
import MemoizedMonitorTable from "../UptimeTable";
import { useState } from "react";
import useDebounce from "../../../../Utils/debounce";
import PropTypes from "prop-types";
import { Heading } from "../../../../Components/Heading";
const CurrentMonitoring = ({ totalMonitors, monitors, isAdmin, handlePause }) => {
const theme = useTheme();
const [search, setSearch] = useState("");
const [isSearching, setIsSearching] = useState(false);
const debouncedFilter = useDebounce(search, 500);
const handleSearch = (value) => {
setIsSearching(true);
setSearch(value);
};
return (
<Box
flex={1}
py={theme.spacing(8)}
>
<Stack
direction="row"
alignItems="center"
mb={theme.spacing(8)}
>
<Heading component="h2">Uptime monitors</Heading>
<Box
className="current-monitors-counter"
color={theme.palette.text.primary}
border={1}
borderColor={theme.palette.border.light}
backgroundColor={theme.palette.background.accent}
>
{totalMonitors}
</Box>
<Box
width="25%"
minWidth={150}
ml="auto"
>
<Search
options={monitors}
filteredBy="name"
inputValue={search}
handleInputChange={handleSearch}
/>
</Box>
</Stack>
<MemoizedMonitorTable
isAdmin={isAdmin}
filter={debouncedFilter}
setIsSearching={setIsSearching}
isSearching={isSearching}
handlePause={handlePause}
/>
</Box>
);
};
CurrentMonitoring.propTypes = {
handlePause: PropTypes.func,
totalMonitors: PropTypes.number,
monitors: PropTypes.array,
isAdmin: PropTypes.bool,
};
export { CurrentMonitoring };
-111
View File
@@ -1,111 +0,0 @@
import PropTypes from "prop-types";
import { useTheme } from "@emotion/react";
import { Box, Stack, Typography } from "@mui/material";
import Arrow from "../../../assets/icons/top-right-arrow.svg?react";
import Background from "../../../assets/Images/background-grid.svg?react";
import ClockSnooze from "../../../assets/icons/clock-snooze.svg?react";
const StatusBox = ({ title, value }) => {
const theme = useTheme();
let sharedStyles = {
position: "absolute",
right: 8,
opacity: 0.5,
"& svg path": { stroke: theme.palette.other.icon },
};
let color;
let icon;
if (title === "up") {
color = theme.palette.success.main;
icon = (
<Box sx={{ ...sharedStyles, top: 8 }}>
<Arrow />
</Box>
);
} else if (title === "down") {
color = theme.palette.error.main;
icon = (
<Box sx={{ ...sharedStyles, transform: "rotate(180deg)", top: 5 }}>
<Arrow />
</Box>
);
} else if (title === "paused") {
color = theme.palette.warning.main;
icon = (
<Box sx={{ ...sharedStyles, top: 12, right: 12 }}>
<ClockSnooze />
</Box>
);
}
return (
<Box
position="relative"
flex={1}
border={1}
borderColor={theme.palette.border.light}
borderRadius={theme.shape.borderRadius}
backgroundColor={theme.palette.background.main}
p={theme.spacing(8)}
overflow="hidden"
sx={{
"&:hover": {
backgroundColor: theme.palette.background.accent,
},
}}
>
<Box
sx={{
position: "absolute",
top: "-10%",
left: "5%",
pointerEvents: "none",
"& svg g g:last-of-type path": {
stroke: theme.palette.other.grid,
},
}}
>
<Background />
</Box>
<Box
textTransform="uppercase"
fontSize={15}
letterSpacing={0.5}
color={theme.palette.text.secondary}
mb={theme.spacing(8)}
sx={{ opacity: 0.6 }}
>
{title}
</Box>
{icon}
<Stack
direction="row"
alignItems="flex-start"
fontSize={36}
fontWeight={600}
color={color}
gap="2px"
>
{value}
<Typography
component="span"
fontSize={20}
fontWeight={300}
color={theme.palette.text.secondary}
sx={{ opacity: 0.3 }}
>
#
</Typography>
</Stack>
</Box>
);
};
StatusBox.propTypes = {
title: PropTypes.oneOf(["up", "down", "paused"]).isRequired,
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
};
export default StatusBox;
@@ -1,32 +0,0 @@
import { Skeleton, TableCell, TableRow } from "@mui/material";
const ROWS_NUMBER = 7;
const ROWS_ARRAY = Array.from({ length: ROWS_NUMBER }, (_, i) => i);
const TableBodySkeleton = () => {
/* TODO Skeleton does not follow light and dark theme */
return (
<>
{ROWS_ARRAY.map((row) => (
<TableRow key={row}>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
<TableCell>
<Skeleton />
</TableCell>
</TableRow>
))}
</>
);
};
export { TableBodySkeleton };
@@ -1,336 +0,0 @@
import PropTypes from "prop-types";
import { useState, useEffect, memo, useCallback, useRef } from "react";
import { useNavigate } from "react-router";
import { useDispatch, useSelector } from "react-redux";
import { useTheme } from "@emotion/react";
import useUtils from "../../utils";
import { setRowsPerPage } from "../../../../Features/UI/uiSlice";
import { logger } from "../../../../Utils/Logger";
import { jwtDecode } from "jwt-decode";
import { networkService } from "../../../../main";
import {
TableContainer,
Table,
TableHead,
TableRow,
TableCell,
TableBody,
Paper,
Box,
CircularProgress,
} from "@mui/material";
import ActionsMenu from "../actionsMenu";
import Host from "../host";
import { StatusLabel } from "../../../../Components/Label";
import { TableBodySkeleton } from "./Skeleton";
import BarChart from "../../../../Components/Charts/BarChart";
import ArrowDownwardRoundedIcon from "@mui/icons-material/ArrowDownwardRounded";
import ArrowUpwardRoundedIcon from "@mui/icons-material/ArrowUpwardRounded";
import { Pagination } from "../../../Infrastructure/components/TablePagination";
const MonitorTable = ({ isAdmin, filter, setIsSearching, isSearching, handlePause }) => {
const theme = useTheme();
const navigate = useNavigate();
const dispatch = useDispatch();
const { determineState } = useUtils();
const { rowsPerPage } = useSelector((state) => state.ui.monitors);
const authState = useSelector((state) => state.auth);
const [page, setPage] = useState(0);
const [monitors, setMonitors] = useState([]);
const [monitorCount, setMonitorCount] = useState(0);
const [updateTrigger, setUpdateTrigger] = useState(false);
const [sort, setSort] = useState({});
const prevFilter = useRef(filter);
const handleRowUpdate = () => {
setUpdateTrigger((prev) => !prev);
};
const handleChangePage = (event, newPage) => {
setPage(newPage);
};
const handleChangeRowsPerPage = (event) => {
dispatch(
setRowsPerPage({
value: parseInt(event.target.value, 10),
table: "monitors",
})
);
setPage(0);
};
const fetchPage = useCallback(async () => {
try {
const { authToken } = authState;
const user = jwtDecode(authToken);
const res = await networkService.getMonitorsByTeamId({
authToken,
teamId: user.teamId,
limit: 25,
types: ["http", "ping", "docker"],
status: null,
checkOrder: "desc",
normalize: true,
page: page,
rowsPerPage: rowsPerPage,
filter: filter,
field: sort.field,
order: sort.order,
});
setMonitors(res?.data?.data?.monitors ?? []);
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
} catch (error) {
logger.error(error);
} finally {
setIsSearching(false);
}
}, [authState, page, rowsPerPage, filter, sort, setIsSearching]);
useEffect(() => {
fetchPage();
}, [
updateTrigger,
authState,
page,
rowsPerPage,
filter,
sort,
setIsSearching,
fetchPage,
]);
// Listen for changes in filter, if new value reset the page
useEffect(() => {
if (prevFilter.current !== filter) {
setPage(0);
fetchPage();
}
prevFilter.current = filter;
}, [filter, fetchPage]);
const handleSort = async (field) => {
let order = "";
if (sort.field !== field) {
order = "desc";
} else {
order = sort.order === "asc" ? "desc" : "asc";
}
setSort({ field, order });
const { authToken } = authState;
const user = jwtDecode(authToken);
const res = await networkService.getMonitorsByTeamId({
authToken,
teamId: user.teamId,
limit: 25,
types: ["http", "ping"],
status: null,
checkOrder: "desc",
normalize: true,
page: page,
rowsPerPage: rowsPerPage,
filter: null,
field: field,
order: order,
});
setMonitors(res?.data?.data?.monitors ?? []);
setMonitorCount(res?.data?.data?.monitorCount ?? 0);
};
/* TODO Apply component basic table? */
return (
<Box position="relative">
{isSearching && (
<>
<Box
width="100%"
height="100%"
position="absolute"
sx={{
backgroundColor: theme.palette.background.main,
opacity: 0.8,
zIndex: 100,
}}
/>
<Box
height="100%"
position="absolute"
top="20%"
left="50%"
sx={{
transform: "translateX(-50%)",
zIndex: 101,
}}
>
<CircularProgress
sx={{
color: theme.palette.other.icon,
}}
/>
</Box>
</>
)}
<TableContainer component={Paper}>
<Table>
<TableHead>
<TableRow>
<TableCell
sx={{ cursor: "pointer" }}
onClick={() => handleSort("name")}
>
<Box>
Host
<span
style={{
visibility: sort.field === "name" ? "visible" : "hidden",
}}
>
{sort.order === "asc" ? (
<ArrowUpwardRoundedIcon />
) : (
<ArrowDownwardRoundedIcon />
)}
</span>
</Box>
</TableCell>
<TableCell
sx={{ cursor: "pointer" }}
onClick={() => handleSort("status")}
>
{" "}
<Box width="max-content">
{" "}
Status
<span
style={{
visibility: sort.field === "status" ? "visible" : "hidden",
}}
>
{sort.order === "asc" ? (
<ArrowUpwardRoundedIcon />
) : (
<ArrowDownwardRoundedIcon />
)}
</span>
</Box>
</TableCell>
<TableCell>Response Time</TableCell>
<TableCell>Type</TableCell>
<TableCell>Actions</TableCell>
</TableRow>
</TableHead>
<TableBody>
{/* TODO add empty state. Check if is searching, and empty => skeleton. Is empty, not searching => skeleton */}
{monitors.length > 0 ? (
monitors.map((monitor) => {
let uptimePercentage = "";
let percentageColor = theme.palette.percentage.uptimeExcellent;
// Determine uptime percentage and color based on the monitor's uptimePercentage value
if (monitor.uptimePercentage !== undefined) {
uptimePercentage =
monitor.uptimePercentage === 0
? "0"
: (monitor.uptimePercentage * 100).toFixed(2);
percentageColor =
monitor.uptimePercentage < 0.25
? theme.palette.percentage.uptimePoor
: monitor.uptimePercentage < 0.5
? theme.palette.percentage.uptimeFair
: monitor.uptimePercentage < 0.75
? theme.palette.percentage.uptimeGood
: theme.palette.percentage.uptimeExcellent;
}
const params = {
url: monitor.url,
title: monitor.name,
percentage: uptimePercentage,
percentageColor,
status: determineState(monitor),
};
return (
<TableRow
key={monitor._id}
sx={{
cursor: "pointer",
"&:hover": {
filter: "brightness(.75)",
opacity: 0.75,
transition: "filter 0.3s ease, opacity 0.3s ease",
},
}}
onClick={() => {
navigate(`/uptime/${monitor._id}`);
}}
>
<TableCell>
<Host
key={monitor._id}
url={params.url}
title={params.title}
percentageColor={params.percentageColor}
percentage={params.percentage}
/>
</TableCell>
<TableCell>
<StatusLabel
status={params.status}
text={params.status}
customStyles={{ textTransform: "capitalize" }}
/>
</TableCell>
<TableCell>
<BarChart checks={monitor.checks.slice().reverse()} />
</TableCell>
<TableCell>
<span style={{ textTransform: "uppercase" }}>{monitor.type}</span>
</TableCell>
<TableCell>
<ActionsMenu
monitor={monitor}
isAdmin={isAdmin}
updateRowCallback={handleRowUpdate}
pauseCallback={handlePause}
/>
</TableCell>
</TableRow>
);
})
) : (
<TableBodySkeleton />
)}
</TableBody>
</Table>
</TableContainer>
<Pagination
monitorCount={monitorCount}
page={page}
rowsPerPage={rowsPerPage}
handleChangePage={handleChangePage}
handleChangeRowsPerPage={handleChangeRowsPerPage}
/>
</Box>
);
};
MonitorTable.propTypes = {
isAdmin: PropTypes.bool,
filter: PropTypes.string,
setIsSearching: PropTypes.func,
isSearching: PropTypes.bool,
setMonitorUpdateTrigger: PropTypes.func,
handlePause: PropTypes.func,
};
const MemoizedMonitorTable = memo(MonitorTable);
export default MemoizedMonitorTable;
-59
View File
@@ -1,59 +0,0 @@
import { Box, Button, Stack, Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router-dom";
import { useSelector } from "react-redux";
import PlaceholderLight from "../../../assets/Images/data_placeholder.svg?react";
import PlaceholderDark from "../../../assets/Images/data_placeholder_dark.svg?react";
import PropTypes from "prop-types";
const Fallback = ({ isAdmin }) => {
const theme = useTheme();
const navigate = useNavigate();
const mode = useSelector((state) => state.ui.mode);
return (
<Stack
alignItems="center"
backgroundColor={theme.palette.background.main}
p={theme.spacing(30)}
pt={theme.spacing(25)}
gap={theme.spacing(2)}
border={1}
borderRadius={theme.shape.borderRadius}
borderColor={theme.palette.border.light}
color={theme.palette.text.secondary}
>
<Box pb={theme.spacing(20)}>
{mode === "light" ? <PlaceholderLight /> : <PlaceholderDark />}
</Box>
<Typography
component="h2"
variant="h2"
fontWeight={500}
>
No monitors found to display
</Typography>
<Typography variant="body1">
It looks like you don’t have any monitors set up yet.
</Typography>
{isAdmin && (
<Button
variant="contained"
color="primary"
onClick={() => {
navigate("/uptime/create");
}}
sx={{ mt: theme.spacing(12) }}
>
Create your first monitor
</Button>
)}
</Stack>
);
};
Fallback.propTypes = {
isAdmin: PropTypes.bool,
};
export default Fallback;
-63
View File
@@ -1,63 +0,0 @@
import { Box, Typography } from "@mui/material";
import PropTypes from "prop-types";
/**
* Host component.
* This subcomponent receives a params object and displays the host details.
*
* @component
* @param {Object} params - An object containing the following properties:
* @param {string} params.url - The URL of the host.
* @param {string} params.title - The name of the host.
* @param {string} params.percentageColor - The color of the percentage text.
* @param {number} params.percentage - The percentage to display.
* @returns {React.ElementType} Returns a div element with the host details.
*/
const Host = ({ url, title, percentageColor, percentage }) => {
const noTitle = title === undefined || title === url;
return (
<Box className="host">
<Box
display="inline-block"
position="relative"
sx={{
fontWeight: 500,
"&:before": {
position: "absolute",
content: `""`,
width: "4px",
height: "4px",
borderRadius: "50%",
backgroundColor: "gray",
opacity: 0.8,
right: "-10px",
top: "42%",
},
}}
>
{title}
</Box>
{percentageColor && percentage && (
<Typography
component="span"
sx={{
color: percentageColor,
fontWeight: 500,
ml: "15px",
}}
>
{percentage}%
</Typography>
)}
{!noTitle && <Box sx={{ opacity: 0.6 }}>{url}</Box>}
</Box>
);
};
Host.propTypes = {
title: PropTypes.string,
percentageColor: PropTypes.string,
percentage: PropTypes.string,
url: PropTypes.string,
};
export default Host;
-20
View File
@@ -1,20 +0,0 @@
/* TODO take these from here and declare using emotion. Plus, the values should live in the theme */
.monitors .MuiStack-root > button:not(.MuiIconButton-root) {
font-size: var(--env-var-font-size-medium);
height: var(--env-var-height-2);
min-width: fit-content;
}
.current-monitors-counter {
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
min-width: 25px;
min-height: 25px;
border-radius: 50%;
font-size: var(--env-var-font-size-medium);
font-weight: 500;
margin-left: 10px;
line-height: 0.8;
}
-117
View File
@@ -1,117 +0,0 @@
import "./index.css";
import { useEffect, useState } from "react";
import { useSelector, useDispatch } from "react-redux";
import { getUptimeMonitorsByTeamId } from "../../../Features/UptimeMonitors/uptimeMonitorsSlice";
import { useNavigate } from "react-router-dom";
import { useTheme } from "@emotion/react";
import { Box, Button, Stack } from "@mui/material";
import PropTypes from "prop-types";
import SkeletonLayout from "./skeleton";
import Fallback from "./fallback";
import StatusBox from "./StatusBox";
import Breadcrumbs from "../../../Components/Breadcrumbs";
import Greeting from "../../../Utils/greeting";
import { CurrentMonitoring } from "./CurrentMonitoring";
import { useIsAdmin } from "../../../Hooks/useIsAdmin";
const BREADCRUMBS = [{ name: `Uptime`, path: "/uptime" }];
const UptimeMonitors = () => {
const theme = useTheme();
const navigate = useNavigate();
const isAdmin = useIsAdmin();
const uptimeMonitorsState = useSelector((state) => state.uptimeMonitors);
const authState = useSelector((state) => state.auth);
const dispatch = useDispatch({});
const [monitorUpdateTrigger, setMonitorUpdateTrigger] = useState(false);
const handlePause = () => {
setMonitorUpdateTrigger((prev) => !prev);
};
useEffect(() => {
dispatch(getUptimeMonitorsByTeamId(authState.authToken));
}, [authState.authToken, dispatch, monitorUpdateTrigger]);
//TODO bring fetching to this component, like on pageSpeed
const loading = uptimeMonitorsState?.isLoading;
const totalMonitors = uptimeMonitorsState?.monitorsSummary?.monitorCounts?.total;
const hasMonitors = totalMonitors > 0;
const noMonitors = !hasMonitors;
const canAddMonitor = isAdmin && hasMonitors;
return (
<Stack
className="monitors"
gap={theme.spacing(8)}
>
<Box>
<Breadcrumbs list={BREADCRUMBS} />
<Stack
direction="row"
justifyContent="end"
alignItems="center"
mt={theme.spacing(5)}
gap={theme.spacing(6)}
>
{canAddMonitor && (
<Button
variant="contained"
color="primary"
onClick={() => {
navigate("/uptime/create");
}}
sx={{ fontWeight: 500, whiteSpace: "nowrap" }}
>
Create new
</Button>
)}
</Stack>
<Greeting type="uptime" />
</Box>
{loading ? (
<SkeletonLayout />
) : (
<>
{noMonitors && <Fallback isAdmin={isAdmin} />}
{hasMonitors && (
<>
<Stack
gap={theme.spacing(8)}
direction="row"
justifyContent="space-between"
>
<StatusBox
title="up"
value={uptimeMonitorsState?.monitorsSummary?.monitorCounts?.up ?? 0}
/>
<StatusBox
title="down"
value={uptimeMonitorsState?.monitorsSummary?.monitorCounts?.down ?? 0}
/>
<StatusBox
title="paused"
value={uptimeMonitorsState?.monitorsSummary?.monitorCounts?.paused ?? 0}
/>
</Stack>
<CurrentMonitoring
isAdmin={isAdmin}
monitors={uptimeMonitorsState.monitorsSummary.monitors}
totalMonitors={totalMonitors}
handlePause={handlePause}
/>
</>
)}
</>
)}
</Stack>
);
};
UptimeMonitors.propTypes = {
isAdmin: PropTypes.bool,
};
export default UptimeMonitors;
-90
View File
@@ -1,90 +0,0 @@
import { useTheme } from "@mui/material";
const useUtils = () => {
const determineState = (monitor) => {
if (monitor.isActive === false) return "paused";
if (monitor?.status === undefined) return "pending";
return monitor?.status == true ? "up" : "down";
};
/* TODO Refactor: from here on shouldn't live in a custom hook, but on theme, or constants */
const theme = useTheme();
const statusColor = {
up: theme.palette.success.main,
down: theme.palette.error.main,
paused: theme.palette.warning.main,
pending: theme.palette.warning.main,
};
const statusMsg = {
up: "Your site is up.",
down: "Your site is down.",
paused: "Pending...",
};
const pagespeedStatusMsg = {
up: "Live (collecting data)",
down: "Inactive",
paused: "Paused",
};
const statusStyles = {
up: {
backgroundColor: theme.palette.success.dark,
background: `linear-gradient(340deg, ${theme.palette.success.dark} -60%, ${theme.palette.success.light} 35%)`,
borderColor: theme.palette.success.light,
"& h2": { color: theme.palette.success.main },
},
down: {
backgroundColor: theme.palette.error.dark,
background: `linear-gradient(340deg, ${theme.palette.error.light} -60%, ${theme.palette.error.dark} 35%)`,
borderColor: theme.palette.error.light,
"& h2": { color: theme.palette.error.main },
},
paused: {
backgroundColor: theme.palette.warning.dark,
background: `linear-gradient(340deg, ${theme.palette.warning.light} -60%, ${theme.palette.warning.dark} 35%)`,
borderColor: theme.palette.warning.light,
"& h2": { color: theme.palette.warning.main },
},
pending: {
backgroundColor: theme.palette.warning.light,
background: `linear-gradient(340deg, ${theme.palette.warning.dark} -60%, ${theme.palette.warning.light} 35%)`,
borderColor: theme.palette.warning.dark,
"& h2": { color: theme.palette.warning.main },
},
};
const pagespeedStyles = {
up: {
bg: theme.palette.success.dark,
light: theme.palette.success.light,
stroke: theme.palette.success.main,
},
down: {
bg: theme.palette.error.dark,
light: theme.palette.error.light,
stroke: theme.palette.error.main,
},
paused: {
bg: theme.palette.warning.dark,
light: theme.palette.warning.light,
stroke: theme.palette.warning.main,
},
pending: {
bg: theme.palette.warning.dark,
light: theme.palette.warning.light,
stroke: theme.palette.warning.main,
},
};
return {
determineState,
statusColor,
statusMsg,
pagespeedStatusMsg,
pagespeedStyles,
statusStyles,
};
};
export default useUtils;
-171
View File
@@ -1,171 +0,0 @@
import { Navigate, Route, Routes as LibRoutes } from "react-router";
import HomeLayout from "../Components/Layouts/HomeLayout";
import { Infrastructure } from "../Pages/Infrastructure";
import InfrastructureDetails from "../Pages/Infrastructure/Details";
import NotFound from "../Pages/NotFound";
import Login from "../Pages/Auth/Login/Login";
import Register from "../Pages/Auth/Register/Register";
import Account from "../Pages/Account";
import Monitors from "../Pages/Uptime/Home";
import CreateMonitor from "../Pages/Uptime/CreateUptime";
import CreateInfrastructureMonitor from "../Pages/Infrastructure/CreateMonitor";
import Incidents from "../Pages/Incidents";
import Status from "../Pages/Status";
import Integrations from "../Pages/Integrations";
import Settings from "../Pages/Settings";
import ForgotPassword from "../Pages/Auth/ForgotPassword";
import CheckEmail from "../Pages/Auth/CheckEmail";
import SetNewPassword from "../Pages/Auth/SetNewPassword";
import NewPasswordConfirmed from "../Pages/Auth/NewPasswordConfirmed";
import ProtectedRoute from "../Components/ProtectedRoute";
import Details from "../Pages/Uptime/Details";
import Maintenance from "../Pages/Maintenance";
import Configure from "../Pages/Uptime/Configure";
import PageSpeed from "../Pages/PageSpeed";
import CreatePageSpeed from "../Pages/PageSpeed/CreatePageSpeed";
import CreateNewMaintenanceWindow from "../Pages/Maintenance/CreateMaintenance";
import PageSpeedDetails from "../Pages/PageSpeed/Details";
import PageSpeedConfigure from "../Pages/PageSpeed/Configure";
import withAdminCheck from "../Components/HOC/withAdminCheck";
const Routes = () => {
const AdminCheckedRegister = withAdminCheck(Register);
return (
<LibRoutes>
<Route
path="/"
element={
<ProtectedRoute>
<HomeLayout />
</ProtectedRoute>
}
>
<Route
path="/"
element={<Navigate to="/uptime" />}
/>
<Route
path="/uptime"
element={<Monitors />}
/>
<Route
path="/uptime/create/:monitorId?"
element={<CreateMonitor />}
/>
<Route
path="/uptime/:monitorId/"
element={<Details />}
/>
<Route
path="/uptime/configure/:monitorId/"
element={<Configure />}
/>
<Route
path="pagespeed"
element={<PageSpeed />}
/>
<Route
path="pagespeed/create"
element={<CreatePageSpeed />}
/>
<Route
path="pagespeed/:monitorId"
element={<PageSpeedDetails />}
/>
<Route
path="pagespeed/configure/:monitorId"
element={<PageSpeedConfigure />}
/>
<Route
path="infrastructure"
element={<Infrastructure />}
/>
<Route
path="infrastructure/create"
element={<CreateInfrastructureMonitor />}
/>
<Route
path="infrastructure/:monitorId"
element={<InfrastructureDetails />}
/>
<Route
path="incidents/:monitorId?"
element={<Incidents />}
/>
<Route
path="status"
element={<Status />}
/>
<Route
path="integrations"
element={<Integrations />}
/>
<Route
path="maintenance"
element={<Maintenance />}
/>
<Route
path="/maintenance/create/:maintenanceWindowId?"
element={<CreateNewMaintenanceWindow />}
/>
<Route
path="settings"
element={<Settings />}
/>
<Route
path="account/profile"
element={<Account open={"profile"} />}
/>
<Route
path="account/password"
element={<Account open={"password"} />}
/>
<Route
path="account/team"
element={<Account open={"team"} />}
/>
</Route>
<Route
path="/login"
element={<Login />}
/>
<Route
path="/register"
element={<AdminCheckedRegister />}
/>
<Route
exact
path="/register/:token"
element={<Register />}
/>
<Route
path="/forgot-password"
element={<ForgotPassword />}
/>
<Route
path="/check-email"
element={<CheckEmail />}
/>
<Route
path="/set-new-password/:token"
element={<SetNewPassword />}
/>
<Route
path="/new-password-confirmed"
element={<NewPasswordConfirmed />}
/>
<Route
path="*"
element={<NotFound />}
/>
</LibRoutes>
);
};
export { Routes };
-256
View File
@@ -1,256 +0,0 @@
const typographyBase = 14;
/* TODO
Check for px in codebase. All font sizes should be in REM and should live here.
Rest should be checked on each case
*/
const typographyLevels = {
base: typographyBase,
xs: `${(typographyBase - 4) / 16}rem`,
s: `${(typographyBase - 2) / 16}rem`,
m: `${typographyBase / 16}rem`,
l: `${(typographyBase + 2) / 16}rem`,
xl: `${(typographyBase + 10) / 16}rem`,
};
/* TODO Review color palette and semantic colors */
const paletteColors = {
white: "#FFFFFF",
gray50: "#FEFEFE",
gray60: "#FEFDFE",
gray70: "#FDFDFD",
gray80: "#FDFCFD",
gray90: "#FCFCFD",
gray100: "#F4F4F4",
gray150: "#EFEFEF",
gray200: "#E3E3E3",
gray300: "#A2A3A3",
gray500: "#838C99",
gray600: "#454546",
gray750: "#36363E",
gray800: "#2D2D33",
gray850: "#131315",
gray860: "#111113",
gray870: "#0F0F11",
gray880: "#0C0C0E",
gray890: "#09090B",
blueGray20: "#E8F0FE",
blueGray150: "#667085",
blueGray200: "#475467",
blueGray400: "#344054",
blueGray900: "#1c2130",
blueBlueWave: "#1570EF",
blue700: "#4E5BA6",
purple300: "#664EFF",
purple400: "#3A1BFF",
green50: "#D4F4E1",
green150: "#45BB7A",
green400: "#079455",
green500: "#07B467",
green800: "#1C4428",
green900: "#12261E",
red50: "#F9ECED",
red100: "#FBD1D1",
red200: "#F04438",
red300: "#D32F2F",
red700: "#542426",
red800: "#301A1F",
orange50: "#FEF8EA",
orange100: "#FFECBC",
orange300: "#FDB022",
orange400: "#FF9F00",
orange500: "#E88C30",
orange600: "#DC6803",
orange800: "#624711",
};
const semanticColors = {
primary: {
main: {
light: paletteColors.blueBlueWave,
dark: paletteColors.blueBlueWave,
},
// TODO we dont have primary light, dark or contrast text
},
secondary: {
main: {
light: paletteColors.gray100,
dark: paletteColors.gray800,
},
contrastText: {
light: paletteColors.blueGray200,
dark: paletteColors.blueGray200,
},
light: {
light: paletteColors.gray200,
dark: paletteColors.gray200,
},
dark: {
light: paletteColors.gray200,
dark: paletteColors.gray200,
},
},
success: {
main: {
light: paletteColors.green400,
dark: paletteColors.green400,
},
contrastText: {
light: paletteColors.green50,
dark: paletteColors.green50,
},
light: {
light: paletteColors.green500,
dark: paletteColors.green800,
},
dark: {
light: paletteColors.green400,
dark: paletteColors.green900,
},
},
neutral: {
contrastText: {
light: paletteColors.blueGray900,
dark: paletteColors.gray100,
},
},
error: {
main: {
light: paletteColors.red300,
dark: paletteColors.red300,
},
contrastText: {
light: paletteColors.gray50,
dark: paletteColors.gray50,
},
light: {
light: paletteColors.red100,
dark: paletteColors.red700,
},
dark: {
light: paletteColors.red50,
dark: paletteColors.red800,
},
},
warning: {
main: {
light: paletteColors.orange300,
dark: paletteColors.orange400,
},
contrastText: {
light: paletteColors.orange600,
dark: paletteColors.orange500,
},
light: {
light: paletteColors.orange100,
dark: paletteColors.orange800,
},
dark: {
light: paletteColors.orange50,
dark: paletteColors.gray800,
},
},
/* From this part on, try to create semantic structure, not feature based structure */
gradient: {
color1: {
light: paletteColors.gray90,
dark: paletteColors.gray890,
},
color2: {
light: paletteColors.gray80,
dark: paletteColors.gray880,
},
color3: {
light: paletteColors.gray70,
dark: paletteColors.gray870,
},
color4: {
light: paletteColors.gray60,
dark: paletteColors.gray860,
},
color5: {
light: paletteColors.gray50,
dark: paletteColors.gray850,
},
},
background: {
main: {
light: paletteColors.white,
dark: paletteColors.gray890,
},
alt: {
light: paletteColors.gray90,
dark: paletteColors.gray890,
},
fill: {
light: paletteColors.gray100,
dark: paletteColors.gray800,
},
accent: {
light: paletteColors.gray100,
dark: paletteColors.gray850,
},
},
text: {
primary: {
light: paletteColors.blueGray900,
dark: paletteColors.gray100,
},
secondary: {
light: paletteColors.blueGray400,
dark: paletteColors.gray200,
},
tertiary: {
light: paletteColors.blueGray200,
dark: paletteColors.gray300,
},
accent: {
light: paletteColors.gray500,
dark: paletteColors.gray500,
},
},
border: {
light: {
light: paletteColors.gray200,
dark: paletteColors.gray800,
/* TODO this should live in a different key (border.disabled.light and .dark) */
disabled: paletteColors.gray150,
},
dark: {
light: paletteColors.gray200,
dark: paletteColors.gray750,
/* TODO this should live in a different key (border.disabled.light and .dark) */
disabled: paletteColors.gray150,
},
},
unresolved: {
main: {
light: paletteColors.blue700,
dark: paletteColors.purple300,
},
light: {
light: paletteColors.blueGray20,
dark: paletteColors.purple400,
},
bg: {
light: paletteColors.gray100,
dark: paletteColors.gray100,
},
},
other: {
icon: {
light: paletteColors.blueGray150,
},
line: {
light: paletteColors.gray200,
},
grid: {
light: paletteColors.gray300,
dark: paletteColors.gray600,
},
autofill: {
light: paletteColors.blueGray20,
},
},
};
export { typographyLevels, semanticColors as colors };
-115
View File
@@ -1,115 +0,0 @@
import { createTheme } from "@mui/material";
import { baseTheme } from "./globalTheme";
import { colors } from "./constants";
const {
primary,
secondary,
success,
error,
warning,
neutral,
gradient: {
color1: { dark: color1 },
color2: { dark: color2 },
color3: { dark: color3 },
color4: { dark: color4 },
color5: { dark: color5 },
},
background,
text,
border,
unresolved,
other,
} = colors;
const palette = {
action: {
disabled: border.dark.disabled,
},
primary: { main: primary.main.dark },
secondary: {
main: secondary.main.dark,
contrastText: secondary.contrastText.dark,
light: secondary.dark.dark,
dark: secondary.dark.dark,
},
success: {
main: success.main.dark,
contrastText: success.contrastText.dark,
light: success.light.dark,
dark: success.dark.dark,
},
error: {
main: error.main.dark,
contrastText: error.contrastText.dark,
light: error.light.dark,
dark: error.dark.dark,
},
warning: {
main: warning.main.dark,
light: warning.light.dark,
contrastText: warning.contrastText.dark,
dark: warning.dark.dark,
},
neutral: {
contrastText: neutral.contrastText.dark,
},
/* From this part on, try to create semantic structure, not feature based structure */
percentage: {
uptimePoor: error.main.dark,
uptimeFair: warning.contrastText.dark,
uptimeGood: warning.main.dark /* Change for a success color? ?*/,
uptimeExcellent: success.main.dark,
},
unresolved: {
main: unresolved.main.dark,
light: unresolved.light.dark,
bg: unresolved.bg.dark,
},
divider: border.light.dark,
other: {
icon: text.secondary.dark,
line: border.light.dark,
fill: background.accent.dark,
grid: other.grid.dark,
autofill: secondary.main.dark,
},
gradient: {
color1,
color2,
color3,
color4,
color5,
},
text: {
primary: text.primary.dark,
secondary: text.secondary.dark,
tertiary: text.tertiary.dark,
accent: text.accent.dark,
},
background: {
main: background.main.dark,
alt: background.alt.dark,
fill: background.fill.dark,
accent: background.accent.dark,
},
border: {
light: border.light.dark,
dark: border.dark.dark,
},
info: {
text: text.primary.dark,
main: text.secondary.dark,
bg: background.main.dark,
light: background.main.dark,
border: border.light.dark,
},
};
const darkTheme = createTheme({
palette,
...baseTheme(palette),
});
export default darkTheme;
-279
View File
@@ -1,279 +0,0 @@
import { typographyLevels } from "./constants";
const fontFamilyPrimary = '"Inter" , sans-serif';
// const fontFamilySecondary = '"Avenir", sans-serif';
/* TODO take the color out from here */
const shadow =
"0px 4px 24px -4px rgba(16, 24, 40, 0.08), 0px 3px 3px -3px rgba(16, 24, 40, 0.03)";
const baseTheme = (palette) => ({
typography: {
fontFamily: fontFamilyPrimary,
fontSize: 14,
h1: {
fontSize: typographyLevels.xl,
color: palette.text.primary,
fontWeight: 500,
},
h2: {
fontSize: typographyLevels.l,
color: palette.text.secondary,
fontWeight: 400,
},
body1: {
fontSize: typographyLevels.m,
color: palette.text.tertiary,
fontWeight: 400,
},
body2: {
fontSize: typographyLevels.s,
color: palette.text.tertiary,
fontWeight: 400,
},
},
/* TODO we can skip using the callback functions on the next lines since we are already accessing it on line 10. That was the last thing I managed to do, so we are sort of doing it twice*/
spacing: 2,
/* TODO All these should live inside of a component*/
components: {
MuiButton: {
defaultProps: {
disableRipple: true,
},
styleOverrides: {
root: ({ theme }) => ({
variants: [
{
props: (props) => props.variant === "group",
style: {
/* color: theme.palette.secondary.contrastText, */
color: theme.palette.neutral.contrastText,
backgroundColor: theme.palette.background.main,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
},
},
{
props: (props) => props.variant === "group" && props.filled === "true",
style: {
backgroundColor: theme.palette.secondary.main,
},
},
{
props: (props) =>
props.variant === "contained" && props.color === "secondary",
style: {
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
},
},
{
props: (props) => {
return (
props.variant === "contained" &&
props.disabled &&
props.classes.loadingIndicator === undefined // Do not apply to loading button
);
},
style: {
backgroundColor: `${theme.palette.secondary.main} !important`,
color: `${theme.palette.secondary.contrastText} !important`,
},
},
],
fontWeight: 400,
borderRadius: 4,
boxShadow: "none",
textTransform: "none",
"&:focus": {
outline: "none",
},
"&:hover": {
boxShadow: "none",
},
"&.MuiLoadingButton-root": {
"&:disabled": {
backgroundColor: theme.palette.secondary.main,
color: theme.palette.text.primary,
},
},
"&.MuiLoadingButton-loading": {
"& .MuiLoadingButton-label": {
color: "transparent",
},
"& .MuiLoadingButton-loadingIndicator": {
color: "inherit",
},
},
}),
},
},
MuiIconButton: {
styleOverrides: {
root: ({ theme }) => ({
padding: 4,
transition: "none",
"&:hover": {
backgroundColor: theme.palette.background.fill,
},
}),
},
},
MuiPaper: {
styleOverrides: {
root: ({ theme }) => {
return {
marginTop: 4,
padding: 0,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
borderRadius: 4,
boxShadow: shadow,
backgroundColor: theme.palette.background.main,
backgroundImage: "none",
};
},
},
},
MuiList: {
styleOverrides: {
root: {
padding: 0,
},
},
},
MuiListItemButton: {
styleOverrides: {
root: {
transition: "none",
},
},
},
MuiMenuItem: {
styleOverrides: {
root: ({ theme }) => ({
borderRadius: 4,
backgroundColor: "inherit",
padding: "4px 6px",
color: theme.palette.text.secondary,
fontSize: 13,
margin: 2,
minWidth: 100,
"&:hover, &.Mui-selected, &.Mui-selected:hover, &.Mui-selected.Mui-focusVisible":
{
backgroundColor: theme.palette.background.fill,
},
}),
},
},
MuiTableCell: {
styleOverrides: {
root: ({ theme }) => ({
borderBottomColor: theme.palette.border.light,
}),
},
},
MuiTableHead: {
styleOverrides: {
root: ({ theme }) => ({
backgroundColor: theme.palette.background.accent,
}),
},
},
MuiPagination: {
styleOverrides: {
root: ({ theme }) => ({
backgroundColor: theme.palette.background.main,
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
"& button": {
color: theme.palette.text.tertiary,
borderRadius: 4,
},
"& li:first-of-type button, & li:last-of-type button": {
border: 1,
borderStyle: "solid",
borderColor: theme.palette.border.light,
},
}),
},
},
MuiPaginationItem: {
styleOverrides: {
root: ({ theme }) => ({
"&:not(.MuiPaginationItem-ellipsis):hover, &.Mui-selected": {
backgroundColor: theme.palette.background.fill,
},
}),
},
},
MuiSkeleton: {
styleOverrides: {
root: ({ theme }) => ({
backgroundColor: theme.palette.unresolved.bg,
}),
},
},
MuiTextField: {
styleOverrides: {
root: ({ theme }) => ({
"& fieldset": {
borderColor: theme.palette.border.dark,
borderRadius: theme.shape.borderRadius,
},
"& .MuiInputBase-input": {
padding: ".75em",
minHeight: "var(--env-var-height-2)",
fontSize: "var(--env-var-font-size-medium)",
fontWeight: 400,
color: palette.text.secondary,
"&.Mui-disabled": {
opacity: 0.3,
WebkitTextFillColor: "unset",
},
},
"& .MuiInputBase-input:-webkit-autofill": {
transition: "background-color 5000s ease-in-out 0s",
WebkitBoxShadow: `0 0 0px 1000px ${theme.palette.background.main} inset`,
WebkitTextFillColor: theme.palette.text.primary,
},
"& .MuiInputBase-input.MuiOutlinedInput-input": {
padding: "0 var(--env-var-spacing-1-minus) !important",
},
"& .MuiOutlinedInput-root": {
borderRadius: 4,
},
"& .MuiOutlinedInput-notchedOutline": {
borderRadius: 4,
},
"& .MuiFormHelperText-root": {
color: palette.error.main,
opacity: 0.8,
fontSize: "var(--env-var-font-size-medium)",
marginLeft: 0,
},
"& .MuiFormHelperText-root.Mui-error": {
opacity: 0.8,
fontSize: "var(--env-var-font-size-medium)",
color: palette.error.main,
},
}),
},
},
},
shape: {
borderRadius: 2,
borderThick: 2,
boxShadow: shadow,
},
});
export { baseTheme };
-122
View File
@@ -1,122 +0,0 @@
import { createTheme } from "@mui/material";
import { baseTheme } from "./globalTheme";
import { colors } from "./constants";
/*
TODO
Next step: check if all keys here are being used in the codebase. e.g.: Search codebase for palette.primary; also check for destructuring palette ('= theme.palette')
*/
const {
primary,
secondary,
success,
error,
warning,
neutral,
gradient: {
color1: { light: color1 },
color2: { light: color2 },
color3: { light: color3 },
color4: { light: color4 },
color5: { light: color5 },
},
background,
text,
border,
unresolved,
other,
} = colors;
const palette = {
/* TODO check if we need the addition of a new color gray150 for this. Also, this color would probably fit for primary contrastText */
action: {
disabled: border.light.disabled,
},
primary: { main: primary.main.light },
secondary: {
main: secondary.main.light,
contrastText: secondary.contrastText.light,
light: secondary.dark.light,
dark: secondary.dark.light,
},
success: {
main: success.main.light,
contrastText: success.contrastText.light,
light: success.light.light,
dark: success.dark.light,
},
error: {
main: error.main.light,
contrastText: error.contrastText.light,
light: error.light.light,
dark: error.dark.light,
},
warning: {
main: warning.main.light,
light: warning.light.light,
contrastText: warning.contrastText.light,
dark: warning.dark.light,
},
neutral: {
contrastText: neutral.contrastText.light,
},
/* From this part on, try to create semantic structure, not feature based structure */
percentage: {
uptimePoor: error.main.light,
uptimeFair: warning.contrastText.light,
uptimeGood: warning.main.light /* Change for a success color? */,
uptimeExcellent: success.main.light,
},
unresolved: {
main: unresolved.main.light,
light: unresolved.light.light,
bg: unresolved.bg.light,
},
divider: border.light.light,
other: {
icon: other.icon.light,
line: other.line.light,
fill: secondary.dark.light,
grid: other.grid.light,
autofill: other.autofill.light,
},
gradient: {
color1,
color2,
color3,
color4,
color5,
},
text: {
primary: text.primary.light,
secondary: text.secondary.light,
tertiary: text.tertiary.light,
accent: text.accent.light,
},
background: {
main: background.main.light,
alt: background.alt.light,
fill: background.fill.light,
accent: background.accent.light,
},
border: {
light: border.light.light,
dark: border.dark.light,
},
info: {
text: text.primary.light,
main: text.tertiary.light,
bg: background.main.light,
light: background.main.light,
border: border.dark.light,
},
};
/* TODO I figured out we could have just one theme by passing mode as parameter for theme function. Implement later */
const lightTheme = createTheme({
palette,
...baseTheme(palette),
});
export default lightTheme;
-17
View File
@@ -1,17 +0,0 @@
/**
* Helper function to get first letter capitalized string
* @param {string} str String whose first letter is to be capitalized
* @returns A string with first letter capitalized
*/
export const capitalizeFirstLetter = (str) => {
if (str === null || str === undefined) {
return "";
}
if (typeof str !== "string") {
throw new TypeError("Input must be a string");
}
if (str.length === 0) {
return "";
}
return str.charAt(0).toUpperCase() + str.slice(1);
};
-251
View File
@@ -1,251 +0,0 @@
import joi from "joi";
import dayjs from "dayjs";
const THRESHOLD_COMMON_BASE_MSG = "Threshold must be a number.";
const nameSchema = joi
.string()
.max(50)
.trim()
.pattern(/^[A-Za-z]+$/)
.messages({
"string.empty": "Name is required",
"string.max": "Name must be less than 50 characters long",
"string.pattern.base": "Name must contain only letters",
});
const passwordSchema = joi
.string()
.trim()
.min(8)
.custom((value, helpers) => {
if (!/[A-Z]/.test(value)) {
return helpers.error("uppercase");
}
return value;
})
.custom((value, helpers) => {
if (!/[a-z]/.test(value)) {
return helpers.error("lowercase");
}
return value;
})
.custom((value, helpers) => {
if (!/\d/.test(value)) {
return helpers.error("number");
}
return value;
})
.custom((value, helpers) => {
if (!/[!?@#$%^&*()\-_=+[\]{};:'",.<>~`|\\/]/.test(value)) {
return helpers.error("special");
}
return value;
})
.messages({
"string.empty": "Password is required",
"string.min": "Password must be at least 8 characters long",
uppercase: "Password must contain at least one uppercase letter",
lowercase: "Password must contain at least one lowercase letter",
number: "Password must contain at least one number",
special: "Password must contain at least one special character",
});
const credentials = joi.object({
firstName: nameSchema,
lastName: nameSchema,
email: joi
.string()
.trim()
.email({ tlds: { allow: false } })
.custom((value, helpers) => {
const lowercasedValue = value.toLowerCase();
if (value !== lowercasedValue) {
return helpers.message("Email must be in lowercase");
}
return lowercasedValue;
})
.messages({
"string.empty": "Email is required",
"string.email": "Must be a valid email address",
}),
password: passwordSchema,
newPassword: passwordSchema,
confirm: joi
.string()
.trim()
.custom((value, helpers) => {
const { password } = helpers.prefs.context;
if (value !== password) {
return helpers.error("different");
}
return value;
})
.messages({
"string.empty": "This field can't be empty",
different: "Passwords do not match",
}),
role: joi.array(),
teamId: joi.string().allow("").optional(),
inviteToken: joi.string().allow(""),
});
const monitorValidation = joi.object({
url: joi
.string()
.trim()
.custom((value, helpers) => {
const urlRegex =
/^(https?:\/\/)?(([0-9]{1,3}\.){3}[0-9]{1,3}|[\da-z\.-]+)(\.[a-z\.]{2,6})?(:(\d+))?([\/\w \.-]*)*\/?$/i;
if (!urlRegex.test(value)) {
return helpers.error("string.invalidUrl");
}
return value;
})
.messages({
"string.empty": "This field is required.",
"string.uri": "The URL you provided is not valid.",
"string.invalidUrl": "Please enter a valid URL with optional port",
}),
name: joi.string().trim().max(50).allow("").messages({
"string.max": "This field should not exceed the 50 characters limit.",
}),
type: joi.string().trim().messages({ "string.empty": "This field is required." }),
interval: joi.number().messages({
"number.base": "Frequency must be a number.",
"any.required": "Frequency is required.",
}),
});
const imageValidation = joi.object({
type: joi.string().valid("image/jpeg", "image/png").messages({
"any.only": "Invalid file format.",
"string.empty": "File type required.",
}),
size: joi
.number()
.max(3 * 1024 * 1024)
.messages({
"number.base": "File size must be a number.",
"number.max": "File size must be less than 3 MB.",
"number.empty": "File size required.",
}),
});
const settingsValidation = joi.object({
ttl: joi.number().required().messages({
"string.empty": "TTL is required",
}),
});
const dayjsValidator = (value, helpers) => {
if (!dayjs(value).isValid()) {
return helpers.error("any.invalid");
}
return value;
};
const maintenanceWindowValidation = joi.object({
repeat: joi.string(),
startDate: joi.custom(dayjsValidator, "Day.js date validation"),
startTime: joi.custom(dayjsValidator, "Day.js date validation"),
duration: joi.number().integer().min(0),
durationUnit: joi.string(),
name: joi.string(),
monitors: joi.array().min(1),
});
const advancedSettingsValidation = joi.object({
apiBaseUrl: joi.string().uri({ allowRelative: true }).trim().messages({
"string.empty": "API base url is required.",
"string.uri": "The URL you provided is not valid.",
}),
logLevel: joi.string().valid("debug", "none", "error", "warn").allow(""),
systemEmailHost: joi.string().allow(""),
systemEmailPort: joi.number().allow(null, ""),
systemEmailAddress: joi.string().allow(""),
systemEmailPassword: joi.string().allow(""),
jwtTTLNum: joi.number().messages({
"number.base": "JWT TTL is required.",
}),
jwtTTLUnits: joi
.string()
.trim()
.custom((value, helpers) => {
if (!["days", "hours"].includes(value)) {
return helpers.message("JWT TTL unit is required.");
}
return value;
}),
dbType: joi.string().trim().messages({
"string.empty": "DB type is required.",
}),
redisHost: joi.string().trim().messages({
"string.empty": "Redis host is required.",
}),
redisPort: joi.number().allow(null, ""),
pagespeedApiKey: joi.string().allow(""),
});
const infrastructureMonitorValidation = joi.object({
url: joi
.string()
.trim()
.custom((value, helpers) => {
const urlRegex =
/^(https?:\/\/)?(([0-9]{1,3}\.){3}[0-9]{1,3}|[\da-z\.-]+)(\.[a-z\.]{2,6})?(:(\d+))?([\/\w \.-]*)*\/?$/i;
if (!urlRegex.test(value)) {
return helpers.error("string.invalidUrl");
}
return value;
})
.messages({
"string.empty": "This field is required.",
"string.uri": "The URL you provided is not valid.",
"string.invalidUrl": "Please enter a valid URL with optional port",
}),
name: joi.string().trim().max(50).allow("").messages({
"string.max": "This field should not exceed the 50 characters limit.",
}),
secret: joi.string().trim().messages({ "string.empty": "This field is required." }),
usage_cpu: joi.number().messages({
"number.base": THRESHOLD_COMMON_BASE_MSG,
}),
cpu: joi.boolean(),
memory: joi.boolean(),
disk: joi.boolean(),
temperature: joi.boolean(),
usage_memory: joi.number().messages({
"number.base": THRESHOLD_COMMON_BASE_MSG,
}),
usage_disk: joi.number().messages({
"number.base": THRESHOLD_COMMON_BASE_MSG,
}),
usage_temperature: joi.number().messages({
"number.base": "Temperature must be a number.",
}),
// usage_system: joi.number().messages({
// "number.base": "System load must be a number.",
// }),
// usage_swap: joi.number().messages({
// "number.base": "Swap used must be a number.",
// }),
interval: joi.number().messages({
"number.base": "Frequency must be a number.",
"any.required": "Frequency is required.",
}),
});
export {
credentials,
imageValidation,
monitorValidation,
settingsValidation,
maintenanceWindowValidation,
advancedSettingsValidation,
infrastructureMonitorValidation,
};
Loaded 100 of 947 files, more files were not shown because too many files have changed in this diff. Show more