-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathseed-demo-data.sh
More file actions
executable file
·267 lines (232 loc) · 6.97 KB
/
Copy pathseed-demo-data.sh
File metadata and controls
executable file
·267 lines (232 loc) · 6.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
#!/bin/bash
# =============================================================================
# Seed Demo Data for Product Hunt Demo
# =============================================================================
# Creates realistic, impressive demo data for Veritas Kanban v3.0
# Port: 3099 (demo instance)
# =============================================================================
set -euo pipefail
API_BASE="http://localhost:3099/api"
echo "🌱 Seeding Veritas Kanban demo data..."
# -----------------------------------------------------------------------------
# Helper function to create tasks
# -----------------------------------------------------------------------------
create_task() {
local title="$1"
local description="$2"
local project="$3"
local status="$4"
local priority="$5"
local type="$6"
local payload
payload=$(cat <<EOF
{
"title": "${title}",
"description": "${description}",
"project": "${project}",
"status": "${status}",
"priority": "${priority}",
"type": "${type}"
}
EOF
)
local attempt=0
while true; do
attempt=$((attempt+1))
# Note: VK applies write rate-limiting. We retry with backoff.
local resp
resp=$(curl -s -X POST "$API_BASE/tasks" \
-H "Content-Type: application/json" \
-H "X-API-Key: demo-admin-key-for-product-hunt-2026" \
-d "$payload")
if echo "$resp" | grep -q '"success":true'; then
echo " ✓ Created: $title ($status)"
# Small delay to avoid triggering write rate limit
sleep 2
break
fi
# If rate-limited, back off and retry
if echo "$resp" | grep -q 'Too many write requests'; then
if [ "$attempt" -ge 8 ]; then
echo " ✗ Failed (rate limit): $title" >&2
echo "$resp" | head -c 400 >&2
exit 1
fi
sleep 5
continue
fi
echo " ✗ Failed: $title" >&2
echo "$resp" | head -c 800 >&2
exit 1
done
}
# -----------------------------------------------------------------------------
# BRAINMELD TASKS
# -----------------------------------------------------------------------------
echo ""
echo "📦 Creating BrainMeld tasks..."
create_task \
"Implement AI-powered document summarization" \
"Add GPT-4 integration for automatic document summarization. Extract key insights and create markdown summaries." \
"brainmeld" \
"done" \
"high" \
"feature"
create_task \
"Design knowledge graph visualization" \
"Create interactive D3.js visualization showing connections between documents, tags, and concepts." \
"brainmeld" \
"done" \
"medium" \
"design"
create_task \
"Add semantic search with vector embeddings" \
"Integrate Pinecone for vector search. Generate embeddings for all documents and enable natural language queries." \
"brainmeld" \
"in-progress" \
"high" \
"feature"
create_task \
"Build collaborative annotation system" \
"Allow multiple users to highlight and comment on shared documents in real-time." \
"brainmeld" \
"in-progress" \
"medium" \
"feature"
create_task \
"Research RAG architecture patterns" \
"Evaluate different retrieval-augmented generation approaches for knowledge Q&A system." \
"brainmeld" \
"todo" \
"high" \
"research"
create_task \
"Optimize document parsing for large PDFs" \
"Current parser struggles with 100+ page PDFs. Profile and optimize performance." \
"brainmeld" \
"todo" \
"medium" \
"bug"
# -----------------------------------------------------------------------------
# DEALMELD TASKS
# -----------------------------------------------------------------------------
echo ""
echo "🤝 Creating DealMeld tasks..."
create_task \
"Build digital sales room template system" \
"Create customizable templates for different deal types (SaaS, consulting, enterprise)." \
"dealmeld" \
"done" \
"high" \
"feature"
create_task \
"Add document engagement analytics" \
"Track which pages prospects view, time spent, and engagement patterns." \
"dealmeld" \
"done" \
"high" \
"feature"
create_task \
"Implement e-signature integration" \
"Integrate DocuSign and HelloSign for in-app contract signing." \
"dealmeld" \
"in-progress" \
"high" \
"feature"
create_task \
"Design stakeholder collaboration features" \
"Enable multiple decision-makers on buyer side to collaborate within the deal room." \
"dealmeld" \
"todo" \
"medium" \
"design"
create_task \
"Research mutual action plan best practices" \
"Study how top sales teams structure MAPs. Interview 10+ sales leaders." \
"dealmeld" \
"todo" \
"low" \
"research"
# -----------------------------------------------------------------------------
# MESSAGEMELD TASKS
# -----------------------------------------------------------------------------
echo ""
echo "💬 Creating MessageMeld tasks..."
create_task \
"Add Discord and Telegram support" \
"Extend cross-platform messaging to Discord and Telegram in addition to existing platforms." \
"messagemeld" \
"done" \
"high" \
"feature"
create_task \
"Fix message sync race condition" \
"Occasional duplicate messages when multiple platforms receive the same message simultaneously." \
"messagemeld" \
"in-progress" \
"high" \
"bug"
create_task \
"Build unified notification system" \
"Aggregate notifications from all platforms into single intelligent feed." \
"messagemeld" \
"todo" \
"medium" \
"feature"
create_task \
"Design thread unification UI" \
"Show how conversations across platforms can be merged into coherent threads." \
"messagemeld" \
"todo" \
"medium" \
"design"
# -----------------------------------------------------------------------------
# INFRASTRUCTURE TASKS
# -----------------------------------------------------------------------------
echo ""
echo "⚙️ Creating Infrastructure tasks..."
create_task \
"Migrate to Kubernetes for production deployment" \
"Move from Docker Compose to k8s for better scaling and orchestration." \
"infrastructure" \
"done" \
"high" \
"feature"
create_task \
"Set up CI/CD pipeline with GitHub Actions" \
"Automate testing, building, and deployment for all projects." \
"infrastructure" \
"done" \
"high" \
"feature"
create_task \
"Implement comprehensive monitoring and alerting" \
"Deploy Prometheus, Grafana, and PagerDuty for full observability." \
"infrastructure" \
"in-progress" \
"high" \
"feature"
create_task \
"Audit security vulnerabilities across all services" \
"Run Snyk, Trivy, and manual penetration testing. Remediate all high/critical findings." \
"infrastructure" \
"todo" \
"high" \
"research"
create_task \
"Optimize database query performance" \
"Several slow queries identified in production. Add indexes and optimize N+1 queries." \
"infrastructure" \
"todo" \
"medium" \
"bug"
echo ""
echo "✅ Task seeding complete!"
echo ""
echo "📋 Summary:"
echo " • BrainMeld: 6 tasks"
echo " • DealMeld: 5 tasks"
echo " • MessageMeld: 4 tasks"
echo " • Infrastructure: 5 tasks"
echo " • Total: 20 tasks"
echo ""