260921_01_ENH: 설문번호 노출 및 설문연동에 대한 경고문 추가 #38

Merged
gitadmin merged 1 commits from develop into master 2026-09-21 12:07:09 +09:00

View File

@@ -185,7 +185,12 @@ const SurveyCard = ({ survey, index, itrntPrjctCd, userTeam, invalidField, onReg
return (
<div className="space-y-3 rounded-lg border p-4">
<div className="flex items-center justify-between">
<p className="text-base font-semibold">설문 {index + 1}</p>
<div className="flex items-center gap-2">
<p className="text-base font-semibold">설문 {index + 1}</p>
<span className="text-sm font-semibold ">
(설문 번호: {survey.prjctSurveyIdx ?? '미발급'})
</span>
</div>
<Button type="button" variant="ghost" size="icon-sm" onClick={() => onRemove(survey.uiKey)} aria-label="설문 삭제">
<X className="h-4 w-4" />
</Button>
@@ -710,7 +715,18 @@ const ProjectInfoPage = () => {
<div className="border rounded-lg p-6 space-y-4 bg-white mt-3">
<div className="flex items-center justify-between">
<h3 className="text-xl font-semibold">설문 연동</h3>
<div className="flex items-center gap-4">
<h3 className="shrink-0 text-xl font-semibold">설문 연동</h3>
{surveys.length > 0 && (
<div className="flex items-start gap-1 text-sm text-red-600" role="alert">
<span aria-hidden="true">⚠️</span>
<div>
<p>설문 URL에서 <span className="font-semibold">psidx=[$설문번호]</span>가 빠지면 연동되지 않습니다.</p>
<p>설문 카드에 표시된 단축 URL을 사용하면 별도 설정 없이 정상 연동됩니다.</p>
</div>
</div>
)}
</div>
<Button type="button" variant="outline" onClick={handleAddSurvey}>
설문 추가
</Button>