Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Alert Rules Changelog Block for Vue

Six changed alert rules as cells on shared hairlines, each with a threshold track showing the old marker hollow and the new one solid, the figures in words, the channels it reaches and its severity, with a channel toggle that steps back the rules that never reach it.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

An alert-rules changelog for Vue with Ark UI, written for Alarmwick, a fictional alerting service. A start-aligned header carries the title, one sentence that says nothing is sent from the page, and a toggle group (All, Email, Pager, Chat) with a polite line that counts the rules reaching the chosen channel. Under it a band of six cells sits on shared hairlines, two columns from lg and one before. Each cell names the rule, says what it watches and draws a threshold track: a hollow marker where the threshold was, a solid one where it is now, the stretch between them filled, and the two figures in words ("500 ms to 350 ms") with Stricter or Looser. Under the track sit the rule's channels as outline chips with an icon and a word, and its severity as a glyph and a word (Critical, Warning, Info). Choosing a channel turns that channel's chips solid and steps back the rules that never reach it. It's built from Toggle Group, Badge and Guides, with CSS transitions for the entrance and your theme's tokens for every colour. For monitoring changelogs and on-call handbooks. The rules are example data and nothing is sent.

FAQ

How do I change the rules?

Edit RULES at the top of the file. A rule is an id, a name, what it watches, the was and now thresholds on a track from min to max, a unit, whether the new one is stricter, its severity and its channels. The marker positions and the figures in words are computed from those numbers, and the channel buttons come from CHANNELS.

How do I read the threshold track?

The hollow marker is where the threshold was and the solid one is where it is now; the filled stretch between them is the change. The track is decoration, hidden from assistive technology: the same facts are in the sentence beside it ("500 ms to 350 ms") with the word Stricter or Looser, so nothing relies on the drawing.

How are severity and channels shown without colour?

Severity is a glyph and a word (an octagon and Critical, a triangle and Warning, a circle and Info) and each channel is an outline chip with an icon and a word (Email, Pager, Chat). No status colour is used.

What does the channel picker do?

It is a single-choice toggle group with one button always pressed. A channel turns its chips solid and steps back, to a light solid tint, the rules that never reach it, so the cells never move. A polite line says how many rules reach the channel. The picker changes no data and nothing is sent: this is a changelog, not a console.

How does it fit on a phone and in a right-to-left layout?

Below lg the cells stack in one column. The tracks keep their left-to-right direction in a right-to-left layout, since a scale doesn't mirror, while the text, the chips and the arrow words follow the reading direction.