refactor: Consolidate frontends/nextjs into root hooks and components

Hooks consolidation:
- frontends/nextjs now imports from @metabuilder/hooks
- Deleted empty directories (data/, use-dbal/, __tests__/)
- Deleted outdated documentation
- Added @metabuilder/hooks dependency to package.json
- Kept NextJS-specific auth hooks locally (have @/lib/* dependencies)
- Added missing useWorkflowExecutions export to root hooks

Components consolidation:
- Deleted duplicates: Skeleton, LoadingIndicator, EmptyState, ErrorBoundary, AccessDenied
- Created new /components/vanilla/access-denied/ component
- Updated /components exports and package.json
- frontends/nextjs/src/components/index.ts now re-exports from @metabuilder/components
- Updated imports in LoadingSkeleton, EmptyStateShowcase, page.tsx

Organization principle: Project-specific code is fine in root folders
as long as it's well organized.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 22:37:35 +00:00
parent 156715f36d
commit 8fcc71d530
21 changed files with 275 additions and 1961 deletions

View File

@@ -135,7 +135,7 @@ export { useResolvedUser } from './useResolvedUser'
export { useUserActions } from './useUserActions'
export { useUserForm } from './useUserForm'
export { useUsers } from './useUsers'
export { useWorkflow } from './useWorkflow'
export { useWorkflow, useWorkflowExecutions } from './useWorkflow'
// Re-export types
export type { AuthUser } from './use-auth'