Skip to content

feat(example): rebuild as comprehensive component showcase#103

Merged
jonmatum merged 1 commit into
mainfrom
claude/extract-app-shell-package-MKw9E
Apr 27, 2026
Merged

feat(example): rebuild as comprehensive component showcase#103
jonmatum merged 1 commit into
mainfrom
claude/extract-app-shell-package-MKw9E

Conversation

@jonmatum
Copy link
Copy Markdown
Owner

Summary

Complete rebuild of the example app as a comprehensive showcase demonstrating every major library feature across 5 pages + shell layout. 2,508 lines added, 1,103 removed.

Pages

Shell Layout

  • All Sidebar sub-components: Header, Content, Group, GroupLabel, Separator, Footer
  • TopBar with SidebarTrigger + Breadcrumbs (left), CommandBarTrigger (center), ThemeToggleDropdown + notification bell (right)
  • User avatar + sign-out in sidebar footer
  • CommandBar + CommandBarActions wired with permissions
  • packageVersion display

Dashboard

  • 4 stat cards with formatCurrency/formatNumber/formatPercent + Progress sparklines
  • CSS bar chart (Mon-Fri) with Tooltip hover values
  • Activity feed with formatRelativeTime + typed Badges + Avatars
  • Quick actions: useCopyToClipboard, useHotkey, useLocalStorage
  • Toast demo card (success/error/promise)

Data (Invoices)

  • Table with Checkbox select-all, 8 columns, 10 rows
  • DropdownMenu row actions (View/Edit/Duplicate/Delete)
  • Badge status variants, formatCurrency/formatDate
  • Tabs filtering (All/Paid/Pending/Overdue)
  • Table footer with selected count + total

Components

  • Actions: Button (6 variants, 4 sizes), Toggle, ToggleGroup
  • Forms: Input, Textarea, Select, Checkbox, Switch, Slider, Label
  • Feedback: Alert, Badge, Progress, Skeleton
  • Overlays: Dialog, Sheet, AlertDialog, DropdownMenu, Tooltip, Popover
  • Data: Accordion, Tabs, Avatar, Separator
  • Navigation: Breadcrumb

Admin (Auth)

  • SignedOut: EmptyState
  • RoleGate fallback: ErrorState
  • User info + session status cards
  • Permission checker (useHasPermission)
  • Users table with Avatar/Badge
  • Nested RoleGate examples

Settings (Forms)

  • Profile: Avatar + Input/Textarea + useLocalStorage
  • Notifications: Switch toggles with Labels
  • Appearance: ThemeToggleDropdown + Select + Checkbox
  • Security: useCopyToClipboard + AlertDialog delete confirmation

Verification

pnpm format     ok
pnpm lint       ok (0 warnings)
pnpm test       ok — 712 tests

https://claude.ai/code/session_012jm3cqmXeTNn961PViqct4


Generated by Claude Code

Complete rewrite of all 5 pages + shell layout to demonstrate every
major library feature:

Shell: all Sidebar sub-components (Header, Content, Group, GroupLabel,
Separator, Footer), TopBar with CommandBarTrigger center slot, user
avatar + sign-out in footer, notification bell, packageVersion display

Dashboard: 4 stat cards with formatCurrency/formatNumber/formatPercent
+ Progress sparklines, CSS bar chart, activity feed with
formatRelativeTime + typed Badges, quick actions (useCopyToClipboard,
useHotkey, useLocalStorage), toast demos

Data: invoice table with Checkbox select-all, DropdownMenu actions,
Badge status, formatCurrency/formatDate, Tabs filtering, table footer
with selected total

Components: every major primitive — Button (6 variants, 4 sizes),
Toggle/ToggleGroup, Input/Textarea/Select/Checkbox/Switch/Slider,
Alert/Badge/Progress/Skeleton, Dialog/Sheet/AlertDialog/DropdownMenu/
Tooltip/Popover, Accordion/Tabs/Avatar/Separator/Breadcrumb

Admin: auth guards showcase — SignedOut EmptyState, RoleGate fallback,
user info card, session status, permission checker with useHasPermission,
users table, nested RoleGate examples

Settings: 4-tab form controls — Profile (Avatar + inputs + useLocalStorage),
Notifications (Switch toggles), Appearance (ThemeToggleDropdown + Select +
Checkbox), Security (useCopyToClipboard + AlertDialog delete confirmation)

https://claude.ai/code/session_012jm3cqmXeTNn961PViqct4
Copy link
Copy Markdown
Collaborator

@jonmatumdev jonmatumdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI review found 2 warning(s) but no critical issues. Auto-approved.

CardContent,
CardDescription,
CardHeader,
CardTitle,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [WARNING] Potential null/undefined access without check when accessing user?.image, user?.name, user?.email

UserPlus,
ShieldCheck,
} from 'lucide-react';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 [WARNING] Hardcoded demo API key might be mistakenly left in production code

@jonmatum jonmatum marked this pull request as ready for review April 27, 2026 03:11
@jonmatum jonmatum merged commit c8d7fc2 into main Apr 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants