feat: 업무단계 도달 표시에 시각 추가
@55b61320520601212800d9357e81534e0467c65e
--- frontend/src/components/OrgOverview.test.tsx
+++ frontend/src/components/OrgOverview.test.tsx
... | ... | @@ -239,9 +239,9 @@ |
| 239 | 239 |
render(<OrgOverview org={org({ stage: 3 })} />)
|
| 240 | 240 |
|
| 241 | 241 |
await waitFor(() => {
|
| 242 |
- expect(screen.getByText('2026-07-24')).toBeTruthy()
|
|
| 243 |
- expect(screen.getByText('2026-07-20')).toBeTruthy()
|
|
| 244 |
- expect(screen.getByText('2026-07-15')).toBeTruthy()
|
|
| 242 |
+ expect(screen.getByText('2026-07-24 10:00')).toBeTruthy()
|
|
| 243 |
+ expect(screen.getByText('2026-07-20 09:00')).toBeTruthy()
|
|
| 244 |
+ expect(screen.getByText('2026-07-15 09:00')).toBeTruthy()
|
|
| 245 | 245 |
}) |
| 246 | 246 |
}) |
| 247 | 247 |
|
--- frontend/src/components/OrgOverview.tsx
+++ frontend/src/components/OrgOverview.tsx
... | ... | @@ -52,9 +52,16 @@ |
| 52 | 52 |
day: '2-digit', |
| 53 | 53 |
}) |
| 54 | 54 |
|
| 55 |
-/** 2026. 07. 24. → 2026-07-24 */ |
|
| 55 |
+const stageTimeFormatter = new Intl.DateTimeFormat('ko-KR', {
|
|
| 56 |
+ hour: '2-digit', |
|
| 57 |
+ minute: '2-digit', |
|
| 58 |
+ hourCycle: 'h23', |
|
| 59 |
+}) |
|
| 60 |
+ |
|
| 61 |
+/** 2026. 07. 24. + 16:05 → "2026-07-24 16:05" (카드 폭에서 날짜/시간 두 줄로 자연 줄바꿈) */ |
|
| 56 | 62 |
function formatStageDate(ms: number): string {
|
| 57 |
- return stageDateFormatter.format(new Date(ms)).replace(/\. ?/g, '-').replace(/-$/, '') |
|
| 63 |
+ const date = stageDateFormatter.format(new Date(ms)).replace(/\. ?/g, '-').replace(/-$/, '') |
|
| 64 |
+ return `${date} ${stageTimeFormatter.format(new Date(ms))}`
|
|
| 58 | 65 |
} |
| 59 | 66 |
|
| 60 | 67 |
function Field({ label, value }: { label: string; value: string | null }) {
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?