@nextsparkjs/theme-default 0.1.0-beta.1

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 (333) hide show
  1. package/about/business.md +49 -0
  2. package/about/features.json +302 -0
  3. package/about/team.md +79 -0
  4. package/api/ai/chat/stream/route.ts +212 -0
  5. package/api/ai/orchestrator/route.ts +226 -0
  6. package/api/ai/single-agent/route.ts +291 -0
  7. package/api/ai/usage/route.ts +122 -0
  8. package/blocks/benefits/component.tsx +100 -0
  9. package/blocks/benefits/config.ts +11 -0
  10. package/blocks/benefits/examples.ts +85 -0
  11. package/blocks/benefits/fields.ts +156 -0
  12. package/blocks/benefits/schema.ts +33 -0
  13. package/blocks/cta-section/component.tsx +100 -0
  14. package/blocks/cta-section/config.ts +11 -0
  15. package/blocks/cta-section/examples.ts +41 -0
  16. package/blocks/cta-section/fields.ts +89 -0
  17. package/blocks/cta-section/index.ts +6 -0
  18. package/blocks/cta-section/schema.ts +32 -0
  19. package/blocks/cta-section/thumbnail.png +1 -0
  20. package/blocks/faq-accordion/component.tsx +156 -0
  21. package/blocks/faq-accordion/config.ts +11 -0
  22. package/blocks/faq-accordion/examples.ts +77 -0
  23. package/blocks/faq-accordion/fields.ts +119 -0
  24. package/blocks/faq-accordion/index.ts +6 -0
  25. package/blocks/faq-accordion/schema.ts +45 -0
  26. package/blocks/features-grid/component.tsx +112 -0
  27. package/blocks/features-grid/config.ts +11 -0
  28. package/blocks/features-grid/examples.ts +63 -0
  29. package/blocks/features-grid/fields.ts +97 -0
  30. package/blocks/features-grid/index.ts +6 -0
  31. package/blocks/features-grid/schema.ts +40 -0
  32. package/blocks/features-grid/thumbnail.png +1 -0
  33. package/blocks/hero/component.tsx +100 -0
  34. package/blocks/hero/config.ts +11 -0
  35. package/blocks/hero/examples.ts +35 -0
  36. package/blocks/hero/fields.ts +60 -0
  37. package/blocks/hero/index.ts +6 -0
  38. package/blocks/hero/schema.ts +32 -0
  39. package/blocks/hero/thumbnail.png +1 -0
  40. package/blocks/hero/thumbnail.png.txt +6 -0
  41. package/blocks/hero-with-form/component.tsx +232 -0
  42. package/blocks/hero-with-form/config.ts +11 -0
  43. package/blocks/hero-with-form/examples.ts +16 -0
  44. package/blocks/hero-with-form/fields.ts +207 -0
  45. package/blocks/hero-with-form/index.ts +6 -0
  46. package/blocks/hero-with-form/schema.ts +54 -0
  47. package/blocks/jumbotron/component.tsx +136 -0
  48. package/blocks/jumbotron/config.ts +11 -0
  49. package/blocks/jumbotron/examples.ts +36 -0
  50. package/blocks/jumbotron/fields.ts +202 -0
  51. package/blocks/jumbotron/index.ts +6 -0
  52. package/blocks/jumbotron/schema.ts +55 -0
  53. package/blocks/logo-cloud/component.tsx +154 -0
  54. package/blocks/logo-cloud/config.ts +11 -0
  55. package/blocks/logo-cloud/examples.ts +34 -0
  56. package/blocks/logo-cloud/fields.ts +133 -0
  57. package/blocks/logo-cloud/index.ts +6 -0
  58. package/blocks/logo-cloud/schema.ts +46 -0
  59. package/blocks/post-content/component.tsx +197 -0
  60. package/blocks/post-content/config.ts +11 -0
  61. package/blocks/post-content/examples.ts +33 -0
  62. package/blocks/post-content/fields.ts +165 -0
  63. package/blocks/post-content/index.ts +4 -0
  64. package/blocks/post-content/schema.ts +46 -0
  65. package/blocks/pricing-table/component.tsx +154 -0
  66. package/blocks/pricing-table/config.ts +11 -0
  67. package/blocks/pricing-table/examples.ts +96 -0
  68. package/blocks/pricing-table/fields.ts +161 -0
  69. package/blocks/pricing-table/index.ts +4 -0
  70. package/blocks/pricing-table/schema.ts +50 -0
  71. package/blocks/split-content/component.tsx +135 -0
  72. package/blocks/split-content/config.ts +11 -0
  73. package/blocks/split-content/examples.ts +38 -0
  74. package/blocks/split-content/fields.ts +198 -0
  75. package/blocks/split-content/index.ts +6 -0
  76. package/blocks/split-content/schema.ts +67 -0
  77. package/blocks/stats-counter/component.tsx +124 -0
  78. package/blocks/stats-counter/config.ts +11 -0
  79. package/blocks/stats-counter/examples.ts +61 -0
  80. package/blocks/stats-counter/fields.ts +134 -0
  81. package/blocks/stats-counter/index.ts +6 -0
  82. package/blocks/stats-counter/schema.ts +47 -0
  83. package/blocks/testimonials/component.tsx +114 -0
  84. package/blocks/testimonials/config.ts +11 -0
  85. package/blocks/testimonials/examples.ts +65 -0
  86. package/blocks/testimonials/fields.ts +105 -0
  87. package/blocks/testimonials/index.ts +6 -0
  88. package/blocks/testimonials/schema.ts +41 -0
  89. package/blocks/testimonials/thumbnail.png +1 -0
  90. package/blocks/text-content/component.tsx +97 -0
  91. package/blocks/text-content/config.ts +11 -0
  92. package/blocks/text-content/examples.ts +30 -0
  93. package/blocks/text-content/fields.ts +88 -0
  94. package/blocks/text-content/index.ts +6 -0
  95. package/blocks/text-content/schema.ts +30 -0
  96. package/blocks/text-content/thumbnail.png +1 -0
  97. package/blocks/timeline/component.tsx +267 -0
  98. package/blocks/timeline/config.ts +11 -0
  99. package/blocks/timeline/examples.ts +68 -0
  100. package/blocks/timeline/fields.ts +147 -0
  101. package/blocks/timeline/index.ts +6 -0
  102. package/blocks/timeline/schema.ts +49 -0
  103. package/blocks/video-hero/component.tsx +270 -0
  104. package/blocks/video-hero/config.ts +11 -0
  105. package/blocks/video-hero/examples.ts +24 -0
  106. package/blocks/video-hero/fields.ts +98 -0
  107. package/blocks/video-hero/index.ts +6 -0
  108. package/blocks/video-hero/schema.ts +39 -0
  109. package/components/ai-chat/ChatPanel.tsx +575 -0
  110. package/components/ai-chat/ConversationItem.tsx +266 -0
  111. package/components/ai-chat/ConversationSidebar.tsx +99 -0
  112. package/components/ai-chat/MarkdownRenderer.tsx +15 -0
  113. package/components/ai-chat/Message.tsx +42 -0
  114. package/components/ai-chat/MessageInput.tsx +49 -0
  115. package/components/ai-chat/MessageList.tsx +46 -0
  116. package/components/ai-chat/TypingIndicator.tsx +11 -0
  117. package/config/app.config.ts +367 -0
  118. package/config/billing.config.ts +349 -0
  119. package/config/dashboard.config.ts +506 -0
  120. package/config/dev.config.ts +104 -0
  121. package/config/features.config.ts +203 -0
  122. package/config/flows.config.ts +129 -0
  123. package/config/permissions.config.ts +245 -0
  124. package/config/theme.config.ts +74 -0
  125. package/docs/01-overview/01-introduction.md +335 -0
  126. package/docs/01-overview/02-customization.md +671 -0
  127. package/docs/02-features/01-components.md +155 -0
  128. package/docs/02-features/02-styling.md +139 -0
  129. package/docs/02-features/03-tasks-entity.md +407 -0
  130. package/docs/03-ai/01-overview.md +211 -0
  131. package/docs/03-ai/02-customization.md +436 -0
  132. package/entities/customers/customers.config.ts +75 -0
  133. package/entities/customers/customers.fields.ts +165 -0
  134. package/entities/customers/customers.service.ts +516 -0
  135. package/entities/customers/customers.types.ts +83 -0
  136. package/entities/customers/messages/en.json +66 -0
  137. package/entities/customers/messages/es.json +66 -0
  138. package/entities/customers/migrations/001_customers_table.sql +102 -0
  139. package/entities/customers/migrations/002_customers_metas.sql +92 -0
  140. package/entities/pages/messages/en.json +41 -0
  141. package/entities/pages/messages/es.json +41 -0
  142. package/entities/pages/migrations/001_pages_table.sql +112 -0
  143. package/entities/pages/migrations/002_pages_metas.sql +56 -0
  144. package/entities/pages/migrations/003_add_status.sql +50 -0
  145. package/entities/pages/pages-management.service.ts +610 -0
  146. package/entities/pages/pages.config.ts +94 -0
  147. package/entities/pages/pages.fields.ts +101 -0
  148. package/entities/pages/pages.service.ts +290 -0
  149. package/entities/pages/pages.types.ts +124 -0
  150. package/entities/posts/components/post-header.tsx +97 -0
  151. package/entities/posts/messages/en.json +55 -0
  152. package/entities/posts/messages/es.json +55 -0
  153. package/entities/posts/migrations/001_posts_table.sql +115 -0
  154. package/entities/posts/migrations/003_add_status.sql +44 -0
  155. package/entities/posts/migrations/004_entity_taxonomy_relations.sql +129 -0
  156. package/entities/posts/migrations/006_posts_metas.sql +56 -0
  157. package/entities/posts/posts.config.ts +101 -0
  158. package/entities/posts/posts.fields.ts +116 -0
  159. package/entities/posts/posts.service.ts +376 -0
  160. package/entities/posts/posts.types.ts +74 -0
  161. package/entities/tasks/messages/en.json +204 -0
  162. package/entities/tasks/messages/es.json +204 -0
  163. package/entities/tasks/migrations/001_tasks_table.sql +105 -0
  164. package/entities/tasks/migrations/002_task_metas.sql +85 -0
  165. package/entities/tasks/migrations/sample_data.json +77 -0
  166. package/entities/tasks/tasks.config.ts +79 -0
  167. package/entities/tasks/tasks.fields.ts +196 -0
  168. package/entities/tasks/tasks.service.ts +541 -0
  169. package/entities/tasks/tasks.types.ts +56 -0
  170. package/lib/hooks/useAiChat.ts +114 -0
  171. package/lib/hooks/useConversations.ts +376 -0
  172. package/lib/hooks/useOrchestratorChat.ts +122 -0
  173. package/lib/hooks/usePersistentChat.ts +315 -0
  174. package/lib/hooks/useStreamingChat.ts +127 -0
  175. package/lib/hooks/useTokenUsage.ts +63 -0
  176. package/lib/langchain/agents/customer-assistant.md +69 -0
  177. package/lib/langchain/agents/index.ts +61 -0
  178. package/lib/langchain/agents/orchestrator.md +59 -0
  179. package/lib/langchain/agents/page-assistant.md +85 -0
  180. package/lib/langchain/agents/single-agent.md +46 -0
  181. package/lib/langchain/agents/task-assistant.md +55 -0
  182. package/lib/langchain/config.ts +45 -0
  183. package/lib/langchain/handlers/customer-handler.ts +338 -0
  184. package/lib/langchain/handlers/page-handler.ts +232 -0
  185. package/lib/langchain/handlers/task-handler.ts +323 -0
  186. package/lib/langchain/langchain.config.ts +223 -0
  187. package/lib/langchain/observability.config.ts +30 -0
  188. package/lib/langchain/orchestrator.ts +562 -0
  189. package/lib/langchain/tools/customers.ts +176 -0
  190. package/lib/langchain/tools/index.ts +10 -0
  191. package/lib/langchain/tools/orchestrator.ts +92 -0
  192. package/lib/langchain/tools/pages.ts +289 -0
  193. package/lib/langchain/tools/tasks.ts +167 -0
  194. package/lib/scheduled-actions/billing.ts +149 -0
  195. package/lib/scheduled-actions/index.ts +170 -0
  196. package/lib/scheduled-actions/webhook.ts +231 -0
  197. package/lib/selectors.ts +197 -0
  198. package/messages/de/admin.json +219 -0
  199. package/messages/de/aiUsage.json +36 -0
  200. package/messages/de/buttons.json +19 -0
  201. package/messages/de/categories.json +35 -0
  202. package/messages/de/common.json +16 -0
  203. package/messages/de/dev.json +101 -0
  204. package/messages/de/docs.json +27 -0
  205. package/messages/de/entities.json +7 -0
  206. package/messages/de/features.json +119 -0
  207. package/messages/de/footer.json +22 -0
  208. package/messages/de/home.json +57 -0
  209. package/messages/de/index.ts +39 -0
  210. package/messages/de/mobileNav.json +13 -0
  211. package/messages/de/navigation.json +8 -0
  212. package/messages/de/observability.json +74 -0
  213. package/messages/de/posts.json +54 -0
  214. package/messages/de/pricing.json +102 -0
  215. package/messages/de/support.json +9 -0
  216. package/messages/de/teams.json +8 -0
  217. package/messages/en/admin.json +219 -0
  218. package/messages/en/aiUsage.json +36 -0
  219. package/messages/en/buttons.json +19 -0
  220. package/messages/en/categories.json +35 -0
  221. package/messages/en/common.json +16 -0
  222. package/messages/en/dev.json +106 -0
  223. package/messages/en/docs.json +27 -0
  224. package/messages/en/entities.json +7 -0
  225. package/messages/en/features.json +119 -0
  226. package/messages/en/footer.json +22 -0
  227. package/messages/en/home.json +57 -0
  228. package/messages/en/index.ts +39 -0
  229. package/messages/en/mobileNav.json +13 -0
  230. package/messages/en/navigation.json +8 -0
  231. package/messages/en/observability.json +74 -0
  232. package/messages/en/posts.json +54 -0
  233. package/messages/en/pricing.json +102 -0
  234. package/messages/en/support.json +9 -0
  235. package/messages/en/teams.json +8 -0
  236. package/messages/es/admin.json +219 -0
  237. package/messages/es/aiUsage.json +36 -0
  238. package/messages/es/buttons.json +19 -0
  239. package/messages/es/categories.json +35 -0
  240. package/messages/es/common.json +16 -0
  241. package/messages/es/dev.json +101 -0
  242. package/messages/es/docs.json +27 -0
  243. package/messages/es/entities.json +7 -0
  244. package/messages/es/features.json +119 -0
  245. package/messages/es/footer.json +22 -0
  246. package/messages/es/home.json +57 -0
  247. package/messages/es/index.ts +39 -0
  248. package/messages/es/mobileNav.json +13 -0
  249. package/messages/es/navigation.json +8 -0
  250. package/messages/es/observability.json +74 -0
  251. package/messages/es/posts.json +54 -0
  252. package/messages/es/pricing.json +102 -0
  253. package/messages/es/support.json +9 -0
  254. package/messages/es/teams.json +8 -0
  255. package/messages/fr/admin.json +219 -0
  256. package/messages/fr/aiUsage.json +36 -0
  257. package/messages/fr/buttons.json +19 -0
  258. package/messages/fr/categories.json +35 -0
  259. package/messages/fr/common.json +16 -0
  260. package/messages/fr/dev.json +101 -0
  261. package/messages/fr/docs.json +27 -0
  262. package/messages/fr/entities.json +7 -0
  263. package/messages/fr/features.json +119 -0
  264. package/messages/fr/footer.json +22 -0
  265. package/messages/fr/home.json +57 -0
  266. package/messages/fr/index.ts +39 -0
  267. package/messages/fr/mobileNav.json +13 -0
  268. package/messages/fr/navigation.json +8 -0
  269. package/messages/fr/observability.json +74 -0
  270. package/messages/fr/posts.json +54 -0
  271. package/messages/fr/pricing.json +102 -0
  272. package/messages/fr/support.json +9 -0
  273. package/messages/fr/teams.json +8 -0
  274. package/messages/it/admin.json +219 -0
  275. package/messages/it/aiUsage.json +36 -0
  276. package/messages/it/buttons.json +19 -0
  277. package/messages/it/categories.json +35 -0
  278. package/messages/it/common.json +16 -0
  279. package/messages/it/dev.json +101 -0
  280. package/messages/it/docs.json +27 -0
  281. package/messages/it/entities.json +7 -0
  282. package/messages/it/features.json +119 -0
  283. package/messages/it/footer.json +22 -0
  284. package/messages/it/home.json +57 -0
  285. package/messages/it/index.ts +39 -0
  286. package/messages/it/mobileNav.json +13 -0
  287. package/messages/it/navigation.json +8 -0
  288. package/messages/it/observability.json +74 -0
  289. package/messages/it/posts.json +54 -0
  290. package/messages/it/pricing.json +102 -0
  291. package/messages/it/support.json +9 -0
  292. package/messages/it/teams.json +8 -0
  293. package/messages/pt/admin.json +219 -0
  294. package/messages/pt/aiUsage.json +36 -0
  295. package/messages/pt/buttons.json +19 -0
  296. package/messages/pt/categories.json +35 -0
  297. package/messages/pt/common.json +16 -0
  298. package/messages/pt/dev.json +101 -0
  299. package/messages/pt/docs.json +27 -0
  300. package/messages/pt/entities.json +7 -0
  301. package/messages/pt/features.json +119 -0
  302. package/messages/pt/footer.json +22 -0
  303. package/messages/pt/home.json +57 -0
  304. package/messages/pt/index.ts +39 -0
  305. package/messages/pt/mobileNav.json +13 -0
  306. package/messages/pt/navigation.json +8 -0
  307. package/messages/pt/observability.json +74 -0
  308. package/messages/pt/posts.json +54 -0
  309. package/messages/pt/pricing.json +102 -0
  310. package/messages/pt/support.json +9 -0
  311. package/messages/pt/teams.json +8 -0
  312. package/migrations/089_add_editor_team_role.sql +39 -0
  313. package/migrations/090_demo_users_teams.sql +540 -0
  314. package/migrations/091_greek_teams_billing.sql +523 -0
  315. package/migrations/092_billing_sample_data.sql +774 -0
  316. package/migrations/093_pages_sample_data.sql +1158 -0
  317. package/migrations/094_posts_sample_data.sql +278 -0
  318. package/migrations/095_tasks_sample_data.sql +440 -0
  319. package/migrations/096_customers_sample_data.sql +358 -0
  320. package/migrations/097_scheduled_actions_sample_data.sql +111 -0
  321. package/package.json +22 -0
  322. package/public/docs/desktop-layout-example.png +0 -0
  323. package/styles/components.css +11 -0
  324. package/styles/globals.css +179 -0
  325. package/templates/(public)/blog/[slug]/page.tsx +65 -0
  326. package/templates/(public)/layout.tsx +25 -0
  327. package/templates/(public)/page.tsx +200 -0
  328. package/templates/(public)/support/page.tsx +321 -0
  329. package/templates/dashboard/(main)/agent-multi/page.tsx +63 -0
  330. package/templates/dashboard/(main)/agent-single/page.tsx +142 -0
  331. package/templates/dashboard/(main)/settings/ai-usage/page.tsx +157 -0
  332. package/templates/superadmin/ai-observability/[traceId]/page.tsx +27 -0
  333. package/templates/superadmin/ai-observability/page.tsx +17 -0
@@ -0,0 +1,358 @@
1
+ -- Migration: 096_customers_sample_data.sql
2
+ -- Description: Demo customers for TMT.dev users and company teams
3
+ -- Date: 2025-12-24
4
+ -- Phase: Theme sample data - runs AFTER users/teams (090) and entity tables (001-002)
5
+ --
6
+ -- NOTE: This file contains demo customers for the default theme.
7
+ -- All customers reference users and teams from 090_demo_users_teams.sql
8
+
9
+ -- ============================================
10
+ -- EVERPOINT LABS CUSTOMERS (Technology Company)
11
+ -- ============================================
12
+ INSERT INTO public."customers" (
13
+ id,
14
+ "userId",
15
+ "teamId",
16
+ office,
17
+ account,
18
+ name,
19
+ phone,
20
+ "salesRep",
21
+ "visitDays",
22
+ "contactDays",
23
+ "createdAt",
24
+ "updatedAt"
25
+ ) VALUES
26
+ (
27
+ 'customer-everpoint-001',
28
+ 'usr-carlos-001',
29
+ 'team-everpoint-001',
30
+ 'San Francisco',
31
+ 2001,
32
+ 'TechGiant Inc.',
33
+ '+1 415 555 0101',
34
+ 'Carlos Mendoza',
35
+ '["mon", "wed"]'::jsonb,
36
+ '["tue", "fri"]'::jsonb,
37
+ NOW() - INTERVAL '30 days',
38
+ NOW() - INTERVAL '5 days'
39
+ ),
40
+ (
41
+ 'customer-everpoint-002',
42
+ 'usr-james-002',
43
+ 'team-everpoint-001',
44
+ 'Austin',
45
+ 2002,
46
+ 'StartupXYZ',
47
+ '+1 512 555 0102',
48
+ 'James Wilson',
49
+ '["tue", "thu"]'::jsonb,
50
+ '["mon", "wed"]'::jsonb,
51
+ NOW() - INTERVAL '20 days',
52
+ NOW() - INTERVAL '3 days'
53
+ ),
54
+ (
55
+ 'customer-everpoint-003',
56
+ 'usr-emily-006',
57
+ 'team-everpoint-001',
58
+ 'Seattle',
59
+ 2003,
60
+ 'CloudServices Pro',
61
+ '+1 206 555 0103',
62
+ 'Emily Johnson',
63
+ '["wed", "fri"]'::jsonb,
64
+ '["mon", "thu"]'::jsonb,
65
+ NOW() - INTERVAL '15 days',
66
+ NOW() - INTERVAL '1 day'
67
+ ),
68
+ (
69
+ 'customer-everpoint-004',
70
+ 'usr-diego-003',
71
+ 'team-everpoint-001',
72
+ 'Mexico City',
73
+ 2004,
74
+ 'LatamTech Solutions',
75
+ '+52 55 5555 0104',
76
+ 'Diego Ramirez',
77
+ '["mon", "thu"]'::jsonb,
78
+ '["wed", "fri"]'::jsonb,
79
+ NOW() - INTERVAL '10 days',
80
+ NOW()
81
+ ),
82
+
83
+ -- ========================================
84
+ -- IRONVALE GLOBAL CUSTOMERS (Consulting Firm)
85
+ -- ========================================
86
+ (
87
+ 'customer-ironvale-001',
88
+ 'usr-ana-005',
89
+ 'team-ironvale-002',
90
+ 'Madrid',
91
+ 3001,
92
+ 'European Holdings SA',
93
+ '+34 91 555 0201',
94
+ 'Ana Garcia',
95
+ '["mon", "wed", "fri"]'::jsonb,
96
+ '["tue"]'::jsonb,
97
+ NOW() - INTERVAL '45 days',
98
+ NOW() - INTERVAL '10 days'
99
+ ),
100
+ (
101
+ 'customer-ironvale-002',
102
+ 'usr-sofia-007',
103
+ 'team-ironvale-002',
104
+ 'Buenos Aires',
105
+ 3002,
106
+ 'Grupo Inversiones Sur',
107
+ '+54 11 5555 0202',
108
+ 'Sofia Lopez',
109
+ '["tue", "thu"]'::jsonb,
110
+ '["mon", "fri"]'::jsonb,
111
+ NOW() - INTERVAL '25 days',
112
+ NOW() - INTERVAL '5 days'
113
+ ),
114
+ (
115
+ 'customer-ironvale-003',
116
+ 'usr-michael-004',
117
+ 'team-ironvale-002',
118
+ 'Los Angeles',
119
+ 3003,
120
+ 'West Coast Ventures LLC',
121
+ '+1 310 555 0203',
122
+ 'Michael Brown',
123
+ '["wed"]'::jsonb,
124
+ '["mon", "thu"]'::jsonb,
125
+ NOW() - INTERVAL '18 days',
126
+ NOW() - INTERVAL '2 days'
127
+ ),
128
+ (
129
+ 'customer-ironvale-004',
130
+ 'usr-ana-005',
131
+ 'team-ironvale-002',
132
+ 'Barcelona',
133
+ 3004,
134
+ 'Mediterranean Partners',
135
+ '+34 93 555 0204',
136
+ 'Ana Garcia',
137
+ '["mon", "fri"]'::jsonb,
138
+ '["wed"]'::jsonb,
139
+ NOW() - INTERVAL '12 days',
140
+ NOW()
141
+ ),
142
+
143
+ -- ========================================
144
+ -- RIVERSTONE VENTURES CUSTOMERS (Investment Fund)
145
+ -- ========================================
146
+ (
147
+ 'customer-riverstone-001',
148
+ 'usr-sofia-007',
149
+ 'team-riverstone-003',
150
+ 'New York',
151
+ 4001,
152
+ 'Horizon Capital Partners',
153
+ '+1 212 555 0301',
154
+ 'Sofia Lopez',
155
+ '["mon", "wed"]'::jsonb,
156
+ '["tue", "thu"]'::jsonb,
157
+ NOW() - INTERVAL '35 days',
158
+ NOW() - INTERVAL '7 days'
159
+ ),
160
+ (
161
+ 'customer-riverstone-002',
162
+ 'usr-emily-006',
163
+ 'team-riverstone-003',
164
+ 'London',
165
+ 4002,
166
+ 'Atlantic Growth Fund',
167
+ '+44 20 5555 0302',
168
+ 'Emily Johnson',
169
+ '["tue", "fri"]'::jsonb,
170
+ '["mon", "wed"]'::jsonb,
171
+ NOW() - INTERVAL '22 days',
172
+ NOW() - INTERVAL '3 days'
173
+ ),
174
+ (
175
+ 'customer-riverstone-003',
176
+ 'usr-carlos-001',
177
+ 'team-riverstone-003',
178
+ 'Singapore',
179
+ 4003,
180
+ 'Asia Pacific Investors',
181
+ '+65 5555 0303',
182
+ 'Carlos Mendoza',
183
+ '["wed", "thu"]'::jsonb,
184
+ '["mon", "fri"]'::jsonb,
185
+ NOW() - INTERVAL '8 days',
186
+ NOW() - INTERVAL '1 day'
187
+ ),
188
+
189
+ -- ========================================
190
+ -- PERSONAL CUSTOMERS (TMT.dev users)
191
+ -- ========================================
192
+ (
193
+ 'customer-personal-carlos',
194
+ 'usr-carlos-001',
195
+ 'team-personal-carlos-001',
196
+ 'Home Office',
197
+ 9001,
198
+ 'Freelance Client A',
199
+ '+54 11 5555 9001',
200
+ 'Carlos Mendoza',
201
+ '["fri"]'::jsonb,
202
+ '["mon"]'::jsonb,
203
+ NOW() - INTERVAL '5 days',
204
+ NOW()
205
+ ),
206
+ (
207
+ 'customer-personal-ana',
208
+ 'usr-ana-005',
209
+ 'team-personal-ana-005',
210
+ 'Home Office',
211
+ 9002,
212
+ 'Side Project Client',
213
+ '+34 91 555 9002',
214
+ 'Ana Garcia',
215
+ '["sat"]'::jsonb,
216
+ '["sun"]'::jsonb,
217
+ NOW() - INTERVAL '3 days',
218
+ NOW()
219
+ )
220
+ ON CONFLICT (id) DO NOTHING;
221
+
222
+ -- ============================================
223
+ -- SAMPLE META DATA
224
+ -- ============================================
225
+ INSERT INTO public."customers_metas" (
226
+ "entityId",
227
+ "metaKey",
228
+ "metaValue",
229
+ "dataType",
230
+ "isPublic",
231
+ "isSearchable"
232
+ ) VALUES
233
+ -- Everpoint Labs customer metadata
234
+ (
235
+ 'customer-everpoint-001',
236
+ 'credit_limit',
237
+ '{"amount": 500000, "currency": "USD"}',
238
+ 'object',
239
+ false,
240
+ false
241
+ ),
242
+ (
243
+ 'customer-everpoint-001',
244
+ 'industry',
245
+ '"Enterprise Software"',
246
+ 'string',
247
+ true,
248
+ true
249
+ ),
250
+ (
251
+ 'customer-everpoint-002',
252
+ 'credit_limit',
253
+ '{"amount": 100000, "currency": "USD"}',
254
+ 'object',
255
+ false,
256
+ false
257
+ ),
258
+ (
259
+ 'customer-everpoint-002',
260
+ 'industry',
261
+ '"SaaS Startup"',
262
+ 'string',
263
+ true,
264
+ true
265
+ ),
266
+ (
267
+ 'customer-everpoint-003',
268
+ 'industry',
269
+ '"Cloud Infrastructure"',
270
+ 'string',
271
+ true,
272
+ true
273
+ ),
274
+ (
275
+ 'customer-everpoint-004',
276
+ 'industry',
277
+ '"Technology Services"',
278
+ 'string',
279
+ true,
280
+ true
281
+ ),
282
+
283
+ -- Ironvale Global customer metadata
284
+ (
285
+ 'customer-ironvale-001',
286
+ 'contract_value',
287
+ '{"amount": 2500000, "currency": "EUR"}',
288
+ 'object',
289
+ false,
290
+ false
291
+ ),
292
+ (
293
+ 'customer-ironvale-001',
294
+ 'industry',
295
+ '"Financial Services"',
296
+ 'string',
297
+ true,
298
+ true
299
+ ),
300
+ (
301
+ 'customer-ironvale-002',
302
+ 'industry',
303
+ '"Investment Management"',
304
+ 'string',
305
+ true,
306
+ true
307
+ ),
308
+ (
309
+ 'customer-ironvale-003',
310
+ 'industry',
311
+ '"Private Equity"',
312
+ 'string',
313
+ true,
314
+ true
315
+ ),
316
+ (
317
+ 'customer-ironvale-004',
318
+ 'industry',
319
+ '"Real Estate"',
320
+ 'string',
321
+ true,
322
+ true
323
+ ),
324
+
325
+ -- Riverstone Ventures customer metadata
326
+ (
327
+ 'customer-riverstone-001',
328
+ 'aum',
329
+ '{"amount": 500000000, "currency": "USD"}',
330
+ 'object',
331
+ false,
332
+ false
333
+ ),
334
+ (
335
+ 'customer-riverstone-001',
336
+ 'industry',
337
+ '"Venture Capital"',
338
+ 'string',
339
+ true,
340
+ true
341
+ ),
342
+ (
343
+ 'customer-riverstone-002',
344
+ 'industry',
345
+ '"Growth Equity"',
346
+ 'string',
347
+ true,
348
+ true
349
+ ),
350
+ (
351
+ 'customer-riverstone-003',
352
+ 'industry',
353
+ '"Cross-border Investment"',
354
+ 'string',
355
+ true,
356
+ true
357
+ )
358
+ ON CONFLICT ("entityId", "metaKey") DO NOTHING;
@@ -0,0 +1,111 @@
1
+ -- Migration: 097_scheduled_actions_sample_data.sql
2
+ -- Description: Sample data for scheduled actions (webhooks and billing renewals)
3
+ -- Date: 2025-12-30
4
+
5
+ -- ============================================
6
+ -- SAMPLE SCHEDULED ACTIONS
7
+ -- ============================================
8
+
9
+ -- Completed webhook actions (task created events)
10
+ INSERT INTO public."scheduled_actions" (
11
+ id, "teamId", "actionType", status, payload, "scheduledAt", "startedAt", "completedAt", attempts, "createdAt", "updatedAt"
12
+ ) VALUES
13
+ -- Webhook for task creation - completed successfully
14
+ (
15
+ 'sa-webhook-001',
16
+ 'team-nextspark-001',
17
+ 'webhook:send',
18
+ 'completed',
19
+ '{"eventType": "create", "entityType": "task", "entityId": "task-sample-001", "data": {"title": "Review Q4 Report", "status": "in_progress"}}',
20
+ NOW() - INTERVAL '2 days',
21
+ NOW() - INTERVAL '2 days' + INTERVAL '1 second',
22
+ NOW() - INTERVAL '2 days' + INTERVAL '3 seconds',
23
+ 1,
24
+ NOW() - INTERVAL '2 days',
25
+ NOW() - INTERVAL '2 days' + INTERVAL '3 seconds'
26
+ ),
27
+ -- Webhook for task update - completed
28
+ (
29
+ 'sa-webhook-002',
30
+ 'team-nextspark-001',
31
+ 'webhook:send',
32
+ 'completed',
33
+ '{"eventType": "update", "entityType": "task", "entityId": "task-sample-001", "changes": {"status": "completed"}}',
34
+ NOW() - INTERVAL '1 day',
35
+ NOW() - INTERVAL '1 day' + INTERVAL '2 seconds',
36
+ NOW() - INTERVAL '1 day' + INTERVAL '4 seconds',
37
+ 1,
38
+ NOW() - INTERVAL '1 day',
39
+ NOW() - INTERVAL '1 day' + INTERVAL '4 seconds'
40
+ ),
41
+ -- Webhook that failed (endpoint unreachable)
42
+ (
43
+ 'sa-webhook-003',
44
+ 'team-nextspark-001',
45
+ 'webhook:send',
46
+ 'failed',
47
+ '{"eventType": "create", "entityType": "task", "entityId": "task-sample-002", "data": {"title": "Setup CI/CD"}}',
48
+ NOW() - INTERVAL '12 hours',
49
+ NOW() - INTERVAL '12 hours' + INTERVAL '1 second',
50
+ NOW() - INTERVAL '12 hours' + INTERVAL '30 seconds',
51
+ 3,
52
+ NOW() - INTERVAL '12 hours',
53
+ NOW() - INTERVAL '12 hours' + INTERVAL '30 seconds'
54
+ )
55
+ ON CONFLICT (id) DO NOTHING;
56
+
57
+ -- Update error message separately (cleaner SQL)
58
+ UPDATE public."scheduled_actions"
59
+ SET "errorMessage" = 'Failed after 3 attempts: ECONNREFUSED - Webhook endpoint not reachable'
60
+ WHERE id = 'sa-webhook-003';
61
+
62
+ -- Completed billing renewal checks
63
+ INSERT INTO public."scheduled_actions" (
64
+ id, "teamId", "actionType", status, payload, "scheduledAt", "startedAt", "completedAt", attempts, "recurringInterval", "createdAt", "updatedAt"
65
+ ) VALUES
66
+ -- Daily billing check - 3 days ago
67
+ (
68
+ 'sa-billing-001',
69
+ NULL,
70
+ 'billing:check-renewals',
71
+ 'completed',
72
+ '{"processedTeams": 5, "renewalsTriggered": 1, "expirationsProcessed": 0}',
73
+ NOW() - INTERVAL '3 days',
74
+ NOW() - INTERVAL '3 days' + INTERVAL '1 second',
75
+ NOW() - INTERVAL '3 days' + INTERVAL '15 seconds',
76
+ 1,
77
+ 'daily',
78
+ NOW() - INTERVAL '3 days',
79
+ NOW() - INTERVAL '3 days' + INTERVAL '15 seconds'
80
+ ),
81
+ -- Daily billing check - 2 days ago
82
+ (
83
+ 'sa-billing-002',
84
+ NULL,
85
+ 'billing:check-renewals',
86
+ 'completed',
87
+ '{"processedTeams": 5, "renewalsTriggered": 0, "expirationsProcessed": 1}',
88
+ NOW() - INTERVAL '2 days',
89
+ NOW() - INTERVAL '2 days' + INTERVAL '1 second',
90
+ NOW() - INTERVAL '2 days' + INTERVAL '12 seconds',
91
+ 1,
92
+ 'daily',
93
+ NOW() - INTERVAL '2 days',
94
+ NOW() - INTERVAL '2 days' + INTERVAL '12 seconds'
95
+ ),
96
+ -- Daily billing check - yesterday
97
+ (
98
+ 'sa-billing-003',
99
+ NULL,
100
+ 'billing:check-renewals',
101
+ 'completed',
102
+ '{"processedTeams": 5, "renewalsTriggered": 2, "expirationsProcessed": 0}',
103
+ NOW() - INTERVAL '1 day',
104
+ NOW() - INTERVAL '1 day' + INTERVAL '1 second',
105
+ NOW() - INTERVAL '1 day' + INTERVAL '18 seconds',
106
+ 1,
107
+ 'daily',
108
+ NOW() - INTERVAL '1 day',
109
+ NOW() - INTERVAL '1 day' + INTERVAL '18 seconds'
110
+ )
111
+ ON CONFLICT (id) DO NOTHING;
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "@nextsparkjs/theme-default",
3
+ "version": "0.1.0-beta.1",
4
+ "private": false,
5
+ "type": "module",
6
+ "main": "./config/theme.config.ts",
7
+ "requiredPlugins": [
8
+ "@nextsparkjs/plugin-langchain"
9
+ ],
10
+ "dependencies": {},
11
+ "peerDependencies": {
12
+ "@nextsparkjs/core": "workspace:*",
13
+ "@tanstack/react-query": "^5.0.0",
14
+ "lucide-react": "^0.539.0",
15
+ "next": "^15.0.0",
16
+ "next-intl": "^4.0.0",
17
+ "react": "^19.0.0",
18
+ "react-dom": "^19.0.0",
19
+ "react-markdown": "^10.1.0",
20
+ "zod": "^4.0.0"
21
+ }
22
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Default Theme Component-Specific Styles
3
+ *
4
+ * Custom component styles that supplement the base shadcn/ui components
5
+ * These styles are specific to the default theme
6
+ */
7
+
8
+ /* =============================================
9
+ COMPONENT-SPECIFIC THEME STYLES
10
+ ============================================= */
11
+
@@ -0,0 +1,179 @@
1
+ /**
2
+ * Default Theme - shadcn/ui Neutral
3
+ *
4
+ * Pure neutral grays using OKLCH color space.
5
+ * Based on shadcn/ui default configuration.
6
+ */
7
+
8
+ /* =============================================
9
+ DEFAULT THEME - LIGHT MODE
10
+ ============================================= */
11
+
12
+ :root {
13
+ --background: oklch(1 0 0);
14
+ --foreground: oklch(0.1450 0 0);
15
+ --card: oklch(1 0 0);
16
+ --card-foreground: oklch(0.1450 0 0);
17
+ --popover: oklch(1 0 0);
18
+ --popover-foreground: oklch(0.1450 0 0);
19
+ --primary: oklch(0.2050 0 0);
20
+ --primary-foreground: oklch(0.9850 0 0);
21
+ --secondary: oklch(0.9700 0 0);
22
+ --secondary-foreground: oklch(0.2050 0 0);
23
+ --muted: oklch(0.9700 0 0);
24
+ --muted-foreground: oklch(0.5560 0 0);
25
+ --accent: oklch(0.9700 0 0);
26
+ --accent-foreground: oklch(0.2050 0 0);
27
+ --destructive: oklch(0.5770 0.2450 27.3250);
28
+ --destructive-foreground: oklch(1 0 0);
29
+ --border: oklch(0.9220 0 0);
30
+ --input: oklch(0.9220 0 0);
31
+ --ring: oklch(0.7080 0 0);
32
+ --chart-1: oklch(0.8100 0.1000 252);
33
+ --chart-2: oklch(0.6200 0.1900 260);
34
+ --chart-3: oklch(0.5500 0.2200 263);
35
+ --chart-4: oklch(0.4900 0.2200 264);
36
+ --chart-5: oklch(0.4200 0.1800 266);
37
+ --sidebar: oklch(0.9850 0 0);
38
+ --sidebar-foreground: oklch(0.1450 0 0);
39
+ --sidebar-primary: oklch(0.2050 0 0);
40
+ --sidebar-primary-foreground: oklch(0.9850 0 0);
41
+ --sidebar-accent: oklch(0.9700 0 0);
42
+ --sidebar-accent-foreground: oklch(0.2050 0 0);
43
+ --sidebar-border: oklch(0.9220 0 0);
44
+ --sidebar-ring: oklch(0.7080 0 0);
45
+ --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
46
+ --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
47
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
48
+ --radius: 0.625rem;
49
+ --shadow-x: 0;
50
+ --shadow-y: 1px;
51
+ --shadow-blur: 3px;
52
+ --shadow-spread: 0px;
53
+ --shadow-opacity: 0.1;
54
+ --shadow-color: oklch(0 0 0);
55
+ --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
56
+ --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
57
+ --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
58
+ --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
59
+ --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
60
+ --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
61
+ --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
62
+ --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
63
+ --tracking-normal: 0em;
64
+ --spacing: 0.25rem;
65
+ }
66
+
67
+ /* =============================================
68
+ DEFAULT THEME - DARK MODE
69
+ ============================================= */
70
+
71
+ .dark {
72
+ --background: oklch(0.1450 0 0);
73
+ --foreground: oklch(0.9850 0 0);
74
+ --card: oklch(0.2050 0 0);
75
+ --card-foreground: oklch(0.9850 0 0);
76
+ --popover: oklch(0.2690 0 0);
77
+ --popover-foreground: oklch(0.9850 0 0);
78
+ --primary: oklch(0.9220 0 0);
79
+ --primary-foreground: oklch(0.2050 0 0);
80
+ --secondary: oklch(0.2690 0 0);
81
+ --secondary-foreground: oklch(0.9850 0 0);
82
+ --muted: oklch(0.2690 0 0);
83
+ --muted-foreground: oklch(0.7080 0 0);
84
+ --accent: oklch(0.3710 0 0);
85
+ --accent-foreground: oklch(0.9850 0 0);
86
+ --destructive: oklch(0.7040 0.1910 22.2160);
87
+ --destructive-foreground: oklch(0.9850 0 0);
88
+ --border: oklch(0.2750 0 0);
89
+ --input: oklch(0.3250 0 0);
90
+ --ring: oklch(0.5560 0 0);
91
+ --chart-1: oklch(0.8100 0.1000 252);
92
+ --chart-2: oklch(0.6200 0.1900 260);
93
+ --chart-3: oklch(0.5500 0.2200 263);
94
+ --chart-4: oklch(0.4900 0.2200 264);
95
+ --chart-5: oklch(0.4200 0.1800 266);
96
+ --sidebar: oklch(0.2050 0 0);
97
+ --sidebar-foreground: oklch(0.9850 0 0);
98
+ --sidebar-primary: oklch(0.4880 0.2430 264.3760);
99
+ --sidebar-primary-foreground: oklch(0.9850 0 0);
100
+ --sidebar-accent: oklch(0.2690 0 0);
101
+ --sidebar-accent-foreground: oklch(0.9850 0 0);
102
+ --sidebar-border: oklch(0.2750 0 0);
103
+ --sidebar-ring: oklch(0.4390 0 0);
104
+ --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
105
+ --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
106
+ --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
107
+ --radius: 0.625rem;
108
+ --shadow-x: 0;
109
+ --shadow-y: 1px;
110
+ --shadow-blur: 3px;
111
+ --shadow-spread: 0px;
112
+ --shadow-opacity: 0.1;
113
+ --shadow-color: oklch(0 0 0);
114
+ --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
115
+ --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
116
+ --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
117
+ --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
118
+ --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
119
+ --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
120
+ --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
121
+ --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
122
+ }
123
+
124
+ /* =============================================
125
+ TAILWIND v4 THEME MAPPING
126
+ ============================================= */
127
+
128
+ @theme inline {
129
+ --color-background: var(--background);
130
+ --color-foreground: var(--foreground);
131
+ --color-card: var(--card);
132
+ --color-card-foreground: var(--card-foreground);
133
+ --color-popover: var(--popover);
134
+ --color-popover-foreground: var(--popover-foreground);
135
+ --color-primary: var(--primary);
136
+ --color-primary-foreground: var(--primary-foreground);
137
+ --color-secondary: var(--secondary);
138
+ --color-secondary-foreground: var(--secondary-foreground);
139
+ --color-muted: var(--muted);
140
+ --color-muted-foreground: var(--muted-foreground);
141
+ --color-accent: var(--accent);
142
+ --color-accent-foreground: var(--accent-foreground);
143
+ --color-destructive: var(--destructive);
144
+ --color-destructive-foreground: var(--destructive-foreground);
145
+ --color-border: var(--border);
146
+ --color-input: var(--input);
147
+ --color-ring: var(--ring);
148
+ --color-chart-1: var(--chart-1);
149
+ --color-chart-2: var(--chart-2);
150
+ --color-chart-3: var(--chart-3);
151
+ --color-chart-4: var(--chart-4);
152
+ --color-chart-5: var(--chart-5);
153
+ --color-sidebar: var(--sidebar);
154
+ --color-sidebar-foreground: var(--sidebar-foreground);
155
+ --color-sidebar-primary: var(--sidebar-primary);
156
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
157
+ --color-sidebar-accent: var(--sidebar-accent);
158
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
159
+ --color-sidebar-border: var(--sidebar-border);
160
+ --color-sidebar-ring: var(--sidebar-ring);
161
+
162
+ --font-sans: var(--font-sans);
163
+ --font-mono: var(--font-mono);
164
+ --font-serif: var(--font-serif);
165
+
166
+ --radius-sm: calc(var(--radius) - 4px);
167
+ --radius-md: calc(var(--radius) - 2px);
168
+ --radius-lg: var(--radius);
169
+ --radius-xl: calc(var(--radius) + 4px);
170
+
171
+ --shadow-2xs: var(--shadow-2xs);
172
+ --shadow-xs: var(--shadow-xs);
173
+ --shadow-sm: var(--shadow-sm);
174
+ --shadow: var(--shadow);
175
+ --shadow-md: var(--shadow-md);
176
+ --shadow-lg: var(--shadow-lg);
177
+ --shadow-xl: var(--shadow-xl);
178
+ --shadow-2xl: var(--shadow-2xl);
179
+ }