Staaarter

Error Monitoring Feed

An error-tracking feed for surfacing recent exceptions. A summary strip of colored pills totals errors by severity, and the list below shows each error's type, source file and line, occurrence count, and last-seen time. Built for internal observability and status dashboards.

By Staaarter Team
DevTools
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/error-monitoring-feed.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/devtools/devtools17.tsx instead.

Usage

The file also exports devtools17Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Devtools17, devtools17Demo } from "@/components/blocks/devtools/devtools17";

export default function Page() {
  return <Devtools17 {...devtools17Demo} />;
}

Props

PropTypeDefaultDescription
headingstring"Error Monitoring"Section heading.
descriptionstringundefinedSection intro text below the heading.
summarySummaryPill[][]Severity total pills shown above the error list.
errorsErrorEntry[]noneError rows, most relevant first.
classNamestringnoneExtra classes for the outer section element.

Types

type ErrorSeverity = "critical" | "warning" | "info";
type SummarySeverity = ErrorSeverity | "resolved";

type SummaryPill = { label: string; severity: SummarySeverity };

type ErrorEntry = {
  id: string;
  severity: ErrorSeverity;
  message: string;
  location: string;
  occurrences: number;
  lastSeen: string;
};

Behavior notes

  • Entirely static; there is no client-side interactivity and nothing here connects to a real error-tracking service.
  • summary pills are independent, caller-supplied totals; the component does not compute them from the errors array, so the two are free to represent different windows (e.g. all-time totals vs. the 10 most recent errors).
  • occurrences and lastSeen are plain caller-supplied values (a number and a formatted string); the component does not track counts or compute relative time itself.
  • Severity colors are fixed by name (critical=red, warning=amber, info=sky, resolved=emerald in the summary pills) and are not independently themeable per entry.