import type { Meta, StoryObj } from '@storybook/react' import { useState } from 'react' import { DetailPage } from './DetailPage' import { AppShell } from '@/components/templates/AppShell/AppShell' import { TopBar } from '@/components/organisms/TopBar/TopBar' import { SideNav, SideNavItem, SideNavGroup, SideNavDivider } from '@/components/organisms/SideNav/SideNav' import { PageHeader } from '@/components/organisms/PageHeader/PageHeader' import { Card, CardHeader, CardTitle, CardContent } from '@/components/molecules/Card/Card' import { Badge } from '@/components/atoms/Badge/Badge' import { Avatar } from '@/components/atoms/Avatar/Avatar' import { Button } from '@/components/atoms/Button/Button' import { Tabs, TabList, Tab, TabPanel } from '@/components/atoms/Tabs/Tabs' import { NswLogo, TopBarAction } from '@/components/templates/_story-helpers' import { Menu, Bell, Home, FileText, LayoutGrid, Users, Settings, Mail, Phone, MapPin, Edit } from 'lucide-react' const meta: Meta = { title: 'Templates/DetailPage', component: DetailPage, tags: ['autodocs', 'template'], parameters: { layout: 'fullscreen', docs: { description: { component: 'Detail page template for viewing a single record, profile, or document. Single-column layout with constrained max-width for readability.', }, }, }, } export default meta type Story = StoryObj const InfoRow = ({ label, value, icon }: { label: string; value: string; icon: React.ReactNode }) => (
{icon}

{label}

{value}

) export const ProfileView: Story = { name: 'Profile detail', render: () => { const [collapsed, setCollapsed] = useState(false) const [activeTab, setActiveTab] = useState('overview') return ( } label="Menu" onClick={() => setCollapsed(!collapsed)} />} logo={} > } label="Notifications" /> } sideNav={ }>Home } active>Team }>Projects }>Documents }>Settings } sideNavCollapsed={collapsed} >
Active Full-time
} actions={ Overview Projects Activity } >
Contact information } label="Email" value="alex.chen@example.com" /> } label="Phone" value="+61 2 9876 5432" /> } label="Location" value="Sydney CBD, Level 12" /> Quick actions
Project list content Activity feed content
) }, } export const DocumentView: Story = { name: 'Document detail', render: () => ( } maxWidth="lg" >

Overview

This document outlines the scope, objectives, and timeline for the upcoming platform migration project. The project aims to consolidate three legacy systems into a single unified platform.

Objectives

  • Reduce operational costs by 40% through system consolidation
  • Improve data consistency across all business units
  • Provide a modern, accessible user interface
  • Enable real-time reporting and analytics

Timeline

The project is planned across three phases over 18 months, with the first phase targeting core data migration and the second phase focusing on user-facing features.

), }