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,338 +0,0 @@
1
- import { AlertTriangle, ArrowUpRight, CircleCheckBig, Truck } from "lucide-react";
2
- import { useEffect, useState } from "react";
3
- import { Link } from "react-router-dom";
4
-
5
- import {
6
- fetchShipments,
7
- fetchShippingOverview,
8
- updateShipmentStatus,
9
- type ShipmentSummary,
10
- type ShippingOverviewResponse,
11
- } from "@/api/shipping";
12
- import { useAuth } from "@/auth/AuthProvider";
13
- import { Button } from "@/components/ui/button";
14
- import { Card } from "@/components/ui/card";
15
-
16
- function shippingStatusClassName(status: string) {
17
- if (status === "Delivered") {
18
- return "bg-[#dff3ec] text-[var(--in-accent)]";
19
- }
20
- if (status === "Delayed") {
21
- return "bg-[#ffe2d7] text-[#c4663a]";
22
- }
23
- if (status === "Out for delivery") {
24
- return "bg-[#e9f4ff] text-[#245f92]";
25
- }
26
-
27
- return "bg-[#fff0d8] text-[#b56a1f]";
28
- }
29
-
30
- function shippingActionPayload(status: string) {
31
- if (status === "Delayed") {
32
- return {
33
- label: "재개",
34
- body: {
35
- status: "In transit",
36
- last_event: "재배차 완료",
37
- eta: "2026.03.14 20:30",
38
- },
39
- variant: "secondary" as const,
40
- };
41
- }
42
-
43
- if (status === "Delivered") {
44
- return null;
45
- }
46
-
47
- return {
48
- label: "완료",
49
- body: {
50
- status: "Delivered",
51
- last_event: "고객 인수 완료",
52
- eta: "2026.03.14 19:10",
53
- },
54
- variant: "default" as const,
55
- };
56
- }
57
-
58
- export function ShippingPage() {
59
- const { token } = useAuth();
60
- const [overview, setOverview] = useState<ShippingOverviewResponse | null>(null);
61
- const [shipments, setShipments] = useState<ShipmentSummary[]>([]);
62
- const [loading, setLoading] = useState(true);
63
- const [error, setError] = useState<string | null>(null);
64
- const [pendingShipmentId, setPendingShipmentId] = useState<string | null>(null);
65
-
66
- useEffect(() => {
67
- const accessToken = token?.access_token;
68
- if (!accessToken) {
69
- return;
70
- }
71
- const currentAccessToken = accessToken;
72
-
73
- let cancelled = false;
74
-
75
- async function loadShippingData() {
76
- setLoading(true);
77
- setError(null);
78
-
79
- try {
80
- const [overviewResponse, shipmentResponse] = await Promise.all([
81
- fetchShippingOverview(currentAccessToken),
82
- fetchShipments(currentAccessToken),
83
- ]);
84
- if (!cancelled) {
85
- setOverview(overviewResponse);
86
- setShipments(shipmentResponse);
87
- }
88
- } catch (nextError) {
89
- if (!cancelled) {
90
- const message =
91
- nextError instanceof Error ? nextError.message : "Request failed";
92
- setError(message);
93
- setOverview(null);
94
- setShipments([]);
95
- }
96
- } finally {
97
- if (!cancelled) {
98
- setLoading(false);
99
- }
100
- }
101
- }
102
-
103
- void loadShippingData();
104
-
105
- return () => {
106
- cancelled = true;
107
- };
108
- }, [token?.access_token]);
109
-
110
- async function handleShipmentAction(shipment: ShipmentSummary) {
111
- const accessToken = token?.access_token;
112
- if (!accessToken) {
113
- return;
114
- }
115
-
116
- const action = shippingActionPayload(shipment.status);
117
- if (!action) {
118
- return;
119
- }
120
-
121
- setPendingShipmentId(shipment.shipment_id);
122
- setError(null);
123
-
124
- try {
125
- await updateShipmentStatus(
126
- shipment.shipment_id,
127
- accessToken,
128
- action.body,
129
- );
130
- const [overviewResponse, shipmentResponse] = await Promise.all([
131
- fetchShippingOverview(accessToken),
132
- fetchShipments(accessToken),
133
- ]);
134
- setOverview(overviewResponse);
135
- setShipments(shipmentResponse);
136
- } catch (nextError) {
137
- const message =
138
- nextError instanceof Error ? nextError.message : "Request failed";
139
- setError(message);
140
- } finally {
141
- setPendingShipmentId(null);
142
- }
143
- }
144
-
145
- return (
146
- <div className="grid gap-6 xl:grid-cols-[1fr_320px]">
147
- <Card className="overflow-hidden shadow-[0_18px_48px_rgba(25,54,46,0.06)]">
148
- <div className="border-b border-[var(--in-border)] px-6 py-5">
149
- <div className="flex flex-wrap items-start justify-between gap-4">
150
- <div>
151
- <h2 className="text-xl font-black text-[var(--in-text)]">
152
- Shipping operations
153
- </h2>
154
- <p className="mt-2 text-sm text-[var(--in-muted)]">
155
- 출고 이후 배송 상태, ETA, 마지막 이벤트를 운영자가 바로 갱신하는
156
- downstream 배송 surface다.
157
- </p>
158
- </div>
159
- <Link
160
- className="inline-flex items-center gap-2 rounded-full bg-[var(--in-accent-soft)] px-3 py-2 text-sm font-semibold text-[var(--in-accent)]"
161
- to="/fulfillment"
162
- >
163
- Fulfillment board
164
- <ArrowUpRight className="h-4 w-4" />
165
- </Link>
166
- </div>
167
- </div>
168
-
169
- <table className="w-full border-collapse text-sm">
170
- <thead className="bg-[#faf6ef] text-left text-[var(--in-muted)]">
171
- <tr>
172
- {["Shipment", "Carrier", "Status", "ETA", "Action"].map((cell) => (
173
- <th
174
- key={cell}
175
- className="border-b border-[var(--in-border)] px-6 py-4 font-semibold"
176
- >
177
- {cell}
178
- </th>
179
- ))}
180
- </tr>
181
- </thead>
182
- <tbody>
183
- {loading ? (
184
- <tr>
185
- <td
186
- className="border-b border-[var(--in-border)] px-6 py-4 text-[var(--in-muted)]"
187
- colSpan={5}
188
- >
189
- 배송 shipment를 불러오는 중입니다.
190
- </td>
191
- </tr>
192
- ) : null}
193
- {error ? (
194
- <tr>
195
- <td
196
- className="border-b border-[var(--in-border)] px-6 py-4 text-[#9d4d26]"
197
- colSpan={5}
198
- >
199
- {error}
200
- </td>
201
- </tr>
202
- ) : null}
203
- {!loading && !error && !shipments.length ? (
204
- <tr>
205
- <td
206
- className="border-b border-[var(--in-border)] px-6 py-4 text-[var(--in-muted)]"
207
- colSpan={5}
208
- >
209
- 현재 표시할 shipment가 없습니다.
210
- </td>
211
- </tr>
212
- ) : null}
213
- {shipments.map((shipment) => {
214
- const action = shippingActionPayload(shipment.status);
215
- return (
216
- <tr key={shipment.shipment_id}>
217
- <td className="border-b border-[var(--in-border)] px-6 py-4">
218
- <div className="font-semibold text-[var(--in-accent)]">
219
- {shipment.shipment_id}
220
- </div>
221
- <div className="mt-1 text-xs text-[var(--in-muted)]">
222
- {shipment.order_id} · {shipment.destination}
223
- </div>
224
- <div className="mt-1 text-xs text-[var(--in-muted)]">
225
- {shipment.tracking_number}
226
- </div>
227
- </td>
228
- <td className="border-b border-[var(--in-border)] px-6 py-4 text-[var(--in-muted)]">
229
- <div className="font-semibold text-[var(--in-text)]">
230
- {shipment.carrier}
231
- </div>
232
- <div className="mt-1 text-xs">{shipment.last_event}</div>
233
- </td>
234
- <td className="border-b border-[var(--in-border)] px-6 py-4">
235
- <span
236
- className={`rounded-full px-3 py-1 text-xs font-semibold ${shippingStatusClassName(
237
- shipment.status,
238
- )}`}
239
- >
240
- {shipment.status}
241
- </span>
242
- </td>
243
- <td className="border-b border-[var(--in-border)] px-6 py-4 text-[var(--in-text)]">
244
- {shipment.eta}
245
- </td>
246
- <td className="border-b border-[var(--in-border)] px-6 py-4">
247
- {action ? (
248
- <Button
249
- size="sm"
250
- variant={action.variant}
251
- disabled={pendingShipmentId === shipment.shipment_id}
252
- onClick={() => void handleShipmentAction(shipment)}
253
- >
254
- {pendingShipmentId === shipment.shipment_id
255
- ? "처리 중"
256
- : action.label}
257
- </Button>
258
- ) : (
259
- <span className="text-xs font-semibold text-[var(--in-muted)]">
260
- 종료됨
261
- </span>
262
- )}
263
- </td>
264
- </tr>
265
- );
266
- })}
267
- </tbody>
268
- </table>
269
- </Card>
270
-
271
- <div className="space-y-6">
272
- <Card className="p-6 shadow-[0_18px_48px_rgba(25,54,46,0.06)]">
273
- <p className="text-sm font-semibold uppercase tracking-[0.16em] text-[var(--in-accent)]">
274
- Shipping pulse
275
- </p>
276
- <p className="mt-3 text-2xl font-black text-[var(--in-text)]">
277
- {overview?.highlighted_route ?? "Route unavailable"}
278
- </p>
279
- <div className="mt-6 grid gap-3">
280
- {(overview?.stats ?? []).map((stat) => (
281
- <div
282
- key={stat.label}
283
- className="rounded-[22px] border border-[var(--in-border)] bg-white px-4 py-4"
284
- >
285
- <div className="flex items-center justify-between gap-3">
286
- <span className="text-sm text-[var(--in-muted)]">
287
- {stat.label}
288
- </span>
289
- {stat.label === "지연" ? (
290
- <AlertTriangle className="h-4 w-4 text-[#c4663a]" />
291
- ) : stat.label === "오늘 완료" ? (
292
- <CircleCheckBig className="h-4 w-4 text-[#245f92]" />
293
- ) : (
294
- <Truck className="h-4 w-4 text-[var(--in-accent)]" />
295
- )}
296
- </div>
297
- <div className="mt-3 text-2xl font-black text-[var(--in-text)]">
298
- {stat.value}
299
- </div>
300
- </div>
301
- ))}
302
- {loading && !overview ? (
303
- <div className="text-sm text-[var(--in-muted)]">
304
- 배송 overview를 불러오는 중입니다.
305
- </div>
306
- ) : null}
307
- </div>
308
- </Card>
309
-
310
- <Card className="p-6 shadow-[0_18px_48px_rgba(25,54,46,0.06)]">
311
- <h2 className="text-xl font-black text-[var(--in-text)]">
312
- Carrier load
313
- </h2>
314
- <div className="mt-5 space-y-3">
315
- {!loading && !error && !(overview?.carriers.length ?? 0) ? (
316
- <div className="text-sm text-[var(--in-muted)]">
317
- 표시할 carrier 데이터가 없습니다.
318
- </div>
319
- ) : null}
320
- {(overview?.carriers ?? []).map((carrier) => (
321
- <div
322
- key={carrier.label}
323
- className="rounded-[22px] border border-[var(--in-border)] bg-white px-4 py-4"
324
- >
325
- <div className="font-semibold text-[var(--in-text)]">
326
- {carrier.label}
327
- </div>
328
- <div className="mt-1 text-sm text-[var(--in-muted)]">
329
- {carrier.value}
330
- </div>
331
- </div>
332
- ))}
333
- </div>
334
- </Card>
335
- </div>
336
- </div>
337
- );
338
- }
@@ -1,23 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- :root {
6
- font-family: "SUIT", "Pretendard", "Apple SD Gothic Neo", sans-serif;
7
- color: #1f2c45;
8
- background: #f4f7fb;
9
- }
10
-
11
- * {
12
- box-sizing: border-box;
13
- }
14
-
15
- body {
16
- margin: 0;
17
- min-width: 320px;
18
- }
19
-
20
- a {
21
- color: inherit;
22
- text-decoration: none;
23
- }
@@ -1,16 +0,0 @@
1
- import type { CSSProperties } from "react";
2
-
3
- import type { InTheme } from "./theme";
4
-
5
- export function inThemeVars(theme: InTheme): CSSProperties {
6
- return {
7
- "--in-shell-bg": theme.shellBg,
8
- "--in-panel-bg": theme.panelBg,
9
- "--in-border": theme.border,
10
- "--in-accent": theme.accent,
11
- "--in-accent-soft": theme.accentSoft,
12
- "--in-muted": theme.muted,
13
- "--in-text": theme.text,
14
- "--in-card-radius": theme.cardRadius,
15
- } as CSSProperties;
16
- }
@@ -1,21 +0,0 @@
1
- export type InTheme = {
2
- shellBg: string;
3
- panelBg: string;
4
- border: string;
5
- accent: string;
6
- accentSoft: string;
7
- muted: string;
8
- text: string;
9
- cardRadius: string;
10
- };
11
-
12
- export const inTheme: InTheme = {
13
- shellBg: "#f4efe6",
14
- panelBg: "#fffdf8",
15
- border: "#e7dccb",
16
- accent: "#18705c",
17
- accentSoft: "#dff3ec",
18
- muted: "#6f665b",
19
- text: "#203029",
20
- cardRadius: "24px",
21
- };
@@ -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/web/package.json ./client/web/package.json
7
-
8
- RUN npm install -g pnpm@10.32.0 && pnpm install --filter @do4ai/client-web-template...
9
-
10
- COPY . .
11
-
12
- WORKDIR /app/client/web
13
-
14
- EXPOSE 3001
15
-
16
- CMD ["pnpm", "dev", "--host", "0.0.0.0", "--port", "3001"]
@@ -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/web/package.json ./client/web/package.json
9
-
10
- RUN pnpm install --frozen-lockfile --filter @do4ai/client-web-template...
11
-
12
- COPY client/web ./client/web
13
-
14
- WORKDIR /app/client/web
15
-
16
- EXPOSE 3001
17
-
18
- CMD ["sh", "-lc", "pnpm exec vite --host 0.0.0.0 --port ${PORT:-3001}"]
@@ -1,47 +0,0 @@
1
- # web
2
-
3
- 일반 사용자용 제품 앱 보일러플레이트다.
4
-
5
- 포함 패턴:
6
-
7
- - 상단 shell + workspace content
8
- - KPI cards
9
- - searchable list/table
10
- - detail side panel
11
- - CSS variable 기반 theme surface
12
-
13
- 시작:
14
-
15
- ```bash
16
- npm install
17
- npm run dev
18
- ```
19
-
20
- 기본 DEV 포트는 `3001`이다.
21
-
22
- 복제 직후 초기화:
23
-
24
- ```bash
25
- npm run ui:parity:init
26
- ```
27
-
28
- 이 단계는 repo-level contract, `ui_parity_web_contract.yaml`, route-gap manifest를 생성한다.
29
-
30
- 첫 proof 부트스트랩:
31
-
32
- ```bash
33
- npm run ui:parity:bootstrap
34
- ```
35
-
36
- 이 단계는 build, preview, reference materialization, route-gap gate, proof gate까지 한 번에 수행한다.
37
-
38
- 패리티/하네스:
39
-
40
- ```bash
41
- npm run ui:parity:scaffold
42
- npm run ui:parity:materialize-references
43
- npm run ui:parity:route-gap
44
- npm run ui:parity:proof
45
- ```
46
-
47
- 이 템플릿은 repo root의 `sdd/99_toolchain/01_automation` 도구를 사용하고, `client/web/scripts/ui-parity-web-adapter.mjs`는 앱별 adapter 예시다.
@@ -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-web 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,42 +0,0 @@
1
- {
2
- "name": "@do4ai/client-web-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 3001",
9
- "build": "tsc -b && vite build",
10
- "preview": "vite preview --host 0.0.0.0 --port 4301",
11
- "ui:parity:init": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/init_frontend_parity.sh ../.. web",
12
- "ui:parity:bootstrap": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/bootstrap_frontend_parity.sh ../.. web",
13
- "ui:parity:scaffold": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh scaffold ../.. web",
14
- "ui:parity:materialize-references": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh materialize_references ../.. web",
15
- "ui:parity:route-gap": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh route_gap ../.. web",
16
- "ui:parity:proof": "bash ../../sdd/99_toolchain/01_automation/agentic-dev/run_frontend_target.sh proof ../.. web",
17
- "ui:parity": "npm run ui:parity:proof"
18
- },
19
- "dependencies": {
20
- "class-variance-authority": "^0.7.1",
21
- "clsx": "^2.1.1",
22
- "lucide-react": "^0.576.0",
23
- "react": "^18.3.1",
24
- "react-dom": "^18.3.1",
25
- "react-router-dom": "^6.30.1",
26
- "tailwind-merge": "^3.5.0"
27
- },
28
- "devDependencies": {
29
- "@playwright/test": "^1.58.2",
30
- "@types/react": "^18.3.18",
31
- "@types/react-dom": "^18.3.5",
32
- "@vitejs/plugin-react": "^4.7.0",
33
- "autoprefixer": "^10.4.21",
34
- "pixelmatch": "^7.1.0",
35
- "pngjs": "^7.0.0",
36
- "postcss": "^8.5.3",
37
- "tailwindcss": "^3.4.17",
38
- "typescript": "^5.8.3",
39
- "vite": "^5.4.19",
40
- "yaml": "^2.8.1"
41
- }
42
- }
@@ -1,6 +0,0 @@
1
- export default {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -1,66 +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-web",
17
- targetBaseUrl: "http://127.0.0.1:4301",
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", "web"],
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-web",
38
- name: "Template Web User",
39
- email: "operator@example.com",
40
- role: "member",
41
- }),
42
- });
43
- });
44
- await page.addInitScript(() => {
45
- window.localStorage.setItem(
46
- "web.auth.token",
47
- JSON.stringify({
48
- access_token: "template-access-token",
49
- token_type: "bearer",
50
- user_id: "tmpl-web",
51
- }),
52
- );
53
- });
54
- if (route === "/login") {
55
- await page.addInitScript(() => {
56
- window.localStorage.removeItem("web.auth.token");
57
- });
58
- }
59
- },
60
- async waitForReady(page) {
61
- await page.waitForLoadState("networkidle");
62
- },
63
- async resolveMaskRects() {
64
- return [];
65
- },
66
- };