260714_01_ENH: 테스트 서버에서 기동 후 중간 테스트를 위한 커밋

This commit is contained in:
2026-07-14 10:59:07 +09:00
parent a8ce35f5bf
commit 192d47bdb1
180 changed files with 11942 additions and 6007 deletions

View File

@@ -2,7 +2,7 @@
import { useState } from 'react'
import { Download } from 'lucide-react'
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog'
import { KriDialog } from '@/components/common/KriDialog'
import { Button } from '@/components/ui/button'
import { Label } from '@/components/ui/label'
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group'
@@ -57,7 +57,7 @@ const ListDownloadDialog = ({
const hasFrom = contactHistoryDateFrom.length > 0
const hasTo = contactHistoryDateTo.length > 0
if (hasFrom !== hasTo) {
alert('조회 기간은 시작일과 종료일을 모두 입력해 주세요.')
alert('조회 기간은 시작일과 종료일을 모두 입력해주세요.')
return
}
if (hasFrom && hasTo && contactHistoryDateFrom > contactHistoryDateTo) {
@@ -83,51 +83,14 @@ const ListDownloadDialog = ({
}
return (
<Dialog open={resolvedOpen} onOpenChange={handleOpenChange}>
<DialogContent className="sm:max-w-[560px]">
<DialogHeader>
<DialogTitle className="text-2xl font-bold">{titleMap[mode]}</DialogTitle>
</DialogHeader>
<div className="space-y-4">
{mode === 'contact-history' ? (
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">조회 기간</p>
<KriDateRangePicker
value={{ from: contactHistoryDateFrom, to: contactHistoryDateTo }}
onChange={(range) => {
setContactHistoryDateFrom(range.from)
setContactHistoryDateTo(range.to)
}}
/>
<p className="text-xs text-muted-foreground">비워두면 전체 기간으로 다운로드됩니다.</p>
</div>
) : null}
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">다운로드 범위</p>
<ApplyFilterOption value={target} onValueChange={setTarget} idPrefix="download-scope-target" />
</div>
{mode === 'contact-history' ? (
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">이력 기준</p>
<RadioGroup
value={contactHistoryType}
onValueChange={(v) => setContactHistoryType(v as ContactHistoryDownloadType)}
className="flex items-center gap-6 flex-wrap"
>
<div className="flex items-center gap-2">
<RadioGroupItem value="all" id="download-contact-history-all" />
<Label htmlFor="download-contact-history-all">전체 이력</Label>
</div>
<div className="flex items-center gap-2">
<RadioGroupItem value="latest" id="download-contact-history-latest" />
<Label htmlFor="download-contact-history-latest">마지막 이력만</Label>
</div>
</RadioGroup>
</div>
) : null}
</div>
<DialogFooter>
<KriDialog
open={resolvedOpen}
onOpenChange={handleOpenChange}
title={<span className="text-2xl font-bold">{titleMap[mode]}</span>}
contentClassName="sm:max-w-[560px]"
bodyClassName="space-y-4"
footer={
<>
<Button type="button" variant="outline" onClick={() => handleOpenChange(false)} disabled={submitting}>
취소
</Button>
@@ -135,9 +98,46 @@ const ListDownloadDialog = ({
<Download className="w-4 h-4" />
다운로드
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
</>
}
>
{mode === 'contact-history' ? (
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">조회 기간</p>
<KriDateRangePicker
value={{ from: contactHistoryDateFrom, to: contactHistoryDateTo }}
onChange={(range) => {
setContactHistoryDateFrom(range.from)
setContactHistoryDateTo(range.to)
}}
/>
<p className="text-xs text-muted-foreground">비워두면 전체 기간으로 다운로드합니다.</p>
</div>
) : null}
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">다운로드 범위</p>
<ApplyFilterOption value={target} onValueChange={setTarget} idPrefix="download-scope-target" />
</div>
{mode === 'contact-history' ? (
<div className="rounded-md border p-4 space-y-4">
<p className="text-lg font-semibold">이력 기준</p>
<RadioGroup
value={contactHistoryType}
onValueChange={(v) => setContactHistoryType(v as ContactHistoryDownloadType)}
className="flex items-center gap-6 flex-wrap"
>
<div className="flex items-center gap-2">
<RadioGroupItem value="all" id="download-contact-history-all" />
<Label className="text-base" htmlFor="download-contact-history-all">전체 이력</Label>
</div>
<div className="flex items-center gap-2">
<RadioGroupItem value="latest" id="download-contact-history-latest" />
<Label className="text-base" htmlFor="download-contact-history-latest">마지막 이력만</Label>
</div>
</RadioGroup>
</div>
) : null}
</KriDialog>
)
}