2025-05-13 18:50:30 +02:00
|
|
|
{
|
|
|
|
|
"name": "puffin-offset",
|
|
|
|
|
"private": true,
|
|
|
|
|
"version": "1.0.0",
|
|
|
|
|
"type": "module",
|
|
|
|
|
"scripts": {
|
2025-10-31 22:23:45 +01:00
|
|
|
"dev": "next dev",
|
2025-11-04 15:32:50 +01:00
|
|
|
"prebuild": "node scripts/inject-sw-version.js",
|
2025-10-31 22:23:45 +01:00
|
|
|
"build": "next build",
|
|
|
|
|
"start": "next start",
|
|
|
|
|
"lint": "next lint",
|
2025-05-13 18:50:30 +02:00
|
|
|
"test": "vitest"
|
|
|
|
|
},
|
|
|
|
|
"dependencies": {
|
2025-11-03 09:35:43 +01:00
|
|
|
"@types/jsonwebtoken": "^9.0.10",
|
2025-11-03 18:28:51 +01:00
|
|
|
"@types/qrcode": "^1.5.6",
|
2025-05-13 18:50:30 +02:00
|
|
|
"axios": "^1.6.7",
|
|
|
|
|
"dotenv": "^8.2.0",
|
2025-06-03 14:07:33 +02:00
|
|
|
"framer-motion": "^12.15.0",
|
2025-11-03 09:35:43 +01:00
|
|
|
"jsonwebtoken": "^9.0.2",
|
2025-05-13 18:50:30 +02:00
|
|
|
"lucide-react": "^0.344.0",
|
2025-10-31 22:23:45 +01:00
|
|
|
"next": "^16.0.1",
|
Integrate NocoDB backend for admin portal with real data
Phase 2 Backend Integration Complete:
Backend Infrastructure:
- Created NocoDB client abstraction layer (src/api/nocodbClient.ts)
- Clean TypeScript API hiding NocoDB query syntax complexity
- Helper methods for orders, stats, search, timeline, and filtering
- Automatic date range handling and pagination support
API Routes:
- POST /api/admin/stats - Dashboard statistics with time range filtering
- GET /api/admin/orders - List orders with search, filter, sort, pagination
- GET /api/admin/orders/[id] - Single order details
- PATCH /api/admin/orders/[id] - Update order fields
- DELETE /api/admin/orders/[id] - Cancel order (soft delete)
- GET /api/admin/orders/export - CSV/Excel export with filters
Dashboard Updates:
- Real-time data fetching from NocoDB
- Time range selector (7d, 30d, 90d, all time)
- Recharts line chart for orders timeline
- Recharts pie chart for status distribution
- Loading states and error handling
- Dynamic stat cards with real numbers
Dependencies Added:
- papaparse - CSV export
- xlsx - Excel export with styling
- @types/papaparse - TypeScript support
Data Types:
- OrderRecord interface for NocoDB data structure
- DashboardStats, TimelineData, OrderFilters interfaces
- Full type safety across API and UI
Environment Configuration:
- NOCODB_BASE_URL, NOCODB_BASE_ID configured
- NOCODB_API_KEY, NOCODB_ORDERS_TABLE_ID configured
- All credentials stored securely in .env.local
Ready for testing with sample data in NocoDB!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 10:40:25 +01:00
|
|
|
"papaparse": "^5.5.3",
|
2025-11-03 18:28:51 +01:00
|
|
|
"qrcode": "^1.5.4",
|
2025-05-13 18:50:30 +02:00
|
|
|
"react": "^18.3.1",
|
2025-10-31 17:48:20 +01:00
|
|
|
"react-dom": "^18.3.1",
|
Integrate NocoDB backend for admin portal with real data
Phase 2 Backend Integration Complete:
Backend Infrastructure:
- Created NocoDB client abstraction layer (src/api/nocodbClient.ts)
- Clean TypeScript API hiding NocoDB query syntax complexity
- Helper methods for orders, stats, search, timeline, and filtering
- Automatic date range handling and pagination support
API Routes:
- POST /api/admin/stats - Dashboard statistics with time range filtering
- GET /api/admin/orders - List orders with search, filter, sort, pagination
- GET /api/admin/orders/[id] - Single order details
- PATCH /api/admin/orders/[id] - Update order fields
- DELETE /api/admin/orders/[id] - Cancel order (soft delete)
- GET /api/admin/orders/export - CSV/Excel export with filters
Dashboard Updates:
- Real-time data fetching from NocoDB
- Time range selector (7d, 30d, 90d, all time)
- Recharts line chart for orders timeline
- Recharts pie chart for status distribution
- Loading states and error handling
- Dynamic stat cards with real numbers
Dependencies Added:
- papaparse - CSV export
- xlsx - Excel export with styling
- @types/papaparse - TypeScript support
Data Types:
- OrderRecord interface for NocoDB data structure
- DashboardStats, TimelineData, OrderFilters interfaces
- Full type safety across API and UI
Environment Configuration:
- NOCODB_BASE_URL, NOCODB_BASE_ID configured
- NOCODB_API_KEY, NOCODB_ORDERS_TABLE_ID configured
- All credentials stored securely in .env.local
Ready for testing with sample data in NocoDB!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 10:40:25 +01:00
|
|
|
"recharts": "^3.3.0",
|
2025-11-03 18:28:51 +01:00
|
|
|
"xlsx": "^0.18.5",
|
|
|
|
|
"zod": "^4.1.12"
|
2025-05-13 18:50:30 +02:00
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@eslint/js": "^9.9.1",
|
|
|
|
|
"@testing-library/jest-dom": "^6.4.2",
|
|
|
|
|
"@testing-library/react": "^14.2.1",
|
2025-10-31 22:23:45 +01:00
|
|
|
"@types/node": "24.9.2",
|
Integrate NocoDB backend for admin portal with real data
Phase 2 Backend Integration Complete:
Backend Infrastructure:
- Created NocoDB client abstraction layer (src/api/nocodbClient.ts)
- Clean TypeScript API hiding NocoDB query syntax complexity
- Helper methods for orders, stats, search, timeline, and filtering
- Automatic date range handling and pagination support
API Routes:
- POST /api/admin/stats - Dashboard statistics with time range filtering
- GET /api/admin/orders - List orders with search, filter, sort, pagination
- GET /api/admin/orders/[id] - Single order details
- PATCH /api/admin/orders/[id] - Update order fields
- DELETE /api/admin/orders/[id] - Cancel order (soft delete)
- GET /api/admin/orders/export - CSV/Excel export with filters
Dashboard Updates:
- Real-time data fetching from NocoDB
- Time range selector (7d, 30d, 90d, all time)
- Recharts line chart for orders timeline
- Recharts pie chart for status distribution
- Loading states and error handling
- Dynamic stat cards with real numbers
Dependencies Added:
- papaparse - CSV export
- xlsx - Excel export with styling
- @types/papaparse - TypeScript support
Data Types:
- OrderRecord interface for NocoDB data structure
- DashboardStats, TimelineData, OrderFilters interfaces
- Full type safety across API and UI
Environment Configuration:
- NOCODB_BASE_URL, NOCODB_BASE_ID configured
- NOCODB_API_KEY, NOCODB_ORDERS_TABLE_ID configured
- All credentials stored securely in .env.local
Ready for testing with sample data in NocoDB!
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 10:40:25 +01:00
|
|
|
"@types/papaparse": "^5.3.16",
|
2025-05-13 18:50:30 +02:00
|
|
|
"@types/react": "^18.3.5",
|
|
|
|
|
"@types/react-dom": "^18.3.0",
|
|
|
|
|
"autoprefixer": "^10.4.18",
|
|
|
|
|
"eslint": "^9.9.1",
|
|
|
|
|
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
|
|
|
|
|
"eslint-plugin-react-refresh": "^0.4.11",
|
|
|
|
|
"globals": "^15.9.0",
|
|
|
|
|
"jsdom": "^24.0.0",
|
|
|
|
|
"postcss": "^8.4.35",
|
|
|
|
|
"tailwindcss": "^3.4.1",
|
|
|
|
|
"typescript": "^5.5.3",
|
|
|
|
|
"typescript-eslint": "^8.3.0",
|
|
|
|
|
"vitest": "^1.3.1"
|
|
|
|
|
}
|
2025-06-03 14:07:33 +02:00
|
|
|
}
|