@nextsparkjs/core 0.1.0-beta.83 → 0.1.0-beta.85

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 (365) hide show
  1. package/dist/styles/classes.json +1 -1
  2. package/dist/templates/app/(auth)/forgot-password/page.tsx +216 -0
  3. package/dist/templates/app/(auth)/layout.tsx +51 -0
  4. package/dist/templates/app/(auth)/login/page.tsx +21 -0
  5. package/dist/templates/app/(auth)/reset-password/page.tsx +212 -0
  6. package/dist/templates/app/(auth)/signup/page.tsx +21 -0
  7. package/dist/templates/app/(auth)/verify-email/page.tsx +190 -0
  8. package/dist/templates/app/(public)/[...slug]/page.tsx +378 -0
  9. package/dist/templates/app/(public)/docs/[section]/[page]/page.tsx +90 -0
  10. package/dist/templates/app/(public)/docs/layout.tsx +25 -0
  11. package/dist/templates/app/(public)/docs/page.tsx +81 -0
  12. package/dist/templates/app/(public)/layout.tsx +41 -0
  13. package/dist/templates/app/(public)/page.tsx +19 -0
  14. package/dist/templates/app/403/page.tsx +89 -0
  15. package/dist/templates/app/api/auth/[...all]/route.ts +78 -0
  16. package/dist/templates/app/api/cron/billing/lifecycle/route.ts +98 -0
  17. package/dist/templates/app/api/csp-report/route.ts +175 -0
  18. package/dist/templates/app/api/devtools/config/entities/route.ts +108 -0
  19. package/dist/templates/app/api/devtools/config/theme/route.ts +66 -0
  20. package/dist/templates/app/api/devtools/tests/[...path]/route.ts +130 -0
  21. package/dist/templates/app/api/devtools/tests/route.ts +134 -0
  22. package/dist/templates/app/api/health/route.ts +29 -0
  23. package/dist/templates/app/api/internal/user-metadata/route.ts +36 -0
  24. package/dist/templates/app/api/superadmin/subscriptions/route.ts +310 -0
  25. package/dist/templates/app/api/superadmin/teams/[teamId]/route.ts +286 -0
  26. package/dist/templates/app/api/superadmin/teams/route.ts +188 -0
  27. package/dist/templates/app/api/superadmin/users/[userId]/route.ts +540 -0
  28. package/dist/templates/app/api/superadmin/users/route.ts +323 -0
  29. package/dist/templates/app/api/user/delete-account/route.ts +55 -0
  30. package/dist/templates/app/api/user/plan-flags/route.ts +283 -0
  31. package/dist/templates/app/api/user/profile/route.ts +133 -0
  32. package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +210 -0
  33. package/dist/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +331 -0
  34. package/dist/templates/app/api/v1/[entity]/[id]/route.ts +35 -0
  35. package/dist/templates/app/api/v1/[entity]/docs.md +369 -0
  36. package/dist/templates/app/api/v1/[entity]/presets.ts +194 -0
  37. package/dist/templates/app/api/v1/[entity]/route.ts +31 -0
  38. package/dist/templates/app/api/v1/api-keys/[id]/route.ts +303 -0
  39. package/dist/templates/app/api/v1/api-keys/docs.md +101 -0
  40. package/dist/templates/app/api/v1/api-keys/presets.ts +31 -0
  41. package/dist/templates/app/api/v1/api-keys/route.ts +250 -0
  42. package/dist/templates/app/api/v1/auth/docs.md +184 -0
  43. package/dist/templates/app/api/v1/auth/presets.ts +44 -0
  44. package/dist/templates/app/api/v1/auth/signup-with-invite/route.ts +227 -0
  45. package/dist/templates/app/api/v1/billing/cancel/route.ts +206 -0
  46. package/dist/templates/app/api/v1/billing/change-plan/route.ts +97 -0
  47. package/dist/templates/app/api/v1/billing/check-action/route.ts +81 -0
  48. package/dist/templates/app/api/v1/billing/checkout/route.ts +124 -0
  49. package/dist/templates/app/api/v1/billing/docs.md +209 -0
  50. package/dist/templates/app/api/v1/billing/plans/route.ts +85 -0
  51. package/dist/templates/app/api/v1/billing/portal/route.ts +90 -0
  52. package/dist/templates/app/api/v1/billing/presets.ts +121 -0
  53. package/dist/templates/app/api/v1/billing/webhooks/stripe/route.ts +428 -0
  54. package/dist/templates/app/api/v1/blocks/[slug]/route.ts +29 -0
  55. package/dist/templates/app/api/v1/blocks/docs.md +173 -0
  56. package/dist/templates/app/api/v1/blocks/presets.ts +121 -0
  57. package/dist/templates/app/api/v1/blocks/route.ts +45 -0
  58. package/dist/templates/app/api/v1/blocks/validate/route.ts +45 -0
  59. package/dist/templates/app/api/v1/cron/docs.md +116 -0
  60. package/dist/templates/app/api/v1/cron/presets.ts +26 -0
  61. package/dist/templates/app/api/v1/cron/process/route.ts +108 -0
  62. package/dist/templates/app/api/v1/devtools/blocks/route.ts +82 -0
  63. package/dist/templates/app/api/v1/devtools/docs/route.ts +150 -0
  64. package/dist/templates/app/api/v1/devtools/docs.md +204 -0
  65. package/dist/templates/app/api/v1/devtools/features/route.ts +61 -0
  66. package/dist/templates/app/api/v1/devtools/flows/route.ts +61 -0
  67. package/dist/templates/app/api/v1/devtools/presets.ts +113 -0
  68. package/dist/templates/app/api/v1/devtools/scheduled-actions/route.ts +120 -0
  69. package/dist/templates/app/api/v1/devtools/testing/route.ts +82 -0
  70. package/dist/templates/app/api/v1/media/docs.md +117 -0
  71. package/dist/templates/app/api/v1/media/presets.ts +24 -0
  72. package/dist/templates/app/api/v1/media/upload/route.ts +150 -0
  73. package/dist/templates/app/api/v1/patterns/[id]/usages/route.ts +116 -0
  74. package/dist/templates/app/api/v1/plugin/[...path]/route.ts +373 -0
  75. package/dist/templates/app/api/v1/plugin/docs.md +79 -0
  76. package/dist/templates/app/api/v1/plugin/presets.ts +21 -0
  77. package/dist/templates/app/api/v1/plugin/route.ts +96 -0
  78. package/dist/templates/app/api/v1/post-categories/[id]/route.ts +255 -0
  79. package/dist/templates/app/api/v1/post-categories/docs.md +134 -0
  80. package/dist/templates/app/api/v1/post-categories/presets.ts +78 -0
  81. package/dist/templates/app/api/v1/post-categories/route.ts +119 -0
  82. package/dist/templates/app/api/v1/team-invitations/[token]/accept/route.ts +179 -0
  83. package/dist/templates/app/api/v1/team-invitations/[token]/decline/route.ts +120 -0
  84. package/dist/templates/app/api/v1/team-invitations/[token]/route.ts +89 -0
  85. package/dist/templates/app/api/v1/team-invitations/docs.md +88 -0
  86. package/dist/templates/app/api/v1/team-invitations/presets.ts +43 -0
  87. package/dist/templates/app/api/v1/team-invitations/route.ts +114 -0
  88. package/dist/templates/app/api/v1/teams/[teamId]/invitations/route.ts +171 -0
  89. package/dist/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +105 -0
  90. package/dist/templates/app/api/v1/teams/[teamId]/invoices/route.ts +125 -0
  91. package/dist/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +263 -0
  92. package/dist/templates/app/api/v1/teams/[teamId]/members/route.ts +358 -0
  93. package/dist/templates/app/api/v1/teams/[teamId]/route.ts +322 -0
  94. package/dist/templates/app/api/v1/teams/[teamId]/subscription/route.ts +50 -0
  95. package/dist/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +91 -0
  96. package/dist/templates/app/api/v1/teams/docs.md +320 -0
  97. package/dist/templates/app/api/v1/teams/presets.ts +178 -0
  98. package/dist/templates/app/api/v1/teams/route.ts +293 -0
  99. package/dist/templates/app/api/v1/teams/switch/route.ts +88 -0
  100. package/dist/templates/app/api/v1/theme/[...path]/route.ts +361 -0
  101. package/dist/templates/app/api/v1/theme/docs.md +74 -0
  102. package/dist/templates/app/api/v1/theme/presets.ts +21 -0
  103. package/dist/templates/app/api/v1/theme/route.ts +96 -0
  104. package/dist/templates/app/api/v1/users/[id]/meta/[key]/route.ts +363 -0
  105. package/dist/templates/app/api/v1/users/[id]/route.ts +302 -0
  106. package/dist/templates/app/api/v1/users/docs.md +93 -0
  107. package/dist/templates/app/api/v1/users/presets.ts +59 -0
  108. package/dist/templates/app/api/v1/users/route.ts +197 -0
  109. package/dist/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +117 -0
  110. package/dist/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +103 -0
  111. package/dist/templates/app/dashboard/(main)/[entity]/create/page.tsx +95 -0
  112. package/dist/templates/app/dashboard/(main)/[entity]/error.tsx +51 -0
  113. package/dist/templates/app/dashboard/(main)/[entity]/layout.tsx +113 -0
  114. package/dist/templates/app/dashboard/(main)/[entity]/loading.tsx +61 -0
  115. package/dist/templates/app/dashboard/(main)/[entity]/page.tsx +90 -0
  116. package/dist/templates/app/dashboard/(main)/layout.tsx +98 -0
  117. package/dist/templates/app/dashboard/(main)/loading.tsx +5 -0
  118. package/dist/templates/app/dashboard/(main)/page.tsx +201 -0
  119. package/dist/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +114 -0
  120. package/dist/templates/app/dashboard/(main)/patterns/[id]/page.tsx +20 -0
  121. package/dist/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +171 -0
  122. package/dist/templates/app/dashboard/(main)/patterns/create/page.tsx +86 -0
  123. package/dist/templates/app/dashboard/(main)/patterns/page.tsx +444 -0
  124. package/dist/templates/app/dashboard/features/analytics/page.tsx +35 -0
  125. package/dist/templates/app/dashboard/features/automation/page.tsx +35 -0
  126. package/dist/templates/app/dashboard/features/layout.tsx +13 -0
  127. package/dist/templates/app/dashboard/features/loading.tsx +5 -0
  128. package/dist/templates/app/dashboard/features/webhooks/page.tsx +35 -0
  129. package/dist/templates/app/dashboard/layout.tsx +86 -0
  130. package/dist/templates/app/dashboard/permission-denied/page.tsx +29 -0
  131. package/dist/templates/app/dashboard/settings/api-keys/loading.tsx +5 -0
  132. package/dist/templates/app/dashboard/settings/api-keys/page.tsx +513 -0
  133. package/dist/templates/app/dashboard/settings/billing/loading.tsx +5 -0
  134. package/dist/templates/app/dashboard/settings/billing/page.tsx +284 -0
  135. package/dist/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +222 -0
  136. package/dist/templates/app/dashboard/settings/invoices/loading.tsx +5 -0
  137. package/dist/templates/app/dashboard/settings/invoices/page.tsx +82 -0
  138. package/dist/templates/app/dashboard/settings/layout.tsx +151 -0
  139. package/dist/templates/app/dashboard/settings/loading.tsx +5 -0
  140. package/dist/templates/app/dashboard/settings/notifications/loading.tsx +5 -0
  141. package/dist/templates/app/dashboard/settings/notifications/page.tsx +462 -0
  142. package/dist/templates/app/dashboard/settings/page.tsx +92 -0
  143. package/dist/templates/app/dashboard/settings/password/loading.tsx +5 -0
  144. package/dist/templates/app/dashboard/settings/password/page.tsx +306 -0
  145. package/dist/templates/app/dashboard/settings/plans/loading.tsx +5 -0
  146. package/dist/templates/app/dashboard/settings/plans/page.tsx +40 -0
  147. package/dist/templates/app/dashboard/settings/profile/loading.tsx +5 -0
  148. package/dist/templates/app/dashboard/settings/profile/page.tsx +686 -0
  149. package/dist/templates/app/dashboard/settings/security/loading.tsx +5 -0
  150. package/dist/templates/app/dashboard/settings/security/page.tsx +505 -0
  151. package/dist/templates/app/dashboard/settings/teams/loading.tsx +5 -0
  152. package/dist/templates/app/dashboard/settings/teams/page.tsx +272 -0
  153. package/dist/templates/app/dashboard/settings/teams/permissions/page.tsx +92 -0
  154. package/dist/templates/app/devtools/blocks/[slug]/page.tsx +39 -0
  155. package/dist/templates/app/devtools/blocks/page.tsx +31 -0
  156. package/dist/templates/app/devtools/config/page.tsx +31 -0
  157. package/dist/templates/app/devtools/features/page.tsx +31 -0
  158. package/dist/templates/app/devtools/flows/page.tsx +31 -0
  159. package/dist/templates/app/devtools/layout.tsx +58 -0
  160. package/dist/templates/app/devtools/page.tsx +121 -0
  161. package/dist/templates/app/devtools/scheduled-actions/page.tsx +157 -0
  162. package/dist/templates/app/devtools/style/page.tsx +330 -0
  163. package/dist/templates/app/devtools/tags/page.tsx +31 -0
  164. package/dist/templates/app/devtools/tests/[[...path]]/page.tsx +47 -0
  165. package/dist/templates/app/favicon.ico +0 -0
  166. package/dist/templates/app/globals.css +12 -0
  167. package/dist/templates/app/layout.tsx +96 -0
  168. package/dist/templates/app/public/page.tsx +30 -0
  169. package/dist/templates/app/superadmin/docs/[section]/[page]/page.tsx +92 -0
  170. package/dist/templates/app/superadmin/docs/page.tsx +75 -0
  171. package/dist/templates/app/superadmin/layout.tsx +67 -0
  172. package/dist/templates/app/superadmin/page.tsx +149 -0
  173. package/dist/templates/app/superadmin/subscriptions/page.tsx +655 -0
  174. package/dist/templates/app/superadmin/team-roles/page.tsx +493 -0
  175. package/dist/templates/app/superadmin/teams/[teamId]/page.tsx +687 -0
  176. package/dist/templates/app/superadmin/teams/page.tsx +302 -0
  177. package/dist/templates/app/superadmin/users/[userId]/page.tsx +548 -0
  178. package/dist/templates/app/superadmin/users/page.tsx +528 -0
  179. package/package.json +15 -15
  180. package/scripts/build/docs-registry.mjs +0 -0
  181. package/scripts/create-theme.mjs +0 -0
  182. package/scripts/deploy/release-version.mjs +0 -0
  183. package/scripts/deploy/vercel-deploy.mjs +0 -0
  184. package/scripts/dev/watch-plugins.mjs +0 -0
  185. package/scripts/maintenance/update-core.mjs +0 -0
  186. package/scripts/setup/npm-postinstall.mjs +0 -0
  187. package/scripts/setup/setup-claude.mjs +0 -0
  188. package/scripts/validation/check-imports.sh +0 -0
  189. package/templates/app/(auth)/forgot-password/page.tsx +216 -0
  190. package/templates/app/(auth)/layout.tsx +51 -0
  191. package/templates/app/(auth)/login/page.tsx +21 -0
  192. package/templates/app/(auth)/reset-password/page.tsx +212 -0
  193. package/templates/app/(auth)/signup/page.tsx +21 -0
  194. package/templates/app/(auth)/verify-email/page.tsx +190 -0
  195. package/templates/app/(public)/[...slug]/page.tsx +378 -0
  196. package/templates/app/(public)/docs/[section]/[page]/page.tsx +90 -0
  197. package/templates/app/(public)/docs/layout.tsx +25 -0
  198. package/templates/app/(public)/docs/page.tsx +81 -0
  199. package/templates/app/(public)/layout.tsx +41 -0
  200. package/templates/app/(public)/page.tsx +19 -0
  201. package/templates/app/403/page.tsx +89 -0
  202. package/templates/app/api/auth/[...all]/route.ts +78 -0
  203. package/templates/app/api/cron/billing/lifecycle/route.ts +98 -0
  204. package/templates/app/api/csp-report/route.ts +175 -0
  205. package/templates/app/api/devtools/config/entities/route.ts +108 -0
  206. package/templates/app/api/devtools/config/theme/route.ts +66 -0
  207. package/templates/app/api/devtools/tests/[...path]/route.ts +130 -0
  208. package/templates/app/api/devtools/tests/route.ts +134 -0
  209. package/templates/app/api/health/route.ts +29 -0
  210. package/templates/app/api/internal/user-metadata/route.ts +36 -0
  211. package/templates/app/api/superadmin/subscriptions/route.ts +310 -0
  212. package/templates/app/api/superadmin/teams/[teamId]/route.ts +286 -0
  213. package/templates/app/api/superadmin/teams/route.ts +188 -0
  214. package/templates/app/api/superadmin/users/[userId]/route.ts +540 -0
  215. package/templates/app/api/superadmin/users/route.ts +323 -0
  216. package/templates/app/api/user/delete-account/route.ts +55 -0
  217. package/templates/app/api/user/plan-flags/route.ts +283 -0
  218. package/templates/app/api/user/profile/route.ts +133 -0
  219. package/templates/app/api/v1/[entity]/[id]/child/[childType]/[childId]/route.ts +210 -0
  220. package/templates/app/api/v1/[entity]/[id]/child/[childType]/route.ts +331 -0
  221. package/templates/app/api/v1/[entity]/[id]/route.ts +35 -0
  222. package/templates/app/api/v1/[entity]/docs.md +369 -0
  223. package/templates/app/api/v1/[entity]/presets.ts +194 -0
  224. package/templates/app/api/v1/[entity]/route.ts +31 -0
  225. package/templates/app/api/v1/api-keys/[id]/route.ts +303 -0
  226. package/templates/app/api/v1/api-keys/docs.md +101 -0
  227. package/templates/app/api/v1/api-keys/presets.ts +31 -0
  228. package/templates/app/api/v1/api-keys/route.ts +250 -0
  229. package/templates/app/api/v1/auth/docs.md +184 -0
  230. package/templates/app/api/v1/auth/presets.ts +44 -0
  231. package/templates/app/api/v1/auth/signup-with-invite/route.ts +227 -0
  232. package/templates/app/api/v1/billing/cancel/route.ts +206 -0
  233. package/templates/app/api/v1/billing/change-plan/route.ts +97 -0
  234. package/templates/app/api/v1/billing/check-action/route.ts +81 -0
  235. package/templates/app/api/v1/billing/checkout/route.ts +124 -0
  236. package/templates/app/api/v1/billing/docs.md +209 -0
  237. package/templates/app/api/v1/billing/plans/route.ts +85 -0
  238. package/templates/app/api/v1/billing/portal/route.ts +90 -0
  239. package/templates/app/api/v1/billing/presets.ts +121 -0
  240. package/templates/app/api/v1/billing/webhooks/stripe/route.ts +428 -0
  241. package/templates/app/api/v1/blocks/[slug]/route.ts +29 -0
  242. package/templates/app/api/v1/blocks/docs.md +173 -0
  243. package/templates/app/api/v1/blocks/presets.ts +121 -0
  244. package/templates/app/api/v1/blocks/route.ts +45 -0
  245. package/templates/app/api/v1/blocks/validate/route.ts +45 -0
  246. package/templates/app/api/v1/cron/docs.md +116 -0
  247. package/templates/app/api/v1/cron/presets.ts +26 -0
  248. package/templates/app/api/v1/cron/process/route.ts +108 -0
  249. package/templates/app/api/v1/devtools/blocks/route.ts +82 -0
  250. package/templates/app/api/v1/devtools/docs/route.ts +150 -0
  251. package/templates/app/api/v1/devtools/docs.md +204 -0
  252. package/templates/app/api/v1/devtools/features/route.ts +61 -0
  253. package/templates/app/api/v1/devtools/flows/route.ts +61 -0
  254. package/templates/app/api/v1/devtools/presets.ts +113 -0
  255. package/templates/app/api/v1/devtools/scheduled-actions/route.ts +120 -0
  256. package/templates/app/api/v1/devtools/testing/route.ts +82 -0
  257. package/templates/app/api/v1/media/docs.md +117 -0
  258. package/templates/app/api/v1/media/presets.ts +24 -0
  259. package/templates/app/api/v1/media/upload/route.ts +150 -0
  260. package/templates/app/api/v1/patterns/[id]/usages/route.ts +116 -0
  261. package/templates/app/api/v1/plugin/[...path]/route.ts +373 -0
  262. package/templates/app/api/v1/plugin/docs.md +79 -0
  263. package/templates/app/api/v1/plugin/presets.ts +21 -0
  264. package/templates/app/api/v1/plugin/route.ts +96 -0
  265. package/templates/app/api/v1/post-categories/[id]/route.ts +255 -0
  266. package/templates/app/api/v1/post-categories/docs.md +134 -0
  267. package/templates/app/api/v1/post-categories/presets.ts +78 -0
  268. package/templates/app/api/v1/post-categories/route.ts +119 -0
  269. package/templates/app/api/v1/team-invitations/[token]/accept/route.ts +179 -0
  270. package/templates/app/api/v1/team-invitations/[token]/decline/route.ts +120 -0
  271. package/templates/app/api/v1/team-invitations/[token]/route.ts +89 -0
  272. package/templates/app/api/v1/team-invitations/docs.md +88 -0
  273. package/templates/app/api/v1/team-invitations/presets.ts +43 -0
  274. package/templates/app/api/v1/team-invitations/route.ts +114 -0
  275. package/templates/app/api/v1/teams/[teamId]/invitations/route.ts +171 -0
  276. package/templates/app/api/v1/teams/[teamId]/invoices/[invoiceNumber]/route.ts +105 -0
  277. package/templates/app/api/v1/teams/[teamId]/invoices/route.ts +125 -0
  278. package/templates/app/api/v1/teams/[teamId]/members/[memberId]/route.ts +263 -0
  279. package/templates/app/api/v1/teams/[teamId]/members/route.ts +358 -0
  280. package/templates/app/api/v1/teams/[teamId]/route.ts +322 -0
  281. package/templates/app/api/v1/teams/[teamId]/subscription/route.ts +50 -0
  282. package/templates/app/api/v1/teams/[teamId]/usage/[limitSlug]/route.ts +91 -0
  283. package/templates/app/api/v1/teams/docs.md +320 -0
  284. package/templates/app/api/v1/teams/presets.ts +178 -0
  285. package/templates/app/api/v1/teams/route.ts +293 -0
  286. package/templates/app/api/v1/teams/switch/route.ts +88 -0
  287. package/templates/app/api/v1/theme/[...path]/route.ts +361 -0
  288. package/templates/app/api/v1/theme/docs.md +74 -0
  289. package/templates/app/api/v1/theme/presets.ts +21 -0
  290. package/templates/app/api/v1/theme/route.ts +96 -0
  291. package/templates/app/api/v1/users/[id]/meta/[key]/route.ts +363 -0
  292. package/templates/app/api/v1/users/[id]/route.ts +302 -0
  293. package/templates/app/api/v1/users/docs.md +93 -0
  294. package/templates/app/api/v1/users/presets.ts +59 -0
  295. package/templates/app/api/v1/users/route.ts +197 -0
  296. package/templates/app/dashboard/(main)/[entity]/[id]/edit/page.tsx +117 -0
  297. package/templates/app/dashboard/(main)/[entity]/[id]/page.tsx +103 -0
  298. package/templates/app/dashboard/(main)/[entity]/create/page.tsx +95 -0
  299. package/templates/app/dashboard/(main)/[entity]/error.tsx +51 -0
  300. package/templates/app/dashboard/(main)/[entity]/layout.tsx +113 -0
  301. package/templates/app/dashboard/(main)/[entity]/loading.tsx +61 -0
  302. package/templates/app/dashboard/(main)/[entity]/page.tsx +90 -0
  303. package/templates/app/dashboard/(main)/layout.tsx +98 -0
  304. package/templates/app/dashboard/(main)/loading.tsx +5 -0
  305. package/templates/app/dashboard/(main)/page.tsx +201 -0
  306. package/templates/app/dashboard/(main)/patterns/[id]/edit/page.tsx +114 -0
  307. package/templates/app/dashboard/(main)/patterns/[id]/page.tsx +20 -0
  308. package/templates/app/dashboard/(main)/patterns/[id]/reports/page.tsx +171 -0
  309. package/templates/app/dashboard/(main)/patterns/create/page.tsx +86 -0
  310. package/templates/app/dashboard/(main)/patterns/page.tsx +444 -0
  311. package/templates/app/dashboard/features/analytics/page.tsx +35 -0
  312. package/templates/app/dashboard/features/automation/page.tsx +35 -0
  313. package/templates/app/dashboard/features/layout.tsx +13 -0
  314. package/templates/app/dashboard/features/loading.tsx +5 -0
  315. package/templates/app/dashboard/features/webhooks/page.tsx +35 -0
  316. package/templates/app/dashboard/layout.tsx +86 -0
  317. package/templates/app/dashboard/permission-denied/page.tsx +29 -0
  318. package/templates/app/dashboard/settings/api-keys/loading.tsx +5 -0
  319. package/templates/app/dashboard/settings/api-keys/page.tsx +513 -0
  320. package/templates/app/dashboard/settings/billing/loading.tsx +5 -0
  321. package/templates/app/dashboard/settings/billing/page.tsx +284 -0
  322. package/templates/app/dashboard/settings/invoices/[invoiceNumber]/page.tsx +222 -0
  323. package/templates/app/dashboard/settings/invoices/loading.tsx +5 -0
  324. package/templates/app/dashboard/settings/invoices/page.tsx +82 -0
  325. package/templates/app/dashboard/settings/layout.tsx +151 -0
  326. package/templates/app/dashboard/settings/loading.tsx +5 -0
  327. package/templates/app/dashboard/settings/notifications/loading.tsx +5 -0
  328. package/templates/app/dashboard/settings/notifications/page.tsx +462 -0
  329. package/templates/app/dashboard/settings/page.tsx +92 -0
  330. package/templates/app/dashboard/settings/password/loading.tsx +5 -0
  331. package/templates/app/dashboard/settings/password/page.tsx +306 -0
  332. package/templates/app/dashboard/settings/plans/loading.tsx +5 -0
  333. package/templates/app/dashboard/settings/plans/page.tsx +40 -0
  334. package/templates/app/dashboard/settings/profile/loading.tsx +5 -0
  335. package/templates/app/dashboard/settings/profile/page.tsx +686 -0
  336. package/templates/app/dashboard/settings/security/loading.tsx +5 -0
  337. package/templates/app/dashboard/settings/security/page.tsx +505 -0
  338. package/templates/app/dashboard/settings/teams/loading.tsx +5 -0
  339. package/templates/app/dashboard/settings/teams/page.tsx +272 -0
  340. package/templates/app/dashboard/settings/teams/permissions/page.tsx +92 -0
  341. package/templates/app/devtools/blocks/[slug]/page.tsx +39 -0
  342. package/templates/app/devtools/blocks/page.tsx +31 -0
  343. package/templates/app/devtools/config/page.tsx +31 -0
  344. package/templates/app/devtools/features/page.tsx +31 -0
  345. package/templates/app/devtools/flows/page.tsx +31 -0
  346. package/templates/app/devtools/layout.tsx +58 -0
  347. package/templates/app/devtools/page.tsx +121 -0
  348. package/templates/app/devtools/scheduled-actions/page.tsx +157 -0
  349. package/templates/app/devtools/style/page.tsx +330 -0
  350. package/templates/app/devtools/tags/page.tsx +31 -0
  351. package/templates/app/devtools/tests/[[...path]]/page.tsx +47 -0
  352. package/templates/app/favicon.ico +0 -0
  353. package/templates/app/globals.css +12 -0
  354. package/templates/app/layout.tsx +96 -0
  355. package/templates/app/public/page.tsx +30 -0
  356. package/templates/app/superadmin/docs/[section]/[page]/page.tsx +92 -0
  357. package/templates/app/superadmin/docs/page.tsx +75 -0
  358. package/templates/app/superadmin/layout.tsx +67 -0
  359. package/templates/app/superadmin/page.tsx +149 -0
  360. package/templates/app/superadmin/subscriptions/page.tsx +655 -0
  361. package/templates/app/superadmin/team-roles/page.tsx +493 -0
  362. package/templates/app/superadmin/teams/[teamId]/page.tsx +687 -0
  363. package/templates/app/superadmin/teams/page.tsx +302 -0
  364. package/templates/app/superadmin/users/[userId]/page.tsx +548 -0
  365. package/templates/app/superadmin/users/page.tsx +528 -0
@@ -0,0 +1,121 @@
1
+ import { Code, Palette, FileText, Settings } from "lucide-react";
2
+ import Link from "next/link";
3
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@nextsparkjs/core/components/ui/card";
4
+ import { getTranslations } from "next-intl/server";
5
+
6
+ /**
7
+ * Developer Area Home Page
8
+ *
9
+ * Dashboard with quick links to development tools and documentation.
10
+ * Shows overview of available sections in the dev area.
11
+ */
12
+ export default async function DevHomePage() {
13
+ const t = await getTranslations('dev');
14
+ const tCommon = await getTranslations('common');
15
+
16
+ const sections = [
17
+ {
18
+ title: t('nav.styleGallery'),
19
+ description: t('style.description'),
20
+ icon: Palette,
21
+ href: "/devtools/style",
22
+ color: "text-pink-600 dark:text-pink-400",
23
+ bgColor: "bg-pink-100 dark:bg-pink-950",
24
+ cyId: "devtools-home-style-link"
25
+ },
26
+ {
27
+ title: t('nav.testCases'),
28
+ description: t('tests.description'),
29
+ icon: FileText,
30
+ href: "/devtools/tests",
31
+ color: "text-blue-600 dark:text-blue-400",
32
+ bgColor: "bg-blue-100 dark:bg-blue-950",
33
+ cyId: "devtools-home-tests-link"
34
+ },
35
+ {
36
+ title: t('nav.config'),
37
+ description: t('config.description'),
38
+ icon: Settings,
39
+ href: "/devtools/config",
40
+ color: "text-green-600 dark:text-green-400",
41
+ bgColor: "bg-green-100 dark:bg-green-950",
42
+ cyId: "devtools-home-config-link"
43
+ },
44
+ ];
45
+
46
+ return (
47
+ <div className="space-y-6" data-cy="devtools-home-page">
48
+ {/* Header */}
49
+ <div className="flex items-center gap-3">
50
+ <div className="flex items-center justify-center w-12 h-12 bg-violet-100 dark:bg-violet-950 rounded-lg">
51
+ <Code className="h-6 w-6 text-violet-600 dark:text-violet-400" />
52
+ </div>
53
+ <div>
54
+ <h1 className="text-3xl font-bold text-violet-600 dark:text-violet-400">{t('title')}</h1>
55
+ <p className="text-muted-foreground">{t('subtitle')}</p>
56
+ </div>
57
+ </div>
58
+
59
+ {/* Welcome Card */}
60
+ <Card>
61
+ <CardHeader>
62
+ <CardTitle>{t('home.welcome')}</CardTitle>
63
+ <CardDescription>{t('home.welcomeDescription')}</CardDescription>
64
+ </CardHeader>
65
+ <CardContent>
66
+ <p className="text-sm text-muted-foreground">
67
+ {t('home.intro')}
68
+ </p>
69
+ </CardContent>
70
+ </Card>
71
+
72
+ {/* Quick Links Grid */}
73
+ <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
74
+ {sections.map((section) => {
75
+ const Icon = section.icon;
76
+ return (
77
+ <Link
78
+ key={section.href}
79
+ href={section.href}
80
+ data-cy={section.cyId}
81
+ >
82
+ <Card className="h-full hover:border-violet-600 dark:hover:border-violet-400 transition-colors cursor-pointer">
83
+ <CardHeader>
84
+ <div className="flex items-center gap-3">
85
+ <div className={`flex items-center justify-center w-10 h-10 ${section.bgColor} rounded-lg`}>
86
+ <Icon className={`h-5 w-5 ${section.color}`} />
87
+ </div>
88
+ <CardTitle className="text-lg">{section.title}</CardTitle>
89
+ </div>
90
+ </CardHeader>
91
+ <CardContent>
92
+ <CardDescription>{section.description}</CardDescription>
93
+ </CardContent>
94
+ </Card>
95
+ </Link>
96
+ );
97
+ })}
98
+ </div>
99
+
100
+ {/* System Info Card */}
101
+ <Card>
102
+ <CardHeader>
103
+ <CardTitle>{t('home.systemInfo')}</CardTitle>
104
+ <CardDescription>{t('home.systemInfoDescription')}</CardDescription>
105
+ </CardHeader>
106
+ <CardContent>
107
+ <div className="grid gap-4 md:grid-cols-2">
108
+ <div>
109
+ <p className="text-sm font-medium text-muted-foreground">{t('home.accessLevel')}</p>
110
+ <p className="text-lg font-semibold text-violet-600 dark:text-violet-400">{tCommon('userRoles.developer')}</p>
111
+ </div>
112
+ <div>
113
+ <p className="text-sm font-medium text-muted-foreground">{t('home.hierarchy')}</p>
114
+ <p className="text-lg font-semibold">100</p>
115
+ </div>
116
+ </div>
117
+ </CardContent>
118
+ </Card>
119
+ </div>
120
+ );
121
+ }
@@ -0,0 +1,157 @@
1
+ /**
2
+ * DevTools Scheduled Actions Page
3
+ *
4
+ * Displays all scheduled background actions with:
5
+ * - Status filtering (pending, running, completed, failed)
6
+ * - Action type filtering
7
+ * - Action details (type, status, scheduled time, team, payload)
8
+ * - Error messages for failed actions
9
+ * - Pagination
10
+ *
11
+ * Session: 2025-12-30-scheduled-actions-v1
12
+ * Phase: Frontend (Phase 11)
13
+ */
14
+
15
+ 'use client'
16
+
17
+ import { useState } from 'react'
18
+ import { useTranslations } from 'next-intl'
19
+ import { useQuery } from '@tanstack/react-query'
20
+ import { Button } from '@nextsparkjs/core/components/ui/button'
21
+ import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'
22
+ import { sel } from '@nextsparkjs/core/selectors'
23
+ import { Filters } from '@nextsparkjs/core/components/devtools/scheduled-actions/filters'
24
+ import { ActionsTable } from '@nextsparkjs/core/components/devtools/scheduled-actions/actions-table'
25
+ import type { ScheduledActionsFilters, ScheduledActionsResponse } from '@nextsparkjs/core/components/devtools/scheduled-actions/types'
26
+
27
+ async function fetchScheduledActions(
28
+ filters: ScheduledActionsFilters,
29
+ page: number,
30
+ limit: number
31
+ ): Promise<ScheduledActionsResponse> {
32
+ const params = new URLSearchParams()
33
+
34
+ if (filters.status) {
35
+ params.append('status', filters.status)
36
+ }
37
+
38
+ if (filters.actionType) {
39
+ params.append('action_type', filters.actionType)
40
+ }
41
+
42
+ params.append('page', page.toString())
43
+ params.append('limit', limit.toString())
44
+
45
+ const response = await fetch(`/api/v1/devtools/scheduled-actions?${params.toString()}`)
46
+
47
+ if (!response.ok) {
48
+ throw new Error('Failed to fetch scheduled actions')
49
+ }
50
+
51
+ return response.json()
52
+ }
53
+
54
+ export default function ScheduledActionsPage() {
55
+ const t = useTranslations('dev.scheduledActions')
56
+ const [filters, setFilters] = useState<ScheduledActionsFilters>({})
57
+ const [page, setPage] = useState(1)
58
+ const limit = 20
59
+
60
+ const { data, isLoading, error } = useQuery({
61
+ queryKey: ['scheduled-actions', filters, page, limit],
62
+ queryFn: () => fetchScheduledActions(filters, page, limit),
63
+ })
64
+
65
+ const handleFiltersChange = (newFilters: ScheduledActionsFilters) => {
66
+ setFilters(newFilters)
67
+ setPage(1) // Reset to first page when filters change
68
+ }
69
+
70
+ const handlePreviousPage = () => {
71
+ setPage((prev) => Math.max(1, prev - 1))
72
+ }
73
+
74
+ const handleNextPage = () => {
75
+ if (data?.data.pagination.totalPages) {
76
+ setPage((prev) => Math.min(data.data.pagination.totalPages, prev + 1))
77
+ }
78
+ }
79
+
80
+ return (
81
+ <div
82
+ className="container mx-auto p-6 max-w-7xl"
83
+ data-cy={sel('devtools.scheduledActions.page')}
84
+ >
85
+ {/* Header */}
86
+ <div className="mb-8">
87
+ <h1 className="text-3xl font-bold tracking-tight">{t('title')}</h1>
88
+ <p className="text-muted-foreground mt-2">{t('description')}</p>
89
+ </div>
90
+
91
+ {/* Filters */}
92
+ <Filters
93
+ filters={filters}
94
+ onFiltersChange={handleFiltersChange}
95
+ registeredActionTypes={data?.data.meta.registeredActionTypes || []}
96
+ />
97
+
98
+ {/* Loading State */}
99
+ {isLoading && (
100
+ <div className="text-center py-12 text-muted-foreground">
101
+ <p>{t('loading')}</p>
102
+ </div>
103
+ )}
104
+
105
+ {/* Error State */}
106
+ {error && (
107
+ <div className="text-center py-12 text-destructive">
108
+ <p>Error: {error.message}</p>
109
+ </div>
110
+ )}
111
+
112
+ {/* Actions Table */}
113
+ {data && !isLoading && (
114
+ <>
115
+ <ActionsTable actions={data.data.actions} />
116
+
117
+ {/* Pagination */}
118
+ {data.data.pagination.totalPages > 1 && (
119
+ <div
120
+ className="flex items-center justify-between mt-6"
121
+ data-cy={sel('devtools.scheduledActions.pagination')}
122
+ >
123
+ <p className="text-sm text-muted-foreground">
124
+ {t('pagination.page', {
125
+ page: data.data.pagination.page,
126
+ total: data.data.pagination.totalPages,
127
+ })}
128
+ </p>
129
+ <div className="flex gap-2">
130
+ <Button
131
+ variant="outline"
132
+ size="sm"
133
+ onClick={handlePreviousPage}
134
+ disabled={page === 1}
135
+ data-cy={sel('devtools.scheduledActions.paginationPrev')}
136
+ >
137
+ <ChevronLeftIcon className="h-4 w-4 mr-1" />
138
+ {t('pagination.previous')}
139
+ </Button>
140
+ <Button
141
+ variant="outline"
142
+ size="sm"
143
+ onClick={handleNextPage}
144
+ disabled={page === data.data.pagination.totalPages}
145
+ data-cy={sel('devtools.scheduledActions.paginationNext')}
146
+ >
147
+ {t('pagination.next')}
148
+ <ChevronRightIcon className="h-4 w-4 ml-1" />
149
+ </Button>
150
+ </div>
151
+ </div>
152
+ )}
153
+ </>
154
+ )}
155
+ </div>
156
+ )
157
+ }
@@ -0,0 +1,330 @@
1
+ "use client";
2
+
3
+ import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@nextsparkjs/core/components/ui/card";
4
+ import { Button } from "@nextsparkjs/core/components/ui/button";
5
+ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@nextsparkjs/core/components/ui/tabs";
6
+ import { Badge } from "@nextsparkjs/core/components/ui/badge";
7
+ import { ArrowLeft, Palette, Package, Layers, BookOpen, Download, FormInput } from "lucide-react";
8
+ import Link from "next/link";
9
+ import { ComponentGallery } from "@nextsparkjs/core/components/superadmin/misc/ComponentGallery";
10
+ import { ThemePreview } from "@nextsparkjs/core/components/superadmin/misc/ThemePreview";
11
+ import { FieldTypesGallery } from "@nextsparkjs/core/components/superadmin/misc/FieldTypesGallery";
12
+ import { useState } from "react";
13
+
14
+ /**
15
+ * Style Gallery Page - Developer Area
16
+ *
17
+ * Comprehensive design system showcase for developers.
18
+ * Displays components, themes, and design tokens for reference and testing.
19
+ */
20
+ export default function DevStylePage() {
21
+ const [activeTab, setActiveTab] = useState("components");
22
+
23
+ return (
24
+ <div className="space-y-6" data-cy="devtools-style-page">
25
+ {/* Header */}
26
+ <div className="flex items-center gap-4">
27
+ <Button variant="outline" size="sm" asChild>
28
+ <Link href="/dev" className="flex items-center gap-2">
29
+ <ArrowLeft className="h-4 w-4" />
30
+ Back to Dev Area
31
+ </Link>
32
+ </Button>
33
+ <div className="flex-1">
34
+ <h1 className="text-3xl font-bold tracking-tight">Style Gallery</h1>
35
+ <p className="text-muted-foreground">
36
+ Design system showcase and component library
37
+ </p>
38
+ </div>
39
+ <Button variant="outline" size="sm" className="flex items-center gap-2">
40
+ <Download className="h-4 w-4" />
41
+ Export Tokens
42
+ </Button>
43
+ </div>
44
+
45
+ {/* Quick Stats */}
46
+ <div className="grid grid-cols-1 md:grid-cols-4 gap-4">
47
+ <Card>
48
+ <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
49
+ <CardTitle className="text-sm font-medium">Components</CardTitle>
50
+ <Package className="h-4 w-4 text-muted-foreground" />
51
+ </CardHeader>
52
+ <CardContent>
53
+ <div className="text-2xl font-bold">30+</div>
54
+ <p className="text-xs text-muted-foreground">
55
+ Available UI components
56
+ </p>
57
+ </CardContent>
58
+ </Card>
59
+
60
+ <Card>
61
+ <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
62
+ <CardTitle className="text-sm font-medium">Color Tokens</CardTitle>
63
+ <Palette className="h-4 w-4 text-muted-foreground" />
64
+ </CardHeader>
65
+ <CardContent>
66
+ <div className="text-2xl font-bold">16</div>
67
+ <p className="text-xs text-muted-foreground">
68
+ Theme color variables
69
+ </p>
70
+ </CardContent>
71
+ </Card>
72
+
73
+ <Card>
74
+ <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
75
+ <CardTitle className="text-sm font-medium">Themes</CardTitle>
76
+ <Layers className="h-4 w-4 text-muted-foreground" />
77
+ </CardHeader>
78
+ <CardContent>
79
+ <div className="text-2xl font-bold">2</div>
80
+ <p className="text-xs text-muted-foreground">
81
+ Light & dark modes
82
+ </p>
83
+ </CardContent>
84
+ </Card>
85
+
86
+ <Card>
87
+ <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
88
+ <CardTitle className="text-sm font-medium">Documentation</CardTitle>
89
+ <BookOpen className="h-4 w-4 text-muted-foreground" />
90
+ </CardHeader>
91
+ <CardContent>
92
+ <div className="text-2xl font-bold">100%</div>
93
+ <p className="text-xs text-muted-foreground">
94
+ Component coverage
95
+ </p>
96
+ </CardContent>
97
+ </Card>
98
+ </div>
99
+
100
+ {/* Main Content Tabs */}
101
+ <Tabs value={activeTab} onValueChange={setActiveTab} className="space-y-4">
102
+ <TabsList className="grid w-full grid-cols-4">
103
+ <TabsTrigger value="components" className="flex items-center gap-2" data-cy="devtools-style-tab-components">
104
+ <Package className="h-4 w-4" />
105
+ Components
106
+ </TabsTrigger>
107
+ <TabsTrigger value="field-types" className="flex items-center gap-2" data-cy="devtools-style-tab-field-types">
108
+ <FormInput className="h-4 w-4" />
109
+ Field Types
110
+ </TabsTrigger>
111
+ <TabsTrigger value="theme" className="flex items-center gap-2" data-cy="devtools-style-tab-theme">
112
+ <Palette className="h-4 w-4" />
113
+ Theme & Colors
114
+ </TabsTrigger>
115
+ <TabsTrigger value="guidelines" className="flex items-center gap-2" data-cy="devtools-style-tab-guidelines">
116
+ <BookOpen className="h-4 w-4" />
117
+ Guidelines
118
+ </TabsTrigger>
119
+ </TabsList>
120
+
121
+ {/* Components Tab */}
122
+ <TabsContent value="components" className="space-y-4" data-cy="devtools-style-component-gallery">
123
+ <Card>
124
+ <CardHeader>
125
+ <CardTitle className="flex items-center gap-2">
126
+ <Package className="h-5 w-5" />
127
+ Component Library
128
+ </CardTitle>
129
+ <CardDescription>
130
+ Complete showcase of all available UI components with different states and variations
131
+ </CardDescription>
132
+ </CardHeader>
133
+ <CardContent>
134
+ <ComponentGallery />
135
+ </CardContent>
136
+ </Card>
137
+ </TabsContent>
138
+
139
+ {/* Field Types Tab */}
140
+ <TabsContent value="field-types" className="space-y-4" data-cy="devtools-style-field-types">
141
+ <Card>
142
+ <CardHeader>
143
+ <CardTitle className="flex items-center gap-2">
144
+ <FormInput className="h-5 w-5" />
145
+ Entity Field Types
146
+ </CardTitle>
147
+ <CardDescription>
148
+ Complete showcase of all entity field types with examples and variants for form development
149
+ </CardDescription>
150
+ </CardHeader>
151
+ <CardContent>
152
+ <FieldTypesGallery />
153
+ </CardContent>
154
+ </Card>
155
+ </TabsContent>
156
+
157
+ {/* Theme Tab */}
158
+ <TabsContent value="theme" className="space-y-4" data-cy="devtools-style-theme-preview">
159
+ <Card>
160
+ <CardHeader>
161
+ <CardTitle className="flex items-center gap-2">
162
+ <Palette className="h-5 w-5" />
163
+ Theme System
164
+ </CardTitle>
165
+ <CardDescription>
166
+ Color tokens, typography, and design system variables for both light and dark themes
167
+ </CardDescription>
168
+ </CardHeader>
169
+ <CardContent>
170
+ <ThemePreview />
171
+ </CardContent>
172
+ </Card>
173
+ </TabsContent>
174
+
175
+ {/* Guidelines Tab */}
176
+ <TabsContent value="guidelines" className="space-y-4">
177
+ <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
178
+ {/* Design Principles */}
179
+ <Card>
180
+ <CardHeader>
181
+ <CardTitle>Design Principles</CardTitle>
182
+ <CardDescription>Core principles guiding our design system</CardDescription>
183
+ </CardHeader>
184
+ <CardContent className="space-y-4">
185
+ <div>
186
+ <h4 className="font-medium flex items-center gap-2">
187
+ <Badge variant="outline">1</Badge>
188
+ Consistency
189
+ </h4>
190
+ <p className="text-sm text-muted-foreground mt-1">
191
+ Maintain visual and functional consistency across all components
192
+ </p>
193
+ </div>
194
+ <div>
195
+ <h4 className="font-medium flex items-center gap-2">
196
+ <Badge variant="outline">2</Badge>
197
+ Accessibility
198
+ </h4>
199
+ <p className="text-sm text-muted-foreground mt-1">
200
+ Ensure all components meet WCAG 2.1 AA standards
201
+ </p>
202
+ </div>
203
+ <div>
204
+ <h4 className="font-medium flex items-center gap-2">
205
+ <Badge variant="outline">3</Badge>
206
+ Scalability
207
+ </h4>
208
+ <p className="text-sm text-muted-foreground mt-1">
209
+ Design components that work at different scales and contexts
210
+ </p>
211
+ </div>
212
+ <div>
213
+ <h4 className="font-medium flex items-center gap-2">
214
+ <Badge variant="outline">4</Badge>
215
+ Performance
216
+ </h4>
217
+ <p className="text-sm text-muted-foreground mt-1">
218
+ Optimize for fast loading and smooth interactions
219
+ </p>
220
+ </div>
221
+ </CardContent>
222
+ </Card>
223
+
224
+ {/* Usage Guidelines */}
225
+ <Card>
226
+ <CardHeader>
227
+ <CardTitle>Usage Guidelines</CardTitle>
228
+ <CardDescription>How to effectively use this design system</CardDescription>
229
+ </CardHeader>
230
+ <CardContent className="space-y-4">
231
+ <div>
232
+ <h4 className="font-medium">Color Usage</h4>
233
+ <p className="text-sm text-muted-foreground">
234
+ Use semantic color names (primary, secondary, destructive) rather than specific colors
235
+ </p>
236
+ </div>
237
+ <div>
238
+ <h4 className="font-medium">Typography Scale</h4>
239
+ <p className="text-sm text-muted-foreground">
240
+ Follow the established type scale for consistent hierarchy
241
+ </p>
242
+ </div>
243
+ <div>
244
+ <h4 className="font-medium">Spacing System</h4>
245
+ <p className="text-sm text-muted-foreground">
246
+ Use the 8px grid system for consistent spacing and alignment
247
+ </p>
248
+ </div>
249
+ <div>
250
+ <h4 className="font-medium">Component Composition</h4>
251
+ <p className="text-sm text-muted-foreground">
252
+ Combine base components to create complex interfaces
253
+ </p>
254
+ </div>
255
+ </CardContent>
256
+ </Card>
257
+
258
+ {/* Technical Specs */}
259
+ <Card>
260
+ <CardHeader>
261
+ <CardTitle>Technical Specifications</CardTitle>
262
+ <CardDescription>Implementation details and requirements</CardDescription>
263
+ </CardHeader>
264
+ <CardContent className="space-y-3">
265
+ <div className="flex justify-between items-center py-2 border-b">
266
+ <span className="text-sm font-medium">Framework</span>
267
+ <Badge variant="secondary">Next.js 14</Badge>
268
+ </div>
269
+ <div className="flex justify-between items-center py-2 border-b">
270
+ <span className="text-sm font-medium">Styling</span>
271
+ <Badge variant="secondary">Tailwind CSS</Badge>
272
+ </div>
273
+ <div className="flex justify-between items-center py-2 border-b">
274
+ <span className="text-sm font-medium">Components</span>
275
+ <Badge variant="secondary">Radix UI</Badge>
276
+ </div>
277
+ <div className="flex justify-between items-center py-2 border-b">
278
+ <span className="text-sm font-medium">Icons</span>
279
+ <Badge variant="secondary">Lucide React</Badge>
280
+ </div>
281
+ <div className="flex justify-between items-center py-2 border-b">
282
+ <span className="text-sm font-medium">Theme System</span>
283
+ <Badge variant="secondary">CSS Variables</Badge>
284
+ </div>
285
+ <div className="flex justify-between items-center py-2">
286
+ <span className="text-sm font-medium">Build Tool</span>
287
+ <Badge variant="secondary">Turbo</Badge>
288
+ </div>
289
+ </CardContent>
290
+ </Card>
291
+
292
+ {/* Resources */}
293
+ <Card>
294
+ <CardHeader>
295
+ <CardTitle>Resources & Links</CardTitle>
296
+ <CardDescription>Additional resources and documentation</CardDescription>
297
+ </CardHeader>
298
+ <CardContent className="space-y-3">
299
+ <Button variant="outline" className="w-full justify-start" asChild>
300
+ <Link href="https://ui.shadcn.com" target="_blank">
301
+ <BookOpen className="mr-2 h-4 w-4" />
302
+ Shadcn/ui Documentation
303
+ </Link>
304
+ </Button>
305
+ <Button variant="outline" className="w-full justify-start" asChild>
306
+ <Link href="https://tailwindcss.com" target="_blank">
307
+ <Layers className="mr-2 h-4 w-4" />
308
+ Tailwind CSS Docs
309
+ </Link>
310
+ </Button>
311
+ <Button variant="outline" className="w-full justify-start" asChild>
312
+ <Link href="https://www.radix-ui.com" target="_blank">
313
+ <Package className="mr-2 h-4 w-4" />
314
+ Radix UI Components
315
+ </Link>
316
+ </Button>
317
+ <Button variant="outline" className="w-full justify-start" asChild>
318
+ <Link href="https://lucide.dev" target="_blank">
319
+ <Palette className="mr-2 h-4 w-4" />
320
+ Lucide Icons
321
+ </Link>
322
+ </Button>
323
+ </CardContent>
324
+ </Card>
325
+ </div>
326
+ </TabsContent>
327
+ </Tabs>
328
+ </div>
329
+ );
330
+ }
@@ -0,0 +1,31 @@
1
+ import { TagsOverview } from "@nextsparkjs/core/components/devtools/TagsOverview";
2
+ import { Tag } from "lucide-react";
3
+ import { getTranslations } from "next-intl/server";
4
+
5
+ /**
6
+ * Tags Overview Page
7
+ *
8
+ * Displays all test tags organized by category.
9
+ * Provides search and copy-to-clipboard functionality.
10
+ */
11
+ export default async function DevTagsPage() {
12
+ const t = await getTranslations("devtools.tags");
13
+
14
+ return (
15
+ <div className="space-y-6" data-cy="devtools-tags-page">
16
+ {/* Header */}
17
+ <div className="flex items-center gap-3">
18
+ <div className="flex items-center justify-center w-12 h-12 bg-violet-100 dark:bg-violet-950 rounded-lg">
19
+ <Tag className="h-6 w-6 text-violet-600 dark:text-violet-400" />
20
+ </div>
21
+ <div>
22
+ <h1 className="text-3xl font-bold">{t("title")}</h1>
23
+ <p className="text-muted-foreground">{t("description")}</p>
24
+ </div>
25
+ </div>
26
+
27
+ {/* Tags Overview */}
28
+ <TagsOverview />
29
+ </div>
30
+ );
31
+ }