Commit Graph
80 Commits
Author SHA1 Message Date
Alex 1d90b8d8d9 refactor all call sites 2026-05-07 09:54:58 -07:00
gorkem-bwl 602769b3e7 feat(checks): render status code 5000 as "Down" with subtype tooltip
Status code 5000 is Checkmate's internal sentinel for "no HTTP response
received" (DNS failure, connection refused, timeout, TLS error, etc.).
Showing the raw number to admins is confusing — the value isn't a real
HTTP code and means nothing without context.

This change replaces "5000" with "Down" across all check/incident
surfaces, and adds a hover tooltip that explains the underlying cause
based on the stored error message. Real HTTP codes (2xx/3xx/4xx/5xx)
are unchanged.

## Changes
- Add client/src/Utils/statusCode.ts with formatStatusCode,
  getStatusCodeTooltip, getStatusCodeValueType, extractErrorCode, and a
  message-to-subtype parser (timeout / dns / refused / tls / reset).
- Wire into 6 render sites: Checks table, Uptime details Checks table,
  GeoChecks table + map popup, Incidents table, Incident details dialog.
- Add common.statusCode.* i18n keys in en.json with subtype-specific
  descriptions. Tooltip appends the raw error code (ECONNREFUSED,
  ETIMEDOUT, CERT_HAS_EXPIRED, etc.) when present in the message.

## Tooltip examples
- "queryA ECONNREFUSED www.example.com" →
  "The server refused the connection (port closed or service not listening). (ECONNREFUSED)"
- "connect ETIMEDOUT 1.2.3.4:443" →
  "The server didn't respond in time (request timed out). (ETIMEDOUT)"

## Notes
- No DB or server changes; statusCode field stays 5000 in storage.
- Other locales fall back to English keys until translated.
2026-05-07 01:13:09 -04:00
Alex Holliday cf5691e250 fix build error 2026-04-29 10:01:43 -07:00
Alex Holliday 301942d0eb normalize 2026-04-29 09:56:01 -07:00
gorkem-bwl 5d5d1dbb23 feat(incidents): consistent typography, icons, and layout across the page
- All uppercase headers (Active Incidents, Latest Incidents, Incident
  Statistics, Resolved Incidents, summary card titles, details card
  sections) now use the existing 'eyebrow' typography variant. That's
  the same style used on the Logs page and lives in Theme.ts so future
  tweaks land in one place.
- Latest Incidents and Incident Statistics rows now share a minHeight
  so both cards line up vertically; Latest Incidents items dropped
  their extra dividers and Box wrappers.
- Body text in the summary cards (and the details dialog) uses
  variant=body1 (13px) consistently — previously a mix of body1/body2
  and unspecified Typography.
- All lucide icons in CardSummary go through the design-system <Icon>
  wrapper so they share the project's strokeWidth=1.5 default rather
  than lucide's default 2.
- ControlsIncidentFilter: replaced the missing
  pages.incidents.filters.clearFilters key (which was rendering as
  raw text) with the existing common.buttons.clearFilters.
- CardDetails: extracted local SectionHeading and Cell helpers; switched
  the cards' bare <Typography> cells to variant=body1 + variant=eyebrow
  for headings; dropped redundant title-dividers (eyebrow style already
  separates visually).
2026-04-28 23:56:10 -04:00
gorkem-bwl fef3f2c294 refactor(dialog): standard modal layout, NoticeBanner design-element, softer Cancel
Dialog component:
- Title bar gets a subtle background tint + bottom border. Title is
  variant=h2 weight=600. Description tucks under the title with
  variant=body1 secondary color (replaces MUI's DialogContentText).
- Action bar gets a matching subtle tint + top border. Cancel is now
  outlined (was contained-error, which made every modal's Cancel button
  look destructive). Confirm keeps its color (primary by default,
  caller can pass error for destructive flows).
- Content area sits between with its own breathing room baked in, so
  callers no longer need mt={theme.spacing(...)} workarounds.
- The cancelColor prop is removed; sites that genuinely need a
  destructive Cancel can use confirmColor='error' on the Confirm button
  instead.

NoticeBanner design-element:
- Extracted from the inline alert pattern in PageSpeedKeyPriorityFallback
  into a reusable component with severity=info|warning|error.
- Refactored PageSpeedKeyPriorityFallback to use it.

DialogResolution.tsx: drop the now-removed cancelColor prop and the
mt-Box wrapper that's no longer needed (Dialog provides the spacing).
2026-04-28 23:53:59 -04:00
Alex Holliday 04c3c57a59 card-details 2026-02-28 21:27:33 +00:00
Alex Holliday d45e6ec97c remove v2 dir 2026-02-20 18:13:39 +00:00
Alex Holliday fd2c54d3d3 remove unused 2026-02-13 20:42:26 +00:00
Alex Holliday cafea2bf5d remove unused utils, convert utils to TS 2026-02-12 19:13:53 +00:00
Alex Holliday bd6aa0fa3a pagination and empty state fix 2026-02-05 18:30:43 +00:00
Alex Holliday 4f3bcd4624 incident page fixed 2026-02-03 23:45:23 +00:00
Alex Holliday d469590ef3 filter fix 2026-02-03 23:37:16 +00:00
Alex Holliday 0fcceeb7a6 strings 2026-02-03 21:34:16 +00:00
Alex Holliday 43fe66022b format 2026-02-02 18:45:52 +00:00
Alex Holliday 294fb13005 remove unused 2026-02-02 18:45:29 +00:00
Alex Holliday 8160ab4a3c fix isFilterACtive logic 2026-02-02 17:56:11 +00:00
Alex Holliday 6063532c79 fitlers 2026-02-02 17:49:36 +00:00
Alex Holliday 83b628c8f9 divider 2026-02-02 17:36:42 +00:00
Alex Holliday 88a91022c3 summary, activ eincident table 2026-02-02 17:28:22 +00:00
Alex Holliday 3a5783fe91 email 2026-02-02 06:08:51 +00:00
Alex Holliday 479f22ac69 resolution details 2026-02-02 05:41:32 +00:00
Alex Holliday 30202b2249 grid 2026-02-01 01:54:18 +00:00
Alex Holliday 888910abb2 bump mui 2026-02-01 00:49:35 +00:00
Alex Holliday 874d1b277a incidnet details 2026-02-01 00:34:48 +00:00
Alex Holliday f34520cdbf dialog initial commit 2026-02-01 00:03:08 +00:00
Alex Holliday bcc57c7135 strings 2026-01-31 01:12:05 +00:00
Alex Holliday 6b67f4977f wire up incidents table 2026-01-31 00:41:03 +00:00
Alex Holliday 87255071f4 headers and actions 2026-01-31 00:18:33 +00:00
Alex Holliday cbf1f97591 initial table commit 2026-01-30 23:35:33 +00:00
Alex Holliday 7a881fda03 strings 2026-01-30 23:31:03 +00:00
Alex Holliday 50fd66ef56 center 2026-01-30 23:28:36 +00:00
Alex Holliday f9b677b1ad strings 2026-01-30 23:22:56 +00:00
Alex Holliday b7a6d50c73 cards 2026-01-30 23:16:35 +00:00
mannilakash a154ad11b5 fix: latest incident panel: Box -> Grid 2026-01-29 13:21:56 -05:00
mannilakash 66efa25e2b fix: latest incidents panel overflow text on smaller devices 2026-01-28 14:36:51 -05:00
Alex Holliday c1d0cb568d remove console.log, fix docker file 2026-01-27 21:00:28 +00:00
Alex Holliday e354fa7ebf response time chart 2026-01-26 02:06:37 +00:00
gorkem-bwl a55163de56 fix: resolve monitorUtils naming conflict on case-insensitive filesystems
## Changes
- Rename monitorUtils.js to monitorUtilsLegacy.js to avoid conflict with MonitorUtils.ts
- Update imports in IncidentActionsMenu, JobTable, FailedJobTable, and PageSpeed/Create
2026-01-24 11:03:47 -05:00
Alex Holliday de6c4d9c3e remove extra network request 2026-01-22 22:05:18 +00:00
Alex Holliday d25ca473de purge incident module 2026-01-22 21:28:28 +00:00
Br0wnHammer 7441169a0e Fix: Incident Detail UI Layout 2026-01-23 00:47:57 +05:30
Br0wnHammer 227e0128f9 Fix: Incidents Page Detail 2026-01-23 00:31:24 +05:30
karenvicent 09513696ee detail modal fixes and filters options 2026-01-21 15:33:00 -05:00
karenvicent 63416ceb4b fix import routes 2026-01-20 20:58:35 -05:00
karenvicent eb8c9bea76 Merge branch 'develop' into incidents-feat-modal 2026-01-20 20:46:02 -05:00
Alex Holliday 427e5a18ea incidents -> checks 2026-01-20 19:12:05 +00: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
Alex Holliday f763126b38 format' 2026-01-13 20:20:50 +00:00