Skip to main content
Version: 1.0.0
Last Updated: 2025-12-31
Owning Module: PF (Platform Foundation)

Overview

This guide documents the standardized pattern for module dashboard/overview pages. All overview pages should use PageHeader and StatCard components for consistency.

Architecture

Quick Start

Dashboards vs Overviews

When to Use Each

  • Dashboard: When users need customizable widgets and real-time KPIs
  • Overview: When users need a landing page with navigation to sub-areas
Examples:

StatCard

Metric display card with optional click action and variants.
Examples:

Stat Card Patterns

Defining Stat Cards

Use arrays for maintainability:

Conditional Variants

Use a helper function for type safety:

Rendering Stat Cards

Grid Layouts

Standard Gaps

Use consistent gap sizing:

Responsive Columns

Section Organization

With Section Headers

Without Section Headers

For simpler pages:

Conditional Rendering

AI Features

Permission-Based

Existing Implementations

Reference these standardized overview pages:

Best Practices

  1. Always use PageHeader - Never custom headers
  2. Always use StatCard - Never inline Card components
  3. Define cards as arrays - Better maintainability
  4. Handle loading states - Pass loading prop to StatCard
  5. Use semantic variants - destructive for errors, warning for alerts
  6. Keep grids consistent - Use standard gap and column patterns
  7. Group related metrics - Use section headers when needed
  8. Make cards clickable - Navigate to relevant detail pages

Anti-Patterns to Avoid

Patterns

Standards