@digilogiclabs/create-saas-app 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/generators/template-generator.js +4 -4
  3. package/dist/templates/mobile/base/template/package.json +1 -1
  4. package/dist/templates/mobile/ui-auth-payments/template/package.json +1 -1
  5. package/dist/templates/mobile/ui-auth-payments-ai/template/package.json +1 -1
  6. package/dist/templates/mobile/ui-auth-payments-ai-rag/template/package.json +1 -1
  7. package/dist/templates/web/ai-platform/template/package.json +2 -2
  8. package/dist/templates/web/ai-platform/template/src/app/error.tsx +75 -0
  9. package/dist/templates/web/ai-platform/template/src/app/loading.tsx +71 -0
  10. package/dist/templates/web/ai-platform/template/src/app/page.tsx +24 -20
  11. package/dist/templates/web/base/template/package.json +2 -2
  12. package/dist/templates/web/iot-dashboard/template/package.json +2 -2
  13. package/dist/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +6 -11
  14. package/dist/templates/web/iot-dashboard/template/src/app/error.tsx +75 -0
  15. package/dist/templates/web/iot-dashboard/template/src/app/loading.tsx +78 -0
  16. package/dist/templates/web/iot-dashboard/template/src/app/page.tsx +6 -8
  17. package/dist/templates/web/marketplace/template/package.json +2 -2
  18. package/dist/templates/web/marketplace/template/src/app/error.tsx +75 -0
  19. package/dist/templates/web/marketplace/template/src/app/loading.tsx +57 -0
  20. package/dist/templates/web/marketplace/template/src/app/page.tsx +13 -11
  21. package/dist/templates/web/micro-saas/template/package.json +2 -2
  22. package/dist/templates/web/micro-saas/template/src/app/error.tsx +75 -0
  23. package/dist/templates/web/micro-saas/template/src/app/loading.tsx +39 -0
  24. package/dist/templates/web/ui-auth/template/package.json +2 -2
  25. package/dist/templates/web/ui-auth-ai/template/package.json +1 -1
  26. package/dist/templates/web/ui-auth-payments/template/package.json +2 -2
  27. package/dist/templates/web/ui-auth-payments-ai/template/package.json +2 -2
  28. package/dist/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -1
  29. package/dist/templates/web/ui-auth-payments-audio/template/package.json +1 -1
  30. package/dist/templates/web/ui-auth-payments-video/template/package.json +1 -1
  31. package/dist/templates/web/ui-only/template/package.json +1 -1
  32. package/dist/templates/web/ui-package-test/template/package.json +1 -1
  33. package/package.json +1 -1
  34. package/src/templates/mobile/base/template/package.json +1 -1
  35. package/src/templates/mobile/ui-auth-payments/template/package.json +1 -1
  36. package/src/templates/mobile/ui-auth-payments-ai/template/package.json +1 -1
  37. package/src/templates/mobile/ui-auth-payments-ai-rag/template/package.json +1 -1
  38. package/src/templates/web/ai-platform/template/package.json +2 -2
  39. package/src/templates/web/ai-platform/template/src/app/error.tsx +75 -0
  40. package/src/templates/web/ai-platform/template/src/app/loading.tsx +71 -0
  41. package/src/templates/web/ai-platform/template/src/app/page.tsx +24 -20
  42. package/src/templates/web/base/template/package.json +2 -2
  43. package/src/templates/web/iot-dashboard/template/package.json +2 -2
  44. package/src/templates/web/iot-dashboard/template/src/app/dashboard/page.tsx +6 -11
  45. package/src/templates/web/iot-dashboard/template/src/app/error.tsx +75 -0
  46. package/src/templates/web/iot-dashboard/template/src/app/loading.tsx +78 -0
  47. package/src/templates/web/iot-dashboard/template/src/app/page.tsx +6 -8
  48. package/src/templates/web/marketplace/template/package.json +2 -2
  49. package/src/templates/web/marketplace/template/src/app/error.tsx +75 -0
  50. package/src/templates/web/marketplace/template/src/app/loading.tsx +57 -0
  51. package/src/templates/web/marketplace/template/src/app/page.tsx +13 -11
  52. package/src/templates/web/micro-saas/template/package.json +2 -2
  53. package/src/templates/web/micro-saas/template/src/app/error.tsx +75 -0
  54. package/src/templates/web/micro-saas/template/src/app/loading.tsx +39 -0
  55. package/src/templates/web/ui-auth/template/package.json +2 -2
  56. package/src/templates/web/ui-auth-ai/template/package.json +1 -1
  57. package/src/templates/web/ui-auth-payments/template/package.json +2 -2
  58. package/src/templates/web/ui-auth-payments-ai/template/package.json +2 -2
  59. package/src/templates/web/ui-auth-payments-ai-rag/template/package.json +1 -1
  60. package/src/templates/web/ui-auth-payments-audio/template/package.json +1 -1
  61. package/src/templates/web/ui-auth-payments-video/template/package.json +1 -1
  62. package/src/templates/web/ui-only/template/package.json +1 -1
  63. package/src/templates/web/ui-package-test/template/package.json +1 -1
@@ -0,0 +1,57 @@
1
+ import { Card, SkeletonCard, SkeletonText } from '@digilogiclabs/saas-factory-ui'
2
+
3
+ export default function Loading() {
4
+ return (
5
+ <div className="min-h-screen bg-gray-50 dark:bg-gray-900">
6
+ {/* Header skeleton */}
7
+ <div className="bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 px-4 py-4">
8
+ <div className="max-w-7xl mx-auto flex items-center justify-between">
9
+ <SkeletonText className="h-8 w-48" />
10
+ <SkeletonText className="h-10 w-64" />
11
+ <div className="flex gap-2">
12
+ <SkeletonText className="h-8 w-20" />
13
+ <SkeletonText className="h-8 w-20" />
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div className="max-w-7xl mx-auto px-4 py-8">
19
+ {/* Hero skeleton */}
20
+ <div className="text-center mb-12">
21
+ <SkeletonText className="h-12 w-80 mx-auto mb-4" />
22
+ <SkeletonText className="h-6 w-96 mx-auto" />
23
+ </div>
24
+
25
+ {/* Category cards skeleton */}
26
+ <div className="grid grid-cols-2 md:grid-cols-4 gap-4 mb-12">
27
+ {Array.from({ length: 4 }).map((_, i) => (
28
+ <SkeletonCard key={i} />
29
+ ))}
30
+ </div>
31
+
32
+ {/* Products skeleton */}
33
+ <div className="mb-12">
34
+ <SkeletonText className="h-8 w-48 mb-6" />
35
+ <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
36
+ {Array.from({ length: 4 }).map((_, i) => (
37
+ <SkeletonCard key={i} />
38
+ ))}
39
+ </div>
40
+ </div>
41
+
42
+ {/* Loading indicator */}
43
+ <div className="flex justify-center">
44
+ <Card className="p-6">
45
+ <div className="flex items-center gap-3">
46
+ <div className="relative">
47
+ <div className="w-8 h-8 border-4 border-gray-200 dark:border-gray-700 rounded-full"></div>
48
+ <div className="absolute top-0 left-0 w-8 h-8 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"></div>
49
+ </div>
50
+ <p className="text-sm text-gray-600 dark:text-gray-300">Loading marketplace...</p>
51
+ </div>
52
+ </Card>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ )
57
+ }
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
 
3
- import { Button, Card } from '@digilogiclabs/saas-factory-ui'
3
+ import { Button, Card, GradientBorderCard } from '@digilogiclabs/saas-factory-ui'
4
4
  import { useAuth } from '@digilogiclabs/app-sdk'
5
5
  import { ShoppingCart, Store, Search, Star, ArrowRight, User, LogOut } from 'lucide-react'
6
6
  import Link from 'next/link'
@@ -151,16 +151,18 @@ export default function Home() {
151
151
  </div>
152
152
 
153
153
  {/* Become a Vendor CTA */}
154
- <Card className="p-8 bg-gradient-to-r from-blue-600 to-purple-600 text-white text-center">
155
- <Store className="w-12 h-12 mx-auto mb-4" />
156
- <h2 className="text-2xl font-bold mb-2">Become a Vendor</h2>
157
- <p className="mb-6 opacity-90 max-w-md mx-auto">
158
- Start selling your products to thousands of customers. Low fees, powerful tools.
159
- </p>
160
- <Link href="/vendors/apply">
161
- <Button variant="secondary" size="lg">Apply Now</Button>
162
- </Link>
163
- </Card>
154
+ <GradientBorderCard gradientColors="from-blue-500 via-purple-500 to-blue-500" borderWidth={2}>
155
+ <div className="text-center">
156
+ <Store className="w-12 h-12 mx-auto mb-4 text-blue-600 dark:text-blue-400" />
157
+ <h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-2">Become a Vendor</h2>
158
+ <p className="mb-6 text-gray-600 dark:text-gray-300 max-w-md mx-auto">
159
+ Start selling your products to thousands of customers. Low fees, powerful tools.
160
+ </p>
161
+ <Link href="/vendors/apply">
162
+ <Button size="lg">Apply Now</Button>
163
+ </Link>
164
+ </div>
165
+ </GradientBorderCard>
164
166
  </div>
165
167
  </main>
166
168
  )
@@ -14,10 +14,10 @@
14
14
  "next": "^15.0.0",
15
15
  "react": "^19.0.0",
16
16
  "react-dom": "^19.0.0",
17
- "@digilogiclabs/platform-core": "^1.12.0",
17
+ "@digilogiclabs/platform-core": "^1.13.0",
18
18
  "@digilogiclabs/app-sdk": "^1.0.0",
19
19
  "@digilogiclabs/saas-factory-auth": "^1.0.7",
20
- "@digilogiclabs/saas-factory-ui": "^1.0.1",
20
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
21
21
  "tailwindcss": "^4.0.0",
22
22
  "clsx": "^2.0.0",
23
23
  "class-variance-authority": "^0.7.0",
@@ -0,0 +1,75 @@
1
+ 'use client'
2
+
3
+ import { useEffect } from 'react'
4
+ import { Button, Card } from '@digilogiclabs/saas-factory-ui'
5
+ import { AlertTriangle, RefreshCw, Home } from 'lucide-react'
6
+ import Link from 'next/link'
7
+
8
+ interface ErrorProps {
9
+ error: Error & { digest?: string }
10
+ reset: () => void
11
+ }
12
+
13
+ export default function Error({ error, reset }: ErrorProps) {
14
+ useEffect(() => {
15
+ console.error('Application error:', error)
16
+ }, [error])
17
+
18
+ return (
19
+ <div className="min-h-screen bg-gradient-to-br from-red-50 to-orange-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center p-4">
20
+ <Card className="p-8 max-w-lg w-full">
21
+ <div className="flex flex-col items-center space-y-6 text-center">
22
+ <div className="w-16 h-16 bg-red-100 dark:bg-red-900 rounded-full flex items-center justify-center">
23
+ <AlertTriangle className="w-8 h-8 text-red-600 dark:text-red-400" />
24
+ </div>
25
+
26
+ <div>
27
+ <h1 className="text-2xl font-bold text-gray-900 dark:text-white mb-2">
28
+ Something went wrong!
29
+ </h1>
30
+ <p className="text-gray-600 dark:text-gray-300 mb-4">
31
+ We encountered an unexpected error. This has been logged and our team will look into it.
32
+ </p>
33
+
34
+ {process.env.NODE_ENV === 'development' && (
35
+ <details className="mt-4 text-left">
36
+ <summary className="cursor-pointer text-sm text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200">
37
+ Error details (development only)
38
+ </summary>
39
+ <div className="mt-2 p-3 bg-gray-100 dark:bg-gray-800 rounded text-xs font-mono text-gray-700 dark:text-gray-300 overflow-auto max-h-40">
40
+ <div className="mb-2">
41
+ <strong>Message:</strong> {error.message}
42
+ </div>
43
+ {error.digest && (
44
+ <div className="mb-2">
45
+ <strong>Digest:</strong> {error.digest}
46
+ </div>
47
+ )}
48
+ {error.stack && (
49
+ <div>
50
+ <strong>Stack:</strong>
51
+ <pre className="whitespace-pre-wrap mt-1">{error.stack}</pre>
52
+ </div>
53
+ )}
54
+ </div>
55
+ </details>
56
+ )}
57
+ </div>
58
+
59
+ <div className="flex flex-col sm:flex-row gap-3 w-full">
60
+ <Button onClick={reset} className="flex-1" size="lg">
61
+ <RefreshCw className="w-4 h-4 mr-2" />
62
+ Try again
63
+ </Button>
64
+ <Link href="/" className="flex-1">
65
+ <Button variant="outline" className="w-full" size="lg">
66
+ <Home className="w-4 h-4 mr-2" />
67
+ Go home
68
+ </Button>
69
+ </Link>
70
+ </div>
71
+ </div>
72
+ </Card>
73
+ </div>
74
+ )
75
+ }
@@ -0,0 +1,39 @@
1
+ import { Card, SkeletonCard, SkeletonText } from '@digilogiclabs/saas-factory-ui'
2
+
3
+ export default function Loading() {
4
+ return (
5
+ <div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800">
6
+ <div className="max-w-4xl mx-auto px-4 py-16">
7
+ {/* Header skeleton */}
8
+ <div className="flex justify-end mb-8">
9
+ <SkeletonText className="h-8 w-24" />
10
+ </div>
11
+
12
+ {/* Hero skeleton */}
13
+ <div className="text-center mb-16">
14
+ <SkeletonText className="h-6 w-32 mx-auto mb-6" />
15
+ <SkeletonText className="h-12 w-64 mx-auto mb-6" />
16
+ <SkeletonText className="h-6 w-96 mx-auto mb-8" />
17
+ </div>
18
+
19
+ {/* Feature cards skeleton */}
20
+ <div className="grid md:grid-cols-3 gap-6 mb-16">
21
+ {Array.from({ length: 3 }).map((_, i) => (
22
+ <SkeletonCard key={i} />
23
+ ))}
24
+ </div>
25
+
26
+ {/* CTA skeleton */}
27
+ <Card className="p-8">
28
+ <div className="flex flex-col items-center space-y-4">
29
+ <div className="relative">
30
+ <div className="w-12 h-12 border-4 border-gray-200 dark:border-gray-700 rounded-full animate-spin"></div>
31
+ <div className="absolute top-0 left-0 w-12 h-12 border-4 border-blue-600 border-t-transparent rounded-full animate-spin"></div>
32
+ </div>
33
+ <p className="text-sm text-gray-600 dark:text-gray-300">Loading...</p>
34
+ </div>
35
+ </Card>
36
+ </div>
37
+ </div>
38
+ )
39
+ }
@@ -17,8 +17,8 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/platform-core": "^1.12.0",
21
- "@digilogiclabs/saas-factory-ui": "^0.27.3",
20
+ "@digilogiclabs/platform-core": "^1.13.0",
21
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
22
  "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
23
  "tailwindcss": "^3.3.0",
24
24
  "autoprefixer": "^10.4.16",
@@ -9,7 +9,7 @@
9
9
  "lint": "next lint"
10
10
  },
11
11
  "dependencies": {
12
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
12
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
13
13
  "@digilogiclabs/saas-factory-auth": "^1.0.3",
14
14
  "next": "^15.0.0",
15
15
  "react": "^19.0.0",
@@ -17,8 +17,8 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/platform-core": "^1.12.0",
21
- "@digilogiclabs/saas-factory-ui": "^0.27.3",
20
+ "@digilogiclabs/platform-core": "^1.13.0",
21
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
22
  "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
23
  "@digilogiclabs/saas-factory-payments": "^1.2.8",
24
24
  "stripe": "^14.0.0",
@@ -17,8 +17,8 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/platform-core": "^1.12.0",
21
- "@digilogiclabs/saas-factory-ui": "^0.27.3",
20
+ "@digilogiclabs/platform-core": "^1.13.0",
21
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
22
  "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
23
  "@digilogiclabs/saas-factory-payments": "^1.2.8",
24
24
  "@digilogiclabs/saas-factory-ai": "^4.0.4",
@@ -22,7 +22,7 @@
22
22
  "next": "^15.0.0",
23
23
  "react": "^19.0.0",
24
24
  "react-dom": "^19.0.0",
25
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
25
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
26
26
  "@digilogiclabs/saas-factory-auth": "^1.0.3",
27
27
  "@digilogiclabs/saas-factory-payments": "^1.2.3",
28
28
  "@digilogiclabs/saas-factory-ai": "^4.0.2",
@@ -17,7 +17,7 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
20
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
21
21
  "@digilogiclabs/saas-factory-auth": "^1.0.3",
22
22
  "@digilogiclabs/saas-factory-payments": "^1.2.3",
23
23
  "stripe": "^14.0.0",
@@ -17,7 +17,7 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
20
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
21
21
  "@digilogiclabs/saas-factory-auth": "^1.0.3",
22
22
  "@digilogiclabs/saas-factory-payments": "^1.2.3",
23
23
  "stripe": "^14.0.0",
@@ -17,7 +17,7 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
20
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
21
21
  "tailwindcss": "^3.3.0",
22
22
  "autoprefixer": "^10.4.16",
23
23
  "postcss": "^8.4.31",
@@ -14,7 +14,7 @@
14
14
  "next": "15.4.5",
15
15
  "react": "19.1.0",
16
16
  "react-dom": "19.1.0",
17
- "@digilogiclabs/saas-factory-ui": "^0.26.1",
17
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
18
18
  "tailwindcss": "^3.4.0",
19
19
  "autoprefixer": "^10.4.16",
20
20
  "postcss": "^8.4.31",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digilogiclabs/create-saas-app",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "Create modern SaaS applications with DLL Platform - tier-aware scaffolding with platform-core and app-sdk",
5
5
  "main": "dist/cli/index.js",
6
6
  "bin": {
@@ -22,7 +22,7 @@
22
22
  "react-native-screens": "~3.22.0",
23
23
  "react-native-safe-area-context": "4.6.3",
24
24
  "react-native-gesture-handler": "~2.12.0",
25
- "@digilogiclabs/saas-factory-ui": "^0.27.1",
25
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
26
26
  "@digilogiclabs/saas-factory-auth": "^1.0.5",
27
27
  "@digilogiclabs/saas-factory-payments": "^1.2.7",
28
28
  "firebase": "^10.0.0",
@@ -35,7 +35,7 @@
35
35
  "react-native-gesture-handler": "~2.14.0",
36
36
  "react-native-reanimated": "~3.6.2",
37
37
 
38
- "@digilogiclabs/saas-factory-ui": "^0.27.1",
38
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
39
39
  "@digilogiclabs/saas-factory-auth": "^1.0.5",
40
40
  "@digilogiclabs/saas-factory-payments": "^1.2.7",
41
41
 
@@ -35,7 +35,7 @@
35
35
  "react-native-gesture-handler": "~2.14.0",
36
36
  "react-native-reanimated": "~3.6.2",
37
37
 
38
- "@digilogiclabs/saas-factory-ui": "^0.27.1",
38
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
39
39
  "@digilogiclabs/saas-factory-auth": "^1.0.5",
40
40
  "@digilogiclabs/saas-factory-payments": "^1.2.7",
41
41
  "@digilogiclabs/saas-factory-ai": "^4.0.2",
@@ -38,7 +38,7 @@
38
38
  "react-native-gesture-handler": "~2.14.0",
39
39
  "react-native-reanimated": "~3.6.2",
40
40
 
41
- "@digilogiclabs/saas-factory-ui": "^0.27.1",
41
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
42
42
  "@digilogiclabs/saas-factory-auth": "^1.0.5",
43
43
  "@digilogiclabs/saas-factory-payments": "^1.2.7",
44
44
  "@digilogiclabs/saas-factory-ai": "^4.0.2",
@@ -16,12 +16,12 @@
16
16
  "next": "^15.0.0",
17
17
  "react": "^19.0.0",
18
18
  "react-dom": "^19.0.0",
19
- "@digilogiclabs/platform-core": "^1.12.0",
19
+ "@digilogiclabs/platform-core": "^1.13.0",
20
20
  "@digilogiclabs/app-sdk": "^1.0.0",
21
21
  "@digilogiclabs/saas-factory-auth": "^1.0.7",
22
22
  "@digilogiclabs/saas-factory-payments": "^1.2.9",
23
23
  "@digilogiclabs/saas-factory-ai": "^1.0.0",
24
- "@digilogiclabs/saas-factory-ui": "^1.0.1",
24
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
25
25
  "ai": "^3.4.0",
26
26
  "@ai-sdk/openai": "^0.0.70",
27
27
  "@ai-sdk/anthropic": "^0.0.57",
@@ -0,0 +1,75 @@
1
+ 'use client'
2
+
3
+ import { useEffect } from 'react'
4
+ import { Button, Card } from '@digilogiclabs/saas-factory-ui'
5
+ import { AlertTriangle, RefreshCw, Home } from 'lucide-react'
6
+ import Link from 'next/link'
7
+
8
+ interface ErrorProps {
9
+ error: Error & { digest?: string }
10
+ reset: () => void
11
+ }
12
+
13
+ export default function Error({ error, reset }: ErrorProps) {
14
+ useEffect(() => {
15
+ console.error('Application error:', error)
16
+ }, [error])
17
+
18
+ return (
19
+ <div className="min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900 flex items-center justify-center p-4">
20
+ <Card className="p-8 max-w-lg w-full bg-white/5 border-white/10 backdrop-blur-sm">
21
+ <div className="flex flex-col items-center space-y-6 text-center">
22
+ <div className="w-16 h-16 bg-red-500/20 rounded-full flex items-center justify-center">
23
+ <AlertTriangle className="w-8 h-8 text-red-400" />
24
+ </div>
25
+
26
+ <div>
27
+ <h1 className="text-2xl font-bold text-white mb-2">
28
+ Something went wrong!
29
+ </h1>
30
+ <p className="text-gray-400 mb-4">
31
+ We encountered an unexpected error. This has been logged and our team will look into it.
32
+ </p>
33
+
34
+ {process.env.NODE_ENV === 'development' && (
35
+ <details className="mt-4 text-left">
36
+ <summary className="cursor-pointer text-sm text-gray-500 hover:text-gray-300">
37
+ Error details (development only)
38
+ </summary>
39
+ <div className="mt-2 p-3 bg-black/30 rounded text-xs font-mono text-gray-400 overflow-auto max-h-40">
40
+ <div className="mb-2">
41
+ <strong className="text-gray-300">Message:</strong> {error.message}
42
+ </div>
43
+ {error.digest && (
44
+ <div className="mb-2">
45
+ <strong className="text-gray-300">Digest:</strong> {error.digest}
46
+ </div>
47
+ )}
48
+ {error.stack && (
49
+ <div>
50
+ <strong className="text-gray-300">Stack:</strong>
51
+ <pre className="whitespace-pre-wrap mt-1">{error.stack}</pre>
52
+ </div>
53
+ )}
54
+ </div>
55
+ </details>
56
+ )}
57
+ </div>
58
+
59
+ <div className="flex flex-col sm:flex-row gap-3 w-full">
60
+ <Button onClick={reset} className="flex-1 bg-purple-600 hover:bg-purple-700" size="lg">
61
+ <RefreshCw className="w-4 h-4 mr-2" />
62
+ Try again
63
+ </Button>
64
+ <Link href="/" className="flex-1">
65
+ <Button variant="outline" className="w-full border-white/20 text-white hover:bg-white/10" size="lg">
66
+ <Home className="w-4 h-4 mr-2" />
67
+ Go home
68
+ </Button>
69
+ </Link>
70
+ </div>
71
+ </div>
72
+ </Card>
73
+ </div>
74
+ )
75
+ }
@@ -0,0 +1,71 @@
1
+ import { Card, SkeletonText } from '@digilogiclabs/saas-factory-ui'
2
+
3
+ export default function Loading() {
4
+ return (
5
+ <div className="min-h-screen bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900">
6
+ {/* Header skeleton */}
7
+ <div className="border-b border-white/10 bg-black/20 backdrop-blur-sm px-4 py-4">
8
+ <div className="max-w-7xl mx-auto flex items-center justify-between">
9
+ <SkeletonText className="h-8 w-48 bg-white/10" />
10
+ <div className="flex gap-6">
11
+ <SkeletonText className="h-4 w-16 bg-white/10" />
12
+ <SkeletonText className="h-4 w-20 bg-white/10" />
13
+ <SkeletonText className="h-4 w-12 bg-white/10" />
14
+ </div>
15
+ <div className="flex gap-2">
16
+ <SkeletonText className="h-8 w-20 bg-white/10" />
17
+ <SkeletonText className="h-8 w-24 bg-white/10" />
18
+ </div>
19
+ </div>
20
+ </div>
21
+
22
+ <div className="max-w-7xl mx-auto px-4 py-16">
23
+ {/* Hero skeleton */}
24
+ <div className="text-center mb-20">
25
+ <SkeletonText className="h-6 w-40 mx-auto mb-6 bg-purple-500/20" />
26
+ <SkeletonText className="h-16 w-80 mx-auto mb-6 bg-white/10" />
27
+ <SkeletonText className="h-6 w-96 mx-auto mb-8 bg-white/10" />
28
+ </div>
29
+
30
+ {/* Feature cards skeleton */}
31
+ <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-20">
32
+ {Array.from({ length: 4 }).map((_, i) => (
33
+ <Card key={i} className="p-6 bg-white/5 border-white/10">
34
+ <div className="animate-pulse">
35
+ <SkeletonText className="h-12 w-12 mb-4 bg-white/10 rounded-lg" />
36
+ <SkeletonText className="h-5 w-24 mb-2 bg-white/10" />
37
+ <SkeletonText className="h-4 w-full bg-white/10" />
38
+ </div>
39
+ </Card>
40
+ ))}
41
+ </div>
42
+
43
+ {/* Models skeleton */}
44
+ <div className="mb-20">
45
+ <SkeletonText className="h-8 w-48 mb-8 bg-white/10" />
46
+ <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-4">
47
+ {Array.from({ length: 4 }).map((_, i) => (
48
+ <Card key={i} className="p-4 bg-white/5 border-white/10">
49
+ <div className="animate-pulse">
50
+ <SkeletonText className="h-5 w-20 mb-2 bg-white/10" />
51
+ <SkeletonText className="h-4 w-16 bg-white/10" />
52
+ </div>
53
+ </Card>
54
+ ))}
55
+ </div>
56
+ </div>
57
+
58
+ {/* Loading indicator */}
59
+ <div className="flex justify-center">
60
+ <div className="flex items-center gap-3 text-gray-400">
61
+ <div className="relative">
62
+ <div className="w-8 h-8 border-4 border-white/10 rounded-full"></div>
63
+ <div className="absolute top-0 left-0 w-8 h-8 border-4 border-purple-500 border-t-transparent rounded-full animate-spin"></div>
64
+ </div>
65
+ <p className="text-sm">Loading AI platform...</p>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ )
71
+ }
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
 
3
- import { Button, Card } from '@digilogiclabs/saas-factory-ui'
3
+ import { Button, Card, PremiumCard, PremiumCardContent, GradientBorderCard } from '@digilogiclabs/saas-factory-ui'
4
4
  import { useAuth } from '@digilogiclabs/app-sdk'
5
5
  import { Bot, Sparkles, Zap, MessageSquare, Code, Brain, ArrowRight, User, LogOut } from 'lucide-react'
6
6
  import Link from 'next/link'
@@ -140,13 +140,15 @@ export default function Home() {
140
140
  {/* Features */}
141
141
  <div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6 mb-20">
142
142
  {FEATURES.map((feature) => (
143
- <Card key={feature.title} className="p-6 bg-white/5 border-white/10 backdrop-blur-sm hover:bg-white/10 transition">
144
- <div className={`w-12 h-12 rounded-lg flex items-center justify-center mb-4 bg-${feature.color}-500/20`}>
145
- <feature.icon className={`w-6 h-6 text-${feature.color}-400`} />
146
- </div>
147
- <h3 className="text-lg font-semibold text-white mb-2">{feature.title}</h3>
148
- <p className="text-gray-400 text-sm">{feature.description}</p>
149
- </Card>
143
+ <PremiumCard key={feature.title} variant="glass" className="bg-white/5 border-white/10 backdrop-blur-sm">
144
+ <PremiumCardContent className="p-6">
145
+ <div className={`w-12 h-12 rounded-lg flex items-center justify-center mb-4 bg-${feature.color}-500/20`}>
146
+ <feature.icon className={`w-6 h-6 text-${feature.color}-400`} />
147
+ </div>
148
+ <h3 className="text-lg font-semibold text-white mb-2">{feature.title}</h3>
149
+ <p className="text-gray-400 text-sm">{feature.description}</p>
150
+ </PremiumCardContent>
151
+ </PremiumCard>
150
152
  ))}
151
153
  </div>
152
154
 
@@ -185,18 +187,20 @@ export default function Home() {
185
187
  </div>
186
188
 
187
189
  {/* CTA */}
188
- <Card className="p-12 bg-gradient-to-r from-purple-600 to-pink-600 border-0 text-center">
189
- <h2 className="text-3xl font-bold text-white mb-4">Ready to Build?</h2>
190
- <p className="text-white/80 mb-8 max-w-md mx-auto">
191
- Start building AI-powered applications today. Free tier available.
192
- </p>
193
- <Link href="/signup">
194
- <Button size="lg" variant="secondary">
195
- Get Started Free
196
- <ArrowRight className="w-5 h-5 ml-2" />
197
- </Button>
198
- </Link>
199
- </Card>
190
+ <GradientBorderCard gradientColors="from-purple-500 via-pink-500 to-purple-500" borderWidth={2}>
191
+ <div className="text-center py-6">
192
+ <h2 className="text-3xl font-bold text-white mb-4">Ready to Build?</h2>
193
+ <p className="text-gray-400 mb-8 max-w-md mx-auto">
194
+ Start building AI-powered applications today. Free tier available.
195
+ </p>
196
+ <Link href="/signup">
197
+ <Button size="lg" className="bg-purple-600 hover:bg-purple-700">
198
+ Get Started Free
199
+ <ArrowRight className="w-5 h-5 ml-2" />
200
+ </Button>
201
+ </Link>
202
+ </div>
203
+ </GradientBorderCard>
200
204
  </div>
201
205
  </main>
202
206
  )
@@ -17,8 +17,8 @@
17
17
  "next": "^15.0.0",
18
18
  "react": "^19.0.0",
19
19
  "react-dom": "^19.0.0",
20
- "@digilogiclabs/platform-core": "^1.12.0",
21
- "@digilogiclabs/saas-factory-ui": "^0.27.3",
20
+ "@digilogiclabs/platform-core": "^1.13.0",
21
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
22
22
  "@digilogiclabs/saas-factory-auth": "^1.0.6",
23
23
  "@digilogiclabs/saas-factory-payments": "^1.2.8",
24
24
  "tailwindcss": "^3.3.0",
@@ -16,10 +16,10 @@
16
16
  "next": "^15.0.0",
17
17
  "react": "^19.0.0",
18
18
  "react-dom": "^19.0.0",
19
- "@digilogiclabs/platform-core": "^1.12.0",
19
+ "@digilogiclabs/platform-core": "^1.13.0",
20
20
  "@digilogiclabs/app-sdk": "^1.0.0",
21
21
  "@digilogiclabs/saas-factory-auth": "^1.0.7",
22
- "@digilogiclabs/saas-factory-ui": "^1.0.1",
22
+ "@digilogiclabs/saas-factory-ui": "^1.4.0",
23
23
  "tailwindcss": "^4.0.0",
24
24
  "clsx": "^2.0.0",
25
25
  "class-variance-authority": "^0.7.0",