This guide helps developers migrate from the old sidebar-based navigation to the new header-based navigation system with PostHog analytics integration.
The entire mock-apollo/ directory and service has been removed. All Apollo API calls now use the real Apollo API.
Action Required:
- Remove any references to the mock Apollo service from your environment
- Configure your Apollo API key via the Integrations page (http://localhost:3000/dashboard/integrations)
- Update any scripts or documentation that referenced
mock-apollo/ - Remove Docker configurations for the mock Apollo service
The application has moved from sidebar navigation to header-based navigation.
Changes:
- ❌ Removed:
MainNavigation.tsx(sidebar component) - ❌ Removed:
BreadcrumbNavigation.tsx(old breadcrumb system) - ✅ Added:
comp-589.tsx(header navigation) - ✅ Added:
UniversalBreadcrumb.tsx(new breadcrumb system) - ✅ Added:
AppShell.tsxandDashboardShell.tsx(layout components)
Action Required:
- Update any custom pages to use the new
DashboardShelllayout - Remove any imports of the old navigation components
- Update navigation links to use the new header structure
All UI components have been updated to use the COSS design system.
Updated Components:
avatar.tsx,badge.tsx,breadcrumb.tsx,button.tsxcheckbox.tsx,dialog.tsx,dropdown-menu.tsxinput.tsx,label.tsx,navigation-menu.tsxprogress.tsx,select.tsx,table.tsx,tabs.tsxtextarea.tsx
New Components:
alert-dialog.tsx- Alert dialogs for confirmationspagination.tsx- Pagination controlspopover.tsx- Popover menustooltip.tsx- Tooltipsutils.ts- Utility functions for components
Action Required:
- Review custom components that use UI primitives
- Update any custom styling to match the new design system
- Test all UI interactions
PostHog analytics has been integrated for user behavior tracking.
New Files:
frontend/src/lib/posthog.ts- PostHog initializationfrontend/src/lib/analytics.ts- Analytics helper functionsfrontend/src/components/providers/PosthogProvider.tsx- PostHog provider component
Environment Variables:
Add to frontend/.env.local:
NEXT_PUBLIC_POSTHOG_KEY=your_posthog_project_api_key
NEXT_PUBLIC_POSTHOG_HOST=https://app.posthog.comUsage:
import { captureUiEvent, captureNavigation, captureLandingAction } from '@/lib/analytics';
// Track UI interactions
captureUiEvent('button_click', { button: 'submit', page: 'dashboard' });
// Track navigation
captureNavigation('Dashboard', '/dashboard');
// Track landing page actions
captureLandingAction('signup_started');New table management components with @tanstack/react-table integration.
New Files:
frontend/src/components/dashboard/AdvancedTablesView.tsxfrontend/src/components/dashboard/AdvancedTablesViewSkeleton.tsxfrontend/src/components/dashboard/TablesPageAdapter.tsxfrontend/src/components/dashboard/TablesView.tsxfrontend/src/components/tables/TableStats.tsxfrontend/src/lib/tableTransformers.ts
Features:
- Sorting, filtering, and pagination
- Bulk selection and actions
- Row expansion for details
- CSV export functionality
- Real-time updates
Enhanced file upload functionality with progress tracking.
New Files:
frontend/src/components/upload/CsvUploadModal.tsxfrontend/src/hooks/use-file-upload.ts
Features:
- Drag and drop file uploads
- Real-time upload progress
- File validation and error handling
- Multiple file support
Sonner library integration for elegant notifications.
Usage:
import { toast } from 'sonner';
toast.success('Upload complete!');
toast.error('Upload failed. Please try again.');
toast.loading('Uploading file...');ESLint has been added to the backend for code quality.
New Files:
- Backend now includes ESLint configuration
Commands:
cd backend
npm run lint # Run ESLint
npm run lint:fix # Auto-fix linting issuesThe docker-compose.dev.yml file has been removed. All development configuration is now in docker-compose.yml.
Action Required:
- Remove any references to
docker-compose.dev.yml - Use
docker-compose.ymlfor all environments - Update your development scripts if needed
Several documentation files have been removed or consolidated:
- ❌ Removed:
BUILD_OPTIMIZATIONS.md - ❌ Removed:
DOCKER_OPTIMIZATION.md - ❌ Removed:
NETWORKING.md - ✅ Updated:
README.md,ENVIRONMENT.md,DEVELOPMENT.md,CONTRIBUTING.md
Use this checklist to ensure a smooth migration:
- Pull latest changes from the
001-navigation-barbranch - Run
npm installin bothfrontend/andbackend/directories - Update your
.envfiles with new PostHog variables (optional) - Remove any mock Apollo service references
- Configure your Apollo API key via the Integrations page
- Test the new header navigation
- Test table management features
- Test CSV upload functionality
- Verify all UI components render correctly
- Run linting:
npm run lintin both frontend and backend - Build the project:
npm run build - Test your custom features/pages
- Update any custom documentation
If you encounter build errors:
# Clean install dependencies
rm -rf node_modules package-lock.json
npm install
# Clear Next.js cache
cd frontend && rm -rf .nextIf you see TypeScript errors with new components:
cd frontend
npx tsc --noEmitIf analytics aren't working:
- Check that
NEXT_PUBLIC_POSTHOG_KEYis set in.env.local - Verify the PosthogProvider is wrapping your app in
layout.tsx - Check browser console for PostHog initialization messages
If navigation isn't working:
- Clear browser cache and cookies
- Check that the user is authenticated
- Verify the
AppShellcomponent is being used - Check browser console for errors
- README.md - Updated project overview
- ENVIRONMENT.md - Environment variables guide
- DEVELOPMENT.md - Development workflow
- CONTRIBUTING.md - Contribution guidelines
- PostHog Documentation - Analytics documentation
- COSS UI Documentation - UI component library
If you encounter issues during migration:
- Check existing GitHub Issues
- Create a new issue with the
migrationlabel - Join our community discussions
- Contact the maintainers
Last Updated: October 15, 2025
Migration Version: v2.0.0 (Navigation Bar Update)