realtimex-crm 0.3.2 → 0.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.
- package/dist/assets/{DealList-CT-qgbS4.js → DealList-C7t7lLe9.js} +2 -2
- package/dist/assets/{DealList-CT-qgbS4.js.map → DealList-C7t7lLe9.js.map} +1 -1
- package/dist/assets/{index-B1O8LdjN.js → index-IQ-gFBbx.js} +30 -30
- package/dist/assets/{index-B1O8LdjN.js.map → index-IQ-gFBbx.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/setup.sql +976 -0
- package/dist/stats.html +1 -1
- package/package.json +1 -1
- package/public/setup.sql +976 -0
- package/src/components/atomic-crm/setup/DatabaseSetupGuide.tsx +73 -21
|
@@ -61,13 +61,78 @@ export function DatabaseSetupGuide({
|
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
63
63
|
|
|
64
|
-
{/* Option 1:
|
|
64
|
+
{/* Option 1: Direct SQL File */}
|
|
65
65
|
<div className="space-y-3">
|
|
66
66
|
<div className="flex items-center gap-2">
|
|
67
67
|
<div className="flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-sm font-bold">
|
|
68
68
|
1
|
|
69
69
|
</div>
|
|
70
|
-
<h3 className="font-semibold">
|
|
70
|
+
<h3 className="font-semibold">Quick Setup (Recommended)</h3>
|
|
71
|
+
</div>
|
|
72
|
+
<div className="ml-8 space-y-3">
|
|
73
|
+
<p className="text-sm text-muted-foreground">
|
|
74
|
+
Download and run the combined migration file:
|
|
75
|
+
</p>
|
|
76
|
+
|
|
77
|
+
<ol className="list-decimal list-inside space-y-2 text-sm text-muted-foreground">
|
|
78
|
+
<li>
|
|
79
|
+
Download{" "}
|
|
80
|
+
<a
|
|
81
|
+
href="https://raw.githubusercontent.com/therealtimex/realtimex-crm/main/public/setup.sql"
|
|
82
|
+
target="_blank"
|
|
83
|
+
rel="noopener noreferrer"
|
|
84
|
+
className="text-primary hover:underline inline-flex items-center gap-1"
|
|
85
|
+
download
|
|
86
|
+
>
|
|
87
|
+
setup.sql
|
|
88
|
+
<ExternalLink className="h-3 w-3" />
|
|
89
|
+
</a>
|
|
90
|
+
</li>
|
|
91
|
+
<li>
|
|
92
|
+
Open your{" "}
|
|
93
|
+
<a
|
|
94
|
+
href={`https://supabase.com/dashboard/project/${projectRef}/sql/new`}
|
|
95
|
+
target="_blank"
|
|
96
|
+
rel="noopener noreferrer"
|
|
97
|
+
className="text-primary hover:underline inline-flex items-center gap-1"
|
|
98
|
+
>
|
|
99
|
+
Supabase SQL Editor
|
|
100
|
+
<ExternalLink className="h-3 w-3" />
|
|
101
|
+
</a>
|
|
102
|
+
</li>
|
|
103
|
+
<li>
|
|
104
|
+
Copy the entire contents of setup.sql and paste into the SQL Editor
|
|
105
|
+
</li>
|
|
106
|
+
<li>
|
|
107
|
+
Click "Run" to execute all migrations at once
|
|
108
|
+
</li>
|
|
109
|
+
<li>
|
|
110
|
+
Reload this page after completion
|
|
111
|
+
</li>
|
|
112
|
+
</ol>
|
|
113
|
+
|
|
114
|
+
{projectRef && (
|
|
115
|
+
<Button asChild variant="outline" className="w-full">
|
|
116
|
+
<a
|
|
117
|
+
href={`https://supabase.com/dashboard/project/${projectRef}/sql/new`}
|
|
118
|
+
target="_blank"
|
|
119
|
+
rel="noopener noreferrer"
|
|
120
|
+
>
|
|
121
|
+
<ExternalLink className="h-4 w-4 mr-2" />
|
|
122
|
+
Open SQL Editor
|
|
123
|
+
</a>
|
|
124
|
+
</Button>
|
|
125
|
+
)}
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
{/* Option 2: Supabase CLI */}
|
|
130
|
+
<div className="space-y-3">
|
|
131
|
+
<div className="flex items-center gap-2">
|
|
132
|
+
<div className="flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-sm font-bold">
|
|
133
|
+
2
|
|
134
|
+
</div>
|
|
135
|
+
<h3 className="font-semibold">Using Supabase CLI</h3>
|
|
71
136
|
</div>
|
|
72
137
|
<div className="ml-8 space-y-3">
|
|
73
138
|
<div>
|
|
@@ -115,22 +180,22 @@ export function DatabaseSetupGuide({
|
|
|
115
180
|
</div>
|
|
116
181
|
</div>
|
|
117
182
|
|
|
118
|
-
{/* Option
|
|
183
|
+
{/* Option 3: Individual Migrations */}
|
|
119
184
|
<div className="space-y-3">
|
|
120
185
|
<div className="flex items-center gap-2">
|
|
121
186
|
<div className="flex items-center justify-center w-6 h-6 rounded-full bg-primary text-primary-foreground text-sm font-bold">
|
|
122
|
-
|
|
187
|
+
3
|
|
123
188
|
</div>
|
|
124
|
-
<h3 className="font-semibold">
|
|
189
|
+
<h3 className="font-semibold">Advanced: Run Individual Migrations</h3>
|
|
125
190
|
</div>
|
|
126
191
|
<div className="ml-8 space-y-3">
|
|
127
192
|
<p className="text-sm text-muted-foreground">
|
|
128
|
-
|
|
193
|
+
For advanced users who want to review each migration:
|
|
129
194
|
</p>
|
|
130
195
|
|
|
131
196
|
<ol className="list-decimal list-inside space-y-2 text-sm text-muted-foreground">
|
|
132
197
|
<li>
|
|
133
|
-
|
|
198
|
+
Browse migrations at{" "}
|
|
134
199
|
<a
|
|
135
200
|
href="https://github.com/therealtimex/realtimex-crm/tree/main/supabase/migrations"
|
|
136
201
|
target="_blank"
|
|
@@ -154,25 +219,12 @@ export function DatabaseSetupGuide({
|
|
|
154
219
|
</a>
|
|
155
220
|
</li>
|
|
156
221
|
<li>
|
|
157
|
-
Run each migration file in order (by date in filename)
|
|
222
|
+
Run each migration file in chronological order (by date in filename)
|
|
158
223
|
</li>
|
|
159
224
|
<li>
|
|
160
225
|
Reload this page after all migrations are complete
|
|
161
226
|
</li>
|
|
162
227
|
</ol>
|
|
163
|
-
|
|
164
|
-
{projectRef && (
|
|
165
|
-
<Button asChild variant="outline" className="w-full">
|
|
166
|
-
<a
|
|
167
|
-
href={`https://supabase.com/dashboard/project/${projectRef}/sql/new`}
|
|
168
|
-
target="_blank"
|
|
169
|
-
rel="noopener noreferrer"
|
|
170
|
-
>
|
|
171
|
-
<ExternalLink className="h-4 w-4 mr-2" />
|
|
172
|
-
Open SQL Editor
|
|
173
|
-
</a>
|
|
174
|
-
</Button>
|
|
175
|
-
)}
|
|
176
228
|
</div>
|
|
177
229
|
</div>
|
|
178
230
|
|