Перейти до вмісту

Errors Cinnabar

v1.0

A minimal SaaS error tracker for a commerce team: grouped issues with stack traces and breadcrumbs, releases with crash-free share, alert rules and projects, in warm greys with one vermilion accent.

$69

Адреса сторінки: /

Вбудовано

Що ви отримуєте
  • Світла й темнаВикористовує кольори вашої теми
  • Комп’ютер, планшет і телефонЕкрани, для яких його створено
  • Пакети…
  • Розмір коду…
  • Економить батарею30 fps, у спокої не навантажує
  • Пауза, коли прихованоПоза екраном або в іншій вкладці
  • Зменшення рухуСпокійно для тих, хто цього просить

Перевіряється після кожної зміни

Безпеку перевірено 3 груд.
  • Перевірка типівСтрогий TypeScript
  • Лінтер і форматESLint · Prettier
  • Тести й збіркаСкриншоти у світлій і темній темах
  • Аудит безпекиБез високих чи критичних загроз
  • Вік пакетівКожна версія публічна 7+ днів
  • Процесор у спокоїМенше половини ядра у спокої, ≤ 30 fps

Код

errors-cinnabarReact
  • errors-cinnabar.tsxThe page: the sections in order.
  • content.tsEvery word and number: brand, nav links, each section's copy and lists.
  • theme.tsThe colors as CSS variables, and the shared class strings.
  • README.mdHow to install it, and where to change the text, colors and form.
  • pagesOne file per page: the sections it shows, in order.
    • alerts.tsxAlerts: every rule with what fires it, for which project, where it tells you and when it last fired, switched on or off in place, edited or deleted (Undo in the toast); and the alerts that fired lately, newest first.
    • issue.tsxOne issue's page: its level, id and title, Resolve and Ignore, the numbers (events, people hit, today, releases), events over the last 14 days, then tabs for the stack trace, breadcrumbs, recent events and the team's comments, with who has it, its details and tag spreads beside them.
    • issues.tsxEvery issue in the scope: Unresolved, Resolved and Ignored tabs with their counts, search, level, owner and sort in the address (#/issues?status=resolved&level=fatal), rows that glide as events re-sort them, a pick of rows for the bulk bar, and resolve that sweeps a row out.
    • overview.tsxThe overview: a greeting with the day so far, the KPI strip, events over the range, the top open issues (resolve them in place), the current release's health and the live feed.
    • projects.tsxProjects: one card per app that sends errors (the web store, admin, iOS and Android), with its last 24 hours, open issues, crash-free share, live release and the key its SDK sends with (copy it). Edit or delete each; New project adds one.
    • releases.tsxReleases: crash-free sessions across the last releases as a line, then every release in the scope with its rollout, crash-free share, the issues it brought and the ones it fixed. A row opens the release sheet; New release adds one.
    • settings.tsxSettings in three tabs (?tab=): the team, the integrations alerts post to, and Appearance (theme and language).
    • sign-in.tsxThe sign-in page (#/sign-in): the logo and the form on one card over the backdrop, without the sidebar and top bar: one calm card, the minimal look.
  • sectionsOne file per page section.
    • account-menu.tsxThe account menu under the avatar in the top bar: who is signed in, Settings and Sign out; the arrow keys move through it, Escape, Tab or a click outside closes it.
    • alert-form.tsxThe alert rule form, new (?new=alert) or editing one (?rule=r1): its name, what fires it (an event count, any new issue, crash-free under a share), over what window, for which project, and where it tells you.
    • appearance.tsxSettings → Appearance: the theme (System, Dark or Light), each choice shown as a small preview, and the language (System or one of locales/list.ts).
    • bottom-tabs.tsxThe phone's tab bar: the four pages used most, and More for the rest (the sidebar in a sheet). It sticks to the bottom of the screen under the page.
    • breadcrumbs.tsxThe breadcrumbs: what the person did in the seconds before the error, oldest first, on a thin timeline that ends at the error in the primary.
    • bulk-bar.tsxThe bar that rises when issues are picked: how many, resolve or ignore them all (they sweep out, Undo in the toast), give them to someone, or clear the pick.
    • feed.tsxThe live feed: what happened, newest first, in two lines (who did what, then the issue or rule muted under it); a row that arrives (a new issue, a teammate's comment, an alert) slides in at the top.
    • issue-activity.tsxAn issue's activity: the team's comments, oldest first, and a box to add one (Ctrl or ⌘ Enter sends it). A teammate's comment arrives live.
    • issue-rows.tsxThe issue list: one 40px row per issue with its level, title and where it broke, the 24-hour spark that pulses as events land, events, people hit, last seen, who has it and its one action in words. Rows glide when the order changes, new issues slide in at the top, and resolving sweeps a row out with a check (parts/sweep.ts).
    • issue-side.tsxAn issue's side column: who has it (pick someone), its details (project, environment, releases, first and last seen), and how its events spread over each tag, as thin bars.
    • kpi-strip.tsxThe KPI strip: four numbers in one bordered box, each with its line under it and a smooth sparkline; a changed number rolls to its new value and the sparkline follows.
    • project-form.tsxThe project form, new (?new=project) or editing one (?project=ios): its name, slug, platform, owning team and how many events a minute it may send.
    • release-health.tsxThe current release's health on the overview: its version, crash-free sessions, how far it has rolled out, the issues it brought and the ones it fixed. Its link opens the release sheet.
    • release-sheet.tsxA release in the side sheet ([email protected]): its crash-free share, sessions and rollout, its notes (edit and save), the issues it brought and the ones it fixed, and making it the live release or deleting it. Also the New release form (?new=release).
    • settings-integrations.tsxSettings → Integrations: Slack, GitHub, Jira, PagerDuty and Vercel, each connected to a channel, repo or service (change it and save) or not, with Connect and Disconnect.
    • settings-team.tsxSettings → Team: who is on the team, their role (pick a new one in place), inviting someone and removing them (their issues go back to nobody).
    • sidebar.tsxThe sidebar: the workspace, search with the ⌘K shortcut, the pages in two groups with their counts and a pill that glides to the current one, Settings, and the live strap with its pause.
    • sign-in-form.tsxThe sign-in form: email and password with their errors under them, show or hide the password, keep me signed in, and the demo account to fill in; a wrong pair says so above the fields.
    • stack-trace.tsxThe stack trace: the frames the error passed through, the one that threw first. Your own code's frames are bright and the first opens on the code around the line, the line that threw marked; library frames are muted and fold away behind one toggle.
    • top-bar.tsxThe top bar: the menu button on narrow screens, where you are, the scope every page follows (project, environment, time range), the live dot, New alert, the theme switch and the account menu. On a phone the scope moves to a second row. It frosts only once the page scrolls under it.
  • partsWhat several sections share.
    • buildWhat several sections share.
      • cardsWhat several sections share.
        • text.tsThe text card style: cards fade in while titles, labels and numbers (data-build="text") slide up from behind a mask; numbers show their final text.
      • rowsWhat several sections share.
        • unfold.tsThe unfold row motion: each row on screen opens down from its top edge, from faint.
      • core.tsxThe page's build-in: on first load and on every page switch the cards arrive in the app's card style and their contents build: bars grow, lines draw, rings fill, the list rows on screen ripple in in the app's row motion, numbers count. The two picks are wired in ./index.ts.
      • index.tsThe app's two build-in picks, wired here and nowhere else: its card style (cards/) and its row motion (rows/). npm run new-app copies only the two it is given (--cards, --rows).
    • appearance.tsHow the app looks right now: dark or light, Glass or Solid, from Settings → Appearance, the page around it and the Style setting.
    • avatar.tsxA person's initials in a round badge, tinted with the primary.
    • backdrop.tsxThe backdrop behind the app: hidden in Cinnabar's solid look, and your background when it follows one (followBackground).
    • bar-chart.tsxA bar chart: bars grow in, and the picked bar (in the primary), its guide line and tooltip glide to the bar you point at or pick with the arrow keys; a new range morphs the bars instead of drawing them again.
    • command-palette.tsxThe command palette (⌘K or Ctrl K): type to find a page or an action, then Enter.
    • dialog.tsxA centered modal dialog (a form, a confirm): rises in, plays its way out, Escape or a tap outside closes it, and the focus goes back where it was.
    • field.tsxA labeled form field (a text input or a select) with its error line under it, tied together for screen readers.
    • flip.tsFLIP for a list that re-sorts or filters: after each change every row that stayed glides from where it was to where it is now. Rows carry data-flip="<id>"; positions are measured inside the list, so a page scroll never reads as a move.
    • format.tsHow numbers and dates are written: by Intl, the current language's way ("1,240", "1.240"; "Nov 19", "19 nov."). Add a helper here when a page needs money, times or a list.
    • icons.tsxThe logo and the line icons, drawn on a 24-unit grid with round ends.
    • issue-bits.tsxSmall pieces every issue view shares: the level mark (fatal, error, warning), a project's platform icon, and which rows just arrived.
    • language.tsThe app's language: the words every page reads (useWords), how dates and numbers are written (parts/format.ts) and the reading direction. Picked in Settings → Appearance (or System: the page's own language) and kept in this browser; English is built in, any other language loads only when it shows (locales/list.ts).
    • line-chart.tsxA line chart with a soft area under it, in the primary: the line draws itself in, the latest point marked, and new values roll the line to its new shape.
    • live-clock.tsxOne shared clock for everything live: it ticks only while something on screen listens, the tab is visible and live isn't paused, and the bare button that pauses it. What a tick does (move the demo's time, bring in an event, reload) is the app's, passed to liveClock.
    • live.tsThe app's one live clock: every second it moves the demo along (data/live.ts) and, when something landed, every page reloads in place. It rests while nothing live is on screen, the tab is hidden or live is paused.
    • moments.tsThe animations the sidebar, the sign-in card, menus, dialogs, the phone sheet and toasts play, timed by their moments in theme.ts.
    • motion.tsMotion helpers: the reduced-motion check, live, and run-once-in-view.
    • overlays.tsxEverything that opens over the page from the address: a release in the side sheet, and the forms (new or edited alert rule, project, new release). Any page can open one by adding its query ([email protected], ?new=alert).
    • read.tsOne read of the fake API by its key, through useApi: useRead("projects"), useRead<"issue">(`issue:${id}`). Each key keeps one load function, so a page that mounts again finds its answer.
    • router.tsThe page switcher: reads the app's page from the address hash (#/settings, #/?status=open).
    • scope.tsWhat the top bar scopes every page to: one project or all, the environment, and the time range of the Overview's chart and numbers. Kept while you move between pages.
    • scroll-to-view.tsScrolls an element into view moving only its own scroll container, never the page around it.
    • select-box.tsxA native select dressed to match the app: no browser arrow, a drawn chevron instead.
    • session.tsWhether someone is signed in: a first visit is signed in as the demo account; Sign out holds until the next sign-in, and a sign-in without Keep me signed in lasts only this tab.
    • sheet.tsxThe phone sheet: a modal panel that springs in from the left with the sidebar; Escape, a tap outside or its close button slides it away.
    • side-sheet.tsxThe detail sheet: a modal panel that slides in from the end edge over the page (a release, a form), with tabs whose underline glides to the one picked. Escape, a tap outside or its close button slides it away; the address keeps what it shows ([email protected]).
    • spark.tsxAn issue's spark histogram: its events over the last 24 hours as small rounded bars, the current hour in the primary. When an event lands (the issue's pulse changes) the current bar grows and flashes.
    • states.tsxThe data states every page shares: a calm skeleton while loading, an error with Try again, and an empty note with a way out.
    • store.tsThe app-wide state several parts share: the theme mode and style (kept in the browser) and the toasts.
    • sweep.tsResolving (or ignoring, or reopening) from a list: the row draws a check, sweeps out toward the end edge and folds shut, then the save lands and a toast offers Undo. With reduced motion the row just goes.
    • ticker.tsxA number that counts up while its page builds in, and rolls to its new value whenever it changes.
    • toasts.tsxThe toasts: short notes that confirm what just happened, at the bottom end.
    • use-api.tsLoads data through the fake API with loading, error and retry, remembering each answer so a page you come back to shows at once.
    • use-dialog.tsOpens and closes a native <dialog> as a modal; on close it plays its way out first (data-closing), so dialogs, sheets and the palette never vanish in one frame.
  • dataThe pretend data and the fake API: swap it for your backend.
    • account.tsThe demo account: who is signed in (the account menu shows them) and the email and password the sign-in page takes.
    • api.tsThe fake API: every page loads and saves through these functions, so wiring a real backend happens here only.
    • db.tsThe pretend database: every list the pages read, and every change a page or the live demo makes (resolve, assign, comment, rules, projects, releases, the team). data/api.ts reads and saves through it.
    • live.tsThe live demo: errors keep landing on the open issues (busier ones more often), sessions keep coming in, now and then a brand-new issue shows up and fires its alert, and teammates pick up issues and comment.
    • now.tsThe demo's clock: today at 14:20, a busy hour for a shop, plus the real time since the app loaded, so "today" is never thin and live events land at the right minute. Swap now() for the real time when you wire your backend.
    • seed-detail.tsWhat an issue's page shows under its title: the stack trace (frames with the code around the line that threw), the breadcrumbs that led there, the tag spreads and its recent events, drawn from a few templates per platform.
    • seed-issues.tsThe pretend issues: the errors Northwind Shop's web store, admin and phone apps throw, grouped, with smooth hourly counts that follow a shop's day (quiet at night, busy at lunch and after dinner).
    • seed-org.tsThe pretend organisation: Northwind Shop's four projects (web storefront, admin, iOS and Android apps), their releases, the alert rules, the team and the connected tools.
    • types.tsThe shapes every page reads: projects, issues and their events, releases, alert rules, the team and integrations. A real backend answers in these shapes (data/api.ts).
    • views.tsWhat each page shows, worked out from the database for a scope (project, environment, range): the Overview's numbers and chart, the issue list with its filters, an issue's page, releases, projects and alerts.
  • localesEvery word the app shows, one JSON file a language; list.ts names them.
    • en.jsonOne language's words, with the keys of en.json.
    • es.jsonOne language's words, with the keys of en.json.
    • list.tsThe languages the app offers, in the picker's order: one JSON file each, en.json the source. To remove one, delete its file and its line; to add one, copy es.json, translate it and add a line. English is built in; the rest load only when picked. TypeScript checks each file has en.json's keys, scripts/check/check-locales.mjs the rest (no extra keys, plural forms, {slots}).

errors-cinnabar.tsx

The page: the sections in order.

Завантаження…
Підходить для
Engineering teams shipping a web and mobile app every week who want to see errors, who they hit and which release fixed them.
Як це працює
Events land live: an issue's spark bar pulses and its count rolls. Resolve one and the row sweeps out with a check.
Як користуватися
Edit words in content.ts and colors in theme.ts, and swap the bodies in data/api.ts for calls to your backend.