Igniter task that generates admin pages with automatic route registration.
Usage
mix phoenix_kit.gen.admin_page MyCategory MyPage "Page Title" --url="/admin/my-page"Arguments
category- The category name (becomes parent tab)page_name- The name for the page module (PascalCase)page_title- The display title for the page
Options
--url- The URL path for the page (required)--icon- Heroicon name for the child tab (optional, defaults to "hero-document-text")--permission- Permission key for parent tab (optional, defaults to "dashboard")--category-icon- Heroicon name for the parent tab (optional, defaults to "hero-folder"). Only used when creating a new parent.
Parent/Child Tab Behavior
- First page in a category creates both parent and child tabs
- Subsequent pages in the same category only add the child tab
- Parent tab path points to the first child's URL
- Routes are automatically generated via the
live_viewfield