agentic-dev 0.2.10 → 0.2.11

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 (291) hide show
  1. package/README.md +23 -9
  2. package/bin/agentic-dev.mjs +656 -124
  3. package/lib/scaffold.mjs +109 -6
  4. package/package.json +1 -1
  5. package/client/admin/.dockerignore +0 -3
  6. package/client/admin/.env.example +0 -1
  7. package/client/admin/Dockerfile +0 -16
  8. package/client/admin/Dockerfile.dev +0 -18
  9. package/client/admin/README.md +0 -20
  10. package/client/admin/index.html +0 -12
  11. package/client/admin/package.json +0 -41
  12. package/client/admin/postcss.config.js +0 -6
  13. package/client/admin/scripts/ui-parity-admin-adapter.mjs +0 -65
  14. package/client/admin/src/api/alerts.ts +0 -33
  15. package/client/admin/src/api/client.ts +0 -71
  16. package/client/admin/src/api/orders.ts +0 -33
  17. package/client/admin/src/api/support.ts +0 -11
  18. package/client/admin/src/app/App.tsx +0 -23
  19. package/client/admin/src/auth/AuthProvider.tsx +0 -122
  20. package/client/admin/src/auth/ProtectedRoute.tsx +0 -22
  21. package/client/admin/src/auth/auth-client.ts +0 -38
  22. package/client/admin/src/auth/types.ts +0 -18
  23. package/client/admin/src/components/AdminNotificationsDrawer.tsx +0 -162
  24. package/client/admin/src/components/AdminShell.tsx +0 -76
  25. package/client/admin/src/components/ui/button.tsx +0 -34
  26. package/client/admin/src/components/ui/input.tsx +0 -21
  27. package/client/admin/src/lib/cn.ts +0 -6
  28. package/client/admin/src/lib/specRouteCatalog.json +0 -30
  29. package/client/admin/src/lib/specScreens.json +0 -22
  30. package/client/admin/src/main.tsx +0 -17
  31. package/client/admin/src/pages/AdminDashboardPage.tsx +0 -171
  32. package/client/admin/src/pages/AdminLoginPage.tsx +0 -75
  33. package/client/admin/src/pages/AdminQueuePage.tsx +0 -107
  34. package/client/admin/src/pages/AdminSupportPage.tsx +0 -61
  35. package/client/admin/src/styles/globals.css +0 -17
  36. package/client/admin/src/theme-vars.ts +0 -18
  37. package/client/admin/src/theme.ts +0 -25
  38. package/client/admin/src/vite-env.d.ts +0 -1
  39. package/client/admin/tailwind.config.js +0 -8
  40. package/client/admin/tsconfig.json +0 -25
  41. package/client/admin/vite.config.ts +0 -12
  42. package/client/landing/.dockerignore +0 -3
  43. package/client/landing/.env.example +0 -1
  44. package/client/landing/Dockerfile +0 -16
  45. package/client/landing/Dockerfile.dev +0 -18
  46. package/client/landing/README.md +0 -18
  47. package/client/landing/index.html +0 -12
  48. package/client/landing/package.json +0 -41
  49. package/client/landing/postcss.config.js +0 -6
  50. package/client/landing/scripts/ui-parity-landing-adapter.mjs +0 -65
  51. package/client/landing/src/App.tsx +0 -21
  52. package/client/landing/src/api/catalog.ts +0 -30
  53. package/client/landing/src/api/client.ts +0 -30
  54. package/client/landing/src/auth/AuthProvider.tsx +0 -122
  55. package/client/landing/src/auth/ProtectedRoute.tsx +0 -22
  56. package/client/landing/src/auth/auth-client.ts +0 -38
  57. package/client/landing/src/auth/types.ts +0 -18
  58. package/client/landing/src/components/LandingShell.tsx +0 -34
  59. package/client/landing/src/lib/specRouteCatalog.json +0 -23
  60. package/client/landing/src/lib/specScreens.json +0 -17
  61. package/client/landing/src/main.tsx +0 -17
  62. package/client/landing/src/pages/LandingHomePage.tsx +0 -215
  63. package/client/landing/src/pages/LandingLoginPage.tsx +0 -90
  64. package/client/landing/src/pages/LandingWorkspacePage.tsx +0 -126
  65. package/client/landing/src/styles/globals.css +0 -17
  66. package/client/landing/src/theme-vars.ts +0 -16
  67. package/client/landing/src/theme.ts +0 -21
  68. package/client/landing/src/vite-env.d.ts +0 -1
  69. package/client/landing/tailwind.config.js +0 -8
  70. package/client/landing/tsconfig.json +0 -25
  71. package/client/landing/vite.config.ts +0 -12
  72. package/client/mobile/.dockerignore +0 -2
  73. package/client/mobile/.env.example +0 -1
  74. package/client/mobile/Dockerfile +0 -16
  75. package/client/mobile/Dockerfile.dev +0 -18
  76. package/client/mobile/README.md +0 -19
  77. package/client/mobile/index.html +0 -12
  78. package/client/mobile/package.json +0 -42
  79. package/client/mobile/postcss.config.js +0 -6
  80. package/client/mobile/scripts/ui-parity-mobile-adapter.mjs +0 -67
  81. package/client/mobile/src/App.tsx +0 -1
  82. package/client/mobile/src/api/client.ts +0 -62
  83. package/client/mobile/src/api/fulfillment.ts +0 -55
  84. package/client/mobile/src/api/shipping.ts +0 -56
  85. package/client/mobile/src/app/App.tsx +0 -23
  86. package/client/mobile/src/auth/AuthProvider.tsx +0 -122
  87. package/client/mobile/src/auth/ProtectedRoute.tsx +0 -27
  88. package/client/mobile/src/auth/auth-client.ts +0 -38
  89. package/client/mobile/src/auth/types.ts +0 -18
  90. package/client/mobile/src/components/InShell.tsx +0 -74
  91. package/client/mobile/src/components/ui/button.tsx +0 -35
  92. package/client/mobile/src/components/ui/card.tsx +0 -15
  93. package/client/mobile/src/components/ui/input.tsx +0 -21
  94. package/client/mobile/src/lib/cn.ts +0 -6
  95. package/client/mobile/src/lib/specRouteCatalog.json +0 -26
  96. package/client/mobile/src/lib/specScreens.json +0 -22
  97. package/client/mobile/src/lib/useSpeechRecognitionInput.ts +0 -271
  98. package/client/mobile/src/main.tsx +0 -17
  99. package/client/mobile/src/pages/DashboardPage.tsx +0 -172
  100. package/client/mobile/src/pages/FulfillmentPage.tsx +0 -138
  101. package/client/mobile/src/pages/LoginPage.tsx +0 -74
  102. package/client/mobile/src/pages/ShippingPage.tsx +0 -338
  103. package/client/mobile/src/styles/globals.css +0 -23
  104. package/client/mobile/src/theme-vars.ts +0 -16
  105. package/client/mobile/src/theme.ts +0 -21
  106. package/client/mobile/src/vite-env.d.ts +0 -1
  107. package/client/mobile/tailwind.config.js +0 -8
  108. package/client/mobile/tsconfig.json +0 -25
  109. package/client/mobile/vite.config.ts +0 -12
  110. package/client/web/.dockerignore +0 -3
  111. package/client/web/.env.example +0 -1
  112. package/client/web/Dockerfile +0 -16
  113. package/client/web/Dockerfile.dev +0 -18
  114. package/client/web/README.md +0 -47
  115. package/client/web/index.html +0 -12
  116. package/client/web/package.json +0 -42
  117. package/client/web/postcss.config.js +0 -6
  118. package/client/web/scripts/ui-parity-web-adapter.mjs +0 -66
  119. package/client/web/src/api/client.ts +0 -30
  120. package/client/web/src/api/orders.ts +0 -42
  121. package/client/web/src/app/App.tsx +0 -21
  122. package/client/web/src/auth/AuthProvider.tsx +0 -122
  123. package/client/web/src/auth/ProtectedRoute.tsx +0 -22
  124. package/client/web/src/auth/auth-client.ts +0 -38
  125. package/client/web/src/auth/types.ts +0 -18
  126. package/client/web/src/components/AppShell.tsx +0 -59
  127. package/client/web/src/components/ui/button.tsx +0 -35
  128. package/client/web/src/components/ui/card.tsx +0 -7
  129. package/client/web/src/components/ui/input.tsx +0 -21
  130. package/client/web/src/lib/cn.ts +0 -6
  131. package/client/web/src/lib/specRouteCatalog.json +0 -23
  132. package/client/web/src/lib/specScreens.json +0 -17
  133. package/client/web/src/main.tsx +0 -17
  134. package/client/web/src/pages/DashboardPage.tsx +0 -158
  135. package/client/web/src/pages/LoginPage.tsx +0 -72
  136. package/client/web/src/pages/OrdersPage.tsx +0 -123
  137. package/client/web/src/styles/globals.css +0 -17
  138. package/client/web/src/theme-vars.ts +0 -18
  139. package/client/web/src/theme.ts +0 -25
  140. package/client/web/src/vite-env.d.ts +0 -1
  141. package/client/web/tailwind.config.js +0 -8
  142. package/client/web/tsconfig.json +0 -25
  143. package/client/web/vite.config.ts +0 -12
  144. package/server/.dockerignore +0 -4
  145. package/server/.env.example +0 -19
  146. package/server/Dockerfile +0 -22
  147. package/server/Dockerfile.dev +0 -19
  148. package/server/README.md +0 -33
  149. package/server/__init__.py +0 -0
  150. package/server/api/__init__.py +0 -1
  151. package/server/api/http/__init__.py +0 -4
  152. package/server/api/http/app.py +0 -53
  153. package/server/api/http/router.py +0 -24
  154. package/server/config.py +0 -52
  155. package/server/contexts/__init__.py +0 -12
  156. package/server/contexts/alerts/__init__.py +0 -1
  157. package/server/contexts/alerts/application/__init__.py +0 -13
  158. package/server/contexts/alerts/application/services.py +0 -41
  159. package/server/contexts/alerts/contracts/__init__.py +0 -3
  160. package/server/contexts/alerts/contracts/http/__init__.py +0 -3
  161. package/server/contexts/alerts/contracts/http/router.py +0 -37
  162. package/server/contexts/alerts/domain/__init__.py +0 -15
  163. package/server/contexts/alerts/domain/models.py +0 -29
  164. package/server/contexts/alerts/infrastructure/__init__.py +0 -11
  165. package/server/contexts/alerts/infrastructure/repository.py +0 -41
  166. package/server/contexts/auth/__init__.py +0 -1
  167. package/server/contexts/auth/application/__init__.py +0 -3
  168. package/server/contexts/auth/application/ports.py +0 -10
  169. package/server/contexts/auth/application/services.py +0 -64
  170. package/server/contexts/auth/contracts/__init__.py +0 -4
  171. package/server/contexts/auth/contracts/http/__init__.py +0 -4
  172. package/server/contexts/auth/contracts/http/dependencies.py +0 -37
  173. package/server/contexts/auth/contracts/http/router.py +0 -19
  174. package/server/contexts/auth/domain/__init__.py +0 -3
  175. package/server/contexts/auth/domain/models.py +0 -24
  176. package/server/contexts/auth/infrastructure/__init__.py +0 -4
  177. package/server/contexts/auth/infrastructure/adapters/memory.py +0 -19
  178. package/server/contexts/auth/infrastructure/adapters/mongodb.py +0 -24
  179. package/server/contexts/auth/infrastructure/adapters/sqlalchemy.py +0 -74
  180. package/server/contexts/auth/infrastructure/repository.py +0 -28
  181. package/server/contexts/catalog/__init__.py +0 -1
  182. package/server/contexts/catalog/application/__init__.py +0 -28
  183. package/server/contexts/catalog/application/ports.py +0 -15
  184. package/server/contexts/catalog/application/services.py +0 -154
  185. package/server/contexts/catalog/contracts/__init__.py +0 -3
  186. package/server/contexts/catalog/contracts/http/__init__.py +0 -3
  187. package/server/contexts/catalog/contracts/http/router.py +0 -60
  188. package/server/contexts/catalog/domain/__init__.py +0 -45
  189. package/server/contexts/catalog/domain/models.py +0 -113
  190. package/server/contexts/catalog/infrastructure/__init__.py +0 -4
  191. package/server/contexts/catalog/infrastructure/adapters/memory.py +0 -62
  192. package/server/contexts/catalog/infrastructure/repository.py +0 -8
  193. package/server/contexts/fulfillment/__init__.py +0 -1
  194. package/server/contexts/fulfillment/application/__init__.py +0 -13
  195. package/server/contexts/fulfillment/application/ports.py +0 -20
  196. package/server/contexts/fulfillment/application/services.py +0 -85
  197. package/server/contexts/fulfillment/contracts/__init__.py +0 -3
  198. package/server/contexts/fulfillment/contracts/http/__init__.py +0 -3
  199. package/server/contexts/fulfillment/contracts/http/router.py +0 -40
  200. package/server/contexts/fulfillment/domain/__init__.py +0 -25
  201. package/server/contexts/fulfillment/domain/models.py +0 -73
  202. package/server/contexts/fulfillment/infrastructure/__init__.py +0 -13
  203. package/server/contexts/fulfillment/infrastructure/adapters/memory.py +0 -43
  204. package/server/contexts/fulfillment/infrastructure/repository.py +0 -97
  205. package/server/contexts/health/__init__.py +0 -1
  206. package/server/contexts/health/application/__init__.py +0 -3
  207. package/server/contexts/health/application/services.py +0 -2
  208. package/server/contexts/health/contracts/__init__.py +0 -3
  209. package/server/contexts/health/contracts/http/__init__.py +0 -3
  210. package/server/contexts/health/contracts/http/router.py +0 -10
  211. package/server/contexts/inventory/__init__.py +0 -1
  212. package/server/contexts/inventory/application/__init__.py +0 -28
  213. package/server/contexts/inventory/application/ports.py +0 -11
  214. package/server/contexts/inventory/application/services.py +0 -214
  215. package/server/contexts/inventory/contracts/__init__.py +0 -3
  216. package/server/contexts/inventory/contracts/http/__init__.py +0 -3
  217. package/server/contexts/inventory/contracts/http/router.py +0 -82
  218. package/server/contexts/inventory/domain/__init__.py +0 -33
  219. package/server/contexts/inventory/domain/models.py +0 -93
  220. package/server/contexts/inventory/infrastructure/__init__.py +0 -4
  221. package/server/contexts/inventory/infrastructure/adapters/memory.py +0 -24
  222. package/server/contexts/inventory/infrastructure/repository.py +0 -8
  223. package/server/contexts/orders/__init__.py +0 -1
  224. package/server/contexts/orders/application/__init__.py +0 -19
  225. package/server/contexts/orders/application/services.py +0 -127
  226. package/server/contexts/orders/contracts/__init__.py +0 -3
  227. package/server/contexts/orders/contracts/http/__init__.py +0 -3
  228. package/server/contexts/orders/contracts/http/router.py +0 -82
  229. package/server/contexts/orders/domain/__init__.py +0 -29
  230. package/server/contexts/orders/domain/models.py +0 -95
  231. package/server/contexts/orders/infrastructure/__init__.py +0 -7
  232. package/server/contexts/orders/infrastructure/repository.py +0 -104
  233. package/server/contexts/shipping/__init__.py +0 -1
  234. package/server/contexts/shipping/application/__init__.py +0 -13
  235. package/server/contexts/shipping/application/services.py +0 -92
  236. package/server/contexts/shipping/contracts/__init__.py +0 -3
  237. package/server/contexts/shipping/contracts/http/__init__.py +0 -3
  238. package/server/contexts/shipping/contracts/http/router.py +0 -40
  239. package/server/contexts/shipping/domain/__init__.py +0 -19
  240. package/server/contexts/shipping/domain/models.py +0 -48
  241. package/server/contexts/shipping/infrastructure/__init__.py +0 -9
  242. package/server/contexts/shipping/infrastructure/repository.py +0 -50
  243. package/server/contexts/support/__init__.py +0 -1
  244. package/server/contexts/support/application/__init__.py +0 -13
  245. package/server/contexts/support/application/services.py +0 -29
  246. package/server/contexts/support/contracts/__init__.py +0 -3
  247. package/server/contexts/support/contracts/http/__init__.py +0 -3
  248. package/server/contexts/support/contracts/http/router.py +0 -40
  249. package/server/contexts/support/domain/__init__.py +0 -13
  250. package/server/contexts/support/domain/models.py +0 -27
  251. package/server/contexts/support/infrastructure/__init__.py +0 -11
  252. package/server/contexts/support/infrastructure/repository.py +0 -70
  253. package/server/contexts/user/__init__.py +0 -1
  254. package/server/contexts/user/application/__init__.py +0 -3
  255. package/server/contexts/user/application/ports.py +0 -11
  256. package/server/contexts/user/application/services.py +0 -44
  257. package/server/contexts/user/contracts/__init__.py +0 -3
  258. package/server/contexts/user/contracts/http/__init__.py +0 -3
  259. package/server/contexts/user/contracts/http/router.py +0 -26
  260. package/server/contexts/user/domain/__init__.py +0 -3
  261. package/server/contexts/user/domain/models.py +0 -22
  262. package/server/contexts/user/infrastructure/__init__.py +0 -3
  263. package/server/contexts/user/infrastructure/adapters/memory.py +0 -27
  264. package/server/contexts/user/infrastructure/adapters/mongodb.py +0 -41
  265. package/server/contexts/user/infrastructure/adapters/sqlalchemy.py +0 -94
  266. package/server/contexts/user/infrastructure/factory.py +0 -28
  267. package/server/data/README.md +0 -24
  268. package/server/data/bootstrap/alerts.json +0 -38
  269. package/server/data/bootstrap/auth_accounts.json +0 -18
  270. package/server/data/bootstrap/catalog_products.json +0 -179
  271. package/server/data/bootstrap/fulfillment_events.json +0 -5
  272. package/server/data/bootstrap/fulfillment_notes.json +0 -5
  273. package/server/data/bootstrap/fulfillment_tasks.json +0 -50
  274. package/server/data/bootstrap/inventory_levels.json +0 -80
  275. package/server/data/bootstrap/orders.json +0 -62
  276. package/server/data/bootstrap/shipping_shipments.json +0 -50
  277. package/server/data/bootstrap/support_faqs.json +0 -26
  278. package/server/data/bootstrap/users.json +0 -20
  279. package/server/data/bootstrap_loader.py +0 -15
  280. package/server/docker-entrypoint.sh +0 -56
  281. package/server/main.py +0 -3
  282. package/server/pyproject.toml +0 -36
  283. package/server/shared/__init__.py +0 -1
  284. package/server/shared/application/__init__.py +0 -3
  285. package/server/shared/application/health.py +0 -2
  286. package/server/shared/infrastructure/__init__.py +0 -10
  287. package/server/shared/infrastructure/runtime.py +0 -6
  288. package/server/shared/infrastructure/security.py +0 -33
  289. package/server/tests/e2e/test_domain_feature_flows.py +0 -483
  290. package/server/tests/test_health.py +0 -49
  291. package/server/uv.lock +0 -1169
@@ -1,75 +0,0 @@
1
- import { ShieldCheck } from "lucide-react";
2
- import { useState } from "react";
3
- import { Navigate, useLocation } from "react-router-dom";
4
-
5
- import { useAuth } from "@/auth/AuthProvider";
6
- import { Button } from "@/components/ui/button";
7
- import { Input } from "@/components/ui/input";
8
- import { adminTheme } from "@/theme";
9
- import { adminThemeVars } from "@/theme-vars";
10
-
11
- export function AdminLoginPage() {
12
- const { authenticating, login, user } = useAuth();
13
- const location = useLocation();
14
- const [email, setEmail] = useState("admin@example.com");
15
- const [password, setPassword] = useState("");
16
- const [error, setError] = useState<string | null>(null);
17
-
18
- if (user) {
19
- const destination = (location.state as { from?: { pathname?: string } } | null)?.from?.pathname ?? "/";
20
- return <Navigate to={destination} replace />;
21
- }
22
-
23
- async function handleSubmit(event: React.FormEvent<HTMLFormElement>) {
24
- event.preventDefault();
25
- setError(null);
26
-
27
- try {
28
- await login({ email, password });
29
- } catch (submitError) {
30
- setError(submitError instanceof Error ? submitError.message : "로그인에 실패했습니다.");
31
- }
32
- }
33
-
34
- return (
35
- <div className="min-h-screen bg-[var(--admin-shell-bg)] px-6 py-10 text-[#283042]" style={adminThemeVars(adminTheme)}>
36
- <div className="mx-auto grid max-w-6xl overflow-hidden rounded-[36px] border border-[var(--admin-border)] bg-white shadow-[0_30px_80px_rgba(20,27,40,0.18)] lg:grid-cols-[1fr_440px]">
37
- <section className="bg-[#232a39] px-8 py-10 text-white sm:px-12 sm:py-14">
38
- <div className="inline-flex items-center gap-3 rounded-full bg-white/10 px-4 py-2 text-sm font-semibold">
39
- <ShieldCheck className="h-4 w-4" />
40
- Admin console
41
- </div>
42
- <h1 className="mt-8 text-4xl font-black tracking-[-0.04em]">운영 콘솔 실로그인</h1>
43
- <p className="mt-5 max-w-md text-base leading-7 text-white/72">
44
- 토큰을 저장한 뒤 `auth/me`를 재호출해서 운영 셸 진입 전 인증 상태를 검증합니다.
45
- </p>
46
- </section>
47
-
48
- <section className="px-8 py-10 sm:px-10 sm:py-14">
49
- <form className="space-y-5" onSubmit={handleSubmit}>
50
- <div>
51
- <p className="text-sm font-semibold uppercase tracking-[0.18em] text-[#f0447d]">Restricted access</p>
52
- <h2 className="mt-3 text-3xl font-black text-[#232a39]">Sign in</h2>
53
- </div>
54
-
55
- <label className="block space-y-2">
56
- <span className="text-sm font-semibold text-[#3a4354]">Email</span>
57
- <Input type="email" value={email} onChange={(event) => setEmail(event.target.value)} required />
58
- </label>
59
-
60
- <label className="block space-y-2">
61
- <span className="text-sm font-semibold text-[#3a4354]">Password</span>
62
- <Input type="password" value={password} onChange={(event) => setPassword(event.target.value)} required />
63
- </label>
64
-
65
- {error ? <p className="text-sm font-medium text-[#cc2f5c]">{error}</p> : null}
66
-
67
- <Button className="w-full" type="submit" disabled={authenticating}>
68
- {authenticating ? "Signing in..." : "Open admin console"}
69
- </Button>
70
- </form>
71
- </section>
72
- </div>
73
- </div>
74
- );
75
- }
@@ -1,107 +0,0 @@
1
- import { useEffect, useState } from "react";
2
-
3
- import { useAuth } from "@/auth/AuthProvider";
4
- import { fetchAdminQueue, type AdminQueueItem } from "@/api/orders";
5
-
6
- export function AdminQueuePage() {
7
- const { token } = useAuth();
8
- const [rows, setRows] = useState<AdminQueueItem[]>([]);
9
- const [loading, setLoading] = useState(true);
10
- const [error, setError] = useState<string | null>(null);
11
-
12
- useEffect(() => {
13
- if (!token?.access_token) {
14
- return;
15
- }
16
-
17
- let cancelled = false;
18
-
19
- setLoading(true);
20
- setError(null);
21
-
22
- fetchAdminQueue(token.access_token)
23
- .then((response) => {
24
- if (!cancelled) {
25
- setRows(response);
26
- }
27
- })
28
- .catch((nextError: Error) => {
29
- if (!cancelled) {
30
- setError(nextError.message);
31
- setRows([]);
32
- }
33
- })
34
- .finally(() => {
35
- if (!cancelled) {
36
- setLoading(false);
37
- }
38
- });
39
-
40
- return () => {
41
- cancelled = true;
42
- };
43
- }, [token?.access_token]);
44
-
45
- return (
46
- <div className="space-y-6">
47
- <div className="rounded-[var(--admin-card-radius)] border border-[var(--admin-border)] bg-white p-6">
48
- <h1 className="text-lg font-bold">거래관리</h1>
49
- <p className="mt-2 text-sm text-[var(--admin-muted)]">
50
- 총 <span className="font-semibold text-[#202939]">{loading ? "..." : rows.length}</span>건의 거래
51
- </p>
52
- </div>
53
-
54
- <div className="rounded-[var(--admin-card-radius)] border border-[var(--admin-border)] bg-white">
55
- <table className="w-full border-collapse text-sm">
56
- <thead className="bg-[#f8fafe] text-left text-[#516174]">
57
- <tr>
58
- {["주문ID", "상품", "고객", "상태", "SLA"].map((cell) => (
59
- <th key={cell} className="border-b border-r border-[var(--admin-border)] px-4 py-4 font-semibold last:border-r-0">
60
- {cell}
61
- </th>
62
- ))}
63
- </tr>
64
- </thead>
65
- <tbody>
66
- {loading ? (
67
- <tr>
68
- <td className="border-b border-[var(--admin-border)] px-4 py-4 text-[var(--admin-muted)]" colSpan={5}>
69
- 거래 큐를 불러오는 중입니다.
70
- </td>
71
- </tr>
72
- ) : null}
73
- {error ? (
74
- <tr>
75
- <td className="border-b border-[var(--admin-border)] px-4 py-4 text-[var(--admin-danger)]" colSpan={5}>
76
- {error}
77
- </td>
78
- </tr>
79
- ) : null}
80
- {!loading && !error && !rows.length ? (
81
- <tr>
82
- <td className="border-b border-[var(--admin-border)] px-4 py-4 text-[var(--admin-muted)]" colSpan={5}>
83
- 현재 표시할 거래가 없습니다.
84
- </td>
85
- </tr>
86
- ) : null}
87
- {rows.map((row) => (
88
- <tr key={row.order_id}>
89
- <td className="border-b border-r border-[var(--admin-border)] px-4 py-4 align-middle last:border-r-0">{row.order_id}</td>
90
- <td className="border-b border-r border-[var(--admin-border)] px-4 py-4 align-middle last:border-r-0">{row.product_name}</td>
91
- <td className="border-b border-r border-[var(--admin-border)] px-4 py-4 align-middle last:border-r-0">{row.customer_name}</td>
92
- <td
93
- className={`border-b border-r border-[var(--admin-border)] px-4 py-4 align-middle last:border-r-0 ${
94
- row.status === "Exception" ? "text-[var(--admin-danger)]" : ""
95
- }`}
96
- >
97
- {row.status}
98
- </td>
99
- <td className="border-b border-r border-[var(--admin-border)] px-4 py-4 align-middle last:border-r-0">{row.sla}</td>
100
- </tr>
101
- ))}
102
- </tbody>
103
- </table>
104
- </div>
105
- </div>
106
- );
107
- }
@@ -1,61 +0,0 @@
1
- import { useEffect, useState } from "react";
2
-
3
- import { useAuth } from "@/auth/AuthProvider";
4
- import { fetchSupportFaqs, type SupportFaq } from "@/api/support";
5
-
6
- export function AdminSupportPage() {
7
- const { token } = useAuth();
8
- const [faqs, setFaqs] = useState<SupportFaq[]>([]);
9
- const [loading, setLoading] = useState(true);
10
- const [error, setError] = useState<string | null>(null);
11
-
12
- useEffect(() => {
13
- if (!token?.access_token) {
14
- return;
15
- }
16
-
17
- let cancelled = false;
18
-
19
- setLoading(true);
20
- setError(null);
21
-
22
- fetchSupportFaqs(token.access_token)
23
- .then((response) => {
24
- if (!cancelled) {
25
- setFaqs(response);
26
- }
27
- })
28
- .catch((nextError: Error) => {
29
- if (!cancelled) {
30
- setError(nextError.message);
31
- setFaqs([]);
32
- }
33
- })
34
- .finally(() => {
35
- if (!cancelled) {
36
- setLoading(false);
37
- }
38
- });
39
-
40
- return () => {
41
- cancelled = true;
42
- };
43
- }, [token?.access_token]);
44
-
45
- return (
46
- <div className="rounded-[var(--admin-card-radius)] border border-[var(--admin-border)] bg-white p-6">
47
- <h1 className="text-lg font-bold">FAQ 관리</h1>
48
- <div className="mt-6 space-y-3">
49
- {loading ? <div className="text-sm text-[var(--admin-muted)]">FAQ를 불러오는 중입니다.</div> : null}
50
- {error ? <div className="text-sm font-semibold text-[var(--admin-danger)]">{error}</div> : null}
51
- {!loading && !error && !faqs.length ? <div className="text-sm text-[var(--admin-muted)]">등록된 FAQ가 없습니다.</div> : null}
52
- {faqs.map((item) => (
53
- <div key={item.id} className="flex items-center justify-between rounded-xl border border-[var(--admin-border)] px-4 py-3">
54
- <span>{item.question}</span>
55
- <span className="text-sm text-[var(--admin-muted)]">{item.visibility}</span>
56
- </div>
57
- ))}
58
- </div>
59
- </div>
60
- );
61
- }
@@ -1,17 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- :root {
6
- color-scheme: light;
7
- font-family: "SUIT", "Pretendard", "Noto Sans KR", sans-serif;
8
- }
9
-
10
- body {
11
- margin: 0;
12
- background: var(--admin-shell-bg, #f5f7fb);
13
- }
14
-
15
- * {
16
- box-sizing: border-box;
17
- }
@@ -1,18 +0,0 @@
1
- import type { CSSProperties } from "react";
2
-
3
- import type { AdminTheme } from "./theme";
4
-
5
- export function adminThemeVars(theme: AdminTheme): CSSProperties {
6
- return {
7
- "--admin-rail-width": theme.railWidth,
8
- "--admin-topbar-height": theme.topbarHeight,
9
- "--admin-drawer-width": theme.drawerWidth,
10
- "--admin-shell-bg": theme.shellBg,
11
- "--admin-rail-bg": theme.railBg,
12
- "--admin-border": theme.border,
13
- "--admin-card-radius": theme.cardRadius,
14
- "--admin-danger": theme.danger,
15
- "--admin-accent": theme.accent,
16
- "--admin-muted": theme.muted,
17
- } as CSSProperties;
18
- }
@@ -1,25 +0,0 @@
1
- export type AdminTheme = {
2
- railWidth: string;
3
- topbarHeight: string;
4
- drawerWidth: string;
5
- shellBg: string;
6
- railBg: string;
7
- border: string;
8
- cardRadius: string;
9
- danger: string;
10
- accent: string;
11
- muted: string;
12
- };
13
-
14
- export const adminTheme: AdminTheme = {
15
- railWidth: "232px",
16
- topbarHeight: "88px",
17
- drawerWidth: "452px",
18
- shellBg: "#f5f7fb",
19
- railBg: "#202632",
20
- border: "#e7ebf1",
21
- cardRadius: "18px",
22
- danger: "#e06a57",
23
- accent: "#f0447d",
24
- muted: "#738095",
25
- };
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />
@@ -1,8 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- export default {
3
- content: ["./index.html", "./src/**/*.{ts,tsx}"],
4
- theme: {
5
- extend: {},
6
- },
7
- plugins: [],
8
- };
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2020",
4
- "useDefineForClassFields": true,
5
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
- "allowJs": false,
7
- "skipLibCheck": true,
8
- "esModuleInterop": true,
9
- "allowSyntheticDefaultImports": true,
10
- "strict": true,
11
- "forceConsistentCasingInFileNames": true,
12
- "module": "ESNext",
13
- "moduleResolution": "Node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": true,
17
- "jsx": "react-jsx",
18
- "baseUrl": ".",
19
- "paths": {
20
- "@/*": ["src/*"]
21
- }
22
- },
23
- "include": ["src"],
24
- "references": []
25
- }
@@ -1,12 +0,0 @@
1
- import { defineConfig } from "vite";
2
- import react from "@vitejs/plugin-react";
3
- import { fileURLToPath, URL } from "node:url";
4
-
5
- export default defineConfig({
6
- plugins: [react()],
7
- resolve: {
8
- alias: {
9
- "@": fileURLToPath(new URL("./src", import.meta.url)),
10
- },
11
- },
12
- });
@@ -1,3 +0,0 @@
1
- node_modules
2
- dist
3
- .env
@@ -1 +0,0 @@
1
- VITE_API_BASE_URL=http://127.0.0.1:8000/api/v1
@@ -1,16 +0,0 @@
1
- FROM node:20-slim
2
-
3
- WORKDIR /app
4
-
5
- COPY pnpm-lock.yaml pnpm-workspace.yaml ./
6
- COPY client/landing/package.json ./client/landing/package.json
7
-
8
- RUN npm install -g pnpm@10.32.0 && pnpm install --filter @do4ai/client-landing-template...
9
-
10
- COPY . .
11
-
12
- WORKDIR /app/client/landing
13
-
14
- EXPOSE 3000
15
-
16
- CMD ["pnpm", "dev", "--host", "0.0.0.0", "--port", "3000"]
@@ -1,18 +0,0 @@
1
- FROM node:20-slim
2
-
3
- WORKDIR /app
4
-
5
- RUN npm install -g pnpm@10.32.0
6
-
7
- COPY pnpm-lock.yaml pnpm-workspace.yaml ./
8
- COPY client/landing/package.json ./client/landing/package.json
9
-
10
- RUN pnpm install --frozen-lockfile --filter @do4ai/client-landing-template...
11
-
12
- COPY client/landing ./client/landing
13
-
14
- WORKDIR /app/client/landing
15
-
16
- EXPOSE 3000
17
-
18
- CMD ["sh", "-lc", "pnpm exec vite --host 0.0.0.0 --port ${PORT:-3000}"]
@@ -1,18 +0,0 @@
1
- # landing
2
-
3
- 브랜드/마케팅 랜딩 페이지 보일러플레이트다.
4
-
5
- 포함 패턴:
6
-
7
- - hero + proof points + feature grid + CTA
8
- - 브랜드 컬러와 section spacing을 token surface로 제어
9
- - 전형적인 white/purple 템플릿 대신 따뜻한 톤의 제품 랜딩 방향
10
-
11
- 시작:
12
-
13
- ```bash
14
- npm install
15
- npm run dev
16
- ```
17
-
18
- 기본 DEV 포트는 `3000`이다.
@@ -1,12 +0,0 @@
1
- <!doctype html>
2
- <html lang="ko">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>client-landing template</title>
7
- </head>
8
- <body>
9
- <div id="root"></div>
10
- <script type="module" src="/src/main.tsx"></script>
11
- </body>
12
- </html>
@@ -1,41 +0,0 @@
1
- {
2
- "name": "@do4ai/client-landing-template",
3
- "private": true,
4
- "version": "0.1.0",
5
- "type": "module",
6
- "packageManager": "pnpm@10.32.0",
7
- "scripts": {
8
- "dev": "vite --host 0.0.0.0 --port 3000",
9
- "build": "tsc -b && vite build",
10
- "preview": "vite preview --host 0.0.0.0 --port 4300",
11
- "ui:parity:init": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh ../.. landing",
12
- "ui:parity:bootstrap": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh ../.. landing",
13
- "ui:parity:scaffold": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh scaffold ../.. landing",
14
- "ui:parity:materialize-references": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh materialize_references ../.. landing",
15
- "ui:parity:route-gap": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh route_gap ../.. landing",
16
- "ui:parity:proof": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh proof ../.. landing"
17
- },
18
- "dependencies": {
19
- "class-variance-authority": "^0.7.1",
20
- "clsx": "^2.1.1",
21
- "lucide-react": "^0.576.0",
22
- "react": "^18.3.1",
23
- "react-dom": "^18.3.1",
24
- "react-router-dom": "^6.30.3",
25
- "tailwind-merge": "^3.5.0"
26
- },
27
- "devDependencies": {
28
- "@playwright/test": "^1.58.2",
29
- "@types/react": "^18.3.18",
30
- "@types/react-dom": "^18.3.5",
31
- "@vitejs/plugin-react": "^4.7.0",
32
- "autoprefixer": "^10.4.21",
33
- "pixelmatch": "^7.1.0",
34
- "pngjs": "^7.0.0",
35
- "postcss": "^8.5.3",
36
- "tailwindcss": "^3.4.17",
37
- "typescript": "^5.8.3",
38
- "vite": "^5.4.19",
39
- "yaml": "^2.8.1"
40
- }
41
- }
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,65 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { fileURLToPath } from "node:url";
4
-
5
- const scriptDir = path.dirname(fileURLToPath(import.meta.url));
6
- const screens = JSON.parse(
7
- fs.readFileSync(path.resolve(scriptDir, "../src/lib/specScreens.json"), "utf8"),
8
- );
9
- const routes = JSON.parse(
10
- fs.readFileSync(path.resolve(scriptDir, "../src/lib/specRouteCatalog.json"), "utf8"),
11
- );
12
-
13
- const routeMap = new Map(routes.map((entry) => [entry.id, entry.route]));
14
-
15
- export default {
16
- service: "templates-landing",
17
- targetBaseUrl: "http://127.0.0.1:4300",
18
- viewport: {
19
- width: 1440,
20
- height: 1024,
21
- },
22
- screens: screens.map((screen) => ({
23
- id: screen.id,
24
- title: screen.title,
25
- route: routeMap.get(screen.id) ?? "/",
26
- referenceImage: `sdd/03_verify/10_test/ui_parity/reference/${screen.id}.png`,
27
- readySelector: "body",
28
- readyTimeoutMs: 10000,
29
- tags: ["template", "landing"],
30
- })),
31
- async preparePage(page, { route }) {
32
- await page.route("**/auth/me", async (routeRequest) => {
33
- await routeRequest.fulfill({
34
- status: 200,
35
- contentType: "application/json",
36
- body: JSON.stringify({
37
- id: "tmpl-landing",
38
- name: "Template Member",
39
- email: "member@example.com",
40
- role: "member",
41
- }),
42
- });
43
- });
44
- await page.addInitScript(() => {
45
- window.localStorage.setItem(
46
- "landing.auth.token",
47
- JSON.stringify({
48
- access_token: "template-access-token",
49
- token_type: "bearer",
50
- }),
51
- );
52
- });
53
- if (route === "/login" || route === "/") {
54
- await page.addInitScript(() => {
55
- window.localStorage.removeItem("landing.auth.token");
56
- });
57
- }
58
- },
59
- async waitForReady(page) {
60
- await page.waitForLoadState("networkidle");
61
- },
62
- async resolveMaskRects() {
63
- return [];
64
- },
65
- };
@@ -1,21 +0,0 @@
1
- import { Route, Routes } from "react-router-dom";
2
-
3
- import { ProtectedRoute } from "@/auth/ProtectedRoute";
4
- import { LandingShell } from "@/components/LandingShell";
5
- import { LandingHomePage } from "@/pages/LandingHomePage";
6
- import { LandingLoginPage } from "@/pages/LandingLoginPage";
7
- import { LandingWorkspacePage } from "@/pages/LandingWorkspacePage";
8
-
9
- export function App() {
10
- return (
11
- <Routes>
12
- <Route path="/" element={<LandingHomePage />} />
13
- <Route path="/login" element={<LandingLoginPage />} />
14
- <Route element={<ProtectedRoute />}>
15
- <Route element={<LandingShell />}>
16
- <Route path="/workspace" element={<LandingWorkspacePage />} />
17
- </Route>
18
- </Route>
19
- </Routes>
20
- );
21
- }
@@ -1,30 +0,0 @@
1
- import { apiGet } from "@/api/client";
2
-
3
- export interface Money {
4
- amount: number;
5
- currency: string;
6
- }
7
-
8
- export interface MediaAsset {
9
- url: string;
10
- alt: string;
11
- }
12
-
13
- export interface CatalogProductSummary {
14
- id: string;
15
- slug: string;
16
- name: string;
17
- brand: string;
18
- category: string;
19
- status: string;
20
- short_description: string;
21
- hero_image: MediaAsset;
22
- price: Money;
23
- compare_at_price: Money | null;
24
- tags: string[];
25
- variant_count: number;
26
- }
27
-
28
- export function fetchCatalogProducts(accessToken?: string) {
29
- return apiGet<CatalogProductSummary[]>("/catalog/products", { accessToken });
30
- }
@@ -1,30 +0,0 @@
1
- const API_BASE_URL = (import.meta.env.VITE_API_BASE_URL as string | undefined)?.replace(/\/$/, "") ?? "";
2
-
3
- interface RequestOptions {
4
- accessToken?: string;
5
- }
6
-
7
- async function readJson<T>(response: Response): Promise<T> {
8
- if (!response.ok) {
9
- let message = "Request failed";
10
- try {
11
- const data = (await response.json()) as { detail?: string };
12
- if (typeof data.detail === "string" && data.detail.length > 0) {
13
- message = data.detail;
14
- }
15
- } catch {
16
- message = response.statusText || message;
17
- }
18
- throw new Error(message);
19
- }
20
-
21
- return (await response.json()) as T;
22
- }
23
-
24
- export async function apiGet<T>(path: string, options?: RequestOptions): Promise<T> {
25
- const response = await fetch(`${API_BASE_URL}${path}`, {
26
- headers: options?.accessToken ? { Authorization: `Bearer ${options.accessToken}` } : undefined,
27
- });
28
-
29
- return readJson<T>(response);
30
- }