# Application Admin and Moderation: Automation Rules Panel

Automated rule cards in a two column grid with enabled switches, monospace When and Then chips, and match, precision, and overturned stats.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/automation-rules-panel
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Admin and Moderation](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/automation-rules-panel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-admin-moderation-automation-rules-panel
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge, button, switch
- Installs to: `@/components/blocks/application-pro/admin-moderation/automation-rules-panel`

## About this block

Automation Rules Panel is the configuration surface for
machine moderation, a two column grid of rule cards with
5 enabled and 1 paused. Each card pairs an enable switch
with a When and Then description rendered as monospace
chips, so the trigger condition and the resulting action
read like the policy they encode. A footer stat row on
every card carries matches over 7 days, precision, and
overturned appeals, and a top callout states the
guardrail plainly: automation can hold, hide, rate
limit, and escalate, but it never issues suspensions or
permanent bans on its own.

The enabled count in the header derives from a filter
over the rules array, so the headline can never disagree
with the switches below it. The paused shouting rule
ships at 62% precision to prove the layout under a real
low quality case, and the footer defines the retuning
contract: precision is the share of automated actions
upheld after human review, and any rule under 85% is
paused automatically and flagged.

## When to use

Reach for this block on the automation settings page of
a moderation admin area, wired to your rules engine and
its trailing metrics. Keep the reversibility callout
next to the grid so the operator installing a new rule
sees the enforcement ceiling before they flip a switch.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Workflow automation](https://www.shadcn-ui-blocks.com/blocks/application-pro/workflow-automation)

**After**

- [Content flags table](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)
- [Audit search panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)

## What you can display

One strong use is the trust and safety automation
console. Other rule panel configurations:

- **Alerting rules.** Threshold and window conditions
  routed to on call channels instead of moderation
  actions.
- **Data pipeline guards.** Validation rules that quarantine
  bad rows, with match counts standing in for precision.
- **Billing risk rules.** Fraud signals that hold a charge
  for review rather than declining it outright.

> Tip: show precision and overturned on every card, not
> just the match count; a rule firing constantly looks
> productive right until the overturned column reveals it
> is punishing the wrong people.

## More in Application Admin and Moderation

- [Audit Search Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/audit-search-panel)
- [Ban Appeal Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/ban-appeal-panel)
- [Bulk Review Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/bulk-review-table)
- [Content Flags Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/content-flags-table)
- [Escalation Path Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/escalation-path-panel)
- [Feature Toggle Admin](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/feature-toggle-admin)
- [IP Blocklist Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/ip-blocklist-manager)
- [Keyword Filter Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/keyword-filter-manager)
- [Moderation Queue](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/moderation-queue)
- [Moderator Performance Board](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/moderator-performance-board)
- [Queue Health Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/queue-health-panel)
- [Report Review Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/report-review-card)
- [Role Permissions Matrix](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/role-permissions-matrix)
- [User Admin Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/user-admin-table)
- [User Risk Profile](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/user-risk-profile)
- [Violation Trends Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/violation-trends-panel)
