# Application Admin and Moderation: Violation Trends Panel

Eight weeks of report volume as stacked bars segmented by policy category, beside a category breakdown with totals, four week deltas, and share bars.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/violation-trends-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-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/violation-trends-panel.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-admin-moderation-violation-trends-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, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/admin-moderation/violation-trends-panel`

## About this block

Violation Trends Panel is the reporting view for policy
volume, eight weeks of reports rendered as stacked bars
segmented by category (Spam and solicitation, Harassment,
Misinformation, Hate speech). Each bar height scales to that
week total and the segments split by category share, all
drawn from foreground opacity swatches with no color
literals. A note under the chart names the Jun 8 spam spike,
the coordinated campaign behind it, and the automation rule
shipped Jun 12 that has cut spam every week since. The right
panel breaks each category down with its total, its trailing
four week delta, a share bar, and a callout flagging
misinformation as the fastest rising category.

Weeks and categories are typed arrays and every total, share,
and grand total derives from them, so a data swap keeps the
chart and the breakdown in sync. Deltas render with an up or
down arrow driven by sign, never by a hardcoded direction.

## When to use

Reach for this block on the moderation analytics page, wired
to your reports warehouse aggregated by week and category.
Pair the Export report button with the same query so a
stakeholder deck matches the panel exactly.

A natural flow around it on an Application Pro page:

**Before**

- [Queue health panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)
- [Moderator performance board](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)

**After**

- [Reports](https://www.shadcn-ui-blocks.com/blocks/application-pro/reports)
- [Automation rules panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation)

## What you can display

One strong use is the weekly violation trend review. Other
trends panel configurations:

- **Automated vs member.** Two stacks side by side comparing
  detector hits against human reports per week.
- **Single category drill.** One category expanded across
  more weeks with its own subtype breakdown.
- **Post enforcement view.** Bars colored by outcome, removed
  versus dismissed, to show action rate over time.

> Tip: keep the spike annotation tied to the action you took;
> a trend chart earns its place only when it explains what
> changed and what you shipped in response.

## More in Application Admin and Moderation

- [Audit Search Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/audit-search-panel)
- [Automation Rules Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/admin-moderation/automation-rules-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)
