260702_01_ENH: 리스트 작업 도중 공용 ui를 적용하기 위한 중간 커밋

This commit is contained in:
2026-07-02 17:02:17 +09:00
parent 6944064377
commit a8ce35f5bf
111 changed files with 2833 additions and 2557 deletions

View File

@@ -11,7 +11,7 @@ import {Tabs, TabsContent, TabsList, TabsTrigger} from '@/components/ui/tabs'
import {KriMultiSelect, KriSingleSelect} from '@/components/common/KriAutoComplete'
import {useDialog} from '@/hooks/useDialog'
import ResultCodeDialog from '@/components/dialog/ResultCodeDialog'
import {useMounted} from '@/hooks/useMounted'
import { useDebouncedValue, useMounted } from "@kri/common/hooks";
import {LoadingOverlay} from '@/components/common/LoadingOverlay'
import {
ProjectInfo, ProjectUpdateRequest, ResultCode,
@@ -27,7 +27,6 @@ import {MultiSelectOption} from "@/components/ui/multi-select";
import {FW_TEAM} from "@/const/userConst";
import {useItrntUserList} from "@/hooks/useItrntUserList";
import {useSelectedProject} from "@/hooks/useSelectedProject";
import {useDebouncedValue} from "@/hooks/useDebouncedValue";
import {useAuth} from "@/hooks/useAuth";
import {KriEditor} from "@/components/kri-editor";
import {useRouter} from "next/navigation";
@@ -257,16 +256,16 @@ const ProjectInfoPage = () => {
{/* 1. 기본 정보 */}
<div className="border rounded-lg p-6 space-y-5 bg-white mt-6">
<h3 className="content-text-xl font-semibold">프로젝트 기본 정보</h3>
<h3 className="text-xl font-semibold">프로젝트 기본 정보</h3>
<div className="space-y-4">
<div className="space-y-2">
<Label className="content-text-base">프로젝트 코드</Label>
<Label className="text-base">프로젝트 코드</Label>
<Input value={projectInfo.prjctCd || ''} disabled className="bg-gray-100 h-9" />
</div>
<div className="grid grid-cols-[1fr_auto] gap-3 items-end">
<div className="space-y-2">
<Label className="content-text-base">진행 상태</Label>
<Label className="text-base">진행 상태</Label>
<RadioGroup
value={String(projectInfo.prjctStatus ?? ProjectStatus.WAITING)}
onValueChange={(v) => handleChange('prjctStatus', Number(v) as ProjectStatus)}
@@ -277,7 +276,7 @@ const ProjectInfoPage = () => {
return (
<div key={s} className="flex items-center space-x-2">
<RadioGroupItem value={String(s)} id={id} />
<Label htmlFor={id} className="font-normal cursor-pointer content-text-base">
<Label htmlFor={id} className="font-normal cursor-pointer text-base">
{PROJECT_STATUS_LABEL[s]}
</Label>
</div>
@@ -286,13 +285,13 @@ const ProjectInfoPage = () => {
</RadioGroup>
</div>
<Button onClick={handleResultCodeClick} className="h-9 content-text-base whitespace-nowrap">
<Button onClick={handleResultCodeClick} className="h-9 text-base whitespace-nowrap">
결과 코드 설정
</Button>
</div>
<div className="space-y-2">
<Label className="content-text-base">
<Label className="text-base">
프로젝트 명<span className="text-red-500 ml-1">*</span>
</Label>
<Input
@@ -305,7 +304,7 @@ const ProjectInfoPage = () => {
<div className="grid grid-cols-2 gap-4">
<div className="space-y-2">
<Label className="content-text-base">담당 그룹</Label>
<Label className="text-base">담당 그룹</Label>
<KriSingleSelect
items={deptArray}
value={projectInfo.ownerDept || ''}
@@ -317,7 +316,7 @@ const ProjectInfoPage = () => {
</div>
<div className="space-y-2">
<Label className="content-text-base">담당 실사</Label>
<Label className="text-base">담당 실사</Label>
<KriSingleSelect
items={fwArray}
value={projectInfo.ownerFw || ''}
@@ -334,7 +333,7 @@ const ProjectInfoPage = () => {
</div>
<div className="border rounded-lg p-6 space-y-4 bg-white mt-3">
<h3 className="content-text-xl font-semibold">외주사</h3>
<h3 className="text-xl font-semibold">외주사</h3>
<KriMultiSelect
items={outsourceOptionArray}
value={outsourceUserArray}
@@ -349,7 +348,7 @@ const ProjectInfoPage = () => {
</div>
<div className="border rounded-lg p-6 space-y-4 bg-white mt-3">
<h3 className="content-text-xl font-semibold">설문 연동</h3>
<h3 className="text-xl font-semibold">설문 연동</h3>
<RadioGroup
value={String(projectInfo.surveyTy ?? SurveyType.NONE)}
@@ -361,7 +360,7 @@ const ProjectInfoPage = () => {
return (
<div key={t} className="flex items-center space-x-2">
<RadioGroupItem value={String(t)} id={id} />
<Label htmlFor={id} className="font-normal cursor-pointer content-text-base">
<Label htmlFor={id} className="font-normal cursor-pointer text-base">
{SURVEY_TYPE_LABEL[t]}
</Label>
</div>
@@ -371,7 +370,7 @@ const ProjectInfoPage = () => {
{(projectInfo.surveyTy === SurveyType.KON || projectInfo.surveyTy === SurveyType.KIWI) && (
<div className="space-y-2">
<Label className="content-text-base">{SURVEY_TYPE_LABEL[projectInfo.surveyTy]} 프로젝트</Label>
<Label className="text-base">{SURVEY_TYPE_LABEL[projectInfo.surveyTy]} 프로젝트</Label>
<KriSingleSelect
items={surveyProjectArray}
value={projectInfo.surveyPrjctCd || ''}
@@ -388,7 +387,7 @@ const ProjectInfoPage = () => {
)}
{projectInfo.surveyTy !== SurveyType.NONE && (
<div className="space-y-2">
<Label className="content-text-base">설문 URL</Label>
<Label className="text-base">설문 URL</Label>
<Input
value={projectInfo.surveyUrl || ''}
onChange={(e) => handleChange('surveyUrl', e.target.value)}
@@ -412,19 +411,19 @@ const ProjectInfoPage = () => {
<div className="grid gap-2">
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">시작:</Label>
<Label className="w-24 text-base">시작:</Label>
<Input value={externalUrls.redirect.start} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">완료:</Label>
<Label className="w-24 text-base">완료:</Label>
<Input value={externalUrls.redirect.complete} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">스크린 아웃:</Label>
<Label className="w-24 text-base">스크린 아웃:</Label>
<Input value={externalUrls.redirect.screen} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">쿼터 풀:</Label>
<Label className="w-24 text-base">쿼터 풀:</Label>
<Input value={externalUrls.redirect.quota} disabled className="bg-white h-9" />
</div>
</div>
@@ -437,19 +436,19 @@ const ProjectInfoPage = () => {
<div className="grid gap-2">
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">시작 API:</Label>
<Label className="w-24 text-base">시작 API:</Label>
<Input value={externalUrls.api.start} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">완료 API:</Label>
<Label className="w-24 text-base">완료 API:</Label>
<Input value={externalUrls.api.complete} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">스크린 API:</Label>
<Label className="w-24 text-base">스크린 API:</Label>
<Input value={externalUrls.api.screen} disabled className="bg-white h-9" />
</div>
<div className="flex items-center gap-2">
<Label className="w-24 content-text-base">쿼터 API:</Label>
<Label className="w-24 text-base">쿼터 API:</Label>
<Input value={externalUrls.api.quota} disabled className="bg-white h-9" />
</div>
</div>
@@ -463,7 +462,7 @@ const ProjectInfoPage = () => {
</div>
<div className="border rounded-lg p-6 space-y-4 bg-white mt-3">
<h3 className="content-text-xl font-semibold">기타 옵션</h3>
<h3 className="text-xl font-semibold">기타 옵션</h3>
<div className="space-y-4">
<div className="flex items-center space-x-2">
@@ -472,7 +471,7 @@ const ProjectInfoPage = () => {
checked={projectInfo.ff || false}
onCheckedChange={(checked) => handleChange('ff', checked === true)}
/>
<Label htmlFor="ff" className="font-normal cursor-pointer content-text-base">
<Label htmlFor="ff" className="font-normal cursor-pointer text-base">
현장 면접 진행
</Label>
</div>
@@ -483,7 +482,7 @@ const ProjectInfoPage = () => {
checked={projectInfo.useContactSenario || false}
onCheckedChange={(checked) => handleChange('useContactSenario', checked === true)}
/>
<Label htmlFor="useContactSenario" className="font-normal cursor-pointer content-text-base">
<Label htmlFor="useContactSenario" className="font-normal cursor-pointer text-base">
컨택 시나리오
</Label>
</div>
@@ -512,12 +511,12 @@ const ProjectInfoPage = () => {
<div className="flex justify-end gap-2">
<Button
variant="destructive"
className="w-32 h-10 content-text-base"
className="w-32 h-10 text-base"
onClick={handleDeleteClick}
>
삭제
</Button>
<Button onClick={handleSubmit} className="w-32 h-10 content-text-base">
<Button onClick={handleSubmit} className="w-32 h-10 text-base">
저장
</Button>
</div>