mix phoenix_kit.gen.dashboard_tab (phoenix_kit v1.7.42)

Copy Markdown View Source

Igniter task that adds a tab to the user dashboard configuration.

Usage

mix phoenix_kit.gen.dashboard_tab "Category Name" "Tab Title" --url="/dashboard/path"

Arguments

  • category - The category name (e.g., "Farm Management")
  • tab_title - The display title for the tab

Options

  • --url - The URL path for the tab (required)
  • --icon - Heroicon name for the tab (optional, defaults to "hero-document-text")
  • --description - Brief description for the tab (optional)
  • --category-icon - Heroicon name for the category (optional, defaults to "hero-folder"). Only used when creating a new category.

Examples

# Add a History tab to Farm Management category
mix phoenix_kit.gen.dashboard_tab "Farm Management" "History" \
  --url="/dashboard/history" \
  --icon="hero-chart-bar" \
  --category-icon="hero-cube"

# Add a Settings tab to Account category
mix phoenix_kit.gen.dashboard_tab "Account" "Settings" \
  --url="/dashboard/settings" \
  --icon="hero-cog-6-tooth" \
  --description="Manage your account settings"